天天看点

oracle11g口令问题

You upgraded OracleDatabase 10g to Oracle Database 11g. How would this affect the existing users'passwords?你升级10g到11g,将怎样影响你已经存在用户的密码?

A. All passwords automatically become case-sensitive.

B. All passwords remainnon-case-sensitive till they are changed.直到他们被修改,所有的密码保持不区分大小写

C. All passwords remain non-case-sensitive and cannot bechanged.

D. All passwords remain non-case-sensitive until theirpassword attribute in the profile is altered.

oracle 11g以前,密码是不区分大小写的……输入的密码都会被转为大写来处理;

从oracle11g开始,增加了一个sec_case_sensitive_logon参数,默认是TRUE,这时候就会区分大小写了,

如果你用10g的client连11g的数据库,就可能回出现ORA-01017: invalid username/password; logon denied 的错误。

如果想继续使用不区分大小写的方式,也很简单,执行一条alter的sql即可 

alter system set sec_case_sensitive_logon=False   

由参数sec_case_sensitive_logon控制

参数值为true区分、false为不区分

系统默认情况为区分

--查看当前参数值

SQL> show parameter logon

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

sec_case_sensitive_logon             boolean     TRUE

11g中可以运行脚本utlpwdmg.sql来创建口令验证程序避免系统中再出现弱口令

11g中合法的口令包括如下种类:

 不少于8个字符长度

必须至少一个字母和数字

不能是简单的或者常用的,如welcome1、abcdefg1

不能是oracle或者oracle附加数字1到100

不能是用户名、用户名反拼或者用户名附加1到100的数字

不能是服务器名或者服务器名附加1到100的数字

必须和以前的口令至少相差3个字符

继续阅读