如何增長日誌組成員到既有日誌組?

好比:oracle

咱們目前系統中有如下日誌組:app

SQL> select group#,sequence#,members ,status ,archived from v$log;日誌

GROUP# SEQUENCE# MEMBERS STATUS ARCblog

---get

1 28 1 CURRENT NOfile

2 26 1 INACTIVE YESselect

3 27 1 INACTIVE YESchannel

發現每組都只有一個成員,咱們想手工增長一個文件到既有組上去:方法

1* select group#,member from v$logfileim

GROUP# MEMBER

 

3 /oracle/app/oracle/oradata/sztech1/redo03.log

2 /oracle/app/oracle/oradata/sztech1/redo02.log

1 /oracle/app/oracle/oradata/sztech1/redo01.log

咱們給組一增長一個鏡像成員,方法以下:

alter database add logfile member '/oracle/app/oracle/oradata/sztech1/redo01b.log' to group 1;

以後,咱們再查詢,文件應該增長上去:

1* select group#,member from v$logfile

GROUP# MEMBER

 

3 /oracle/app/oracle/oradata/sztech1/redo03.log

2 /oracle/app/oracle/oradata/sztech1/redo02.log

1 /oracle/app/oracle/oradata/sztech1/redo01.log

1 /oracle/app/oracle/oradata/sztech1/redo01b.log

SQL> select group#,sequence#,members ,status ,archived from v$log;

GROUP# SEQUENCEMEMBERS STATUS ARC

---

1 28

2 CURRENT NO

2 26 1 INACTIVE YES

3 27 1 INACTIVE YES

至此,日誌組成員增長上去了.

相關文章
相關標籤/搜索