Database auditing

30 pts.
Tags:
Oracle
Oracle Database
Oracle development
Oracle error messages
Hi everybody? I do have a shema named PRACTICE with its own table named EMPLOYEES. The table has fields: empid,fname,sex and age. Their data types are varchar2,varchar2,varchar2 and number respectively. The fields also held values LA,Lensa,F and 21 respectively. Being on the sys schema, I defined a policy for auditing purpose as follow. begin dbms_fga.add_policy     (

          object_schema =>'PRACTICE',

          object_name =>'EMPLOYEES',

          policy_name =>'AUD_EMP',           audit_column =>'EMPID',             audit_condition =>'EMPID=LA',             statement_types =>'UPDATE'       ); end; / When I tried to execute a statement- update employees set fname='Girma' where empid='LA', I got the following error message: ERROR at line 1: ORA-28138: Error in Policy Predicate. Please help me, I am waiting for your help. Thanks!

Software/Hardware used:
software
ASKED: May 25, 2010  12:44 PM
UPDATED: May 25, 2010  4:05 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

I guess the error is here:

<pre>audit_condition =>’EMPID=LA’, </pre>

which should be:

<pre>audit_condition =>’EMPID=”LA”’, </pre>

As ‘LA’ is a string literal (not a column name) it needs to be enclosed in single quotation marks (escaped).

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following