Oracle Database Setup and Upgrade Guide for Cisco IoT FND, Release 5.x.x and Later

PDF

Oracle Database Setup and Upgrade Guide for Cisco IoT FND, Release 5.x.x and Later

Install Oracle 19c

Want to summarize with AI?

Log in

Provides instructions to install Oracle 19c by preparing the Oracle home directory, extracting installation files, setting environment variables, and creating the Oracle inventory directory.


Use this procedure to prepare the Oracle 19c installation environment and create the required Oracle directories.

Before you begin

Before you install Oracle 19c with the RHEL 8.x ISO, set up the VM with Oracle DB. Refer to Set up Oracle DB.

Procedure

1.

Log in to the VM as a root user using the following command:

xhost +local:oracle 
cd /home/oracle/app/oracle/product/19.0.0/dbhome_1
2.

Unzip the Oracle software that you downloaded from the Oracle website and copy it in the /usr/programs directory, using the following command:

unzip -oq /usr/programs/LINUX.X64_193000_db_home.zip

For more information about downloading Oracle software, refer to Set up Oracle DB.

3.

Run chown -R and chmod -R 775 commands on the unzipped directory.

Example:

chown -R oracle:dba /home/oracle/app/oracle/product/19.0.0/dbhome_1
chmod -R 775 /home/oracle/app/oracle/product/19.0.0/dbhome_1
Note

This command helps in creating all the required directories for installing Oracle software.

4.

Create a scripts directory and create a shell file, setEnv.sh, using the following command:

mkdir /home/oracle/scripts
5.

Copy and paste the following content in the terminal:

cat > /home/oracle/scripts/setEnv.sh <<EOF

# Oracle Settings

export ORACLE_BASE=/home/oracle/app/oracle

export ORACLE_HOME=\$ORACLE_BASE/product/19.0.0/dbhome_1

export PATH=\$PATH:\$ORACLE_HOME/bin

export ORACLE_SID=cgms

EOF
6.

Add the setEnv.sh file at the end of the /home/oracle/.bash_profile file.

Example:

echo ". /home/oracle/scripts/setEnv.sh" >> /home/oracle/.bash_profile
7.

Use the following command to grant permission:

chown -R oracle:oinstall /home/oracle/scripts
chmod u+x /home/oracle/scripts/*.sh
Note

The environment variable setup allows Oracle database installation settings to be accessed by other processes.

8.

Create an Oracle inventory directory using the following commands:

mkdir -p /home/oracle/app/oraInventory
chown -R oracle:dba /home/oracle/app/oraInventory
chmod -R 775 /home/oracle/app/oraInventory 

Create an ESXi VM terminal desktop instance

Before you begin

Refer to Install Oracle 19c.

Once you create the Oracle inventory directory, use the following steps to create an ESXi VM terminal desktop instance.

Procedure

1.

Log in as the oracle user and set the CV_ASSUME_DISTID to OEL8.1 and then run the following commands:

su - oracle
            export DISPLAY=:0.0
            export CV_ASSUME_DISTID=OEL8.1
Note

If you get any error messages during installation, see Unexpected Errors During Oracle 19c Installation.

2.

Optional: Source the updated .bash_profile file as the oracle user.

Example:

source /home/oracle/.bash_profile
3.

Run the installer.

Example:

cd /home/oracle/app/oracle/product/19.0.0/dbhome_1/
            ./runInstaller

What to do next

Follow the runInstaller GUI instructions for Oracle 19c installation. Refer to Run Installer.