【kingsql分享】RAC擴大online日誌組大小
在生產環境中,高效能伺服器的RAC將預設日誌50M擴大,有助於效能提升
1.檢視當前預設日誌組
2.新增日誌組和成員
3.切換日誌
4.查詢並等待
5.刪除舊日誌組
6.確認完成日誌組的擴大
本文建立時間為2016年8月3日 15:25:00
作者:洪卓輝 kingsql
Oracle DBA,資深培訓師
hongzhuohui@kingsql.com
轉載請註明出處
鄙視某些小型網站剽竊文章後修改作者名的可恥行為
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 |
本文建立時間為2016年8月3日 15:25:00
作者:洪卓輝 kingsql
Oracle DBA,資深培訓師
hongzhuohui@kingsql.com
轉載請註明出處
鄙視某些小型網站剽竊文章後修改作者名的可恥行為
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28389881/viewspace-2122909/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【kingsql分享】Linux平臺判斷大小端SQLLinux
- rac日誌收集方法
- 【kingsql分享】Oracle 18c RAC補丁升級實戰【DBRU】SQLOracle
- 【kingsql分享】Oracle18c RAC ADVM卷OFFLINE修復一例SQLOracle
- Python強大的日誌模組loggingPython
- 日誌模組
- [技術分享]日誌切割(按天切割日誌)
- 限制 Apache日誌檔案大小的方法Apache
- 日誌篇:模組日誌總體介紹
- Oracle RAC環境下ASM磁碟組擴容OracleASM
- oracle rac+adg調整redo日誌組導致adg備庫ogg抽取程式abendOracle
- 【kingsql分享】Oracle Database 20c 十大新特性介紹SQLOracleDatabase
- MySQL 5.6修改REDO日誌的大小和個數MySql
- Oracle RAC ASM磁碟組擴容時遇到的VIP漂移OracleASM
- 日誌記錄模組logging
- [擴充套件包]-Laravel檢視日誌套件Laravel
- 日誌服務CLIETL-擴充套件UDF套件
- nodejs 日誌模組 winston 的使用NodeJS
- 『無為則無心』Python日誌 — 65、日誌模組logging的使用Python
- MySQL 修改InnoDB重做日誌檔案的數量或大小MySql
- oracle 12C RAC 12.1.0.2 叢集日誌(cluster log)目錄Oracle
- 『無為則無心』Python日誌 — 67、logging日誌模組處理流程Python
- 『無為則無心』Python日誌 — 64、Python日誌模組logging介紹Python
- ASP.NET擴充套件庫之Http日誌ASP.NET套件HTTP
- 日誌檔案過大清理
- python-包及日誌模組使用Python
- python之logging日誌模組詳解Python
- Python:使用logging模組記錄日誌Python
- mybaits原始碼分析--日誌模組(四)AI原始碼
- ORACLE RAC+DG調整redo大小Oracle
- Yii2 log 模組,訊息日誌
- 【python介面自動化】- logging日誌模組Python
- Java 開發中常用的日誌模組Java
- Oracle11g redo log 建立、新增、刪除(重做日誌組,重做日誌檔案)Oracle
- Oracle 例項和RAC叢集下資料庫日誌目錄合集Oracle資料庫
- Postgres使用pg_resetwal命令修改wal日誌檔案大小的方法
- 微信網頁自定義分享踩坑日誌網頁
- 日誌分析-apache日誌分析Apache
- 【kingsql分享】OEL7.6安裝Oracle18c RPM新玩法SQLOracle