oracle audit

查看參數設置:sql

SQL> show parameter audit

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
audit_file_dest                      string      /opt/app/oracle/admin/orcl/adump
audit_sys_operations                 boolean     FALSE
audit_syslog_level                   string
audit_trail                          string      DB

 

打開審計:oracle

SQL> alter system set audit_sys_operations=TRUE scope=spfile;

System altered.

SQL> alter system set audit_trail=XML scope=spfile;

System altered.

 

重啓oracle實例:app

SQL> shutdown abort
ORACLE instance shut down.
SQL> startup
ORACLE instance started.

Total System Global Area  400846848 bytes
Fixed Size                  2253664 bytes
Variable Size             201329824 bytes
Database Buffers          188743680 bytes
Redo Buffers                8519680 bytes
Database mounted.
Database opened.

 

查看日誌文件:日誌

[oracle@localhost ~]$ cd $ORACLE_BASE
[oracle@localhost oracle]$ cd admin/orcl/adump/
相關文章
相關標籤/搜索