1. Response 파일 수정
오라클 설치 파일의 암호가 해제된 경로로 이동한 후, response 디렉토리 아래에 있는 netca.rsp 파일을 홈 디렉토리로 복사하여 내용을 수정합니다.
oracle 유저로 수행
cd <설치 파일 압축 해제 경로>/database/response # 12c R2 이하 cd $ORACLE_HOME/assistants/netca # 18c & 19c cp netca.rsp ~/netca.rsp vi ~/netca.rsp
[GENERAL]
RESPONSEFILE_VERSION="12.2" ## Database 버전에 맞게 수정
CREATE_TYPE="CUSTOM"
SHOW_GUI=false
[oracle.net.ca]
INSTALLED_COMPONENTS={"server","net8","javavm"}
INSTALL_TYPE=""typical""
LISTENER_NUMBER=1
LISTENER_NAMES={"LISTENER"}
LISTENER_PROTOCOLS={"TCP;1521"}
LISTENER_START=""LISTENER""
NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"}
NSN_NUMBER=1
NSN_NAMES={"EXTPROC_CONNECTION_DATA"}
NSN_SERVICE={"PLSExtProc"}
NSN_PROTOCOLS={"TCP;HOSTNAME;1521"}
2. NETCA 실행
netca를 silent 옵션을 사용해서 실행합니다. response file의 위치는 절대 경로로 입력합니다.
oracle 유저로 수행
netca /silent /responseFile ~/netca.rsp # 12c R2 이하 netca -silent -responsefile ~/netca.rsp # 18c & 19c
[oracle@orcl ~]$ netca -silent -responsefile ~/netca.rsp
명령행 인수 분석:
매개변수 "silent" = true
매개변수 "responsefile" = /home/oracle/netca.rsp
명령행 인수 분석을 완료했습니다.
Oracle Net Service 구성:
프로파일 구성이 완료되었습니다.
Oracle Net 리스너 시작:
실행 중인 리스너 제어:
/u01/app/oracle/product/19.3.0/db_1/bin/lsnrctl start LISTENER
리스너 제어가 완료되었습니다.
리스너가 성공적으로 시작되었습니다.
리스너 구성이 완료되었습니다.
Oracle Net Service 구성을 성공했습니다. 종료 코드는 다음과 같습니다. 0
참고 : netca silent 옵션
[oracle@orcl ~]$ netca -silent -help
Usage: netca [-silent] {<command> <options>}
Perform network configuration by specifying the following arguments:
[-silent]
-responsefile <Response file name>]
[-local {Perform configuration on only local node}]
-instype <typical|custom>
[-listener <Listener name (only for custom install)>]
[-lisport <TCP/IP port number>]
[-lps <Starting TCP/IP port number (only for typical install)>]
[-lpe <Ending TCP/IP port number (only for typical install)>]
[-netnum <Network resource number (only for RAC)>]
[-nostartlsnr {Do not start listener}]
[-crsupgrade {Upgrade default listener from lower version database home to Grid Infrastructure home (only for RAC)}]
[-inscomp <Comma separated list of installed components>]
[-insprtcl <Comma separated list of installed protocols>]
[-orahome <Oracle home>]
[-orahnam <Oracle home name>]
[-log <Log file name>]
[-h|-help {Print usage}]
[oracle@orcl ~]$ netca -silent -help
Usage: netca [-silent] {<command> <options>}
Perform network configuration by specifying the following arguments:
[-silent]
-responsefile <Response file name>]
[-local {Perform configuration on only local node}]
-instype <typical|custom>
[-listener <Listener name (only for custom install)>]
[-lisport <TCP/IP port number>]
[-lps <Starting TCP/IP port number (only for typical install)>]
[-lpe <Ending TCP/IP port number (only for typical install)>]
[-netnum <Network resource number (only for RAC)>]
[-nostartlsnr {Do not start listener}]
[-crsupgrade {Upgrade default listener from lower version database home to Grid Infrastructure home (only for RAC)}]
[-inscomp <Comma separated list of installed components>]
[-insprtcl <Comma separated list of installed protocols>]
[-orahome <Oracle home>]
[-orahnam <Oracle home name>]
[-log <Log file name>]
[-h|-help {Print usage}]
[-listenerparameters {Comma separated list of the form parameter=value to specify the desired parameters for the selected listener}]
3. 결과 확인
lsnrctl 명령어로 리스너가 정상 가동되는지 확인합니다.
oracle 유저로 실행
lsnrctl status
19c 기준
[oracle@orcl ~]$ lsnrctl status LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 25-JUN-2019 13:03:47 Copyright (c) 1991, 2019, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ol7)(PORT=1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production Start Date 25-JUN-2019 13:02:28 Uptime 0 days 0 hr. 1 min. 19 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/oracle/product/19.3.0/db_1/network/admin/listener.ora Listener Log File /u01/app/oracle/diag/tnslsnr/ol7/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ol7)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) The listener supports no services The command completed successfully
[oracle@orcl admin]$ cat listener.ora
# listener.ora Network Configuration File: /u01/app/oracle/product/19.3.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ol7)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)