oracle11g客戶(hù)端連接12c服務(wù)器ORA-01017錯(cuò)誤問(wèn)題解決
客戶(hù)端:11g Release 11.2.0.1.0服務(wù)器:Release 12.2.0.1.0
ora-01017是用戶(hù)登錄的報(bào)錯(cuò) 。
oerr ora 0101701017, 00000, "invalid username/password; logon denied"http:// *Cause:// *Action:
2、排查過(guò)程:(1)檢查sqlnet.ora增加兼容性參數(shù),兼容11g ,也登錄報(bào)同樣的錯(cuò)誤。再次修改兼容性參數(shù),向下兼容10g ,依然報(bào)錯(cuò)。
SQLNET.ALLOWED_LOGON_VERSION_SERVER=10SQLNET.ALLOWED_LOGON_VERSION_SERVER=10(2)通過(guò)12c的客戶(hù)端訪問(wèn)12c數(shù)據(jù)庫(kù)可以訪問(wèn),驗(yàn)證網(wǎng)絡(luò)正常,防火墻端口開(kāi)啟。
(3)檢查用戶(hù)訪問(wèn)信息連接到:Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit ProductionSQL> select username, account_status,password_versions from dba_users where account_status='OPEN';USERNAME--------------------------------------------------------------------------------ACCOUNT_STATUS PASSWORD_VERSIONS-------------------------------- -----------------SYSOPEN 11G 12CSYSTEMOPEN 11G 12C可以看到默認(rèn)支持11G 12C兩個(gè)版本登錄 。
3、 問(wèn)題解決用sys用戶(hù)登錄,分別修改sys和system的密碼
alter user system identified by XXXXXXXXX;alter user sys identified by XXXXXXXXX;再次查詢(xún)用戶(hù)登錄信息
SQL> select username, account_status,password_versions from dba_users where account_status='OPEN';USERNAME--------------------------------------------------------------------------------ACCOUNT_STATUS PASSWORD_VERSIONS-------------------------------- -----------------SYSOPEN 10G 11G 12CSYSTEMOPEN 10G 11G 12C可以看到,修改完密碼后,兩個(gè)用戶(hù)有三個(gè)版本支持,10G 11G 12C 。
再次用11g客戶(hù)端登錄12c數(shù)據(jù)庫(kù)服務(wù)器:
SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 20 10:33:30 2023Copyright (c) 1982, 2010, Oracle. All rights reserved.Connected to:Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit ProductionSQL>訪問(wèn)成功!!!
4、小結(jié)原來(lái)在使用oracle10G/oracle11G的客戶(hù)端或者服務(wù)端連接oracle12c數(shù)據(jù)庫(kù)時(shí),會(huì)提示以下錯(cuò)誤:
ORA-28040: No matching authentication protocol
修改sqlnet.ora文件,增加兼容性參數(shù),就可以解決。如果兼容性參數(shù)增加后,登錄訪問(wèn)報(bào)01017錯(cuò)誤:
ERROR:ORA-01017: invalid username/password; logon denied
通過(guò)修改密碼,使得用戶(hù) PASSWORD_VERSIONS的兼容版本10G 11G 12C ,可以正常訪問(wèn)。
到此這篇關(guān)于oracle11g客戶(hù)端連接12c服務(wù)器ORA-01017錯(cuò)的文章就介紹到這了,更多相關(guān)oracle11g連接12c服務(wù)器ORA-0101報(bào)錯(cuò)內(nèi)容請(qǐng)搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!

網(wǎng)公網(wǎng)安備