Install Oracle 19c Client on Linux (RHEL8)
Title:
This article will cover the oracle client installation only.
Action Plan:
Login to Oracle downloads, and download the specific Version and OS related Client. In this case I am installing a 19.3 client on Linux 64bit.
Once downloaded, SCP/FTP the zip file to the server. keep it on a temp location like /tmp
Now unzip the zip file.
unzip LINUX.X64_193000_client.zip
Initiate Xming or any X terminal session in your system.
export DISPLAY=<Local machine IP >:0.0
export CV_ASSUME_DISTID=OL7
(This is required as we are using 19.3 client binary and it was released for RHEL7, and we are installing the client on RHEL8)
Now go the the /tmp location where the patch was unzipped and execute runInstaller.
cd client
./runInstaller
This will open up an XWindow and on the GUI, select as per your requirement. I have chosen Administration part, as I would like to configure my listeners from the client binary. Then clieck next.
Below parameter will be asked
ORACLE_BASE=/opt/app/oracle
ORACLE_HOME=<This actually takes automatically when you enter the Oracle Base path.>
After this the Installer will check for the prerequisites and it will prompt for any missing library.
For my case, it was complaining about the above libraries, and ask the root owner to install those binaries. Or, if you are the server owner or having root access, you can install those binaries as well.
eg: yum install <package_name>
One of the Library is obsolete in RHEL 8, so it can be safely ignored.
compat-libcap1
Once rest of the packages are installed, click on check again, and it will complain for only one package, which can be ignore and select ignore all checkbox on the top right hand corner and proceed to next step. In this step review the oracle home and base and click on install.
Once the installation is done, it will ask for running the root.sh with root user.
After running the root.sh/ work with Unix admin to complete executing the root.sh. click on OK.
That completes the Client Installation. the below will be displayed.
Optional Steps:
After the successful installation the environment variables can be added to the bash profile for oracle user, so that it automatically assigned after each fresh login to the server. The path can be changed according to the environment and business standard that is followed by the enterprise.
Example:
echo "ORACLE_HOME=/opt/app/oracle/product/19.0.0/client_1; export ORACLE_HOME" >> ~/.bash_profile
echo "LD_LIBRARY_PATH=\$ORACLE_HOME/lib; export LD_LIBRARY_PATH" >> ~/.bash_profile
echo "TNS_ADMIN=\$ORACLE_HOME/network/admin; export TNS_ADMIN" >> ~/.bash_profile
echo "PATH=\$PATH:\$ORACLE_HOME/bin; export PATH" >> ~/.bash_profile
cat ~/.bash_profile
Thanks for reading. Hope this helps you. Best Wishes!!