首页 > 数据库技术 > 详细

将physical standby置于read-only模式

时间:2016-04-18 22:25:10      阅读:242      评论:0      收藏:0      [点我收藏+]

1.备库处于关闭状态

SQL> startup 
ORACLE instance started.

Total System Global Area  430075904 bytes
Fixed Size                  2253944 bytes
Variable Size             184552328 bytes
Database Buffers          239075328 bytes
Redo Buffers                4194304 bytes
Database mounted.
Database opened.
SQL> select open_mode from v$database;

OPEN_MODE
--------------------
READ ONLY

SQL> 

 

2.备库处于redo apply状态

SQL> select open_mode from v$database;

OPEN_MODE
--------------------
MOUNTED

SQL> alter database recover managed standby database cancel;

Database altered.

SQL> alter database open;

Database altered.

SQL> select open_mode from v$database;

OPEN_MODE
--------------------
READ ONLY

SQL> 

 

将physical standby置于read-only模式

原文:http://www.cnblogs.com/abclife/p/5405776.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!