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

  • 相关阅读:
    详解 Android Activity 生命周期
    设计模式:装饰者模式
    析构函数virtual与非virtual区别 [转]
    详解 常量指针和指针常量
    [转]Python yield 使用浅析
    python 列表 总结
    [转]关于Python中的yield
    详解c++指针的指针和指针的引用
    转:Ogre源码剖析
    转:Ogre源码剖析1
  • 原文地址:https://www.cnblogs.com/Babylon/p/7987915.html
Copyright © 2011-2022 走看看