Graceful Switchover rollback or roll forward action

When an error occurs during Graceful Switchover on either the primary or the standby server, processing will stop on both the primary and standby servers. Dbvisit Standby will display the rollback or roll forward action required depending at which checkpoint the processing stopped, but they are also listed below for reference. Only the action associated with the checkpoint needs to be performed, not the actions for the subsequent checkpoints.For example:If Graceful Switchover failed at checkpoint 8 on the primary and standby server, then only the checkpoint action for checkpoint 8 needs to be performed on both the primary and the standby server.

ServerCheckpointRollback or Rollforward Action
Primary1Database is still primary database. No rollback needs to be performed. Primary database is not affected.
Standby1Database is still standby database. No rollback needs to be performed. Standby database is not affected.
Primary2Database is still primary database. No rollback needs to be performed. Primary database is not affected.
Standby2Database is still standby database. No rollback needs to be performed. Standby database is not affected.
Primary3Database is still primary database. Primary database is not open. Rollback action: Please restart primary database in normal mode:
dbv_oraStartStop restart <DDC>
Standby3Database is still standby database. No rollback needs to be performed. Standby database is not affected.
Primary4Database is still primary database. Primary database is in restricted mode. Rollback action: Please restart primary database in normal mode:
dbv_oraStartStop restart <DDC>
Standby4Database is still standby database. Standby database has been shutdown or started NOMOUNT.
Rollback action: Please restart standby database:
dbv_oraStartStop restart <DDC>
Primary5Database is still primary database. Primary database is not open. Rollback action: Please restart primary database in normal mode:
dbv_oraStartStop restart <DDC>
Standby5Database is still standby database. Standby database has been shutdown or started NOMOUNT.
Rollback action: Please restart standby database:
dbv_oraStartStop restart <DDC>
Dbvisit has disabled Flash Recovery Area prior to Graceful Switchover. To enable FRA run the following command:
SQL>alter system set db_recovery_file_dest = 'xxxxx' scope=both;
Primary6Database is still primary database. Primary database is not open. Rollback action: Please restart primary database in normal mode:
dbv_oraStartStop restart <DDC>
Standby6Database is still standby database. Standby database has been shutdown or started NOMOUNT.
Rollback action: Please restart standby database:
dbv_oraStartStop restart <DDC>
Dbvisit has disabled Flash Recovery Area prior to Graceful Switchover. To enable FRA run the following command:
SQL>alter system set db_recovery_file_dest = 'xxxxx' scope=both;
Primary7Database is still primary database. Primary database is not open. Rollback action: Please restart primary database in normal mode:
dbv_oraStartStop restart <DDC>
Standby7Database is still standby database. Standby database has been shutdown or started NOMOUNT.
Rollback action: Please restart standby database:
dbv_oraStartStop restart <DDC>
Dbvisit has disabled Flash Recovery Area prior to Graceful Switchover. To enable FRA run the following command:
SQL>alter system set db_recovery_file_dest = 'xxxxx' scope=both;
Primary8Database is still primary database. Primary database is not open.
Rollback action: Please restart primary database in normal mode:
dbv_oraStartStop restart <DDC>
Standby8Database is still standby database. Convertion of Database <ORACLE_SID> has to the Primary Database has not been completed. This database has to be rolled back to a standby database.
Rollback action: 
1) Shutdown database with command:
dbv_oraStartStop stop <DDC>
2) Startup standby instance NOMOUNT and replace controlfiles with backed up controlfile <filename> using RMAN command:
    RMAN>RESTORE STANDBY CONTROLFILE FROM ‘filename’;
3) Retart standby database with command:
dbv_oraStartStop restart <DDC>
Dbvisit has disabled Flash Recovery Area prior to Graceful Switchover. To enable FRA run the following command:
SQL>alter system set db_recovery_file_dest = 'xxxxx' scope=both;
Primary9Database is still primary database. Primary database is not open.
Rollback action: Please start primary database:
dbv_oraStartStop start <DDC>
Alternatively this database may be rolled forward to a standby database.
Roll forward action:
1.    Shutdown database with command:
 dbv_oraStartStop stop <DDC>
2.    Startup instance NOMOUNT and replace controlfiles with a standby controlfile by running RMAN command:
        RESTORE STANDBY CONTROLFILE FROM <filename>
