OCP-052考试题库汇总(41)-CUUG内部解答版

简介: Examine this session output:SQL> connect scott/tigerConnected.SQL>select name,value2 from v$parameter3 where name='audit_trail';NAME VALUE----...

Examine this session output:

SQL> connect scott/tiger

Connected.

SQL>select name,value

2 from v$parameter

3 where name='audit_trail';

NAME VALUE

--------------------- -----------------

audit_trail DB

SQL> audit all on emp;

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;

目录
相关文章
|
数据安全/隐私保护 关系型数据库 Oracle
OCP-052考试题库汇总(60)-CUUG内部解答版
Examine these facts about a database: The database default tablespace to EXAMPLE. DEFERRED_SEGMENT_CREATION is TRUE (原来为 FALSE,题目有错) Examine these co...
3730 0
OCP-052考试题库汇总(55)-CUUG内部解答版
Examine these facts about a database: 1.USER is the database default tablespace. 2.USER1, USER2, and USER3 have the CREATE SESSION privilege.
3048 0
|
数据库管理
OCP-052考试题库汇总(46)-CUUG内部解答版
Examine this command: SQL> CREATE GLOBAL TEMPORARY TABLE report_work_area (startdate DATE, enddate DATE, class CHAR(20)) ON COMMIT PRESERVE ROWS; Whi...
770 0
|
Oracle 关系型数据库 数据库
OCP-052考试题库汇总(45)-CUUG内部解答版
You want to access employee details contained in flat files created by an application. Which two methods will achieve this? A)Use a BFILE column in a table to access the flat file.
1862 0
|
SQL 存储 Oracle
OCP-052考试题库汇总(37)-CUUG内部解答版
Examine these facts about objects in the SYSTEM schema: 1.EMP is a table. 2.EMP_PK is a primary key constraint on EMP.
853 0
|
数据库 关系型数据库 Oracle
OCP-052考试题库汇总(32)-CUUG内部解答版
Which state must a database be to enable ARCHIVELOG ? A)NOMOUNT B)OPEN IN READ WRITE mode C)OPEN IN READ ONLY mode D)OPEN IN RESTRICTED mode E)MOUNT ...
708 0
|
Oracle 关系型数据库 数据库
OCP-052考试题库汇总(31)-CUUG内部解答版
which four are true about the tools used to administer Oracle database? A)the Data Pump utility can be used to load data from text files.
792 0
|
Oracle 关系型数据库
OCP-052考试题库汇总(29)-CUUG内部解答版
When does an incremental checkpoint occur ? A)when an online redo log switch occurs. B)when DBWn writes dirty buffers as part of its normal processing.
1033 0
|
Oracle 关系型数据库 数据库
OCP-052考试题库汇总(28)-CUUG内部解答版
Archivelog mode is enabled for your database and DB_CREATE_FILE_DEST is set to ‘/u01/oracle/db01’. The parameters, DB_CREATE_ONLINE_LOG_DEST_n and DB_RECOVERY_FILE_DEST, and not specified.
611 0
|
机器学习/深度学习 Oracle 关系型数据库
OCP-052考试题库汇总(25)-CUUG内部解答版
Which four database objects never have any segments? A)A partitioned index B)A view selecting from a populated table C)An empty index D)An Oracle Loader type external table E)An empty table F)A view selecting from an empty table G)An Oracle Data Pump type external table Answer: BDFG 赵:视图和外部表不存在段。
734 0