Last active
June 11, 2019 13:44
-
-
Save vanessasoutoc/38ba8c81dfc824e34840c7e16780e1a3 to your computer and use it in GitHub Desktop.
Instant Client Oracle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSTALAÇÃO ORACLE INSTANT CLIENT - UBUNTU | |
01 - BAIXAR NO SITE DA ORACLE OS ARQUIVO RPM: | |
oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm | |
oracle-instantclient12.2-sqlplus-12.2.0.1.0-1.x86_64.rpm | |
oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64.rpm | |
02 - INSTALAR OS 2 PACOTES | |
sudo apt-get install libaio1 | |
sudo apt-get install alien | |
03 - DESCOMPACTAR OS ARQUIVOS RPM PARA DEB | |
sudo alien oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm | |
sudo alien oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64.rpm | |
sudo alien oracle-instantclient12.2-sqlplus-12.2.0.1.0-1.x86_64.rpm | |
04 - INSTALAR OS PACOTES DEB | |
sudo dpkg -i oracle-instantclient12.2-basic_12.2.0.1.0-2_amd64.deb oracle-instantclient12.2-devel_12.2.0.1.0-2_amd64.deb oracle-instantclient12.2-sqlplus_12.2.0.1.0-2_amd64.deb | |
05 - SETAR AS VARIÁVEIS DO ORACLE ( Verificar se realmente estão nestes caminhos ) | |
export OCI_LIB_DIR=/usr/lib/oracle/12.2/client64/lib | |
export OCI_INC_DIR=/usr/include/oracle/12.2/client64 | |
export LD_LIBRARY_PATH=/usr/lib/oracle/12.2/client64/lib:$LD_LIBRARY_PATH | |
06 - SETAR AS VARÁVEIS NO .bashrc | |
export OCI_LIB_DIR=/usr/lib/oracle/12.2/client64/lib | |
export OCI_INC_DIR=/usr/include/oracle/12.2/client64 | |
export LD_LIBRARY_PATH=/usr/lib/oracle/12.2/client64/lib:$LD_LIBRARY_PATH | |
07 - CRIAR ARQUIVO oracle.conf | |
sudo nano /etc/ld.so.conf.d/oracle.conf | |
08 - INCLUIR NO ARQUIVO oracle.conf | |
/usr/lib/oracle/12.2/client64/lib/ | |
09 - ATUALIZAR CONF | |
sudo ldconfig | |
REFERÊNCIAS: | |
http://mritjudge.com/linux/install-oracle-instant-client-on-ubuntu-linux/ | |
https://cloudpack.media/11 | |
https://codediary.net/posts/install-sqlplus-on-ubuntu-16-04/ | |
https://github.com/oracle/node-oracledb/blob/master/INSTALL.md#linuxinstsearchpath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment