Oracle中用户profile的用法


可以通过使用profile文件对用户的属性进行定义,比如为product用户建立一个profile文件

create profile product_profile limit SESSIONS_PER_USER 1;


    ——设置用户只能建立一个

session的profile alter user product profile product_profile;  


    —— 让product用户使用product_profile

    要使上面的限制生效,需要修改初始化参数resource_limit

show parameter resource;
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
resource_limit                       boolean     FALSE
resource_manager_plan                string


    可以看到resource_limit参数是false,修改为true

alter system set resource_limit=true;

 

    可以查看dba_profiles视图来查看用户的默认属性

    修改的时候可以使用下面的方法,比如修改用户失败的登陆次数,默认是10,修改为unlimited alter profile PRODUCT_PROFILE limit FAILED_LOGIN_ATTEMPTS unlimited;  ——修改失败登录次数的方法


« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3