Professional Documents
Culture Documents
Advertisements
REP ORT T H I S AD
SYSAUX tablespace in Oracle database is going to full, on checking we found that AUDSYS schema is consuming lot of space in it.
On checking we found unified auditing is used the AUDSYS schema. So, we tried to fixed it by disable the default audit policy. Default unified audit policy make
data despite the value of audit_trail parameter.
Note: We are thinking that AWR or stats are consuming more space on SYSAUX tablespace. So we can check it with AWRINFO.sql script
You can check it with awrinfo.sql utility present in $ORACLE_HOME\rdbms\admin\awrinfo.sql.
Please find the example report:AWRINFO.DOC
https://smarttechways.com/2018/07/23/sysaux-tablespace-full-with-audsys-objects-in-oracle-database/ 1/5
1/29/2019 SYSAUX tablespace full with AUDSYS objects in Oracle database | Smart way of Technology
from dba_segments
BEGIN
DBMS_AUDIT_MGMT.CLEAN_AUDIT_TRAIL(
AUDIT_TRAIL_TYPE => DBMS_AUDIT_MGMT.AUDIT_TRAIL_UNIFIED,
END;
/
--Example 1. You can specify the data keep of last 15 days data as follows:
https://smarttechways.com/2018/07/23/sysaux-tablespace-full-with-audsys-objects-in-oracle-database/ 2/5
1/29/2019 SYSAUX tablespace full with AUDSYS objects in Oracle database | Smart way of Technology
BEGIN
DBMS_AUDIT_MGMT.set_last_archive_timestamp(
audit_trail_type => DBMS_AUDIT_MGMT.audit_trail_unified,
END;
/
--Check the date upto which it clean the data with following view:
COLUMN audit_trail FORMAT A20
COLUMN last_archive_ts FORMAT A40
SELECT audit_trail, last_archive_ts FROM dba_audit_mgmt_last_arch_ts;
AUDIT_TRAIL LAST_ARCHIVE_TS
------------------- -----------------------------------
UNIFIED AUDIT TRAIL 18-JUL-18 02.26.17.000000 AM +00:00
--Example 2. You can specify the data and time upto which you keep data as follows:
BEGIN
DBMS_AUDIT_MGMT.SET_LAST_ARCHIVE_TIMESTAMP(audit_trail_type => DBMS_AUDIT_MGMT.AUDIT_TRAIL_OS,last_archive_time => TO_TIMESTAMP('10-SEP-
0714:10:10.0','DD-MON-RRHH24:MI:SS.FF'));
END;
/
-- Start the clean job by using last time stamp defined as TRUE value in upper both example.
BEGIN
DBMS_AUDIT_MGMT.CLEAN_AUDIT_TRAIL(
https://smarttechways.com/2018/07/23/sysaux-tablespace-full-with-audsys-objects-in-oracle-database/ 3/5
1/29/2019 SYSAUX tablespace full with AUDSYS objects in Oracle database | Smart way of Technology
exec DBMS_AUDIT_MGMT.FLUSH_UNIFIED_AUDIT_TRAIL;
sqlplus / as sysdba
BEGIN
DBMS_AUDIT_MGMT.CLEAN_AUDIT_TRAIL(
audit_trail_type => DBMS_AUDIT_MGMT.AUDIT_TRAIL_UNIFIED,
use_last_arch_timestamp => FALSE);
END;
/
https://smarttechways.com/2018/07/23/sysaux-tablespace-full-with-audsys-objects-in-oracle-database/ 4/5
1/29/2019 SYSAUX tablespace full with AUDSYS objects in Oracle database | Smart way of Technology
COUNT(*)
----------
Adv ertisements
This entry was posted in Oracle and tagged AUDSYS objects is full, DBMS_AUDIT_MGMT, Disable the default unified policy, Example of clean unified audit,
SYSAUX space crunch on July 23, 2018 [https://smarttechways.com/2018/07/23/sysaux-tablespace-full-with-audsys-objects-in-oracle-database/] .
This site uses Akismet to reduce spam. Learn how your comment data is processed.
https://smarttechways.com/2018/07/23/sysaux-tablespace-full-with-audsys-objects-in-oracle-database/ 5/5