zoukankan      html  css  js  c++  java
  • 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.

  • 相关阅读:
    2021秋9月14日
    向GitHub上传代码
    8.2.py 知识图谱
    7.2.py 树模型衍生变量
    3.3.py 迁移学习
    1.3.py CART回归树做组合规则特征
    2.7.py xgboost版评分映射
    特征重要性之shap value
    特征重要性之排列重要性Permutaion Importance
    Python 合并一个Excel文件中格式一样的sheet
  • 原文地址:https://www.cnblogs.com/Babylon/p/8039023.html
Copyright © 2011-2022 走看看