共計 3774 個字符,預(yù)計需要花費 10 分鐘才能閱讀完成。
這篇文章主要介紹“怎么解決 oracle 19c sec_case_sensitive_logon 參數(shù)問題”,在日常操作中,相信很多人在怎么解決 oracle 19c sec_case_sensitive_logon 參數(shù)問題問題上存在疑惑,丸趣 TV 小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”怎么解決 oracle 19c sec_case_sensitive_logon 參數(shù)問題”的疑惑有所幫助!接下來,請跟著丸趣 TV 小編一起來學(xué)習(xí)吧!
11g 前,密碼不區(qū)分大小寫,11g 開始引入了 sec_case_sensitive_logon 參數(shù)控制密碼敏感,默認 true,大小寫敏感。
安裝完 19C 后,將 sec_case_sensitive_logon 調(diào)成 false,設(shè)置密碼大小寫不敏感后,發(fā)現(xiàn)即使使用正確的密碼也無法登錄了。
原來 19C 中早已廢棄了 sec_case_sensitive_logon 參數(shù),重啟數(shù)據(jù)庫也可以看到提示:
MOS 上相關(guān)的文章有很多,例如:
DBUA Removes SEC_CASE_SENSITIVE_LOGON Init Parameter After Upgrading to 12c (Doc ID 2107717.1)
SEC_CASE_SENSITIVE_LOGON init parameter has been deprecated in 12c, hence ideally you should comment out this parameter before upgrade to 12c. But if you still set SEC_CASE_SENSITIVE_LOGON system parameter, the Database Upgrade Assistant (DBUA) removes the SEC_CASE_SENSITIVE_LOGON system parameter during the upgrade process if it exists in the parameter file (reference Bug 16238456 ).
18c: All user connections fail with ORA-01017 except SYS when SEC_CASE_SENSITIVE_LOGON=FALSE (Doc ID 2502204.1)
What Is the SEC_CASE_SENSITIVE_LOGON Parameter and How Is It Used? (Doc ID 2378179.1)
The SEC_CASE_SENSITIVE_LOGON parameter enables or disables password case sensitivity in the database. It is defaulted to a TRUE value.
True - Database logon passwords are case sensitive
False - Database logon passwords are not case sensitive
For additional information please refer to the following Database Security Guide: https://docs.oracle.com/database/121/DBSEG/authentication.htm#DBSEG3225
測試過程如下:
查看數(shù)據(jù)庫版本
SQL select banner from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
啟動所有 PDB
SQL alter pluggable database all open;
SQL show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 CJCPDB READ WRITE NO
查看當(dāng)前參數(shù)值
SQL show parameter sec_case_sensitive_logon
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
sec_case_sensitive_logon boolean TRUE
創(chuàng)建新用戶
SQL create user c##chen identified by a;
User created.
SQL grant connect to c##chen;
Grant succeeded.
密碼區(qū)分大小寫
SQL conn c##chen/a
Connected.
SQL conn c##chen/A
ERROR:
ORA-01017: invalid username/password; logon denied
Warning: You are no longer connected to ORACLE.
更改參數(shù)
SQL show parameter sec_case_sensitive_logon
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
sec_case_sensitive_logon boolean TRUE
SQL conn / as sysdba
Connected.
SQL alter system set sec_case_sensitive_logon=false;
System altered.
新用戶無法登錄 (即使使用正確的密碼)
SQL conn c##chen/a
ERROR:
ORA-01017: invalid username/password; logon denied
Warning: You are no longer connected to ORACLE.
SQL conn c##chen/A
ERROR:
ORA-01017: invalid username/password; logon denied
改回參數(shù)
SQL conn / as sysdba
Connected.
SQL alter system set sec_case_sensitive_logon=true;
System altered.
SQL conn c##chen/A
ERROR:
ORA-01017: invalid username/password; logon denied
Warning: You are no longer connected to ORACLE.
可以正常登錄
SQL conn c##chen/a
Connected.
SQL show user
USER is C##CHEN
也可以通過設(shè)置 sqlnet.ora,實現(xiàn)大小寫不敏感
該參數(shù)用來限制可以連接到數(shù)據(jù)庫服務(wù)器上的最小客戶端版本,比如設(shè)置值為 10,即 10g,11g 等以上客戶端版本可以連接到數(shù)據(jù)庫服務(wù)器上。
[oracle@cjcos01 admin]$ pwd
/u01/app/oracle/product/19.0.0/dbhome_1/network/admin
[oracle@cjcos01 admin]$ cat sqlnet.ora
SQLNET.ALLOWED_LOGON_VERSION_SERVER=8
SQLNET.ALLOWED_LOGON_VERSION_CLIENT=8
修改參數(shù)
SQL alter system set sec_case_sensitive_logon=false;
System altered.
創(chuàng)建用戶
SQL create user c##ccc identified by a;
User created.
SQL grant connect to c##ccc;
Grant succeeded.
密碼大小寫不敏感
SQL conn c##ccc/a
Connected.
SQL conn c##ccc/A
Connected.
到此,關(guān)于“怎么解決 oracle 19c sec_case_sensitive_logon 參數(shù)問題”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識,請繼續(xù)關(guān)注丸趣 TV 網(wǎng)站,丸趣 TV 小編會繼續(xù)努力為大家?guī)砀鄬嵱玫奈恼拢?/p>