The new switchover statement has a VERIFY
option that results in checks being performed of many conditions required for switchover. Some of the items checked are: whether Redo Apply is running on the switchover target; whether the release version of the switchover target is 12.1 or later; whether the switchover target is synchronized; and whether it has MRP running.
Suppose the primary database has a DB_UNIQUE_NAME
of BOSTON
and the switchover target standby database has a DB_UNIQUE_NAME
of CHICAGO
. On the primary database BOSTON
, issue the following SQL statement to verify that the switchover target, CHICAGO
, is ready for switchover:
SQL> ALTER DATABASE SWITCHOVER TO CHICAGO VERIFY;
ERROR at line 1:
ORA-16470: Redo Apply is not running on switchover target
If this operation had been successful, a Database Altered
message would have been returned but in this example an ORA-16470
error was returned. This error means that the switchover target CHICAGO
is not ready for switchover. Redo Apply must be started before the switchover operation.
After Redo Apply is started, issue the following statement again:
SQL> ALTER DATABASE SWITCHOVER TO CHICAGO VERIFY;
ERROR at line 1:
ORA-16475: succeeded with warnings, check alert log for more details
The switchover target, CHICAGO
, is ready for switchover. However, the warnings indicated by the ORA-16475
error may affect switchover performance. The alert log contains messages similar to the following:
SWITCHOVER VERIFY WARNING: switchover target has dirty online redo logfiles that require clearing. It takes time to clear online redo logfiles. This may slow down switchover process.
You can fix the problems or if switchover performance is not important, those warnings can be ignored. After making any fixes you determine are necessary, issue the following SQL statement again:
SQL> ALTER DATABASE SWITCHOVER TO CHICAGO VERIFY;
Database altered.
The switchover target, CHICAGO
, is now ready for switchover.