• 052-162


    You created a profile APP_USER and assigned it to the users. After a month, you decide to drop the profile.
    Some user sessions are currently connected to the database instance and are using the APP_USER profile. This command is used to drop the profile:
    SQL> DROP PROFILE app_user;
    Which statement describes the result?
    A.The command produces an error.
    B.The profile is dropped and current user sessions use the DEFAULT profile immediately.
    C.The profile is dropped and only the subsequent user sessions use the DEFAULT profile.
    D.The profile is dropped, the sessions are terminated, and the subsequent user sessions use the DEFAULT profile.

    profile 分配给用户后,必须取消才可以删除 profile 文件
    --创建 profile
    SQL> create profile wwww limit failed_login_attempts 7;
    Profile created.
    --指定 profile
    SQL> alter user skd profile wwww;
    User altered.
    --查看 skd 的 profile
    SQL> select PROFILE from dba_users where username='SKD';
    PROFILE
    ------------------------------
    WWWW
    --测试删除,删除失败
    SQL> drop profile wwww;
    drop profile wwww
    *
    ERROR at line 1:
    ORA-02382: profile WWWW has users assigned, cannot drop without CASCADE
    --修改为默认的 profile
    SQL> alter user skd profile default;
    User altered.
    --测试删除,删除成功
    SQL> drop profile wwww;
    Profile dropped.

  • 相关阅读:
    durex-word
    闲聊可穿戴设备
    闲聊质数
    一步一步学swift之:自己写Api接口-PHP
    Swift实战-小QQ(第2章):QQ侧滑菜单
    Swift实战-小QQ(第1章):QQ登录界面
    一步一步学习Swift之(一):关于swift与开发环境配置
    objective-c底层: runtime机制
    手把手教你视频直播开发
    多语言本地化开发Localized
  • 原文地址:https://www.cnblogs.com/Babylon/p/8039023.html
Copyright © 2020-2023  润新知