oracle 11g 设置用户密码大小写敏感,oracle11g
11g通过一个参数设置密码大小写敏感,下面来做个试验:
C:\Documents and Settings\guogang>sqlplus gg_test/gg_test@10.10.15.25_gg
SQL*Plus: Release 10.2.0.1.0 - Production on 星期一 8月 4 17:54:19 2014Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL> show parameter sec_case_sensitive_logon
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
sec_case_sensitive_logon boolean TRUE
C:\Documents and Settings\guogang>sqlplus gg_test/gg_tesT@10.10.15.25_gg
SQL*Plus: Release 10.2.0.1.0 - Production on 星期一 8月 4 17:54:06 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
请输入用户名:
C:\Documents and Settings\guogang>sqlplus gg_test/gg_test@10.10.15.25_gg
SQL*Plus: Release 10.2.0.1.0 - Production on 星期一 8月 4 17:52:35 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> alter system set sec_case_sensitive_logon=false;
系统已更改。
SQL> 从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options 断开
C:\Documents and Settings\guogang>sqlplus gg_test/gg_tesT@10.10.15.25_gg
SQL*Plus: Release 10.2.0.1.0 - Production on 星期一 8月 4 17:53:48 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show parameter sec_case_sensitive_logon
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
sec_case_sensitive_logon boolean FALSE
可能原因如,请一一核对:
1、如果你以sys用户登录的话,连接身份请选择【as sysdba】
说明:如果你的sys用户密码在安装的时候没有修改,他的默认密码是:
【change_on_install】。
如果你改了忘记了,可以利用如下方法重置:
1)进入cmd
2)sqlplus / as sysdba
3)alter user sys identified by 新密码;
2、如果是你新建的普通用户登录的话,用户名和密码请重新确认是否正确,如果实在是确认不了的话,使用sqlplus工具按照如下方式重新建一个用户再试
1)进入cmd
2)sqlplus / as sysdba 或者 sqlplus sys/密码 as sysdba
3) create user 用户名 identified by 密码;
4) grant connect,resource to 用户名;
5) conn 用户名/密码
说明:如果第 5)步可以连接成功说明,用户建立成功,就可以用这个用户登录了。
---
以上,希望对你有所帮助。
你可以使用操作系统认证的方式 登录数据库 ,然后使用命令更改密码即可,方法如下: 打开一个命令提示符 (开始菜单--运行--“cmd”)
sqlplus "/as sysdba"
SQL> alter user sys identified by xxxx;
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。