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

偶尔有空上来看看

文章分类

全部博文(738)

文章存档

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

2021-08-17 14:23:44

密码即将过期,密码策略加上后,不能改为原先密码,又不想变为别的


  1. conn / as sysdba
  2. --sho pdbs
  3. --alter session set container=&1;

  4. set lin 120
  5. col username for a30
  6. select username,account_status,expiry_date from dba_users where account_status='EXPIRED(GRACE)' order by 1;


  7. set line 500 pages 100
  8. select 'alter user ' ||su.name||' identified by values'||' '''||spare4||';' ||su.password||''';'
  9. from sys.user$ su,dba_users du
  10. where su.name=du.username and account_status like '%GRACE%';

执行生成的修改脚本即可
阅读(1292) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~