오라클 Multitenant PDB 용 로컬 리스너 등록 방법입니다. 아래와 같이 진행하시면 됩니다.
SQL> show user con_name
USER is "SYS"
CON_NAME
------------------------------
CDB$ROOT
SQL> alter session set container = orclpdb1;
Session altered.
SQL> alter pluggable database orclpdb1 open;
Pluggable database altered.
SQL> alter system set local_listener='(address=(protocol=tcp)(host=apex.subnetpublic.demovcn.oraclevcn.com) (port=1521))' scope=spfile;
System altered.
SQL> alter system register;
System altered.
SQL> alter pluggable database close immediate;
Pluggable database altered.
SQL> alter pluggable database orclpdb1 open;
Pluggable database altered.
SQL> !lsnrctl stop
LSNRCTL for Linux: Version 21.0.0.0.0 - Production on 11-APR-2022 07:40:00
Copyright (c) 1991, 2021, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=apex.subnetpublic.demovcn.oraclevcn.com)(PORT=1521)))
The command completed successfully
SQL> !lsnrctl start
LSNRCTL for Linux: Version 21.0.0.0.0 - Production on 11-APR-2022 07:40:04
Copyright (c) 1991, 2021, Oracle. All rights reserved.
Starting /opt/oracle/product/21c/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 21.0.0.0.0 - Production
System parameter file is /opt/oracle/product/21c/dbhome_1/network/admin/listener.ora
Log messages written to /opt/oracle/diag/tnslsnr/apex/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=apex.subnetpublic.demovcn.oraclevcn.com)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=apex.subnetpublic.demovcn.oraclevcn.com)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 21.0.0.0.0 - Production
Start Date 11-APR-2022 07:40:04
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/oracle/product/21c/dbhome_1/network/admin/listener.ora
Listener Log File /opt/oracle/diag/tnslsnr/apex/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=apex.subnetpublic.demovcn.oraclevcn.com)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "ORCLCDB" has 1 instance(s).
Instance "ORCLCDB", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
SQL> !lsnrctl status
LSNRCTL for Linux: Version 21.0.0.0.0 - Production on 11-APR-2022 07:41:09
Copyright (c) 1991, 2021, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=apex.subnetpublic.demovcn.oraclevcn.com)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 21.0.0.0.0 - Production
Start Date 11-APR-2022 07:40:04
Uptime 0 days 0 hr. 1 min. 5 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/oracle/product/21c/dbhome_1/network/admin/listener.ora
Listener Log File /opt/oracle/diag/tnslsnr/apex/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=apex.subnetpublic.demovcn.oraclevcn.com)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "ORCLCDB" has 1 instance(s).
Instance "ORCLCDB", status UNKNOWN, has 1 handler(s) for this service...
Service "dc5cb4ccff4055dce0530201000ab4e1" has 1 instance(s).
Instance "ORCLCDB", status READY, has 1 handler(s) for this service...
Service "orclpdb1" has 1 instance(s).
Instance "ORCLCDB", status READY, has 1 handler(s) for this service...
The command completed successfully
SQL>
<END>