您好,登錄后才能下訂單哦!
這篇文章主要介紹“怎么解決oracle 19c sec_case_sensitive_logon參數問題”,在日常操作中,相信很多人在怎么解決oracle 19c sec_case_sensitive_logon參數問題問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”怎么解決oracle 19c sec_case_sensitive_logon參數問題”的疑惑有所幫助!接下來,請跟著小編一起來學習吧!
11g前,密碼不區分大小寫,11g開始引入了sec_case_sensitive_logon參數控制密碼敏感,默認true,大小寫敏感。
安裝完19C后,將sec_case_sensitive_logon調成false,設置密碼大小寫不敏感后,發現即使使用正確的密碼也無法登錄了。
原來19C中早已廢棄了sec_case_sensitive_logon參數,重啟數據庫也可以看到提示:
MOS上相關的文章有很多,例如:
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
測試過程如下:
查看數據庫版本
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
查看當前參數值
SQL> show parameter sec_case_sensitive_logon NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ sec_case_sensitive_logon boolean TRUE
創建新用戶
SQL> create user c##chen identified by a; User created. SQL> grant connect to c##chen; Grant succeeded.
密碼區分大小寫
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.
更改參數
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
改回參數
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"
也可以通過設置sqlnet.ora,實現大小寫不敏感
該參數用來限制可以連接到數據庫服務器上的最小客戶端版本,比如設置值為10,即10g,11g等以上客戶端版本可以連接到數據庫服務器上。
[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
修改參數
SQL> alter system set sec_case_sensitive_logon=false; System altered.
創建用戶
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.
到此,關于“怎么解決oracle 19c sec_case_sensitive_logon參數問題”的學習就結束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學習,快去試試吧!若想繼續學習更多相關知識,請繼續關注億速云網站,小編會繼續努力為大家帶來更多實用的文章!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。