zoukankan      html  css  js  c++  java
  • 052-37

    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

  • 相关阅读:
    Laravel 中查询 where 记录
    eclipse svn重定位(relocate)
    使用git ftp发布我个人的hexo博客内容
    oracle数据库查询常用语句
    telnet关闭tomcat
    XML字符串解析成对象的时候应注意空格
    去除焦点边框线
    如何查看和更改mysql数据库文件存放位置
    设置div,td失去焦点
    (加减乘除)字符串计算机
  • 原文地址:https://www.cnblogs.com/Babylon/p/7987915.html
Copyright © 2011-2022 走看看