AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
FroM: http://blog.itpub.net/27471208/viewspace-742124
今天一上班,ORACLE以錯誤的形式來迎接我,alert錯誤如下:
Wed Aug 29 01:31:03 2012
Global Enqueue Services Deadlock detected. More info in file
/u01/app/11.1.0/diag/rdbms/zzbrac2/zzbrac21/trace/zzbrac21_lmd0_5278.trc.
Global Enqueue Services Deadlock detected. More info in file
/u01/app/11.1.0/diag/rdbms/zzbrac2/zzbrac21/trace/zzbrac21_lmd0_5278.trc.
Wed Aug 29 01:44:49 2012
ALTER SYSTEM SET service_names='SYS$SYS.KUPC$S_1_20120829010500.ZZBRAC2','zzbrac2' SCOPE=MEMORY SID='zzbrac21';
ALTER SYSTEM SET service_names='zzbrac2' SCOPE=MEMORY SID='zzbrac21';
Wed Aug 29 01:59:35 2012
Clearing Resource Manager plan via parameter
Wed Aug 29 02:01:53 2012
Trace dumping is performing id=[cdmp_20120829020218]
Wed Aug 29 02:06:16 2012
Thread 1 advanced to log sequence 15972 (LGWR switch)
Current log# 2 seq# 15972 mem# 0: +DATADG/zzbrac2/onlinelog/group_2.266.733863261
Current log# 2 seq# 15972 mem# 1: +DATADG/zzbrac2/onlinelog/group_2.267.733863261
Wed Aug 29 02:06:16 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:16 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:16 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:16 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:16 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:16 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Global Enqueue Services Deadlock detected. More info in file
/u01/app/11.1.0/diag/rdbms/zzbrac2/zzbrac21/trace/zzbrac21_lmd0_5278.trc.
Global Enqueue Services Deadlock detected. More info in file
/u01/app/11.1.0/diag/rdbms/zzbrac2/zzbrac21/trace/zzbrac21_lmd0_5278.trc.
Wed Aug 29 01:44:49 2012
ALTER SYSTEM SET service_names='SYS$SYS.KUPC$S_1_20120829010500.ZZBRAC2','zzbrac2' SCOPE=MEMORY SID='zzbrac21';
ALTER SYSTEM SET service_names='zzbrac2' SCOPE=MEMORY SID='zzbrac21';
Wed Aug 29 01:59:35 2012
Clearing Resource Manager plan via parameter
Wed Aug 29 02:01:53 2012
Trace dumping is performing id=[cdmp_20120829020218]
Wed Aug 29 02:06:16 2012
Thread 1 advanced to log sequence 15972 (LGWR switch)
Current log# 2 seq# 15972 mem# 0: +DATADG/zzbrac2/onlinelog/group_2.266.733863261
Current log# 2 seq# 15972 mem# 1: +DATADG/zzbrac2/onlinelog/group_2.267.733863261
Wed Aug 29 02:06:16 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:16 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:16 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:16 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:16 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:16 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Wed Aug 29 02:06:17 2012
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Thread 1 advanced to log sequence 15973 (LGWR switch)
Current log# 7 seq# 15973 mem# 0: +DATADG/zzbrac2/onlinelog/group_7.660.791891943
Current log# 7 seq# 15973 mem# 1: +DATADG/zzbrac2/onlinelog/group_7.1693.791891943
Current log# 7 seq# 15973 mem# 0: +DATADG/zzbrac2/onlinelog/group_7.660.791891943
Current log# 7 seq# 15973 mem# 1: +DATADG/zzbrac2/onlinelog/group_7.1693.791891943
問題一:Global Enqueue Services Deadlock detected
這是由於應用導致,dump檔案中寫的很清楚,同時對一張表進行更新導致死索,已經聯絡開發來查詢問題。
問題二:AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
這個問題是,資料庫沒有在5s(預設)內提交審計記錄,系統將審計資訊寫在了adump檔案中。這個問題可能是由系統效能引起的,表示當時資料庫系統的壓力比較大,可以看到資訊在兩次日誌切換中間報出來的,說明當時日誌切換比較快系統壓力大,這可能和11g的系統自動清除任務相關。
這個問題是,資料庫沒有在5s(預設)內提交審計記錄,系統將審計資訊寫在了adump檔案中。這個問題可能是由系統效能引起的,表示當時資料庫系統的壓力比較大,可以看到資訊在兩次日誌切換中間報出來的,說明當時日誌切換比較快系統壓力大,這可能和11g的系統自動清除任務相關。
解決辦法:增加預設提交時間或關閉審計
MOS上的解決辦法如下:
Aud: Audit Commit Delay Exceeded, Written A Copy To Os Audit Trail [ID 788530.1]
--------------------------------------------------------------------------------
修改時間:2012-6-12型別:PROBLEM狀態:PUBLISHED優先順序:3 註釋 (0)
In this Document
Symptoms
Changes
Cause
Solution
References
Changes
Cause
Solution
References
--------------------------------------------------------------------------------
Applies to:
Oracle Server - Enterprise Edition - Version 10.2.0.3 to 11.2.0.1 [Release 10.2 to 11.2]
Information in this document applies to any platform.
Checked for relevance on 17-Sep-2011
Oracle Server - Enterprise Edition - Version 10.2.0.3 to 11.2.0.1 [Release 10.2 to 11.2]
Information in this document applies to any platform.
Checked for relevance on 17-Sep-2011
Symptoms
You see the following messages appear in your alert.log:
You see the following messages appear in your alert.log:
AUD: Audit Commit Delay exceeded, written a copy to OS Audit Trail
Changes
You have applied the Audit Cleanup Patch or any superceding patch as referenced from note 731908.1.
Changes
You have applied the Audit Cleanup Patch or any superceding patch as referenced from note 731908.1.
Cause
This is a change that was introduced within the audit functionality to support Audit Vault, these messages can appear in your alert.log occasionally even if this database is not a source of Audit Vault, the reason is as follows:
This is a change that was introduced within the audit functionality to support Audit Vault, these messages can appear in your alert.log occasionally even if this database is not a source of Audit Vault, the reason is as follows:
The database will guarantee that the transaction writing the audit record will commit within a pre-defined maximum allowed interval which is called the Audit Commit Delay interval. If the transaction takes more than Audit Commit Delay to commit the audit record, the Database will write the same record to the OS audit trail. This is a fallback mechanism to make sure there's always written evidence of an audited action within the defined timeframe, a such it is a feature to enhance audit security. The commit delay is fixed at 5 seconds and cannot be tuned.
Solution
The problem is happening because the audit functionality was not able to commit an audit record within 5 seconds, this means at the time the message was written to the alert.log your database was under stress. The cause of the problem is not the auditing layer and the messages seen in the alert.log are only showing that the auditing is suffering because of the generic performance problems of the environment which might affect other components as well.
The problem is happening because the audit functionality was not able to commit an audit record within 5 seconds, this means at the time the message was written to the alert.log your database was under stress. The cause of the problem is not the auditing layer and the messages seen in the alert.log are only showing that the auditing is suffering because of the generic performance problems of the environment which might affect other components as well.
These messages are purely informational and no direct action can or should be taken to avoid them. This is most likely because of a resource problem on your database. If this is seen incidental you can ignore it but if these messages are seen regularly you will likely have a resource problem and also seeing other symptoms of that, you should analyze and solve the generic performance problem first and then these messages will also go away.
Update: the fix to unpublished bug 8642202 changes the behaviour as follows:
Audit Commit Delay increased to 15 seconds and enforced only when AUD$ is initialized for cleanup.
So if you have the fix to Bug 8642202, the delay will be increased to 15 seconds and if you still get these messages and you don't want them and you are not using package DBMS_AUDIT_MGMT for cleanup, you can now disable this security feature by calling:
set serveroutput on
begin
if dbms_audit_mgmt.IS_CLEANUP_INITIALIZED(
audit_trail_type => DBMS_AUDIT_MGMT.AUDIT_TRAIL_AUD_STD) then
dbms_audit_mgmt.DEINIT_CLEANUP(
audit_trail_type => DBMS_AUDIT_MGMT.AUDIT_TRAIL_AUD_STD);
dbms_output.put_line('DEINIT_CLEANUP for AUDIT_TRAIL_AUD_STD');
end if;
end;
/
This may alleviate the problem in some cases but there can still be an underlying performance problem.
begin
if dbms_audit_mgmt.IS_CLEANUP_INITIALIZED(
audit_trail_type => DBMS_AUDIT_MGMT.AUDIT_TRAIL_AUD_STD) then
dbms_audit_mgmt.DEINIT_CLEANUP(
audit_trail_type => DBMS_AUDIT_MGMT.AUDIT_TRAIL_AUD_STD);
dbms_output.put_line('DEINIT_CLEANUP for AUDIT_TRAIL_AUD_STD');
end if;
end;
/
This may alleviate the problem in some cases but there can still be an underlying performance problem.
Bug 8642202 is fixed in patchset 10.2.0.5, PSU 11.2.0.1.1 and patchset 11.2.0.2 and future releases.
Merge patches that include this fix:
11.1.0.7: Patch 9821987
On Windows this is fixed in 11.1.0.7 patch bundle 40 and higher, see Note 161549.1 for more info.
References
@ BUG:8642202 - LX64: TOO MANY AUDIT FILES GENERATED, 500,000 AUD FILES AFTER 2 DAYS
NOTE:161549.1 - Oracle Database, Networking and Grid Agent Patches for Microsoft Platforms
NOTE:731908.1 - New Feature DBMS_AUDIT_MGMT To Manage And Purge Audit Information
NOTE:8642202.8 - Bug 8642202 - Lots of audit files due to "Audit Commit Delay exceeded"
@ BUG:8642202 - LX64: TOO MANY AUDIT FILES GENERATED, 500,000 AUD FILES AFTER 2 DAYS
NOTE:161549.1 - Oracle Database, Networking and Grid Agent Patches for Microsoft Platforms
NOTE:731908.1 - New Feature DBMS_AUDIT_MGMT To Manage And Purge Audit Information
NOTE:8642202.8 - Bug 8642202 - Lots of audit files due to "Audit Commit Delay exceeded"
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27042095/viewspace-1094335/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Database Audit and Audit trail purgingDatabaseAI
- audit_trail與extended!AI
- Script to Show Audit Options/Audit Trail (Doc ID 1019552.6)AI
- FGA審計及audit_trail引數AI
- ORACLE初始化引數:AUDIT_TRAILOracleAI
- AUDIT_TRAIL設定及審計日誌清理AI
- ORA-09925: Unable to create audit trail file彙總AI
- Oracle案例01——ORA-09925: Unable to create audit trail fileOracleAI
- Oracle中審計引數audit_trail的討論(轉)OracleAI
- FN_AUDIT - Name of security audit file
- 10g初始化引數AUDIT_TRAIL變化(二)AI
- 10g初始化引數AUDIT_TRAIL變化(一)AI
- 管理AUDIT_TRAIL初始化引數配置標準審計AI
- Camstar MDB setfieldex 修改建模欄位不記錄Audit TrailAI
- ORACLE AUDITOracle
- RHEL審計內容/etc/audit/audit.rules
- audit by user by table
- Oracle Audit setupOracle
- audit審計
- oracle audit and securityOracle
- 審計--audit
- mysql-auditMySql
- mysqlalchemy audit extensionMySql
- oracle10g_audit_solaris_利用audit_sys_operationsOracle
- [20140529]11g下引數audit_trail的修改.txtAI
- ORALCE 的AUDIT 以及開啟AUDIT對REDO 的影響
- MySQL審計auditMySql
- AUDIT審計(2)
- Oracle 審計 auditOracle
- oracle 審計(Audit)Oracle
- Audit Vault and Database VaultDatabase
- SQL Server 審計(Audit)SQLServer
- ORACLE AUDIT審計(1)Oracle
- SAP Security Audit log size
- [20230403]學習UNIFIED audit--驗證清理AUDSYS.AUD$UNIFIED.txtNifi
- [20230301]學習UNIFIED audit-整理AUDSYS.AUD$UNIFIED.txtNifi
- [20230303]學習UNIFIED audit--定期清理AUDSYS.AUD$UNIFIED.txtNifi
- 使用sqlplus連線資料庫報ORA-09925: Unable to create audit trail fileSQL資料庫AI