分类(Oracle)
oracle中修改用户的密码
2009/04/15 11:21
重置oracle账号口令
alter user username identified by new_pass replace old_pass;
新密码至少有三个字符与原密码不一致;必须包含一个下划线;

用户修改密码时,出现ORA-28221错误的原因
当用户修改自己的密码时,可能会遇到ORA-28221: REPLACE not specified的错误。这是因为用户没有alter user的权限,或者是没有使用replace子句。
    当用户启用密码复杂性函数时,也就是执行过UTLPWDMG.SQL或在用户所在profile中的PASSWORD_VERIFY_FUNCTION指定了函数的时候,必须在alter user命令的时候使用replace子句,即:
alter user username identified by new_pass replace old_pass;

或者给用户付alter user的系统权限。
---------------------------

SQL> alter user UIF_FS identified by GDK_4321 replace abcd_1234;
 
User altered

Tags: Oracle
相关日志:
+引用(0) |
发表评论
昵称  密码  游客无需密码
网址  电邮  注册
验证码 请输入左侧图片中的字符
记住我