Skip to content

Instantly share code, notes, and snippets.

@claudiu-cristea
Last active August 29, 2015 14:05
Show Gist options
  • Save claudiu-cristea/e5daefde04de08fdd668 to your computer and use it in GitHub Desktop.
Save claudiu-cristea/e5daefde04de08fdd668 to your computer and use it in GitHub Desktop.
SQL*Plus
alias sp='rlwrap sqlplus64 username/password@//dbhost:1521/SID'
sudo apt-get install alien
sqlplus64: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory
sudo alien -i oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm
sudo alien -i oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
sudo alien -i oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm
sudo apt-get install rlwrap
sudo nano /etc/ld.so.conf.d/oracle.conf
sudo apt-get install libaio1
/usr/lib/oracle/12.1/client64/lib/
rlwrap sqlplus64 username/password@//dbhost:1521/SID
sqlplus64 username/password@//dbhost:1521/SID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment