Oracle Client 설치
1. Oracle Client 설치
-
Oracle Instant Client RPM 다운
- oracle-instantclient-basic-버전.x86_64.rpm
- oracle-instantclient-devel-버전.x86_64.rpm
- oracle-instantclient-sqlplus-버전.x86_64.rpm
- 설치
yum install -y oracle-instantclient-basic-버전.x86_64.rpm
yum install -y oracle-instantclient-devel-버전.x86_64.rpm
yum install -y oracle-instantclient-sqlplus-버전.x86_64.rpm
- PATH 지정
vi /etc/bashrc # or /etc/profile
# /etc/bashrc
ORACLE_HOME=/usr/lib/oracle/11.2/client64
TNS_ADMIN=/etc/oracle
CFLAGS=-I/usr/include/oracle/11.2/client64
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
NLS_LANG=KOREAN_KOREA.KO16MSWIN949
PATH=$ORACLE_HOME/bin:$PATH
export TNS_ADMIN LD_LIBRARY_PATH PATH CFLAGS NLS_LANG ORACLE_HOME
- tnsnames.ora 작성
ORC01= # 원하는 이름
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = XXX.XXX.XXX.XXX)(PORT = XXXX))
)
(CONNECT_DATA =
(SID = "")
)
)
- ORACLE 접속
ID/PASSWD@ORC01