Skip to content

Instantly share code, notes, and snippets.

@victorouttes
Last active August 29, 2019 11:34
Show Gist options
  • Save victorouttes/1bd78f176add437d9effd65491f92550 to your computer and use it in GitHub Desktop.
Save victorouttes/1bd78f176add437d9effd65491f92550 to your computer and use it in GitHub Desktop.
Oracle no Linux

Oracle Client no Linux

Como instalar o oracle client para integrar o Bot com o banco Oracle:

Seguir aqui: https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html#installing-cx-oracle-on-linux

  1. Baixar o oracle-instantclient (preferencia pelo ZIP)
  2. Descompactar numa pasta qualquer
  3. Colocar no bashrc o LD_LIBRARY_PATH apontando para o instantclient e tambem para o "/usr/lib"

OBS.: no Fedora, a lib libnsl.so.1 que estava instalado dentro do /usr/lib era a versão 32 bits. Precisei instalar o pacote libnsl-2.28-9.fc29.x86_64 para obter a versão 64 bits.

OBS2: no Debian, funcionou assim:

sudo sh -c "echo /home/usuario/instantclient_18_5 > /etc/ld.so.conf.d/oracle-instantclient.conf"
sudo ldconfig

Caso não funcione e estiver usando o PyCharm:

Seguir as orientações daqui: https://stackoverflow.com/questions/28224840/python-module-not-working-in-pycharm-with-virtualenv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment