linux RedHat X64下oracle 客户端安装

linux RedHat X64下oracle 客户端安装
下载
wget http://www.9ai9.net/download/oracle-instantclient-basic-11.1.0.1-1.x86_64.rpm
wget http://www.9ai9.net/download/oracle-instantclient-devel-11.1.0.1-1.x86_64.rpm
wget http://www.9ai9.net/download/oracle-instantclient-sqlplus-11.1.0.1-1.x86_64.rpm

安装
rpm -ivh oracle-instantclient-basic-11.1.0.1-1.x86_64.rpm
rpm -ivh oracle-instantclient-devel-11.1.0.1-1.x86_64.rpm
rpm -ivh oracle-instantclient-sqlplus-11.1.0.1-1.x86_64.rpm
配置
vim /etc/profile 添加
export ORACLE_HOME=/usr/lib/oracle/11.1.0.1/client64
export ORACLE_BASE=/usr/lib/oracle/11.1.0.1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:${LD_LIBRARY_PATH}

#LD_LIBRARY_PATH=/usr/lib/oracle/11.1.0.1/client64/lib/:${LD_LIBRARY_PATH}
#TNS_ADMIN=/home
#export LD_LIBRARY_PATH TNS_ADMIN
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
#----------------------------------------------------

vim /usr/lib/oracle/11.1.0.1/client64/network/admin/tnsnames.ora
# tnsnames.ora Network Configuration File: /opt/oracle10g/u01/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.

ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = test.localdomain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)

EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
#具体的服务端
9ai9 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.100)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = 9ai9.net)
)
)

#————–完——————————————

你可能感兴趣的:(oracle,linux,redhat)