EBS Prepare phase encountered Error Message: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor (DBD ERROR: OCIServerAttach)
Error:
[EVENT] Creating database patch edition.
[PROCEDURE] [START 2018/12/03 11:05:43] Creating patch edition if it does not exist
Existing patch edition found, so no need to create.
[PROCEDURE] [END 2018/12/03 11:05:43] Creating patch edition if it does not exist
[PROCEDURE] [START 2018/12/03 11:05:43] Performing steps for CLONE from run file system to patch file system
[PROCEDURE] [START 2018/12/03 11:05:43] Preparing seed data tables
[STATEMENT] Sourcing Patch edition environment /u01/applprod/fs1/EBSapps/appl/APPSPREPROD2_preprodapp.env
[ERROR] Cannot connect to database
[ERROR] Error Message: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor (DBD ERROR: OCIServerAttach)
[ERROR] Error calling ad_zd_log. Refer to log file for details.
[ERROR] Error calling ad_zd_log. Refer to log file for details.
[ERROR] Error calling ad_zd_log. Refer to log file for details.
[ERROR] Error calling ad_zd_log. Refer to log file for details.
[ERROR] Error calling ad_zd_log. Refer to log file for details.
[ERROR] Error calling ad_zd_log. Refer to log file for details.
[ERROR] Cannot connect to database
[ERROR] Error Message: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor (DBD ERROR: OCIServerAttach)
[ERROR] Error calling ad_zd_log. Refer to log file for details.
[UNEXPECTED]Error calling runPendingClone subroutine.
[EVENT] Creating database patch edition.
[PROCEDURE] [START 2018/12/03 11:05:43] Creating patch edition if it does not exist
Existing patch edition found, so no need to create.
[PROCEDURE] [END 2018/12/03 11:05:43] Creating patch edition if it does not exist
[PROCEDURE] [START 2018/12/03 11:05:43] Performing steps for CLONE from run file system to patch file system
[PROCEDURE] [START 2018/12/03 11:05:43] Preparing seed data tables
[STATEMENT] Sourcing Patch edition environment /u01/applprod/fs1/EBSapps/appl/APPSPREPROD2_preprodapp.env
[ERROR] Cannot connect to database
[ERROR] Error Message: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor (DBD ERROR: OCIServerAttach)
[ERROR] Error calling ad_zd_log. Refer to log file for details.
[ERROR] Error calling ad_zd_log. Refer to log file for details.
[ERROR] Error calling ad_zd_log. Refer to log file for details.
[ERROR] Error calling ad_zd_log. Refer to log file for details.
[ERROR] Error calling ad_zd_log. Refer to log file for details.
[ERROR] Error calling ad_zd_log. Refer to log file for details.
[ERROR] Cannot connect to database
[ERROR] Error Message: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor (DBD ERROR: OCIServerAttach)
[ERROR] Error calling ad_zd_log. Refer to log file for details.
[UNEXPECTED]Error calling runPendingClone subroutine.
Solution:
To implement the solution test the following steps in a development instance and then migrate accordingly:
Current parameter value
SQL> show parameter local
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
local_listener string (ADDRESS =(PROTOCOL=TCP)(HOST=
epc-db-clint01.epcco.com)(PO
RT=1524))
1. Ensure a valid backup exists before testing the solution.
2. Check if the local_listener is set incorrectly by using:
4. Restart the Database tier and the listener.
show parameter output after changes
SQL> show parameter local
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
local_listener string PREPROD2_LOCAL
5. Execute the "adop phase=prepare" again and confirm the error no longer occurs.
Current parameter value
SQL> show parameter local
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
local_listener string (ADDRESS =(PROTOCOL=TCP)(HOST=
epc-db-clint01.epcco.com)(PO
RT=1524))
1. Ensure a valid backup exists before testing the solution.
2. Check if the local_listener is set incorrectly by using:
At the RDBMS HOME:
sqlplus / as sysdba
SQL>show parameter local_listener
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
local_listener string PREPROD2_LOCAL
In this scenario PREPROD2 is the SID used in this Environment
3. If the local listener value returned is incorrect, change it to the correct value in the init.ora parameter file.sqlplus / as sysdba
SQL>show parameter local_listener
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
local_listener string PREPROD2_LOCAL
In this scenario PREPROD2 is the SID used in this Environment
4. Restart the Database tier and the listener.
show parameter output after changes
SQL> show parameter local
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
local_listener string PREPROD2_LOCAL
5. Execute the "adop phase=prepare" again and confirm the error no longer occurs.
After this run prepare phase with restart=yes option it will run successful.
Comments
Post a Comment