oracle 10g dataguard备库切换时,ORA-16139错误的解决办法

oracle 10g dataguard备库切换时,ORA-16139错误的解决办法


Maximum Protection Mode下,将备库切换到主库报错:
SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;
ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY
*
ERROR at line 1:
ORA-16139: media recovery required


解决办法,只需在备库上开启日志应用即可:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
Database altered.
SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;
Database altered.
SQL> alter database open;
Database altered.
SQL>

你可能感兴趣的:(oracle)