OCP-052考試題庫彙總(41)-CUUG內部解答版

Examine this session output:數據庫

SQL> connect scott/tigersession

Connected.this

SQL>select name,value操作系統

2 from v$parameterxml

3 where name='audit_trail';it

NAME VALUEio

--------------------- -----------------class

audit_trail DBdate

SQL> audit all on emp;select

Audit succeeded.

Which two will generate on audit record?

A)every update statement executed by scott that updates scott.emp

B)every ddl statement executed by scott that affects scott.emp

C)any dml statement executed by sys on scott.emp

D)only the first select statement executed by scott in a session on scott.emp

E)every update statement executed by scott that updates hr.emp

F)only the first dml statement executed by system in a session on scott.emp

Answer: AB

趙:C 錯,在精細審計 FGA 的狀況下,不記錄 sys 的操做。

AUDIT_TRAIL = { none | os | db | db,extended | xml | xml,extended }

參數詳解:

AUDIT_TRAIL 啓用或禁用數據庫審計。當設置該參數爲 NONE 或 FALSE 時,將禁止數據庫審計;當設置該參數爲 OS 時,將激活數據庫審計,並將審計記錄寫入到 OS 審計跟蹤文件中;當設置該參數爲DB 或 TRUE 時,將激活數據庫審計,並將審計記錄寫入到數據字典 SYS.AUD$中;當設置該參數爲DB_EXTENDED 時,不只將審計記錄寫入到數據字典 SYS.AUD$中,還會填充該數據字典的 SQLBIND 和SQLTEXT 列。

取值說明:

none 禁用數據庫審計

os 啓用數據庫審計,並將數據庫審計記錄寫入到操做系統審計記錄

db 啓用數據庫審計,並將數據庫全部審計記錄寫入到數據庫的 SYS.AUD$表

db,extended 啓用數據庫審計,並將數據庫全部審計記錄寫入到數據庫的 SYS.AUD$表。另外,填充

SYS.AUD$表的 SQLBIND 列和 SQLTEXT CLOB 列。

xml 啓用數據庫審計,並將全部記錄寫到 XML 格式的操做系統文件中。

xml,extended 啓用數據庫審計,輸出審計記錄的全部列,包括 SqlText 和 SqlBind 的值。

你能夠使用 SQL 語句 AUDIT 來設置審計選項,無論如何設置此參數。

用法舉例:

由於該初始化參數是靜態參數,因此修改後必須從新啓動例程。示例以下:

SQL>ALTER SYSTEM SET audit_trail=DB SCOPE=SPFILE;

SQL>STARTUP FORCE;

相關文章
相關標籤/搜索