Skip to content

Instantly share code, notes, and snippets.

@andrematias
Forked from tcnksm/install_sqlplus.md
Last active October 24, 2016 23:49
Show Gist options
  • Save andrematias/73439b9626288140d7da73084a0c7a02 to your computer and use it in GitHub Desktop.
Save andrematias/73439b9626288140d7da73084a0c7a02 to your computer and use it in GitHub Desktop.
How to install oracle client to Ubuntu 12.04

Instalação do ORACLE SQL*Plus

  1. Faça o download dos pacotes .rpm Aqui

    • oracle-instantclinet*-basic-*.rpm
    • oracle-instantclinet*-devel-*.rpm
    • oracle-instantclinet*-sqlplus-*.rpm
  2. Instale o conversor de pacotes rpm para deb, alien

    • sudo apt-get install alien
  3. Converta e instale os pacotes com o Alien

    • sudo alien -i oracle-instantclinet*-basic-*.rpm
    • sudo alien -i oracle-instantclinet*-devel-*.rpm
    • sudo alien -i oracle-instantclinet*-sqlplus-*.rpm
  4. Intale o libaio1

    • sudo apt-get install libaio1
  5. Adicione ao arquivo oracle.conf o seguinte trecho:

    • echo /usr/lib/oracle/12.1/client/lib > /etc/ld.so.conf.d/oracle.conf e recarregue-o com:

    • sudo ldconfig

  6. Caso for apresentado o erro sqlplus64: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory, execute o comando abaixo:

    • export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib:$LD_LIBRARY_PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment