Auditing Oracle 11g [message #661691] |
Tue, 28 March 2017 05:14 |
|
Hi,
Can we disable Audit_trail parameter from pfile in our database, as our SYSTEM tablespace size is increasing day by day.
Now our main concern is,
1. Can we resize SYSTEM tablespace? or
2. Is it possible to add a new datafile to the SYSTEM tablespace? Currently it has a single datafile.
3. Is it recommended to turn off the audit trail by using AUDIT_TRAIL=NONE in pfile
Your valuable advise and guidance in this regard is highly appreciated.
-Aijaz
|
|
|
|
|
Re: Auditing Oracle 11g [message #661696 is a reply to message #661692] |
Tue, 28 March 2017 07:11 |
Bill B
Messages: 1971 Registered: December 2004
|
Senior Member |
|
|
You should not have the SYS.AUD$ table in the SYSTEM tablespace. Personally I have done the following. This will only work in version 11 and above and you will (of course) use your own path for the new tablespace
CREATE TABLESPACE AUDIT_TS DATAFILE
'C:\APP\ORACLE12C\ORADATA\WHB\PLB_ORCL\AUDIT01.DBF' SIZE 5M AUTOEXTEND ON NEXT 1280K MAXSIZE UNLIMITED
LOGGING
DEFAULT
NO INMEMORY
ONLINE
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
BLOCKSIZE 8K
SEGMENT SPACE MANAGEMENT AUTO
FLASHBACK ON;
Then move the aud$ table with the following command
exec DBMS_AUDIT_MGMT.SET_AUDIT_TRAIL_LOCATION(audit_trail_type => DBMS_AUDIT_MGMT.AUDIT_TRAIL_AUD_STD,audit_trail_location_value => 'AUDIT_TS');
Thats it, your audit table is now in a different tablespace which you can shrink or anything else you want to do.
|
|
|
Re: Auditing Oracle 11g [message #661697 is a reply to message #661695] |
Tue, 28 March 2017 09:28 |
gazzag
Messages: 1119 Registered: November 2010 Location: Bedwas, UK
|
Senior Member |
|
|
EdStevens wrote on Tue, 28 March 2017 13:00You can resize the SYSTEM TS, but it will require down time.
That's not the case for extending or adding a data file.
|
|
|
Re: Auditing Oracle 11g [message #661698 is a reply to message #661697] |
Tue, 28 March 2017 09:30 |
Bill B
Messages: 1971 Registered: December 2004
|
Senior Member |
|
|
If you use the SYSTEM tablespace for auditing you will cause fragmentation and your database will run slower. the SYSTEM tablespace if for the use of the database and nothing else. The auditing is a special case and ORACLE should automatically move it to another tablespace if it is turned on but they don't.
[Updated on: Tue, 28 March 2017 09:31] Report message to a moderator
|
|
|