How To Move The DB Audit Trails To A New Tablespace
In this Document
Goal |
Fix |
References |
APPLIES TO:
Oracle Database - Enterprise Edition - Version 11.2.0.2 and laterInformation in this document applies to any platform.
***Checked for relevance on 20-FEB-2013***
GOAL
How to move the database audit trail tables( SYS.AUD$ & SYS.FGA_LOG$) to another tablespace using DBMS_AUDIT_MGMT?
FIX
1) Check the current tablespace of the audit trail tables:
SQL> SELECT table_name, tablespace_name FROM dba_tables
WHERE table_name IN ('AUD$', 'FGA_LOG$') ORDER BY table_name; 2
TABLE_NAME TABLESPACE_NAME
------------------------------ ------------------------------
AUD$ SYSAUX
FGA_LOG$ SYSAUX
2) Check the current size of two tables:
SEGMENT_NAME SIZE_IN_MEGABYTES
------------------- -----------------------------
AUD$ 12
FGA_LOG$ .0625
3) Create a new tablespace and make sure that it's size is large enough for the tables that will be moved:
Tablespace created.
4) Move the audit trail tables using procedure DBMS_AUDIT_MGMT.SET_AUDIT_TRAIL_LOCATION.
DBMS_AUDIT_MGMT.set_audit_trail_location(
audit_trail_type => DBMS_AUDIT_MGMT.AUDIT_TRAIL_AUD_STD,--this moves table AUD$
audit_trail_location_value => 'AUDIT_TBS');
END;
/
PL/SQL procedure successfully completed.
SQL> BEGIN
DBMS_AUDIT_MGMT.set_audit_trail_location(
audit_trail_type => DBMS_AUDIT_MGMT.AUDIT_TRAIL_FGA_STD,--this moves table FGA_LOG$
audit_trail_location_value => 'AUDIT_TBS');
END;
/
PL/SQL procedure successfully completed.
4) Check whether the tables were moved successfully:
WHERE table_name IN ('AUD$', 'FGA_LOG$') ORDER BY table_name;
TABLE_NAME TABLESPACE_NAME
----------------------- ------------------------------
AUD$ AUDIT_TBS
FGA_LOG$ AUDIT_TBS
NOTE :
=======
The requirement for the introduction of this package came from Audit Vault. Currently it is not supported to use the DBMS_AUDIT_MGMT package on a pre 11gR2(11.2.0.1) instance which is not an Audit Vault source database. Its features include the purge of audit records and can be used to move the audit tables AUD$ and FGA_LOG$ to another tablespace.
Audit Trails with dbms_audit_mgmt, which has been officially introduced/supported in Oracle 11g R2.
REFERENCES
NOTE:1299033.1 - Master Note For Oracle Database AuditingNOTE:731908.1 - New Feature DBMS_AUDIT_MGMT To Manage And Purge Audit Information
NOTE:804624.1 - Known Issues When Using: DBMS_AUDIT_MGMT
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20747382/viewspace-2130683/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- How to Move or Copy a Tablespace to Another Database (61)Database
- How to move Oracle Spatial objects from SYSAUX tablespace to a user defined tablespace [ID 1119758.1OracleObjectUX
- Oracle FGA 的使用和cleanup audit trailsOracleAI
- How To Move Datafiles On AIX Using Raw Logical Volumes To A New Location?AI
- 批量move tablespace 指令碼範例指令碼
- How to move progress database to different OSDatabase
- 表及索引 move tablespace 常用指令碼索引指令碼
- How to audit failed logon attemptsAIGo
- 關於move tablespace的問題總結
- db2 sms tablespace 不支援large tablespaceDB2
- How To Restore 12cR1DB to New Host File System using RMAN(一)REST
- how to move a MediaWiki wiki from one server to anotherServer
- How to Rename Tablespace In Oracle10gOracle
- Move aud$和fga_log$資料到其它Tablespace
- How to move ASM database files from one diskgroup to anotherASMDatabase
- 【Oracle】How to Rename or Move Datafiles and Logfiles 之二Oracle
- 【Oracle】How to Rename or Move Datafiles and Logfiles 之一Oracle
- How to Add a New Disk new partition in centos7CentOS
- db2move和幾個常用的db2命令DB2
- How to Brainstorm New IdeasAIORMIdea
- How to Configure a New Plant in SAP?
- 話說 Oracle Audit Vault 和Oracle DB VaultOracle
- How to Move/Recreate GI Management Repository to Different Shared Storage
- How to move ASM spfile to a different disk group [ID 1082943.1]ASM
- move tablespace: ORA-07445:exception encountered: core dump [qcdlgtd()+182]Exception
- DB2 Load造成tablespace pendingDB2
- How To Recreate A Database Using TTS (Transportable TableSpace) [ID 733824.1]DatabaseTTS
- Oracle10g New Feature -- 8. Tablespace ManagementOracle
- DB2 ADMIN_MOVE_TABLE 表移動DB2
- How to Move a Database Using Transportable Tablespaces (文件 ID 1493809.1)Database
- Oracle10g New Feature -- 5.Temporary Tablespace GroupOracle
- How To Generate A New Master Encryption Key for the TDE_445147.1AST
- How to Move Tablespaces Across Platforms Using Transportable Tablespaces With RMAN [ID 371556.1]ROSPlatform
- How to change the APPS db password in Oracle EBSAPPOracle
- ASM 11g New Features - How ASM Disk Resync WorksASM
- DB2 V10 LUW new featuresDB2
- Database Audit and Audit trail purgingDatabaseAI
- 使用db2 load from時導致DB的tablespace置成backup pending狀態DB2