码迷,mamicode.com
首页 > 数据库 > 详细

将physical standby置于read-only模式

时间:2016-04-18 22:25:45      阅读:253      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!