Switching the active and standby databases

Switch to the standby database when the active database fails, or you want to perform maintenance on the active database.