Wednesday, May 29, 2019

Install SQL*Plus on Ubuntu 16.04

  1. First, you need to download Instant Client Downloads.

  2. Install alien software.

  3. sudo apt-get install alien
    

  4. Navigate to the folder where the downloaded rpm files are located and execute the following commands:

  5. sudo alien -i oracle-instantclient*-basic*.rpm
    sudo alien -i oracle-instantclient*-sqlplus*.rpm
    sudo alien -i oracle-instantclient*-devel*.rpm
    

  6. Type following command to install libaio.so

  7. sudo apt-get install libaio1
    

  8. Create an Oracle configuration file:

  9. sudo nano /etc/ld.so.conf.d/oracle.conf
    

  10. Put the following line in the created file:

  11. /usr/lib/oracle/<your oracle version>/client64/lib/
    

  12. Update the configuration by running the following command:

  13. sudo ldconfig
    

  14. Try to connect using the following command:

  15. sqlplus system/oracle@localhost:49161/xe
    


No comments:

Post a Comment