1. Download & Unzip (패키지는 11.2.0.4의 Basic과 SQL*Plus를 받아서 한곳에 압축 해제)
https://www.oracle.com/database/technologies/instant-client/winx64-64-downloads.html
Instant Client for Microsoft Windows (x64) 64-bit
No results found Your search did not match any results. We suggest you try the following to help find what you're looking for: Check the spelling of your keyword search. Use synonyms for the keyword you typed, for example, try “application” instead of “sof
www.oracle.com
https://www.oracle.com/database/technologies/instant-client/downloads.html
Oracle Instant Client Downloads
We’re sorry. We could not find a match for your search. We suggest you try the following to help find what you’re looking for: Check the spelling of your keyword search. Use synonyms for the keyword you typed, for example, try "application" instead of
www.oracle.com
2. 압축 해제한 폴더에 network 폴더 생성
3. '제어판 -> 시스템 -> 고급 시스템 설정 -> 고급 탭 -> 환경 변수'의 시스템 변수에 다음 추가
변수 이름: ORACLE_HOME / 변수 값: Instant Client 압축 해제한 경로 (예. D:\instantclient_11_2)
변수 이름: TNS_ADMIN / 변수 값: Instant Client 압축 해제한 경로\network (예. D:\instantclient_11_2\network)
변수 이름: NLS_LANG / 변수 값: KOREAN_KOREA.KO16MSWIN949
Path의 편집 들어가서 %ORACLE_HOME% 추가
4. 레지스트리 편집기 실행(regedit)
HKEY_LOCAL_HKEY_LOCAL_MACHINE\SOFTWARE 우클릭하여 '새로 만들기 -> 키' -> ORACLE 추가
HKEY_LOCAL_HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE 우클릭하여 '새로 만들기 -> 문자열 값' -> TNS_ADMIN 추가하고 더블클릭 하여 값 데이터에 Instant Client 압축 해제한 경로\network (예. D:\instantclient_11_2\network) 입력후 '확인'
HKEY_LOCAL_HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE 우클릭하여 '새로 만들기 -> 문자열 값' -> NLS_LANG 추가하고 더블클릭 하여 값 데이터에 KOREAN_KOREA.KO16MSWIN949 입력후 '확인'
5. Instant Client 압축 해제한 경로\network (예. D:\instantclient_11_2\network)에 tnsnames.ora 파일 생성하고 접속하려는 시스템의 Oracle 접속정보 작성후 저장
예) MYDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.1)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = MYDB)
)
)
6. SQL*Plus 실행하여 Oracle 접속 테스트
sqlplus id/password@TNS_IDENTIFIER (or sqlplus id/password@ip:port/SID)
예) sqlplus scott/tiger@MYDB (또는 sqlplus scott/tiger@192.168.0.1:1521/MYDB)
※ Ubuntu 필요 패키지 설치:
# sudo apt-get install libaio-dev libaio1
!!! InstantClient 압축 해제한 Directory ldconfig 등록 필요(*.so 파일 관련) !!!
'Database > ORACLE' 카테고리의 다른 글
[Oracle] DB&Listener Startup/Stop Script (0) | 2020.03.06 |
---|---|
[Oracle 11g] Installation(silent mode) Oracle 11gR2(11.2.0.1) for CentOS 7 (0) | 2020.02.21 |
[Oracle 11g] Pre-Installation Oracle 11gR2(11.2.0.1) for CentOS 7 (0) | 2020.02.21 |