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;

目录
相关文章
OCP-052考试题库汇总(59)-CUUG内部解答版
In one of your databases: 1.USER1 and USER2 have no system privileges. 2.ROLE1 only has these privileges: ?CREATE SESSION ?CREATE TABLE ?CREATE VIEW ...
2827 0
OCP-052考试题库汇总(58)-CUUG内部解答版
In one of your databases: 1.USER1 and USER2 have no system privileges. 2.ROLE1 only has these privileges: ?CREATE SESSION ?CREATE TABLE ?CREATE VIEW ...
768 0
OCP-052考试题库汇总(57)-CUUG内部解答版
Examine these facts about a databases: 1.USERS is the database default tablespace. 2.USER1,USER2,and USER3 have the CREATE SESSION privilege 3.
736 0
OCP-052考试题库汇总(42)-CUUG内部解答版
You successfully executed these commands: connect scott/tiger@prod1; CREATE DATABASE LINK db_prod2 CONNECT TO scott IDENTIFIED BY tiger USING 'PROD2'...
791 0
|
Oracle 关系型数据库 数据库
OCP-052考试题库汇总(33)-CUUG内部解答版
Which two can be exported by a non-administrative account by using Data Pump? A)directory objects B)tables C)tablespaces D)schemas E)database Answer: BD 赵: EXP 和 IMP 是客户端工具程序,它们既可以在客户端使用,也可以在服务端使用。
647 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
OCP-052考试题库汇总(27)-CUUG内部解答版
Which two of these must be available READ/WRITE to keep a database open? A)all copies of the control file.
512 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 赵:视图和外部表不存在段。
733 0
|
数据库
OCP-052考试题库汇总(26)-CUUG内部解答版
Which three of these must be accessible to keep a database open? A)Control file. B)All members of a redo log group. C)SYSTEM tablespace. D)SYSAUX tablespace. E)spfile Answer: ABC 赵: 1 nomount:实例已经启动,进程和内存已经分配。
675 0
|
关系型数据库 Oracle 存储
OCP-052考试题库汇总(23)-CUUG内部解答版
11g版本的OCP考试持续了好几年,一直比较稳定,直到2018年4月份左右,052考试不断的出现新的考题,虽然我们收集整理了不少,但新题还是难避免,这样出现一部分新题,我们收集一部分,持续了不短的时间。
1063 0