oracle9i審計功能的開啟和審計策略的設定方法
作業系統:solaris9
資料庫:oracle9i
1、檢視審計功能是否開啟
[@more@]SQL> show parameter audit;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
audit_file_dest string ?/rdbms/audit
audit_sys_operations boolean FALSE
audit_trail string FALSE
transaction_auditing boolean TRUE
由於audit_trail的value值為FALSE,說明審計功能沒有開啟
2、開啟審計功能
SQL> alter system set audit_trail='TRUE' scope=spfile;
System altered.
3、重新啟動資料庫使審計功能生效
SQL> conn / as sysdba;
Connected.
SQL> shutdown normal;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 144964076 bytes
Database Buffers 25165824 bytes
Redo Buffers 1048576 bytes
Database mounted.
Database opened.
4、檢視審計功能是否開啟
SQL> show parameter audit;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
audit_file_dest string ?/rdbms/audit
audit_sys_operations boolean FALSE
audit_trail string TRUE
transaction_auditing boolean TRUE
5、設定審計策略
SQL>audit session;
SQL>audit delete any table by session;
SQL>audit create table by session;
SQL>audit table by session;
SQL>audit create user by session;
SQL>audit alter user by session;
SQL>audit index by session
SQL>audit create view by session;
SQL>audit create procedure by session;
6、查詢審計的項是否跟設定的相同
SQL> select * from DBA_STMT_AUDIT_OPTS;
USER_NAME PROXY_NAME
------------------------------ ------------------------------
AUDIT_OPTION SUCCESS FAILURE
---------------------------------------- ---------- ----------
CREATE SESSION BY ACCESS BY ACCESS
TABLE BY ACCESS BY ACCESS
DELETE ANY TABLE BY SESSION BY SESSION
CREATE TABLE BY ACCESS BY ACCESS
CREATE USER BY ACCESS BY ACCESS
ALTER USER BY ACCESS BY ACCESS
INDEX BY ACCESS BY ACCESS
CREATE VIEW BY ACCESS BY ACCESS
CREATE PROCEDURE BY ACCESS BY ACCESS
7、審計日誌查詢
SQL>select * from DBA_AUDIT_TRAIL where where rownum<10;
說明:where rownum<10 顯示前10行
資料庫:oracle9i
1、檢視審計功能是否開啟
[@more@]SQL> show parameter audit;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
audit_file_dest string ?/rdbms/audit
audit_sys_operations boolean FALSE
audit_trail string FALSE
transaction_auditing boolean TRUE
由於audit_trail的value值為FALSE,說明審計功能沒有開啟
2、開啟審計功能
SQL> alter system set audit_trail='TRUE' scope=spfile;
System altered.
3、重新啟動資料庫使審計功能生效
SQL> conn / as sysdba;
Connected.
SQL> shutdown normal;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 144964076 bytes
Database Buffers 25165824 bytes
Redo Buffers 1048576 bytes
Database mounted.
Database opened.
4、檢視審計功能是否開啟
SQL> show parameter audit;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
audit_file_dest string ?/rdbms/audit
audit_sys_operations boolean FALSE
audit_trail string TRUE
transaction_auditing boolean TRUE
5、設定審計策略
SQL>audit session;
SQL>audit delete any table by session;
SQL>audit create table by session;
SQL>audit table by session;
SQL>audit create user by session;
SQL>audit alter user by session;
SQL>audit index by session
SQL>audit create view by session;
SQL>audit create procedure by session;
6、查詢審計的項是否跟設定的相同
SQL> select * from DBA_STMT_AUDIT_OPTS;
USER_NAME PROXY_NAME
------------------------------ ------------------------------
AUDIT_OPTION SUCCESS FAILURE
---------------------------------------- ---------- ----------
CREATE SESSION BY ACCESS BY ACCESS
TABLE BY ACCESS BY ACCESS
DELETE ANY TABLE BY SESSION BY SESSION
CREATE TABLE BY ACCESS BY ACCESS
CREATE USER BY ACCESS BY ACCESS
ALTER USER BY ACCESS BY ACCESS
INDEX BY ACCESS BY ACCESS
CREATE VIEW BY ACCESS BY ACCESS
CREATE PROCEDURE BY ACCESS BY ACCESS
7、審計日誌查詢
SQL>select * from DBA_AUDIT_TRAIL where where rownum<10;
說明:where rownum<10 顯示前10行
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/262387/viewspace-1060509/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 開啟Oracle的審計功能Oracle
- 【Mysql】mysql開啟審計功能MySql
- mysql啟用審計功能MySql
- 開啟mysql 資料庫審計功能。MySql資料庫
- ORACLE的 審計功能Oracle
- Oracle Database標準審計和細粒度審計功能OracleDatabase
- oracle開啟audit(審計)Oracle
- Oracle 審計功能Oracle
- MySQL審計功能MySql
- oracle審計功能Oracle
- 初識ORACLE的審計功能Oracle
- oracle審計簡單設定Oracle
- Oracle FGA審計功能Oracle
- 實驗-審計資訊的清理和策略關閉.txt
- Elasticsearch Auditing(es的審計功能)Elasticsearch
- Oracle 11g Database和ASM預設的審計策略和相關操作OracleDatabaseASM
- 關於oracle審計功能Oracle
- LINUX AS 5 審計功能Linux
- 開啟mysql審計後引發的問題MySql
- 安永的IT審計
- openGauss 設定資料庫審計資料庫
- 【實驗】【審計】【FGA】使用Oracle的審計功能監控資料庫中的可疑操作Oracle資料庫
- Oracle audit 審計功能說明Oracle
- oracle10g 審計功能Oracle
- Cobar SQL審計的設計與實現SQL
- Oracle Audit 審計功能的認識與使用Oracle
- 關於oracle11g的審計功能Oracle
- 【FGA】將FGA細粒度審計功能的審計結果記錄在資料庫中資料庫
- 【FGA】將FGA細粒度審計功能的審計結果記錄在XML檔案中XML
- DM7審計之物件審計物件
- 【審計】標準資料庫審計資料庫
- CQ Tech | 解析 CloudQuery 審計分析功能Cloud
- 財務軟體的審計功能怎麼用
- 快速實現oracle10g的審計功能Oracle
- MySQL無開通SQL全審計下的故障分析方法MySql
- AUDIT_TRAIL設定及審計日誌清理AI
- Oracle審計Oracle
- audit審計