Showing posts with label Dataguard. Show all posts
Showing posts with label Dataguard. Show all posts

Wednesday 1 October 2014

ORA-16532: Data Guard broker configuration does not exist



Cause: A broker operation was requested that required a broker configuration to already be created.
Action: Create a Data Guard broker configuration prior to performing other broker operations.

 Dataguard broker yaratırken standby database'de oluşan hatadır. Çözümü oldukça basit :

  SQL> show parameter dg_

  NAME                                 TYPE        VALUE
  ------------------------------------ ----------- ------------------------------
  dg_broker_config_file1               string
  dg_broker_config_file2               string
  dg_broker_start                      boolean     TRUE


  SQL> alter system set dg_broker_start=false;

  System altered.

  SQL> alter system set dg_broker_config_file1='C:\app\oracle\product\11.2.0\dbhome_1\database\DRESK01.dat';

  System altered.

  SQL> alter system set dg_broker_config_file2='C:\app\oracle\product\11.2.0\dbhome_1\database\DRESK02.dat';

  System altered.

  SQL> alter system set dg_broker_start=true;

  System altered.

Bundan sonra DGMGRL komut satırından tekrar konfigürasyon enable edilir.

  DGMGRL-> enable configuration;

ORA-16829 fast-start failover configuration is lagging



Cause: The fast-start failover target standby database was not within the lag limit specified by the FastStartFailoverLagLimit configuration property. As a result, a fast-start failover could not happen in the event of a primary database failure.

Action: Ensure that the fast-start failover target standby database is running and applying redo data and that the primary database is successfully trasmitting redo data. If this condition persists consider raising the value of the FastStartFailoverLagLimit configuration property.
  
 Lag Limit ile ilgili bir sorun olduğunu göstermekte, yapılacak işlem, diğer hususlarda bir sorun görümüyorsa, LagLimiti biraz artırmak olacaktır :

DGMGRL -> edit configuration set property FastStartFailoverLagLimit =45;

ORA-16571: Data Guard configuration file creation failure

            Tanımı


Cause: The Data Guard broker was unable to create the configuration file on permanent storage.

Action: Verify space, permissions and file name as indicated by the DG_BROKER_CONFIG_FILE[1|2] initialization parameters and retry the operation.


Çözümü
Dataguard broker yaratırken oluşan hatadır. Çözümü oldukça basit :

  SQL> show parameter dg_

  NAME                                 TYPE        VALUE
  ------------------------------------ ----------- ------------------------------
  dg_broker_config_file1               string
  dg_broker_config_file2               string
  dg_broker_start                      boolean     TRUE

  SQL> alter system set dg_broker_start=false;

  System altered.

  SQL> alter system set dg_broker_config_file1='C:\app\oracle\product\11.2.0\dbhome_1\database\DRAAA01.dat';

  System altered.

  SQL> alter system set dg_broker_config_file2='C:\app\oracle\product\11.2.0\dbhome_1\database\DRAAA02.dat';

  System altered.

  SQL> alter system set dg_broker_start=true;

  System altered.
 

Friday 26 September 2014

ORA-16826 Apply service state is inconsistent with the DelayMins property




ORA-16826: apply service state is inconsistent with the DelayMins property
Cause: This warning was caused by one of the following reasons:
- The apply service was started without specifying the real-time apply option or without the NODELAY option when the DelayMins property was set to zero.
- The apply service was started with the real-time apply option or with the NODELAY option when the DelayMins property was set to a value greater than zero.
Action: Reenable the standby database to allow the broker to restart the apply service with the apply options that are consistent with the specified value of the DelayMins property.




Solution  :

First look at dataguard broker file :
if the error is that :

DG 2008-10-27-12:29:46 0 2 0 RSM: Redo Apply is running without USING CURRENT LOGFILE option while DelayMins=0
 Then, On standby database disable redo apply  :


 ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL ;

and enable with this:

ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;

if problem is not solved, you may try these commands on standby database :

 ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL ;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT NODELAY;

if problem is still not solved, you may try more cruel solution :

DGMGRL -> disable configuration;
DGMGRL -> enable configuration;

Thursday 25 September 2014

How to resolve MRP stuck issues on a physical database