Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3540254
  • 博文数量: 715
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 7745
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(715)

文章存档

2023年(75)

2022年(134)

2021年(238)

2020年(115)

2019年(11)

2018年(9)

2017年(9)

2016年(17)

2015年(7)

2014年(4)

2013年(1)

2012年(11)

2011年(27)

2010年(35)

2009年(11)

2008年(11)

最近访客

分类: Oracle

2023-06-05 16:34:28


  1. 关键是pdb情况下
  2. 得要逐个登录pdb,然后再设置profile

  3. alter session set container=pdb1;


  4. set lines 200 pages 1000
  5. col PROFILE for a10
  6. col RESOURCE_NAME for a30
  7. col RESOURCE_TYPE for a20
  8. col LIMIT for a23
  9. select PROFILE,RESOURCE_NAME,RESOURCE_TYPE,LIMIT from dba_profiles where RESOURCE_TYPE='PASSWORD' and PROFILE='DEFAULT';

  10. alter profile default limit PASSWORD_VERIFY_FUNCTION verify_function;

  11. 然后再检查确认
  12. select username,account_status,profile from dba_users;

  13. create user abcdef identified by abcdef;
  14. 如果失败说明复杂度设置成功

还可以改进一下:
  1. create profile prof2 limit password_life_time 180;
  2. alter profile prof2 limit
  3. PASSWORD_REUSE_MAX 5 --5次内不重用
  4. FAILED_LOGIN_ATTEMPTS 10 --失败10次锁定
  5. PASSWORD_LOCK_TIME 1/288 --锁定时长 5 分钟


  6. alter user query1 profile prof2;

阅读(259) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~