3.    Update DDC file dbv_<DDC>.env and reverse settings with command:
dbv_oraStartStop update_ddc_file <DDC>
4.    Start standby database with command:
dbv_oraStartStop start <DDC>
Standby9Database has been converted to the primary database.
Roll forward action: 
1. SQL> recover database;
2. SQL> alter system archive log all;
3. SQL> alter database open;
4. Update DDC file dbv_<DDC>.env and reverse settings with command:
dbv_oraStartStop update_ddc_file <DDC>
5. Drop and recreate database tempfile [location of tempfile script will be shown] if needed.
Alternatively this database may be rolled back to a standby database.
Rollback action:
1) Shutdown database with command:
dbv_oraStartStop stop <DDC>
2) Startup standby instance NOMOUNT and replace controlfiles with backed up controlfile <filename> using RMAN command:
    RMAN>RESTORE STANDBY CONTROLFILE FROM ‘filename’;
3) Retart standby database with command:
dbv_oraStartStop restart <DDC>
Dbvisit has disabled Flash Recovery Area prior to Graceful Switchover. To enable FRA run the following command:
SQL>alter system set db_recovery_file_dest = 'xxxxx' scope=both;
Primary10Database is still primary database. Primary database is not open.
Rollback action: Please start primary database:
dbv_oraStartStop start <DDC>
Alternatively this database may be rolled forward to a standby database.
Roll forward action:
1.    Shutdown database with command:
 dbv_oraStartStop stop <DDC>
2.    Startup instance NOMOUNT and replace controlfiles with a standby controlfile by running RMAN command:
        RESTORE STANDBY CONTROLFILE FROM <filename>
3.    Update DDC file dbv_<DDC>.env and reverse settings with command:
       dbv_oraStartStop update_ddc_file <DDC>
4.    Start standby database with command:
dbv_oraStartStop start <DDC>
Standby10Database has been converted to the primary database.
Roll forward action: 
1. SQL> alter system archive log all;
2. SQL> alter database open;
3. Update DDC file dbv_<DDC>.env and reverse settings with command:
dbv_oraStartStop update_ddc_file <DDC>
4. Drop and recreate database tempfile [location of tempfile script will be shown] if needed.
Alternatively this database may be rolled back to a standby database.
Rollback action:
1) Shutdown database with command:
dbv_oraStartStop stop <DDC>
2) Startup standby instance NOMOUNT and replace controlfiles with backed up controlfile <filename> using RMAN command:
    RMAN>RESTORE STANDBY CONTROLFILE FROM ‘filename’;
3) Retart standby database with command:
dbv_oraStartStop restart <DDC>
Dbvisit has disabled Flash Recovery Area prior to Graceful Switchover. To enable FRA run the following command:
SQL>alter system set db_recovery_file_dest = 'xxxxx' scope=both;
Primary11Database is still primary database. Primary database is not open.
Rollback action: Please start primary database:
dbv_oraStartStop start <DDC>
Alternatively this database may be rolled forward to a standby database.
Roll forward action:
1.    Shutdown database with command:
 dbv_oraStartStop stop <DDC>
2.    Startup instance NOMOUNT and replace controlfiles with a standby controlfile by running RMAN command:
RESTORE STANDBY CONTROLFILE FROM <filename>
3.    Update DDC file dbv_<DDC>.env and reverse settings with command:
dbv_oraStartStop update_ddc_file <DDC>
4.    Start standby database with command:
dbv_oraStartStop start <DDC>
Standby11Database has been converted to the primary database.
Roll forward action: 
1. SQL> alter system archive log all;
2. SQL> alter database open;
3. Update DDC file dbv_<DDC>.env and reverse settings with command:
dbv_oraStartStop update_ddc_file <DDC>
4. Drop and recreate database tempfile [location of tempfile script will be shown] if needed.
Alternatively this database may be rolled back to a standby database.
Rollback action:
1) Shutdown database with command:
dbv_oraStartStop stop <DDC>
2) Startup standby instance NOMOUNT and replace controlfiles with backed up controlfile <filename> using RMAN command:
    RMAN>RESTORE STANDBY CONTROLFILE FROM ‘filename’;
3) Retart standby database with command:
dbv_oraStartStop restart <DDC>
Dbvisit has disabled Flash Recovery Area prior to Graceful Switchover. To enable FRA run the following command:
SQL>alter system set db_recovery_file_dest = 'xxxxx' scope=both;
Primary12Database is still primary database. Primary database is not open.
Rollback action: Please start primary database:
dbv_oraStartStop start <DDC>
Alternatively this database may be rolled forward to a standby database.
Roll forward action:
1.    Shutdown database with command:
 dbv_oraStartStop stop <DDC>
2.    Startup instance NOMOUNT and replace controlfiles with a standby controlfile by running RMAN command:
RESTORE STANDBY CONTROLFILE FROM <filename>
3.    Update DDC file dbv_<DDC>.env and reverse settings with command:
dbv_oraStartStop update_ddc_file <DDC>
4.    Start standby database with command:
dbv_oraStartStop start <DDC>
Standby12Database has been converted to the primary database.
Roll forward action: 
1. Update DDC file dbv_<DDC>.env with command:
        dbv_oraStartStop update_ddc_file <DDC>
