Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: dbms_fga.add_policy
IPower wrote:
> dbms_fga.add_policy
>
> Hi I am trying to implement fga on a schema using Oracle 10g. I am
> trying to set the policy on the persons table and setting audit_column
> to a couple particular columns(See example below). There is a column
> in my persons table called "alias2". I am not sure why but when I set
> the policy including this column my policy fires even when I do the
> following query:
>
> select workphone from persons.
Calculated statistics for the table?
Fine Grained Auditing relies on the cost-based optimiser, so the lack of statistics means the policy is for ever firing, even when it shouldn't.
Regards
HJR
>
> When I remove alias2 and run the same select statement the fga policy
> does not fire as expected. I have check to see if the column alias2 is
> spelled wrong etc and everything is fine. Does anyone have a reason
> why the fga is fired when I run the select statement when audit_column
> included alias2? I thought maybe because the column had a number and I
> tested this using another column street2 and it works as expected.
>
> EXAMPLE
> begin
> dbms_fga.add_policy(
> object_schema=>'TEST',
> object_name=> 'PERSONS',
> policy_name=> 'PERSONS_POLICY',
> handler_schema => 'TEST',
> handler_module => 'CAPTURE_FGA',
> audit_column =>'name, pid, alias2, workphone',
> statement_types => 'SELECT, INSERT, DELETE, UPDATE',
> enable => true);
> end;
>
> Thanks for your help.
> IP
Received on Fri Oct 15 2004 - 18:39:21 CDT