11.2.0.3 ASM例項出現ORA-4031錯誤導致資料庫歸檔失敗
環境:
平臺:RedHat EnterPrise 5.8 X86_X64
資料庫:Oracle EnterPrise 11.2.0.3
叢集軟體:Oracle grid 11.2.0.3
故障現象:
資料庫出現了歸檔失敗,其中有一個節點的例項出現HANG死的狀況。
日誌資訊如下:
分析:
由於歸檔失敗發生在ASM磁碟上,首先檢查ASM磁碟空間以及DB_RECOVERY_FILE_DEST_SIZE,ASM磁碟空間是足夠的,而且由於只有一個節點出現出現了無法歸檔的問題,也可以排除是空間不足造成的。確認兩個節點的DB_RECOVERY_FILE_DEST_SIZE引數設定都是0,基本上可以判斷問題和當前節點的ASM例項狀態不正常有關。
檢查ASM例項的錯誤資訊:
當前節點ASM例項出現了的這個資訊,說明報錯發生在例項2上:
果然例項2上的ASM出現了大量ORA-4031錯誤。檢查ASM啟動的引數配置:
調整及建議:
當前ASM例項使用預設的MEMORY_TARGET配置,分配大小大約是400M,根據Oracle的MOS文章:ASM & Shared Pool (ORA-4031) [ID 437924.1],在11.2.0.3中,Oracle增加了ASM例項所允許的預設程式數PROCESSES,但是預設的MEMORY_TARGET引數沒有增加。
根據Oracle的建議,11.2.0.3的MEMORY_TARGET至少應該設定到1536M,而MEMORY_MAX_TARGET設定為4096M。
對於當前的情況,如果短時間內無法重啟DB和ASM例項,可以在問題節點配置一個本地歸檔路徑,設定目標路徑為本地磁碟,從而避免歸檔無法完成而導致的例項HANG死。
平臺:RedHat EnterPrise 5.8 X86_X64
資料庫:Oracle EnterPrise 11.2.0.3
叢集軟體:Oracle grid 11.2.0.3
故障現象:
資料庫出現了歸檔失敗,其中有一個節點的例項出現HANG死的狀況。
日誌資訊如下:
- Fri Feb 28 19:49:04 2014
- ARC1: Error 19504 Creating archive log file to \'+DATA02\'
- ARCH: Archival stopped, error occurred. Will continue retrying
- ORACLE Instance orcl1 - Archival Error
- ORA-16038: log 14 sequence# 68244 cannot be archived
- ORA-19504: failed to create file \"\"
- ORA-00312: online log 14 thread 1: \'+DATA02/orcl/onlinelog/group_14.264.792274883\'
- ORA-00312: online log 14 thread 1: \'+DATA02/orcl/onlinelog/group_14.265.792274889\'
- Archiver process freed from errors. No longer stopped
- Fri Feb 28 19:50:22 2014
- ARC0: LGWR is actively archiving destination LOG_ARCHIVE_DEST_3
- ARCH: Archival stopped, error occurred. Will continue retrying
- ORACLE Instance orcl1 - Archival Error
- ORA-16014: log 14 sequence# 68244 not archived, no available destinations
- ORA-00312: online log 14 thread 1: \'+DATA02/orcl/onlinelog/group_14.264.792274883\'
- ORA-00312: online log 14 thread 1: \'+DATA02/orcl/onlinelog/group_14.265.792274889\'
- ARC0: Archive log rejected (thread 1 sequence 68240) at host \'orclsh\'
- FAL[server, ARC0]: FAL archive failed, see trace file.
- ARCH: FAL archive failed. Archiver continuing
- ORACLE Instance orcl1 - Archival Error. Archiver continuing.
由於歸檔失敗發生在ASM磁碟上,首先檢查ASM磁碟空間以及DB_RECOVERY_FILE_DEST_SIZE,ASM磁碟空間是足夠的,而且由於只有一個節點出現出現了無法歸檔的問題,也可以排除是空間不足造成的。確認兩個節點的DB_RECOVERY_FILE_DEST_SIZE引數設定都是0,基本上可以判斷問題和當前節點的ASM例項狀態不正常有關。
檢查ASM例項的錯誤資訊:
- Fri Feb 28 19:41:23 2014
- Dumping diagnostic data in directory=[cdmp_20130702164115], requested by (instance=2, osid=2032294 (LMD0)), summary=[incident=165521].
- Fri Feb 28 19:49:19 2014
- Dumping diagnostic data in directory=[cdmp_20130702164845], requested by (instance=2, osid=2032294 (LMD0)), summary=[incident=165522].
- Fri Feb 28 19:55:56 2014
- Dumping diagnostic data in directory=[cdmp_20130702165517], requested by (instance=2, osid=2032294 (LMD0)), summary=[incident=165523].
- Fri Feb 28 18:34:25 2014
- Errors in file /u01/app/grid/diag/asm/+asm/+ASM2/trace/+ASM2_lmd0_2032294.trc (incident=186256):
- ORA-04031: unable to allocate 3768 bytes of shared memory (\"shared pool\",\"unknown object\",\"sga heap(1,0)\",\"ges enqueues\")
- Use ADRCI or Support Workbench to package the incident.
- See Note 411.1 at My Oracle Support for error and packaging details.
- Insufficient shared pool to allocate a GES object (ospid 2032294)
- Fri Feb 28 18:29:53 2014
- Sweep [inc][186256]: completed
- Fri Feb 28 18:36:49 2014
- Errors in file /u01/app/grid/diag/asm/+asm/+ASM2/trace/+ASM2_lmd0_2032294.trc (incident=186257):
- ORA-04031: unable to allocate 3768 bytes of shared memory (\"shared pool\",\"unknown object\",\"sga heap(1,0)\",\"ges enqueues\")
- Use ADRCI or Support Workbench to package the incident.
- See Note 411.1 at My Oracle Support for error and packaging details.
- Insufficient shared pool to allocate a GES object (ospid 2032294)
- Fri Feb 28 20:06:55 2012
- NOTE: No asm libraries found in the system
- ERROR: -5(Duplicate disk DATA_DG01:ASM_DISK1)
- ERROR: -5(Duplicate disk DATA_DG01:ASM_DISK2)
- MEMORY_TARGET defaulting to 411041792.
- * instance_number obtained from CSS = 2, checking for the existence of node 0...
- * node 0 does not exist. instance_number = 2
- Starting ORACLE instance (normal)
- LICENSE_MAX_SESSION = 0
- LICENSE_SESSIONS_WARNING = 0
- Private Interface \'en1\' configured from GPnP for use as a private interconnect.
- [name=\'en1\', type=1, ip=169.254.78.6, mac=00-1a-64-bb-50-7d, net=169.254.0.0/16, mask=255.255.0.0, use=haip:cluster_interconnect/62]
- Public Interface \'en0\' configured from GPnP for use as a public interface.
- [name=\'en0\', type=1, ip=10.1.16.35, mac=00-1a-64-bb-50-7c, net=10.1.16.32/27, mask=255.255.255.224, use=public/1]
- Picked latch-free SCN scheme 3
- Using LOG_ARCHIVE_DEST_1 parameter default value as /u01/app/11.2.0.3/grid/dbs/arch
- Autotune of undo retention is turned on.
- LICENSE_MAX_USERS = 0
- SYS auditing is disabled
- NOTE: Volume support enabled
- Starting up:
- Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
- With the Real Application Clusters and Automatic Storage Management options.
- ORACLE_HOME = /u01/app/11.2.0.3/grid
- System name: AIX
- Node name: orcldb2
- Release: 1
- Version: 6
- Machine: 00C94E064C00
- Using parameter settings in server-side pfile /u01/app/11.2.0.3/grid/dbs/init+ASM2.ora
- System parameters with non-default values:
- large_pool_size = 12M
- instance_type = \"asm\"
- remote_login_passwordfile= \"EXCLUSIVE\"
- asm_diskstring = \"/dev/ocr_*\"
- asm_diskstring = \"/dev/voting_*\"
- asm_diskstring = \"/dev/asm_*\"
- asm_diskgroups = \"DATA\"
- asm_diskgroups = \"DATA_DG01\"
- asm_diskgroups = \"SPFILE_DG\"
- asm_power_limit = 1
- diagnostic_dest = \"/u01/app/grid\"
- Cluster communication is configured to use the following interface(s) for this instance
- 169.254.78.6
- cluster interconnect IPC version:Oracle UDP/IP (generic)
- IPC Vendor 1 proto 2
當前ASM例項使用預設的MEMORY_TARGET配置,分配大小大約是400M,根據Oracle的MOS文章:ASM & Shared Pool (ORA-4031) [ID 437924.1],在11.2.0.3中,Oracle增加了ASM例項所允許的預設程式數PROCESSES,但是預設的MEMORY_TARGET引數沒有增加。
根據Oracle的建議,11.2.0.3的MEMORY_TARGET至少應該設定到1536M,而MEMORY_MAX_TARGET設定為4096M。
-
SQL> alter system set memory_max_target=4096m scope=spfile;
-
- SQL> alter system set memory_target=1536m scope=spfile;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20674423/viewspace-1098176/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 11.2.0.3 ASM例項出現ORA-4031導致資料庫歸檔失敗ASM資料庫
- ASM例項出現ORA-4031錯誤導致例項崩潰ASM
- 誤刪歸檔日誌除導致備份歸檔日誌失敗
- 【RAC】因清理不完整導致RAC ASM例項建立失敗ASM
- INTERVAL分割槽插入大量資料導致ORA-4031錯誤
- DBCA建庫導致已有資料庫出現ORA-27140錯誤資料庫
- ORA-4031導致CJQ程式出現ORA-1003錯誤
- [oracle]undo表空間出錯,導致資料庫例項無法開啟Oracle資料庫
- 歸檔空間不足導致例項死鎖
- 啟動ASM例項出現ORA-29701錯誤ASM
- MongoDB例項重啟失敗探究(大事務Redo導致)MongoDB
- Oracle 10G RAC歸檔引數格式問題導致歸檔至ASM時出錯Oracle 10gASM
- 清除安裝失敗的asm例項ASM
- oracle10.2.0.1 (rhel4)rac刪除asm例項不乾淨導致重建asm例項出錯OracleASM
- 歸檔日誌無法歸檔導致資料庫hang住資料庫
- ASM例項出現ORA-04031導致Instance terminated by ASMBASM
- 建立ASM例項及ASM資料庫ASM資料庫
- Oracle 11.2.0.3 管理ASM例項OracleASM
- Oracle 11.2.0.3管理ASM例項OracleASM
- TSM備份時因歸檔日誌丟失而導致備份失敗
- ASM之建立ASM例項及ASM資料庫ASM資料庫
- oraInst.loc檔案錯誤導致opatch失敗問題的解決AI
- /etc/fstab的錯誤設定導致系統啟動失敗
- 獲取導致匯入失敗的資料
- 【DB2學習】由於TSM損壞導致歸檔失敗DB2
- 建立ASM例項和資料庫ASM資料庫
- 連線ASM例項後出現ORA-1012錯誤ASM
- 建立物化檢視導致資料庫例項崩潰資料庫
- 又一例SPFILE設定錯誤導致資料庫無法啟動資料庫
- 我的postgresql資料庫報埠錯誤,連線失敗SQL資料庫
- ASM上恢復STANDBY資料庫出現ORA-15173錯誤ASM資料庫
- 資料庫升級導致ORA-918錯誤資料庫
- wait_type SOS_WORKER導致資料庫連線失敗AI資料庫
- 10g資料庫例項使用11g asm錯誤問題處理資料庫ASM
- 獲取導致匯入失敗的資料(五)
- 獲取導致匯入失敗的資料(四)
- 獲取導致匯入失敗的資料(三)
- 獲取導致匯入失敗的資料(二)