terça-feira, 13 de janeiro de 2009

Instalando o Oracle Instance Client no CentOS

Opa .. vou colocar aqui como fiz para instalar o oracle client no CentOS, espero que possa ajudar algupem.


Instalando o Oracle Instance Client no CentOS

1 - Download

Faça o download, dos arquivos Basic, SDK e SQL Plus em alguma pasta temporária;

http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxsoft.html

2 - Instalação

# mkdir /usr/lib/instantclient
# unzip instantclient-basic-linux32-10.2.0.3-20061115.zip
# unzip instantclient-sdk-linux32-10.2.0.3-20061115.zip
# unzip oracle-instantclient-sqlplus-10.2.0.4-1.i386.zip
# cd /usr/lib/instantclient
# ln -s libclntsh.so.10.1 libclntsh.so
# ln -s libocci.so.10.1 libocci.so
# sh -c "echo /usr/lib/instantclient/instantclient_10_2 >> /etc/ld.so.conf"
# ldconfig

3 - Configurando o tnsnames

Copie o tnsnames.ora para a pasta /usr/lib/instantclient

# cp tnsnames.ora /usr/lib/instantclient

4 - Criando as variaveis de ambiente

# sh -c "echo export TNS_ADMIN=/usr/lib/instantclient >> /etc/profile"
# sh -c "echo export ORACLE_HOME=/usr/lib/instantclient >> /etc/profile"
# sh -c "echo export LD_LIBRARY_PATH=/usr/lib/instantclient >> /etc/profile"

Efetue logoff e logon

Nenhum comentário: