Implementing Fine Grained Audit

conn / as sysdba
create user zekeriya identified by oracle;
grant session,resource to zekeriya;
grant execute on dbms_session to zekeriya;
grant execute on dbms_fga to zekeriya;

conn zekeriya/oracle

create table kullanici (schema varchar2(20), name varchar2(30), policyname varchar2(30));

create procedure log (p_schema varchar2, p_name varchar2, p_policyname varchar2)
insert into kullanici

( object_schema =>’hr’
object_name =>’employees’
policy_name =>policyismi
audit_condition =>null
audit_column =>salary
handler_schema =>’zekeriya’
handler_module => ‘log’
enable =>true);

now connect yeniuser/password

select salary from hr.employees;

conn zekeriya/oracle
select * from dba_fga_audit_trail;
you can see yeniuser

select * from kullanici
you can see record

also you can see all policy
select * from dba_audit_policy;

About oracledocuments

Zekeriya Beşiroğlu, It joined the Bilginc IT Academy in July 2000. In the meantime, the Oracle Education, Oracle Data Base Management System and Oracle Internet Technologies, Oracle development technologies such as the training of Oracle products is responsible for training as consultants. During this task, since 1 April 2008 with 293 Oracle training in total, in 2150 Oracle customers successfully submitted. Oracle 10g New York in November 2002 have received training and education in Turkey was the first time the consultants. 20 April 2008 on education in Turkey 11g is the first who was a consultant. Oracle Real Application Cluster Expert advisor is certified is the first . Http:// and Http:// owner and manager of the site. Its own has more than one hundred articles. In addition, creation and improvement of training materials are also related to work. Oracle products are used, database management and reporting Academy eruditely It also is working on. From the date of 1 January 2009 will continue to work as the Technical Director
This entry was posted in fine grained audit. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s