日期:2014-05-16 浏览次数:20419 次
下面以主库配置 Standby Redo Log 为例:
sys@ORCL> alter database add standby logfile group 4 ('/u01/app/oracle/oradata/ORCL/stdredo001.log') size 50M; Database altered. sys@ORCL> alter database add standby logfile group 5 ('/u01/app/oracle/oradata/ORCL/stdredo002.log') size 50M; Database altered. sys@ORCL> alter database add standby logfile group 6 ('/u01/app/oracle/oradata/ORCL/stdredo003.log') size 50M; Database altered. sys@ORCL> alter database add standby logfile group 7 ('/u01/app/oracle/oradata/ORCL/stdredo004.log') size 50M; Database altered.
㈡ 删除 Standby Redo Log
Standby redo log删除方法:
sys@ORCL> alter database drop standby logfile group 8; Database altered.
㈢ 查询 Standby Redo Log
通过V$STANDBY_LOG视图查看standby redo log文件组:
sys@ORCL> select group#,thread#,sequence#,archived,status from v$standby_log; GROUP# THREAD# SEQUENCE# ARC STATUS ---------- ---------- ---------- --- ---------- 4 0 0 YES UNASSIGNED 5 0 0 YES UNASSIGNED 6 0 0 YES UNASSIGNED 7 0 0 YES UNASSIGNED