Oracle is one of the most popular relational databases. It is widely used in enterprise-level applications and web applications. In this article, we will learn how to install Oracle database on command line interface.
Download of Oracle database installation package
The files that need to be downloaded are provided on the Oracle official website. Just download the corresponding version of the Oracle code installation package directly. It is recommended to choose to install the latest version. Each version has a corresponding download link. The following are some download links:
Oracle 18c (Linux x86-64bit version): https://www.oracle.com/database/technologies/oracle18c-linux-180000-downloads.html
Oracle 12c (Linux x86-64bit version): https://www.oracle.com/database/technologies/oracle12c-linux-12201-downloads.html
Preparation work before installation
Before starting the installation of Oracle, some preparations need to be done. Before installation, please make sure you meet the following conditions:
Installation steps
The process of installing Oracle database has the following steps:
export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/<version>/dbhome_1 export ORACLE_SID=<SID> export PATH=$PATH:$ORACLE_HOME/bin
where "
groupadd dba useradd -G dba oracle passwd oracle
This will create a user named "oracle" and add it to the group "dba".
unzip oracle.zip
This will unzip the Oracle installation files. Next, enter the unzipped directory.
./runinstaller
This will open the Oracle installer.
$ORACLE_HOME/bin/dbca
This will open the Oracle Database Configuration Assistant. Following the instructions of the configuration assistant, you will need to select the type of database to install (such as single instance, multiple instances, etc.), set the database and instance names, set database configuration parameters, etc. After you complete all necessary settings and save, the Oracle database will start running.
Summary
In this article, we learned how to install Oracle database on Linux command line interface. Oracle installation can be complicated, but as long as you follow these steps, it can be completed smoothly. After installation, please make sure to configure other settings correctly, such as backup, performance optimization, etc., to ensure system stability and optimal performance.
The above is the detailed content of How to install oracle command line. For more information, please follow other related articles on the PHP Chinese website!