1. The main library encountered a ORA-01093 error while carrying out a physical master repository role conversion
Sql> select Switchover_status from V$database;
Switchover_status
--------------------
SESSIONS Active----------has active sessions.
Sql> ALTER DATABASE COMMIT to switchover to physical STANDBY;
ALTER DATABASE COMMIT to switchover to physical STANDBY
*
ERROR at line 1:
Ora-01093:alter DATABASE close to permitted with no sessions connected
This error is due to an active session in the main library, which can be resolved by:
1. Kill the active session and execute the command again
2. After the command plus the session shutdown that
ALTER DATABASE COMMIT to switchover to physical STANDBY with session SHUTDOWN;
This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/
2. The standby library is converted to the primary library in a state of: not allowed--may need to restore or exit the recovery mode.
Sql> select Switchover_status from V$database;
Switchover_status
--------------------
Not allowed
Sql> ALTER DATABASE commit to switchover to primary;
ALTER DATABASE commit to switchover to primary
*
ERROR at line 1:
Ora-16139:media Recovery Required
Or as follows:--recovery NEEDED
Sql> select Switchover_status from V$database;
Switchover_status
--------------------
RECOVERY NEEDED
###############
sql> ALTER DATABASE recover managed standby database disconnect from session;
Database altered.
Sql> select Switchover_status from V$database;
Switchover_status
--------------------
To PRIMARY
Sql> ALTER DATABASE commit to switchover to primary;
Database altered.
3. When the main library is switched to standby, the repository does not do this: ALTER DATABASE recover managed standby database cancel;
Sun APR 20 20:15:35 2014
Media Recovery log/u01/app/oracle/prod/arch/1_62_844894247.dbf
Media Recovery waiting for thread 1 sequence 63
Sun APR 20 20:15:46 2014
Redo Shipping Client Connected as Public
--Connected User is Valid
RFS[6]: Assigned to RFS process 19968
RFS[6]: Identified database type as ' physical standby '
RFS[6]: Archived Log: '/u01/app/oracle/prod/arch/1_63_844894247.dbf '
Sun APR 20 20:15:50 2014
Media Recovery log/u01/app/oracle/prod/arch/1_63_844894247.dbf
Identified End-of-redo for thread 1 sequence 63
Sun APR 20 20:15:50 2014
Media Recovery End-of-redo Indicator encountered
Sun APR 20 20:15:50 2014
Media Recovery applied until change 373573---last applied to the SCN
Sun APR 20 20:15:50 2014
Mrp0:media Recovery Complete:end-of-redo (PROD)
Resetting standby activation ID 257246883 (0XF5546A3)
Sun APR 20 20:15:51 2014
Mrp0:background Media Recovery process shutdown (PROD)----Media Recovery process has been closed
Sun APR 20 20:16:21 2014
ALTER DATABASE recover managed standby database cancel
Sun APR 20 20:16:21 2014
ORA-16136 signalled During:alter database recover managed standby database Cancel ...