Anda di halaman 1dari 3

10/2/2016 Document Display

DGMGRL>switchover to <standby> Fails with ORA­12514 (Doc ID 1582927.1)

In this Document

Symptoms
Cause
Solution
References

APPLIES TO:

Oracle Database ­ Enterprise Edition ­ Version 12.1.0.1 to 12.1.0.1 [Release 12.1]
Information in this document applies to any platform.

SYMPTOMS

 As a process of DGMGRL>ENABLE configuration broker automatically do following,

1.adds static entry in listener.ora

2. update the value of staticconnectidentifier accordingly.

This issue here is switchover will fail with "ORA­12514".

DGMGRL> switchover to chicago
 
Performing switchover NOW, please wait...
 
Operation requires a connection to instance "chicago" on database "chicago"
Connecting to instance "chicago"...  
Connected as SYSDBA.  
 
New primary database "chicago" is opening...
 
Operation requires startup of instance "boston" on database "boston"
Starting instance "boston"...  
 
Unable to connect to database using (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)
(PORT=1521)(HOST=nirmala­desk1.idc.oracle.com))(CONNECT_DATA=
(SERVICE_NAME=boston_DGMGRL)(INSTANCE_NAME=boston)(SERVER=DEDICATED)))
 
ORA­12514: TNS:listener does not currently know of service requested in connect
descriptor

Failed.
Warning: You are no longer connected to ORACLE.

Please complete the following steps to finish switchover:
        start up instance "boston" of database "boston"

CAUSE

 While adding static entry broker makes an entry for GLOBAL_NAME=<DB_UNIQUE_NAME> but in broker
configuration staticconnectidentifier it adds as <SID>_DGMGRL.

For example,

1.

DGMGRL>show database verbose boston;
 
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl­state=183vn1cwko_888#SYMPTOM 1/3
10/2/2016 Document Display

 
    StaticConnectIdentifier         = '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)
(PORT=1521)(HOST=nirmala­desk1.idc.oracle.com))(CONNECT_DATA=
(SERVICE_NAME=boston_DGMGRL)(INSTANCE_NAME=boston)(SERVER=DEDICATED)))'
    StandbyArchiveLocation          = 'USE_DB_RECOVERY_FILE_DEST'  
   
DGMGRL>show database verbose chicago;
   
    StaticConnectIdentifier         = '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)
(PORT=1521)(HOST=nirmala­desk1.idc.oracle.com))(CONNECT_DATA=
(SERVICE_NAME=chicago_DGMGRL)(INSTANCE_NAME=chicago)(SERVER=DEDICATED)))'
    StandbyArchiveLocation          = 'USE_DB_RECOVERY_FILE_DEST'  

2.

listener.ora,

  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME = boston)  <­­­­­­­­­­Here the global_name should be boston_DGMGRL
      (ORACLE_HOME = /u01/app/oracle/product/12.1.0/dbhome_1)
      (SID_NAME = boston)
    )
    (SID_DESC =
      (GLOBAL_DBNAME = chicago) <­­­­­­­­­­Here the global_name should be chicago_DGMGRL
      (ORACLE_HOME = /u01/app/oracle/product/12.1.0/dbhome_1)
      (SID_NAME = chicago)
    )

SOLUTION

Either change the staticconnectidentifier of standby to <SID> or change the listener.ora static entry GLOBAL_NAME
= <SID>_DGMGRL to avoid this issue in feature.

NOTE : For current restart failure we will have to manually start the new primary database. There are two solution
for this issue.

SOLUTION 1  : Modify the staticconnectidentifier to available listener service

­­­­­­­­­­­­­­­­

Primary db_unique_name is boston
Standby db_unique_name is chicago

Check the listener services.

On both primary and standby,

 $ lsnrctl services

Now edit the staticconnectidentifier to any available services of respective database.

1. Connect to DGMGRL,

https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl­state=183vn1cwko_888#SYMPTOM 2/3
10/2/2016 Document Display

 
DGMGRL> edit database chicago set property staticconnectidentifier='(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)(PORT=1521)(HOST=nirmala­desk1.idc.oracle.com))
(CONNECT_DATA=(SERVICE_NAME=chicago)(INSTANCE_NAME=chicago)(SERVER=DEDICATED)))';

NOTE : edit boston value also for feature role transition,

DGMGRL> edit database boston set property staticconnectidentifier='(DESCRIPTION=(ADDRESS=
(PROTOCOL=TCP)(PORT=1521)(HOST=nirmala­desk1.idc.oracle.com))(CONNECT_DATA=
(SERVICE_NAME=boston)(INSTANCE_NAME=boston)(SERVER=DEDICATED)))';

2. DGMGRL>show configuration;

For switchover reference,

<<1582837.1>> ­ 12c Dataguard Switchover Best Practices using DGMGRL(Dataguard Broker Command Prompt)

SOLUTION 2 : Add static listener entry with the name mentioned in staticconnectidentifier i.e default
service taken by DGMGRL which add configuration with the service_name of <SID>_DGMGRL
­­­­­­­­­­­­

Modify static entry on listener.ora of current Standby.

1. Standby (chicago)server,

vi /$ORACLE_HOME/network/admin/listener.ora

    (SID_DESC =
      (GLOBAL_DBNAME = chicago_DGMGRL)   <­­­­­­­­­­­­­­­­add _DGMGRL 
      (ORACLE_HOME = /u01/app/oracle/product/12.1.0/dbhome_1)
      (SID_NAME = chicago)
    )

2. Same way change the static entry of current primary also for feature role transition.

REFERENCES

Didn't find what you are looking for?

https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl­state=183vn1cwko_888#SYMPTOM 3/3

Anda mungkin juga menyukai