dbTalk Databases Forums  

Oracle 10g Auditing

comp.databases.oracle.server comp.databases.oracle.server


Discuss Oracle 10g Auditing in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
indytoatl
 
Posts: n/a

Default Oracle 10g Auditing - 08-01-2011 , 09:28 AM






I'm running Oracle 10g with FGA to OS file. How can I limit the file
size to 1gig? The command below does not work with 10g but it works
fine with 11g.


-- Set the Maximum size of OS audit files to 15,000Kb.
BEGIN
DBMS_AUDIT_MGMT.set_audit_trail_property(
audit_trail_type => DBMS_AUDIT_MGMT.AUDIT_TRAIL_OS,
audit_trail_property => DBMS_AUDIT_MGMT.OS_FILE_MAX_SIZE,
audit_trail_property_value => 15000);
END;
/

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi

Reply With Quote
  #2  
Old   
Mark D Powell
 
Posts: n/a

Default Re: Oracle 10g Auditing - 08-02-2011 , 09:00 AM






On Aug 1, 10:28*am, indytoatl <indyto... (AT) gmail (DOT) com> wrote:
Quote:
I'm running Oracle 10g with FGA to OS file. How can I limit the file
size to 1gig? The command below does not work with 10g but it works
fine with 11g.

-- Set the Maximum size of OS audit files to 15,000Kb.
BEGIN
* DBMS_AUDIT_MGMT.set_audit_trail_property(
* * audit_trail_type * * * * * => DBMS_AUDIT_MGMT.AUDIT_TRAIL_OS,
* * audit_trail_property * * * => DBMS_AUDIT_MGMT.OS_FILE_MAX_SIZE,
* * audit_trail_property_value => 15000);
END;
/

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
Having always kept my audit trail in the database I am unaware of any
way to limit the OS file size on 10g. What effect does purging the
audit trail have on the OS file?

HTH -- Mark D Powell --

Reply With Quote
  #3  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: Oracle 10g Auditing - 08-02-2011 , 09:12 AM



On Mon, 01 Aug 2011 07:28:57 -0700, indytoatl wrote:

Quote:
I'm running Oracle 10g with FGA to OS file. How can I limit the file
size to 1gig? The command below does not work with 10g but it works fine
with 11g.
On Linux there is something called "logrotate" which can do just that.



--
http://mgogala.byethost5.com

Reply With Quote
  #4  
Old   
ddf
 
Posts: n/a

Default Re: Oracle 10g Auditing - 08-03-2011 , 05:46 PM



Comments embedded.

On Aug 1, 7:28*am, indytoatl <indyto... (AT) gmail (DOT) com> wrote:
Quote:
I'm running Oracle 10g with FGA to OS file. How can I limit the file
size to 1gig?
You really don't want to do that in 10g as statements will fail when
the audit file fills to capacity:

http://download.oracle.com/docs/cd/B...g.htm#DBSEG525

11g offers the option to limit a single audit file to a certain size
at which time a new audit log is created:

http://download.oracle.com/docs/cd/E...htm#ARPLS65396

Quote:
The command below does not work with 10g but it works
fine with 11g.

That's because the DBMS_AUDIT_MGMT package does not exist in 10g.

Quote:
-- Set the Maximum size of OS audit files to 15,000Kb.
BEGIN
* DBMS_AUDIT_MGMT.set_audit_trail_property(
* * audit_trail_type * * * * * => DBMS_AUDIT_MGMT.AUDIT_TRAIL_OS,
* * audit_trail_property * * * => DBMS_AUDIT_MGMT.OS_FILE_MAX_SIZE,
* * audit_trail_property_value => 15000);
END;
/

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi


David Fitzjarrell

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.