My Oracle Support Banner

After unplugging a PDB on Primary the TNS Service of Listener remains ACTIVE on ADG Standby (Doc ID 2737469.1)

Last updated on JULY 20, 2024

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 to 19.8.0.0.0 [Release 12.1 to 19]
Information in this document applies to any platform.
Issue was initially reported on RDBMS Version 12.1.0.2, but could be reproduced across all RDBMS Versions from 12.1.0.2 until 19.8.

Symptoms

Disclaimer:

NOTE: In the images and/or the document content below, the user information and environment data used represents fictitious data from the Oracle sample schema(s), Public Documentation delivered with an Oracle database product or other training material. Any similarity to actual environments, actual persons, living or dead, is purely coincidental and not intended in any manner.

For the purposes of this document, the following fictitious environment is used as an example to describe the procedure:
LISTENER NAME: LISTENER_TST , Service Name: tnew_pdb.tst.tns

In an ADG environment, dropping a pluggable databes (PDB) on the Primary still left its default service running on the Standby.

# Steps to reproduce issue :

1. Create a new pluggable database at Primary

2. Check the .tns in primary

lsnrctl status LISTENER_TST | grep tnew_pdb*
Service "tnew_pdb.tst.tns" has 1 instance(s).

3. Check the .tns in standby

lsnrctl status LISTENER_TST | grep tnew_pdb*
Service "tnew_pdb.tst.tns" has 1 instance(s).

4. Unplug the pdb, drop it and check the tns on primary

lsnrctl status LISTENER_TST | grep tnew_pdb*
0 records

3. Check the .tns standby after the pdb is unplugged

lsnrctl status LISTENER_TST | grep tnew_pdb*
Service "tnew_pdb.tst.tns" has 1 instance(s).

 

This (default) .tns service from the listener remains active on ADG Standby, even if the PDB no longer exists at both Primary and Standby.

- Checked that gv$active_services and all_services tables, both do not contain this service.
- Reloading the listener does not change the situation
- Restarting the entire Standby CDB, clears out the service but this workaround may not be acceptable in Production database due to the outage.

Changes

 None

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.