SQL> select open_mode,DATABASE_ROLE from v$database;
OPEN_MODE DATABASE_ROLE
-------------------- ----------------
MOUNTED PHYSICAL STANDBY
2.停止备库的日志应用
SQL> alter database recover managed standby database cancel;
Database altered.
3.open数据库
SQL> alter database open;
Database altered.
4.查看数据库状态
SQL> select open_mode,DATABASE_ROLE from v$database;
OPEN_MODE DATABASE_ROLE
-------------------- ----------------
READ ONLY PHYSICAL STANDBY
5.备库应用日志
SQL> alter database recover managed standby database using current logfile disconnect from session;
Database altered.
6.再次查看数据库状态
SQL> select open_mode,DATABASE_ROLE from v$database;
OPEN_MODE DATABASE_ROLE
-------------------- ----------------
READ ONLY WITH APPLY PHYSICAL STANDBY