19c RMAN-04006: error from auxiliary database: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Before doing an RMAN DUPLICATE DATABASE from an Active Database, we need to set up listener on the target environment with static registration. Else when the RMAN shuts down the auxiliary database for creating spfile or making changes in it, it will not be able to connect the auxiliary and start the database (nomount) and throw the error :
RMAN-04006: error from auxiliary database: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
To Solve this issue ensure that listener is configured with static registration using the below syntax :
========= LISTENER.ORA==================
EBSUPG=
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST =<hostname>)(PORT = 1536))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1536))
)
)
SID_LIST_EBSUPG=
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = EBSUPG)
(ORACLE_HOME = /u01/app/oracle/product/19.0.0/dbhome_1)
(SID_NAME = EBSUPG)
)
)
ADR_BASE_LISTENER_EBSUPG = /u01/app/oracle
=================================================================
When we check the listener status, it should show as UNKNOWN instead of BLOCKED
-bash-4.4$ lsnrctl status EBSUPG
LSNRCTL for Solaris: Version 19.0.0.0.0 - Production on 30-SEP-2022 13:57:46
Copyright (c) 1991, 2021, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.92.27.104)(PORT=1536)))
STATUS of the LISTENER
------------------------
Alias EBSUPG
Version TNSLSNR for Solaris: Version 19.0.0.0.0 - Production
Start Date 30-SEP-2022 13:35:31
Uptime 0 days 0 hr. 22 min. 14 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/19.0.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/STDBY4BKP/ebsupg/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=1536)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1536)))
Services Summary...
Service "EBSUPG" has 1 instance(s).
Instance "EBSUPG", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
This solved my issue and it started with the ACTIVE DUPLICATE.
No comments:
Post a Comment