Sunday, November 18, 2012

Installing SQLPlus on Linux

http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html
rpm -ivh oracle-instantclient11.2-basic-11.2.0.3.0-1.x86_64.rpm
rpm -ivh oracle-instantclient11.2-sqlplus-11.2.0.3.0-1.x86_64.rpm


you end up with

/usr/bin/sqlplus64
/usr/lib/oracle/11.2/client64/bin/sqlplus


When you run them, you get:
/usr/bin/sqlplus64: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory

add
export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib:$LD_LIBRARY_PATH
to your .bash_profile file

No comments: