Today when I tested dataguard configuration I saw ORA-16826 error.
DGMGRL> show configuration;
Configuration - DGMANAGER
Protection Mode: MaxPerformance
Databases:
PROD - Primary database
PRODST - Physical standby database
Warning: ORA-16826: apply service state is inconsistent with the DelayMins property
Fast-Start Failover: DISABLED
Configuration Status:
WARNING
DGMGRL>
This is because I managed my standby database with NODELAY option.
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE THROUGH ALL SWITCHOVER DISCONNECT NODELAY;
To fix this cancel recover managed:
SQL> alter database recover managed standby database cancel;
Database altered.
Start with current logfile option:
SQL> alter database recover managed standby database using current logfile disconnect;
Database altered.
Try again
DGMGRL> show configuration;
Configuration - DGMANAGER
Protection Mode: MaxPerformance
Databases:
PROD - Primary database
PRODST - Physical standby database
Fast-Start Failover: DISABLED
Configuration Status:
SUCCESS
DGMGRL>
DGMGRL> show configuration;
Configuration - DGMANAGER
Protection Mode: MaxPerformance
Databases:
PROD - Primary database
PRODST - Physical standby database
Warning: ORA-16826: apply service state is inconsistent with the DelayMins property
Fast-Start Failover: DISABLED
Configuration Status:
WARNING
DGMGRL>
This is because I managed my standby database with NODELAY option.
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE THROUGH ALL SWITCHOVER DISCONNECT NODELAY;
To fix this cancel recover managed:
SQL> alter database recover managed standby database cancel;
Database altered.
Start with current logfile option:
SQL> alter database recover managed standby database using current logfile disconnect;
Database altered.
Try again
DGMGRL> show configuration;
Configuration - DGMANAGER
Protection Mode: MaxPerformance
Databases:
PROD - Primary database
PRODST - Physical standby database
Fast-Start Failover: DISABLED
Configuration Status:
SUCCESS
DGMGRL>
Comments
Post a Comment