今天在oracle数据库中修改用户密码的时候发现了一个下面的规律
1 密码只由字母组成,创建成功
SQL> alter user ics identified by password;
User changed.
2 密码只由数字组成,创建成功
SQL> alter user ics identified by 123456;
User changed.
3 密码由字母+数字组成,创建成功
SQL> alter user ics identified by password123;
User changed.
4 密码由数字+字母组成,创建失败
SQL> alter user ics identified by 1q2w3e;
ERROR at line 1:
ORA-00922: missing or invalid option
5 密码由数字+密码组成时,必须加双引号才能成功
SQL> alter user ics identified by "1q2w3e";
User changed.
SQL> conn ics/1q2w3e
Connected.
创建用户时候同理
本文出自 “记录点滴学习生活” 博客,请务必保留此出处http://laobaiv1.blog.51cto.com/2893832/1921831
原文地址:http://laobaiv1.blog.51cto.com/2893832/1921831