久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

怎么解決oracle 19c sec

168次閱讀
沒有評論

共計 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>

正文完
 
丸趣
版權(quán)聲明:本站原創(chuàng)文章,由 丸趣 2023-07-27發(fā)表,共計3774字。
轉(zhuǎn)載說明:除特殊說明外本站除技術(shù)相關(guān)以外文章皆由網(wǎng)絡(luò)搜集發(fā)布,轉(zhuǎn)載請注明出處。
評論(沒有評論)
主站蜘蛛池模板: 克山县| 高州市| 墨竹工卡县| 永福县| 平谷区| 泸水县| 永州市| 从化市| 玛曲县| 平昌县| 牙克石市| 陇川县| 安多县| 西丰县| 汨罗市| 大化| 南澳县| 红原县| 秭归县| 罗江县| 云林县| 宁河县| 淅川县| 舒城县| 西丰县| 正安县| 团风县| 子洲县| 阿勒泰市| 北辰区| 英吉沙县| 甘洛县| 罗甸县| 玉环县| 张北县| 霞浦县| 阜新| 巴林右旗| 玛纳斯县| 冀州市| 嘉定区|