您好,登錄后才能下訂單哦!
本篇內容介紹了“RAC怎么擴大online日志組大小”的有關知識,在實際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓小編帶領大家學習一下如何處理這些情況吧!希望大家仔細閱讀,能夠學有所成!
1.查看當前默認日志組
SQL> select GROUP#,THREAD#,SEQUENCE#,BYTES,MEMBERS,ARCHIVED,STATUS from v$log; GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS ---------- ---------- ---------- ---------- ---------- --- ---------------- 1 1 821 52428800 1 YES INACTIVE 2 1 822 52428800 1 NO CURRENT 3 2 241 52428800 1 YES INACTIVE 4 2 242 52428800 1 NO CURRENT |
2.添加日志組和成員
節點1 alter database add logfile thread 1 group 11 ('+DATA/funddb/onlinelog/redo11a.log','+DATA/funddb/onlinelog/redo11b.log') size 500M; alter database add logfile thread 1 group 12 ('+DATA/funddb/onlinelog/redo12a.log','+DATA/funddb/onlinelog/redo12b.log') size 500M; alter database add logfile thread 1 group 13 ('+DATA/funddb/onlinelog/redo13a.log','+DATA/funddb/onlinelog/redo13b.log') size 500M; 節點2 alter database add logfile thread 2 group 14 ('+DATA/funddb/onlinelog/redo14a.log','+DATA/funddb/onlinelog/redo14b.log') size 500M; alter database add logfile thread 2 group 15 ('+DATA/funddb/onlinelog/redo15a.log','+DATA/funddb/onlinelog/redo15b.log') size 500M; alter database add logfile thread 2 group 16 ('+DATA/funddb/onlinelog/redo16a.log','+DATA/funddb/onlinelog/redo16b.log') size 500M; |
3.切換日志
節點1 SQL> alter system switch logfile; System altered. 節點2 SQL> alter system switch logfile; System altered. |
4.查詢并等待
SQL> select GROUP#,THREAD#,SEQUENCE#,BYTES,MEMBERS,ARCHIVED,STATUS from v$log; GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS ---------- ---------- ---------- ---------- ---------- --- ---------------- 1 1 821 52428800 1 YES INACTIVE 2 1 822 52428800 1 YES ACTIVE 3 2 241 52428800 1 YES INACTIVE 4 2 242 52428800 1 YES ACTIVE 11 1 823 524288000 2 NO CURRENT 12 1 0 524288000 2 YES UNUSED 13 1 0 524288000 2 YES UNUSED 14 2 243 524288000 2 NO CURRENT 15 2 0 524288000 2 YES UNUSED 16 2 0 524288000 2 YES UNUSED 10 rows selected. 等待...... SQL> select GROUP#,THREAD#,SEQUENCE#,BYTES,MEMBERS,ARCHIVED,STATUS from v$log; GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS ---------- ---------- ---------- ---------- ---------- --- ---------------- 1 1 821 52428800 1 YES INACTIVE 2 1 822 52428800 1 YES INACTIVE 3 2 241 52428800 1 YES INACTIVE 4 2 242 52428800 1 YES INACTIVE 11 1 823 524288000 2 NO CURRENT 12 1 0 524288000 2 YES UNUSED 13 1 0 524288000 2 YES UNUSED 14 2 243 524288000 2 NO CURRENT 15 2 0 524288000 2 YES UNUSED 16 2 0 524288000 2 YES UNUSED 10 rows selected. |
5.刪除舊日志組
SQL> alter database drop logfile group 1; Database altered. SQL> alter database drop logfile group 2; Database altered. SQL> alter database drop logfile group 3; Database altered. SQL> alter database drop logfile group 4; Database altered. |
6.確認完成日志組的擴大
SQL> select GROUP#,THREAD#,SEQUENCE#,BYTES,MEMBERS,ARCHIVED,STATUS from v$log; GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS ---------- ---------- ---------- ---------- ---------- --- ---------------- 11 1 823 524288000 2 NO CURRENT 12 1 0 524288000 2 YES UNUSED 13 1 0 524288000 2 YES UNUSED 14 2 243 524288000 2 NO CURRENT 15 2 0 524288000 2 YES UNUSED 16 2 0 524288000 2 YES UNUSED |
“RAC怎么擴大online日志組大小”的內容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業相關的知識可以關注億速云網站,小編將為大家輸出更多高質量的實用文章!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。