DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: how to enable/disable auditing

  1. #1
    Join Date
    Jul 2000
    Posts
    70
    How do I check whether I have auditing enabled on my system tablespace.
    And how do I enable/disable it?
    My system tablespace is for some odd reason running out of space and I need to find out the cause.
    Any suggestions would help.
    Thanks.

  2. #2
    Join Date
    Feb 2001
    Posts
    17
    Hi,

    Regarding auditing commands, I feel you can go through the auditing documentation on oracle site.Generally your dba_audit_object view gets populated with records if auditding is enabled on any of your tables.The sys.aud$ stores the actual audit records.It must be periodically monitored and truncated or else your system tablespace will become full.

    You may also check whether any user is having his default or temporary tablespace set to system.Whether any public rollback segments are created and are being used in the system tablespace.
    Ramki

  3. #3
    Join Date
    Feb 2000
    Location
    Washington DC
    Posts
    1,843
    1.Turn on the Audit by setting init.ora parm AUDIT_TRIAL=TRUE
    2. Run cataudit.sql
    3. Run your custom_audit.sql(which has the action list to be audited)
    4. Purge the audit on oeriodic basis after backing up the audit report files( Depending up on the requirement)


    [Edited by sreddy on 03-03-2001 at 07:28 PM]
    Reddy,Sam

  4. #4
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    just want to clear some stuff
    You can enable audit trail at database level or os level, I guess you are interested in db level so in your init.ora set

    audit_trail=db by default this is set to none

    you dont really need to run cataudit.sql because when you run catalog.sql cataudit.sql is executed inside catalog.sql so all views should have been created already

    Now there are three levels of audit option, first is statement then privilege and finally object level. To understand these further I suggest you to read Oracle documentation

    /doc/server.816/a76989/ch4d10.htm#5602

    And audit does not records the values being inserted/updated/deleted. Only the operation is recorded.
    Remember truncate AUD$ every week or so since it's a table where all audit is stored and it resides in tablespace system and that's why it's recomendable to truncate it (avoid system tablespace growth). It's the only system table that can be "touched" (truncate delete etc)

    HTH

  5. #5
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    [QUOTE][i]Originally posted by pando [/i]
    [B]Remember truncate AUD$ every week or so since it's a table where all audit is stored and it resides in tablespace system and that's why it's recomendable to truncate it (avoid system tablespace growth). It's the only system table that can be "touched" (truncate delete etc)
    HTH [/B][/QUOTE]
    BTW, AUD$ is also the only SYS table that is "officially" allowed to be moved out of SYSTEM tablespace into some other tablespace (togeteher with its index).
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width