ITPub博客

首页 > 数据库 > Oracle > oracle之profile的应用

oracle之profile的应用

原创 Oracle 作者:liqilin0429 时间:2010-09-06 16:15:55 0 删除 编辑

第一步:创建一个profile(@?/rdbms/admin/utlpwdmg.sql,?=$ORACLE_HOME)
create profile users_policy limit
              failed_login_attempts 4
              password_life_time 80
              password_lock_time 1/24   --1/24表示1小时
              password_grace_time 5;
 
第二步:将配置文件分配给用户
alter user FJCWBMDC profile users_policy;
第三步:验证分配给用户的profile限制信息
select username,profile from dba_users where username='FJCWB';
第四步:验证创建好的profile
select * from dba_profiles;
select * from dba_profiles where resource_type='PASSWORD';
第五步:停止密码检验函数
alter profile DEFAULT limit password_verify_function null;
第六步:取消密码管理:
    SQL>alter profile DEFAULT limit unlimited;
如:
SQL>alter profile DEFAULT limit password_reuse_time unlimited;
alter profile users_policy limit password_life_time unlimited;
alter profile users_policy limit password_grace_time unlimited;
password_grace_time
第七步:删除资源管理的策略
    1 查询出profiled的名称 select profile from dba_profiles;
    2 彻底删除策略        drop profile MONITORING_PROFILE cascade;
show parameter resource_limit
alter system set resource_limit=true;
ALTER PROFILE users_policy LIMIT PASSWORD_VERIFY_FUNCTION verify_password;           

在某些应用环境下可设置数据库连接超时,比如数据库将自动断开超过10分钟的空闲远程连接。在sqlnet.ora中设置下面参数:SQLNET.EXPIRE_TIME=10

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/20976446/viewspace-672806/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: shell_rman_back
请登录后发表评论 登录
全部评论

注册时间:2010-08-13

  • 博文量
    100
  • 访问量
    227363