注意:在以前的某些版本中如果数据保护级别从高到底,则主库必须在mount状态下
一下内容摘自Dave大师博客
SQL> startup mount;
Oracle instance started.
Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 79694068 bytes
Database Buffers 83886080 bytes
Redo Buffers 2973696 bytes
Database mounted.
SQL> alter database set standby database to maximize availability;
Database altered.
SQL> alter database open;
Database altered.
SQL> select protection_mode,protection_level from v$database;
PROTECTION_MODE PROTECTION_LEVEL
-------------------- --------------------
MAXIMUM AVAILABILITY MAXIMUM AVAILABILITY
修改到最大保护模式:
SQL> alter database set standby database to maximize protection; //在availability模式下提高到protection模式下,不许要修改参数
数据库已更改。
SQL> select protection_mode,protection_level from v$database;
PROTECTION_MODE PROTECTION_LEVEL
------------------------------------------------------------ ------------------------------------------------------------
MAXIMUM PROTECTION MAXIMUM PROTECTION
当备库在数据的最大保护模式下,备库是不允许被先down的如下:
备库操作
SQL> select protection_mode,protection_level from v$database;
PROTECTION_MODE PROTECTION_LEVEL
------------------------------------------------------------ ------------------------------------------------------------
MAXIMUM PROTECTION MAXIMUM PROTECTION
SQL> shutdown immediate
ORA-01154: ????????????, ??, ?????
SQL> host oerr ORA 01154
01154, 00000, "database busy. Open, close, mount, and dismount not allowed now"
// *Cause: Some operation is in progress that expects the opened/mounted state
// of this instance to remain the same.
// *Action: Wait for the operation to complete then retry. If attempting to
// do a shutdown, SHUTDOWN ABORT will work. If this is a shutdown
// of a standby database that is operating in NO DATA LOSS mode, you
// must shutdown the primary database first.
--必须先down掉主库
更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12
