關於Oracle審計(audit)

來源:互聯網
上載者:User

Oracle審計可以查詢到某個使用者對DB做了哪些操作,10g後,可以查詢到具體的sql語句,很有用。

審計功能開戶的整個過程:

1.show parameter audit,可以查詢到audit_trail的值,取值包括{none | os | db | db,extended | xml | xml,extended }

2.alter system set audit_trail=DB scope=spfile;

執行以上操作後,重新啟動資料庫。

3.audit table,指對使用者建立表,truncate,drop表操作動作進行記錄。

注意:10g後(包括)後,dba_audit_trail.sql_text記錄了具體的sql語句,可以查看,並且audit_trail必須=db_extended或db,extended,否則不能看到audit.

4.審計分為:

statement,object,privilege,network

5,取消,noaudit

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.