密碼大小寫敏感是Oracle
SEC_CASE_SENSITIVE_LOGON初始化參數控制密碼大小寫是否敏感
SQL> SHOW PARAMETER SEC_CASE_SENSITIVE_LOGON
NAME TYPE VALUE
sec_case_sensitive_logon boolean TRUE
SQL>
SQL> ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;
System altered
SQL>
下面的代碼說明了密碼大小寫敏感的功能
CONN / AS SYSDBA
ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = TRUE;
CREATE USER test
GRANT CONNECT TO test
使用新創建的用戶正確的連接字符和大小寫錯誤的密碼進行連接嘗試
SQL> CONN test
Connected
SQL> CONN test
ERROR:
ORA
Warning: You are no longer connected to ORACLE
SQL>
將SEC_CASE_SENSITIVE_LOGON初始化參數設置為FALSE後就不區分密碼大小寫了
CONN / AS SYSDBA
ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;
SQL> CONN test
Connected
SQL> CONN test
Connected
SQL>
需要記住的是
CONN / AS SYSDBA
ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;
CREATE USER test
GRANT CONNECT TO test
正如你預料之中的那樣
如果我們啟用了大小寫敏感參數
CONN / AS SYSDBA
ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = TRUE;
SQL> CONN test
Connected
SQL> CONN test
ERROR:
ORA
Warning: You are no longer connected to ORACLE
SQL>
DBA_USERS視圖包括了一列PASSWORD_VERSIONS
SQL> SELECT username
USERNAME PASSWORD
TEST
SPATIAL_WFS_ADMIN_USR
SPATIAL_CSW_ADMIN_USR
APEX_PUBLIC_USER
SYSTEM
SYS
MGMT_VIEW
OUTLN
SQL>
用戶如果是從Oracle
orapwd工具的ignorecase參數允許你控制在密碼文件中的密碼是否大小寫敏感
要在密碼文件中創建大小寫敏感的密碼
$ orapwd file=orapwDB
數據庫連接的密碼也是大小寫敏感的
From:http://tw.wingwit.com/Article/program/Oracle/201311/17000.html