码迷,mamicode.com
首页 > 其他好文 > 详细

052-37

时间:2017-12-05 17:39:46      阅读:105      评论:0      收藏:0      [点我收藏+]

标签:base   back   round   class   exec   span   access   ase   c中   

You execute the following command to audit database activities:
SQL> AUDIT DROP ANY TABLE BY scott BY SESSION WHENEVER SUCCESSFUL;
What is the effect of this command?
A.One audit record is created for every successful DROP TABLE command executed in the session of SCOTT.
B.One audit record is generated for the session when SCOTT grants the DROP ANY TABLE privilege to other users.
C.One audit record is created for the whole session if user SCOTT successfully drops one or more tables in his session.
D.One audit record is created for every session of any other user in which a table owned by SCOTT is dropped successfully.
E.One audit record is created for every successful DROP TABLE command executed by any user to drop tables owned by SCOTT.

在AC中摇摆不定,看了资料答案是C
BY SESSION:一个会话里的同类型的操作只会生成一条审计记录
BY ACCESS:每个审计操作都会产生一个审计记录,默认为 BY ACCESS
指定 WHENEVER SUCCESSFUL,只有语句或操作成功,才会记录
指定 WHENEVER NOT SUCCESSFUL,只有语句或操作失败或返回错误才会记录
如果不指定,失败和成功的都会产生审计
BY SCHMEA:指定选择审计方案包含的对象。
本题目指定了 by scott 和 by session
所以只有 scott 用户执行相同的 drop 操作只会产生一条记录
故选择 C

052-37

标签:base   back   round   class   exec   span   access   ase   c中   

原文地址:http://www.cnblogs.com/Babylon/p/7987915.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!