Results 1 to 2 of 2
  1. #1
    Join Date
    May 2010
    Posts
    1

    Unanswered: dba_fga_audit_trail

    hi everybody. i am using an oracle 10g database server. i am trying to implement auditing which is really important to my system. for that i have defined an FGA policy. i have a table 'owner' and a schema 'registrar'. the table has fields ID number, NAME varchar2(40), ISAPPROVED varchar2(10). The policy works fine for SQL statements. here is the policy
    begin dbms_fga.add_policy(
    object_schema=>'REGISTRAR',
    object_name=>'OWNER',
    policy_name=>'APP_OWNER',
    audit_column=>'ISAPPROVED',
    audit_condition=>'ISAPPROVED=''TRUE'''
    );
    END;
    /
    this executes perfectly and i have tried executing sql statements.
    update owner set name='john' where id=8 and isapproved='true';
    1 row updated.
    when i execute select sql_text from dba_fga_audit_trail
    it displays the sql statement i have executed above.
    but when i do that using a stored procedure and select sql_text from dba_fga_audit_trail it displays the sql text with bind variables. Like the one below
    UPDATE OWNER SET NAME=:B2 WHERE OWNER.ID=:B1 AND OWNER.ISAPPROVED=:B3
    i don't know why this is happening. please help!!

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    spammer NUKE this LUSER
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

Posting Permissions

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