1) get the below instance oracle 12c client from oracle site
- instantclient-basic-linux.x64-12.1.0.2.0.zip
- instantclient-sqlplus-linux.x64-12.1.0.2.0.zip
2) create a oralce_instance directory in your home directory
3) unzip both instantclient zip file in /home/xyz/oracle_instance
4) create a soft link in /usr/bin
cd /sur/bin; sudo ln -s /home/xyz/oracle_instance/sqlplus
5) Create a new file
sudo vi /etc/ld.so.conf.d/oracle.conf
insert the below line and save the file
/home/xyz/oracle_instance/
Note : Oracle client instance home directory may be different in your case. So choose it accordingly.
Note : Oracle client instance home directory may be different in your case. So choose it accordingly.
6) sudo ldconfig
troubleshooting :
if sqlplus complain about the library libaio.so.1 , then install below library.
sudo apt-get install libaio1
troubleshooting :
if sqlplus complain about the library libaio.so.1 , then install below library.
sudo apt-get install libaio1
that's it, now happy sqlplus . If you want to install the oracle instant client from rpm package you need alien . Please check one of my old post.
No comments:
Post a Comment