Chinaunix首页 | 论坛 | 博客
  • 博客访问: 833629
  • 博文数量: 199
  • 博客积分: 6363
  • 博客等级: 准将
  • 技术积分: 2225
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-28 10:01
个人简介

来自农村的老实娃

文章分类

全部博文(199)

文章存档

2017年(1)

2014年(2)

2013年(3)

2012年(6)

2011年(26)

2010年(34)

2009年(50)

2008年(44)

2007年(33)

我的朋友

分类: Oracle

2008-09-19 13:16:17

大家知道,在11g以前的版本中,用户的口令是不分大小写的,如下所示:
[oracle1@db1 oracle1]$ sqlplus dyx/dyx
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Sep 19 11:12:50 2008
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL>
[oracle1@db1 oracle1]$ sqlplus dyx/DYx
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Sep 19 11:13:00 2008
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL>
在11g中有个初始参数可以供用户控制口令用不用区分大小写,该参数为:
sec_case_sensitive_logon=true       区分大小写  (default)
sec_case_sensitive_logon=false       不区分大小写
SQL> show parameter sec_case_sensitive_logon
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
sec_case_sensitive_logon             boolean     TRUE
[oracle@test db_1]$ sqlplus lzdyxin/lzdyxin
SQL*Plus: Release 11.1.0.6.0 - Production on Fri Sep 19 12:49:59 2008
Copyright (c) 1982, 2007, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
[oracle@test db_1]$ sqlplus lzdyxin/LZDYXIN
SQL*Plus: Release 11.1.0.6.0 - Production on Fri Sep 19 12:50:12 2008
Copyright (c) 1982, 2007, Oracle.  All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
修改sec_case_sensitive_logon=false
SQL> alter system set sec_case_sensitive_logon=false scope=both;
System altered.
SQL>
再次用大小写混全或大写的口令登录
[oracle@test db_1]$ sqlplus lzdyxin/LZDyxIN
SQL*Plus: Release 11.1.0.6.0 - Production on Fri Sep 19 13:10:33 2008
Copyright (c) 1982, 2007, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
 
----完------
阅读(2118) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~