[관리] 원격 접속할 경우 필요한 사항
—————————————-
원격 접속할 경우 필요한 사항
—————————————-
이 방법은 OS 인증을 거치는 것을 막고
Oracle 인증을 거쳐 remote에서 접속하도록 하는 방법이다.
1. lsnrctl 를 start 한다. (서버의 리스너를 띄운다.)
2. 서버의 tnsnames.ora file을 보유해야 한다.
– 서버와 같은 위치에 파일을 저장한다. /oracle/ora92/network/admin
– 서버의 대한 정보를 기술하고 있다.
– 내용을 알고 있다면 자신이 만들어도 된다.(하지만 무리.. 넘 길어..ㅡ.ㅡ;)
– 파일 내용을 수정 (hostname을 ip로 sid도 체크)
—————————————————
# TNSNAMES.ORA Network Configuration File: /oracle/ora92/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
OCP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 오라클 서버 아이피)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ocp)
)
)
—————————————————————————————
– 파일 내용을 수정 (hostname을 ip로 sid도 체크)
—————————————————
# LISTENER.ORA Network Configuration File: /oracle/ora92/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 오라클 서버 아이피)(PORT = 1521))
)
)
)
———————————————————————————————————
5. lsnrctl 를 실행한다.
[oracle@justin admin]$ lsnrctl
LSNRCTL for Linux: Version 9.2.0.1.0 – Production on 03-JUN-2004 17:47:02
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Welcome to LSNRCTL, type “help” for information.
LSNRCTL> start
Starting /oracle/ora92/bin/tnslsnr: please wait…
TNSLSNR for Linux: Version 9.2.0.1.0 – Production
System parameter file is /oracle/ora92/network/admin/listener.ora
Log messages written to /oracle/ora92/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=오라클 서버 아이피)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
STATUS of the LISTENER
————————
Alias LISTENER
Version TNSLSNR for Linux: Version 9.2.0.1.0 – Production
Start Date 03-JUN-2004 17:47:10
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File /oracle/ora92/network/admin/listener.ora
Listener Log File /oracle/ora92/network/log/listener.log
Listening Endpoints Summary…
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=오라클 서버 아이피)(PORT=1521)))
Services Summary…
Service “PLSExtProc” has 1 instance(s).
Instance “PLSExtProc”, status UNKNOWN, has 1 handler(s) for this service…
Service “ocp” has 1 instance(s).
Instance “ocp”, status UNKNOWN, has 1 handler(s) for this service…
The command completed successfully
LSNRCTL>
6. 자 이제.. 설정 끝.. 원격 접속을 해보자…
5 Responses
1tradesmen
3barring
… [Trackback]
[…] Read More Info here on that Topic: nblog.syszone.co.kr/archives/1042 […]
… [Trackback]
[…] There you will find 99019 more Information to that Topic: nblog.syszone.co.kr/archives/1042 […]
… [Trackback]
[…] Read More Info here on that Topic: nblog.syszone.co.kr/archives/1042 […]