Skip to Main Content
  • Questions
  • PDB services are not listed in lsnrctl stat

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Ramakrishna.

Asked: February 26, 2020 - 10:29 pm UTC

Last updated: March 03, 2020 - 5:57 am UTC

Version: 18.3.0.0.0

Viewed 10K+ times! This question is

You Asked

The view v$active_services and dba_services and cdb_services are showing the PDB service. But listener is not starting or listing the PDB service.
What would be the issue?

Restarted listener, db but issue was not fixed.
PDBs are dropme2 and servicetest

SERVICE_ID NAME NETWORK_NAME CON_NAME
1 SYS$BACKGROUND   CDB$ROOT
2 SYS$USERS   CDB$ROOT
3 host_prim_wfscdb host_prim_wfscdb CDB$ROOT
4 WFSCDB_CFG WFSCDB_CFG CDB$ROOT
6 host_prim_wfscdb_DGB host_prim_wfscdb_DGB CDB$ROOT
12 dropme2 dropme2 DROPME2
14 servicetest servicetest SERVICETEST



oracle@host_prim:~$ lsnrctl stat
LSNRCTL for Linux: Version 18.0.0.0.0 - Production on 26-FEB-2020 17:19:20
Copyright (c) 1991, 2018, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=host_prim)(PORT=1529)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 18.0.0.0.0 - Production
Start Date                26-FEB-2020 16:49:55
Uptime                    0 days 0 hr. 29 min. 24 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /opt/oracle/app/oracle/product/18.0.0/network/admin/listener.ora
Listener Log File         /opt/oracle/app/oracle/product/18.0.0/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=host_prim)(PORT=1529)))
Services Summary...
Service "WFSCDB" has 1 instance(s).
  Instance "WFSCDB", status UNKNOWN, has 1 handler(s) for this service...
Service "host_prim_wfscdb_DGMGRL" has 1 instance(s).
  Instance "WFSCDB", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully


oracle@host_prim:~$ lsnrctl services
LSNRCTL for Linux: Version 18.0.0.0.0 - Production on 26-FEB-2020 17:22:57
Copyright (c) 1991, 2018, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=host_prim)(PORT=1529)))
Services Summary...
Service "WFSCDB" has 1 instance(s).
  Instance "WFSCDB", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:1 refused:0
         LOCAL SERVER
Service "host_prim_wfscdb_DGMGRL" has 1 instance(s).
  Instance "WFSCDB", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:0 refused:0
         LOCAL SERVER
The command completed successfully

and Connor said...

A few things to check

a) the pdb's are open
b) the "local_listener" in the PDB points to either a fully specified host/port or if its lists a tnsnames entry, that the tnsnames entry is correct.
c) run 'alter system register' in the pdb to have it re-establish connection with the listener.
d) TNS_ADMIN was not incorrectly (in which case we might be looking at the wrong listener.ora etc)

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Doc IDs

A reader, July 03, 2021 - 8:26 am UTC

Oracle Net 12c: How to enable Clients using SID to connect to PDB? (Doc ID 1644355.1)
19c Database with Oracle E-Business Suite R12 Known Issues & Solutions (Doc ID 2662860.1)

More to Explore

Administration

Need more information on Administration? Check out the Administrators guide for the Oracle Database