Results 1 to 6 of 6

Thread: Auditing procedure in oracle10g

  1. #1
    Join Date
    Jan 2010
    Posts
    52

    Auditing procedure in oracle10g

    Hi all,

    I need to know about the auditing procedure for oracle database and tell me.How this information would be helpful to manage my database and how many portions where I can apply this procedure to find out the result.I heard more about but didn't use this utility ever.Is it co-related to the dynamic views of database.

    Thanks and regards
    G.Williams

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    Server Setup for Auditing in oracle10g

    Server Setup for Auditing :

    The auditing is an default behavior of the database.You can view all current settings for the database to execute the following parameter.

    SQL> SHOW PARAMETER AUDIT;

    The audit_trail parameter shows the current status as NONEwhen auditing is disabled which is default behavior of database.

    AUDIT_TRAIL = { none | os | db | db,extended | xml | xml,extended }

    There are six values are shown above that you can set to change the behavior of Auditing.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Auditing options in oracle10g

    Auditing options :

    To perform auditing,you have to create a new user for only auditing purpose.

    SQL> CONNECT sys/password AS SYSDBA

    SQL> CREATE USER Audit_man IDENTIFIED BY password
    DEFAULT TABLESPACE users
    TEMPORARY TABLESPACE temp
    QUOTA UNLIMITED ON users;
    SQL> GRANT connect TO audit_test;
    SQL> GRANT create table, create procedure TO audit_test;



    Now,we can perform the audit operations using Audit_name user :

    Code:
    SQL> CONNECT sys/password AS SYSDBA
    
    SQL> AUDIT ALL BY audit_test BY ACCESS;
    SQL> AUDIT SELECT TABLE, UPDATE TABLE, INSERT TABLE, 
                                     DELETE TABLE BY audit_test BY ACCESS;
    SQL> AUDIT EXECUTE PROCEDURE BY audit_test BY ACCESS;

  4. #4
    Join Date
    Jan 2008
    Posts
    1,521

    Displaying Audit Trail in oracle10g

    Displaying Audit Trail :

    You can view the generated audit trails which is stored in SYS.AUD$ table.You can view through this or you can use these views to get information in more simplified format :

    Code:
    SELECT view_name
    FROM   dba_views
    WHERE  view_name LIKE 'DBA%AUDIT%'
    ORDER BY view_name;
    This view will represent the different views which can be used to step forward for more auditing operations.

  5. #5
    Join Date
    Apr 2008
    Posts
    1,948

    Fine Grained Auditing (FGA) in oracle10g

    Fine Grained Auditing (FGA) :

    The Fine grained auditing is not controlled by the database,it is user controlled auditing.It performs the auditing actions based on user-defined predicates. It doesn't follow the parameter AUDIT_TRAIL and store the audit record into FGA_LOG$ table.

    Using fine grained auditing :

    create a table and get connect with audit_man user :

    SQL> CONN audit_man/password


    SQL> INSERT INTO emp (empno, ename, sal) VALUES (9999, 'Tim', 1);
    SQL> INSERT INTO emp (empno, ename, sal) VALUES (9999, 'Larry', 50001);
    SQL> COMMIT;

    queries on the salary column :

    SQL> CONN sys/password AS sysdba

    BEGIN
    DBMS_FGA.add_policy(
    object_schema => 'AUDIT_TEST',
    object_name => 'EMP',
    policy_name => 'SALARY_CHK_AUDIT',
    audit_condition => 'SAL > 50000',
    audit_column => 'SAL');
    END;

  6. #6
    Join Date
    May 2008
    Posts
    2,012

    Auditing Administrative Users in oracle10g

    Auditing Administrative Users :

    The session which is connected as a SYS can also be audited.You can make it enable and disable it using the following parameter :


    AUDIT_SYS_OPERATIONS = TRUE


    If your audit trail is specified as XML then your audit trail would be recorded in specific location.If AUDIT_FILE_DEST parameter is not specified with any value then the default location would be $ORACLE_BASE/admin/$DB_UNIQUE_NAME/adumpYou can specify different location to to change the values.

Similar Threads

  1. Auditing users on Active Directory server
    By poke147 in forum Active Directory
    Replies: 3
    Last Post: 09-09-2014, 05:19 PM
  2. Auditing Group Policy Changes
    By Kishan in forum Active Directory
    Replies: 2
    Last Post: 26-04-2012, 06:06 AM
  3. How to use Auditing to Track Deleted Files on Windows Server
    By fumble in forum Guides & Tutorials
    Replies: 1
    Last Post: 13-01-2012, 01:19 PM
  4. Replies: 2
    Last Post: 26-01-2010, 07:50 PM
  5. Enable Auditing Server 2008
    By aconti in forum Active Directory
    Replies: 4
    Last Post: 21-10-2009, 11:23 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,717,473,142.28439 seconds with 16 queries