오라클 동적 리스너 설정 - single 서버 기준
-- 리스너 설정
listener.ora
LISTENER_TEST = (ADDRESS = (PROTOCOL = TCP)(HOST = ora19c)(PORT = 1529))
-- tns 설정
tnsnames.ora
LISTENER_TEST = (ADDRESS = (PROTOCOL = TCP)(HOST = ora19c)(PORT = 1529))
-- DB 접속 후 LOCAL LISTENER 등록
alter system set local_listener=' LISTENER_TEST';
show parameter local
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
local_listener string LISTENER_TEST
parallel_force_local boolean FALSE
[ora19c:/u01/app/oracle/product/19c/db_1/network/admin]> lsnrctl start listener_test
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 18-JAN-2024 17:45:57
Copyright (c) 1991, 2023, Oracle. All rights reserved.
Starting /u01/app/oracle/product/19c/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 19.0.0.0.0 - Production
System parameter file is /u01/app/oracle/product/19c/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/ora19c/listener_test/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ora19c)(PORT=1529)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ora19c)(PORT=1529)))
STATUS of the LISTENER
------------------------
Alias listener_test
Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date 18-JAN-2024 17:45:57
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/19c/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/ora19c/listener_test/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ora19c)(PORT=1529)))
The listener supports no services
The command completed successfully
alter system register;
[ora19c:/home/oracle]> lsnrctl status listener_test
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 18-JAN-2024 20:46:30
Copyright (c) 1991, 2023, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=TCP)(HOST=ora19c)(PORT=1529))
STATUS of the LISTENER
------------------------
Alias listener_test
Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date 18-JAN-2024 20:45:32
Uptime 0 days 0 hr. 0 min. 58 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/19c/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/ora19c/listener_test/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ora19c)(PORT=1529)))
Services Summary...
Service "ora19c" has 1 instance(s).
Instance "ora19c", status READY, has 1 handler(s) for this service...
Service "ora19cXDB" has 1 instance(s).
Instance "ora19c", status READY, has 1 handler(s) for this service...
The command completed successfully
'ORACLE > ADMIN' 카테고리의 다른 글
12C RAC GIRU Patch ROLLBACK (0) | 2024.01.26 |
---|---|
오라클 ASM 에서 filesystem으로 복사 하는 3가지 방법 (0) | 2024.01.25 |
오라클 datafile filesystem 에서 asm으로 이동 (0) | 2023.12.18 |
oracle 리두로그(redo log) 관리(member,group 추가 삭제 변경) (0) | 2023.09.21 |
ORACLE datafile 이동 방법 2 가지 (0) | 2023.09.21 |