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

  • 相关阅读:
    模糊查询与索引
    weblogic 域的创建
    undo表空间缩小
    weblogic安装
    C#学习笔记——枚举类型
    C#学习笔记——windows窗体
    Qt之主窗口设计——打印图像
    C#学习笔记——MDI窗体(多文档界面)
    C#学习笔记——抽象类和抽象方法
    C#学习笔记——Main方法
  • 原文地址:https://www.cnblogs.com/Babylon/p/7987915.html
Copyright © 2011-2022 走看看