2. Add database tempfile [location of tempfile script will be shown] if needed.
3. Archives may need to be compressed/uncompressed (not essential).
Dbvisit has disabled Flash Recovery Area prior to Graceful Switchover. To enable FRA run the following command:
SQL>alter system set db_recovery_file_dest = 'xxxxx' scope=both;
Alternatively this database may be rolled back to a standby database.
Rollback action:
1) Shutdown database with command:
dbv_oraStartStop stop <DDC>
2) Startup standby instance NOMOUNT and replace controlfiles with backed up controlfile <filename> using RMAN command:
    RMAN>RESTORE STANDBY CONTROLFILE FROM ‘filename’;
3) Retart standby database with command:
dbv_oraStartStop restart <DDC>
Dbvisit has disabled Flash Recovery Area prior to Graceful Switchover. To enable FRA run the following command:
SQL>alter system set db_recovery_file_dest = 'xxxxx' scope=both;
Primary13Database has been converted to standby database.
Roll forward action: 
1. Update DDC file dbv_<DDC>.env with command:
dbv_oraStartStop update_ddc_file <DDC>
2. Start standby database with command:
dbv_oraStartStop start <DDC>
Standby13Database has been converted to the primary database.
Roll forward action: 
4. Update DDC file dbv_<DDC>.env with command:
        dbv_oraStartStop update_ddc_file <DDC>
5. Add database tempfile [location of tempfile script will be shown] if needed.
6. Archives may need to be compressed/uncompressed (not essential).
Dbvisit has disabled Flash Recovery Area prior to Graceful Switchover. To enable FRA run the following command:
7. SQL>alter system set db_recovery_file_dest = 'xxxxx' scope=both;
Primary14Database has been converted to standby database.
Roll forward action: 
1. Update DDC file dbv_<DDC>.env with command:
dbv_oraStartStop update_ddc_file <DDC>
 
Standby14Database has been converted to the primary database.
Roll forward action: 
1.    Update DDC file dbv_<DDC>.env with command:
        dbv_oraStartStop update_ddc_file <DDC>
2.    Add database tempfile [location of tempfile script will be shown] if needed.
3.    Archives may need to be compressed/uncompressed (not essential).
Dbvisit has disabled Flash Recovery Area prior to Graceful Switchover. To enable FRA run the following command:
SQL>alter system set db_recovery_file_dest = 'xxxxx' scope=both;
Primary15Database has been converted to standby database.
Roll forward action: 
1.    Archives may need to be compressed/uncompressed (not essential).
Standby15Database has been converted to the primary database.
Roll forward action: 
1. Add database tempfile [location of tempfile script will be shown] if needed.
2. Archives may need to be compressed/uncompressed (not essential).
Dbvisit has disabled Flash Recovery Area prior to Graceful Switchover. To enable FRA run the following command:
SQL>alter system set db_recovery_file_dest = 'xxxxx' scope=both;
Primary16Database has been converted to standby database.
Roll forward action: 
1. Archives may need to be compressed/uncompressed (not essential).
Standby16Database has been converted to the primary database.
Roll forward action: 
1. Archives may need to be compressed/uncompressed (not essential).
Dbvisit has disabled Flash Recovery Area prior to Graceful Switchover. To enable FRA run the following command:
SQL>alter system set db_recovery_file_dest = 'xxxxx' scope=both;
Primary17Database has been converted to standby database.
Roll forward action: 
No further roll forward action required.
Standby17Database has been converted to the primary database.
Roll forward action: 
No further roll forward action required.
Dbvisit has disabled Flash Recovery Area prior to Graceful Switchover. To enable FRA run the following command:
SQL>alter system set db_recovery_file_dest = 'xxxxx' scope=both;
Primary18Database has been converted to standby database.
Roll forward action: 
No further roll forward action required.
Standby18Database has been converted to the primary database.
Roll forward action: 
No further roll forward action required.
Dbvisit has disabled Flash Recovery Area prior to Graceful Switchover. To enable FRA run the following command:
SQL>alter system set db_recovery_file_dest = 'xxxxx' scope=both;

1. The above steps are indicative only and may vary from version to version.

2. For Oracle 8. "SQL>" should be "SVRMGR>"

3. If using Dbvisit Standby to keep the new standby database in synch, please run Dbvisit Standby once manually with the -R option to synchronise on the new primary database.

Example: dbvisit -R <DDC>