Fine-Grained Auditing test (精細審計:FGA測試)
1.create table and insert data
SQL> create table TEST
2 (
3 X NUMBER,
4 Y NUMBER
5 )
6 /
Table created
SQL> insert into test values(1,1);
1 row inserted
SQL> commit;
Commit complete
2.Creating an FGA Policy(disabled)
SQL> exec DBMS_FGA.ADD_POLICY(object_schema=>'LPPMTEST' ,object_name=>'TEST' ,policy_name=>'TEST_AUD' ,audit_column=>'X, Y' ,enable=>FALSE ,statement_types=>'UPDATE');
PL/SQL procedure successfully completed
3.Enabling an FGA Policy
SQL> exec DBMS_FGA.ENABLE_POLICY(object_schema=>'LPPMTEST' ,object_name=>'TEST' ,policy_name=>'TEST_AUD');
PL/SQL procedure successfully completed
4.execute update
SQL> update test set x=2,y=3;
1 row updated
SQL> commit;
Commit complete
5.grant privilege
SQL> conn sys/** as sysdba
Connected.
SQL> grant select on Dba_Fga_Audit_Trail to lppmtest;
Grant succeeded.
6.Reporting on the FGA Audit Trail Entries
SQL> SELECT session_id,TIMESTAMP,db_user,os_user,userhost,sql_text FROM Dba_Fga_Audit_Trail;
SESSION_ID TIMESTAMP DB_USER OS_USER USERHOST SQL_TEXT
---------- ----------- ------------------------------ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- --------------------------------------------------------------------------------
16202785 2007-11-6 1 LPPMTEST H2 WORKGROUPJACKY
update test set x=2,y=3
7.Disabling an FGA Policy
SQL> exec DBMS_FGA.DISABLE_POLICY(object_schema=>'LPPMTEST' ,object_name=>'TEST' ,policy_name=>'TEST_AUD');
PL/SQL procedure successfully completed
8.Dropping an FGA Policy
SQL> EXEC DBMS_FGA.DROP_POLICY(object_schema=>'LPPMTEST' ,object_name=>'TEST' ,policy_name=>'TEST_AUD');
PL/SQL procedure successfully completed
SQL>
本文來自CSDN部落格,轉載請標明出處:http://blog.csdn.net/zhpsam109/archive/2007/11/06/1869912.aspx
[@more@]來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8337095/viewspace-1033403/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle 細粒度審計(fga)Oracle
- 【FGA】將FGA細粒度審計功能的審計結果記錄在資料庫中資料庫
- 【FGA】將FGA細粒度審計功能的審計結果記錄在XML檔案中XML
- Fine Grained Auditing (FGA)AI
- Fine-grainedauditing(FGA) 細粒度審計AI
- 細粒度審計FGA儲存過程含義儲存過程
- Oracle FGA審計功能Oracle
- Oracle FGA細粒度審計——基於內容的資料庫審計(一)Oracle資料庫
- Oracle FGA細粒度審計——基於內容的資料庫審計(二)Oracle資料庫
- Oracle FGA細粒度審計——基於內容的資料庫審計(三)Oracle資料庫
- Kubernetes 審計(Auditing)
- Elasticsearch Auditing(es的審計功能)Elasticsearch
- oracle fga審計(欄位級)Oracle
- 利用Oracle FGA實現審計Oracle
- FGA審計及audit_trail引數AI
- Oracle 12c 統一審計(Unified Auditing)OracleNifi
- 基於值的審計(value-based auditing)
- 【FGA】擴充套件Oracle細粒度審計功能——呼叫定製的儲存過程套件Oracle儲存過程
- Oracle 審計和測試操作Oracle
- 【實驗】【審計】【FGA】使用Oracle的審計功能監控資料庫中的可疑操作Oracle資料庫
- webgoat白盒審計+漏洞測試WebGo
- IOT(Interoperability TEST)互操作測試
- oracle細粒度審計Oracle
- 功能測試之審批流測試
- 程式碼審計基礎--白盒測試
- oracle審計-細粒度(轉)Oracle
- Oracle Database標準審計和細粒度審計功能OracleDatabase
- Oracle OCP(52):細粒度審計Oracle
- 精準測試實踐
- go test 測試用例那些事(二) mockGoMock
- vue單元測試vue test utils使用初探Vue
- ABAP和Java的單元測試Unit TestJava
- Android 測試入門之---Monkey testAndroid
- Spring-test 單元測試使用示例Spring
- 滲透測試工具方法基礎程式碼審計篇
- 網路安全審計工具—Nmap!滲透測試入門
- oracle 10g 增強審計(二)----細粒度訪問審計Oracle 10g
- 軟體測試的需求評審