oracle对某表进行审计,观察对这个表的增删改查等sql操作

/*--添加
begin
 dbms_fga.add_policy(object_name => 'ZWPZK2019',policy_name => 'PCY_ZWPZK2019',statement_types => 'SELECT,INSERT,UPDATE,DELETE');
end;

--delete
begin
 dbms_fga.drop_policy(object_name => 'ZWPZK2019',policy_name => 'PCY_ZWPZK2019');
end;*/


/*--添加
begin
 dbms_fga.add_policy(object_name => '表名',policy_name => 'PCY_表名',statement_types => '审计类型');
end;

--delete
begin
 dbms_fga.drop_policy(object_name => '表名',policy_name => 'PCY_表名');
end;*/

--查询审批结果
select * from dba_fga_audit_trail;

你可能感兴趣的:(ORACLE)