Oracle 12.2 sec_case_sensitive_logon设置为true 或者false 时,针对 system用户和新建用户的区别.

来源:互联网 发布:itouch4怎么下载软件 编辑:程序博客网 时间:2024/06/07 13:34
首先测试system用户:
[oracle@db12cr2 bin]$ sqlplus system/aaaaaaSQL*Plus: Release 12.2.0.1.0 Production on Wed Mar 15 06:43:38 2017Copyright (c) 1982, 2016, Oracle.  All rights reserved.Last Successful login time: Mon Mar 13 2017 18:21:44 +08:00Connected to:Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit ProductionSQL>  show parameter case NAME     TYPE VALUE------------------------------------ ----------- ------------------------------sec_case_sensitive_logon     boolean TRUE ------------->>>>>>>>>>>>>默认值SQL> SQL> SQL> alter system set sec_case_sensitive_logon=false;------------->>>>>>>>>>>>>改为falseSystem altered.SQL> show parameter case NAME     TYPE VALUE------------------------------------ ----------- ------------------------------sec_case_sensitive_logon     boolean FALSESQL> exitDisconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production[oracle@db12cr2 bin]$ sqlplus system/aaaaaa    ------------->>>>>>>>>>>>>然后用正确的密码就不能登录了.SQL*Plus: Release 12.2.0.1.0 Production on Wed Mar 15 06:44:19 2017Copyright (c) 1982, 2016, Oracle.  All rights reserved.ERROR:ORA-01017: invalid username/password; logon deniedEnter user-name: ^C[oracle@db12cr2 bin]$ sqlplus / as sysdbaSQL*Plus: Release 12.2.0.1.0 Production on Wed Mar 15 06:44:43 2017Copyright (c) 1982, 2016, Oracle.  All rights reserved.Connected to:Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit ProductionSQL> show parameter caseNAME     TYPE VALUE------------------------------------ ----------- ------------------------------sec_case_sensitive_logon     boolean FALSESQL> alter system set sec_case_sensitive_logon=true;------------->>>>>>>>>>>>>改为trueSystem altered.SQL> exitDisconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production[oracle@db12cr2 bin]$ sqlplus system/aaaaaa  ------------->>>>>>>>>>>>>然后用正确的密码就能登录了!!!!SQL*Plus: Release 12.2.0.1.0 Production on Wed Mar 15 06:45:17 2017Copyright (c) 1982, 2016, Oracle.  All rights reserved.Last Successful login time: Wed Mar 15 2017 06:43:39 +08:00Connected to:Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit ProductionSQL> 



再来测试C##test用户:
SQL> alter system set sec_case_sensitive_logon=false; System altered.SQL> conn c##test/db12cConnected.SQL> show userUSER is "C##TEST"SQL> exitDisconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production[oracle@db12cr2 bin]$ sqlplus c##test/db12c------>>>小写的C,能登陆成功.SQL*Plus: Release 12.2.0.1.0 Production on Wed Mar 15 06:35:34 2017Copyright (c) 1982, 2016, Oracle.  All rights reserved.Last Successful login time: Wed Mar 15 2017 06:35:08 +08:00Connected to:Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit ProductionSQL> exitDisconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production[oracle@db12cr2 bin]$ sqlplus c##test/db12C------>>>大写的C,能登陆成功,说明密码不再区分大小写.SQL*Plus: Release 12.2.0.1.0 Production on Wed Mar 15 06:35:54 2017Copyright (c) 1982, 2016, Oracle.  All rights reserved.Last Successful login time: Wed Mar 15 2017 06:35:34 +08:00Connected to:Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit ProductionSQL> show userUSER is "C##TEST"SQL> ----->>>>>C##test用户能用密码登录成功...


0 0
原创粉丝点击