audit_sys_operations引數

liujinwei633發表於2009-03-13
這兩天在看有關審計的東西。以前一直沒用到。
audit_sys_operations引數為false時,系統只以os檔案記錄sysdba身份的登入、開關資料庫的操作。
win的記錄在事件檢視器中看。linux的記錄在audit_file_dest引數中
SQL> show parameter audit;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
audit_file_dest                      string      /ora/app/ora10g/10.2/admin/ictc/adump
audit_sys_operations                 boolean     TRUE
audit_syslog_level                   string
audit_trail                          string      DB

audit_sys_operations引數為true時,系統以os檔案記錄sysdba身份的登入、開關資料庫的操作,以及其它的操作。

Audit file /ora/app/ora10g/10.2/admin/ictc/adump/ora_28018.aud
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
ORACLE_HOME = /ora/app/ora10g/10.2/
System name:    Linux
Node name:      localhost.localdomain
Release:        2.6.18-8.el5
Version:        #1 SMP Fri Jan 26 14:15:14 EST 2007
Machine:        x86_64
Instance name: ictc
Redo thread mounted by this instance: 1
Oracle process number: 18
Unix process pid: 28018, image: oracle@localhost.localdomain (TNS V1-V3)

Fri Mar 13 10:42:50 2009
ACTION : 'CONNECT'
DATABASE USER: '/'
PRIVILEGE : SYSDBA
CLIENT USER: oracle
CLIENT TERMINAL: pts/1
STATUS: 0

Fri Mar 13 10:43:01 2009
ACTION : 'select sysdate from dual'
DATABASE USER: '/'
PRIVILEGE : SYSDBA
CLIENT USER: oracle
CLIENT TERMINAL: pts/1
STATUS: 0

Fri Mar 13 10:43:14 2009
ACTION : 'select count(*) from v$process'
DATABASE USER: '/'
PRIVILEGE : SYSDBA
CLIENT USER: oracle
CLIENT TERMINAL: pts/1
STATUS: 0

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/32939/viewspace-567151/,如需轉載,請註明出處,否則將追究法律責任。

相關文章