Check your Oracle client. The user is either sqlplus or sqlplus64 depending on your platform. In my case, I used:
$ sqlplus64 username/ password@ //dbhost:1521/SID
If you get the following message, you need to tell sqlplus to use the proper libray:
sqlplus64: error loading shared libraries: libsqlplus.so: cannot open shared objects file: no such file or directory.
To do this, first find the location of the Oracle libraries. The path should be something like /usr/lib/oracle/<version>/client(64)/lib/ . In my case (Ubuntu 14.04 LTS, Intel on 64-bit) it was /usr/lib/oracle/11.2/client64/lib/ .
Now add this path to the system library list. Create and edit a new file:
$ sudo nano /etc/ld.so.conf.d/oracle.conf
Add inside the path:
/usr/lib/oracle/11.2/client64/lib/
Run the dynamic runtime linker program:
$ sudo ldconfig
If sqlplus gives the missing libaio.so.1 file, run:
$ sudo apt-get install libaio1
For other errors when trying to start sqlplus see the Ubuntu help page.
source share