standby database instance is mounted.8. The standby database that you plan to transition to theprimary role must be mounted before you begin theswitchover operation. Ideally, the physical standbydatabase will also be actively recovering archived redologs when the database roles are switched. If the physicalstandby database is open for read-only access, theswitchover operation still will take place, but willrequire additional time.9.For switchover operations involving a l
, both the primary and standby database instancesare open.10.Place the standby database that will become the newprimary database in ARCHIVELOG mode.11.Remove any redo data application delay in effect on thestandby database.
Steps to perform switchover with Physical Standbydatabases
Verify that it is possible to perform a switchoveroperation. On the primary query the switchover_statuscolumn of v$database to verify that switchover tostandby is possible.
> select switchover_status from v$database;
SWITCHOVER_STATUS TO STANDBYIn order to perform a switchover all sessions to thedatabase need to be disconnected. In version 901 this wasa manual process. In version 9.2.0 this process has beenautomated with the with session shutdown clause that hasbeen added to the alter database commit to switchovercommand. If SWITCHOVER_STATUS returns SESSIONS ACTIVEthen you should either disconnect all sessions manuallyor when performing step 2 you should append the withsession shutdown clause.For example: