jdbc版本過低或oracle_home配置錯誤,導致ORA-28040
由於之前profile用的是11g未做目錄修改直接使用導致此類問題
sqlnet.ora新增如下解決
SQLNET.ALLOWED_LOGON_VERSION_CLIENT=8
貼上mos相關解釋
文件 ID 2023160.1
On : 10.2.0.4 version, Thin JDBC driver
When trying to connect to Oracle database 12.1.0.2 using JDBC 10.2.0.4 (using file ojdbc14.jar), error ORA-28040 No matching authentication protocol is returned even though sqlnet.ora file on server side is changed to include :
SQLNET.ALLOWED_LOGON_VERSION_CLIENT=8
SQLNET.ALLOWED_LOGON_VERSION_SERVER=8
and listener is restarted (stop/start).
According to Document: 401934.1 Starting With Oracle JDBC Drivers, JDBC 10.2.1 must be able to connect to Oracle 12.1.0. But, it does not.
If JDBC is replaced with 11.2.0 (file ojdbc5.jar), there is no error.
ERROR
-----------------------
Using /oracle/client/10x_64/instantclient/ojdbc14.jar
-------- Oracle JDBC Connection Testing ------
Found JDBC Driver!
Querying Time and DB Name from database
Connection Failed! Check output console
java.sql.SQLException: ORA-28040: No matching authentication protocol
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:283)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:278)
at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOsesskey(T4CTTIoauthenticate.java:294)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:357)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:441)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at OracleJDBC.main(OracleJDBC.java:35)
The issue is caused by the listenerr.ora file referencing the incorrect ORACLE_HOME:
# listener.ora Network Configuration File: /u01/app/oracle/product/db/11.2/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = soa)
(ORACLE_HOME = /u01/app/oracle/product/db/102) <=======
(SID_NAME = soa)
)
)
....
Change the ORACLE_HOME in the listener to point to the 12c installation:
# listener.ora Network Configuration File: /u01/app/oracle/product/db/11.2/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = soa)
(ORACLE_HOME = /u01/app/oracle/product/db/12c) <=======
(SID_NAME = soa)
)
)
....
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24486203/viewspace-2140980/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORACLE_HOME設定錯誤導致本地sqlplus無法登陸OracleSQL
- 誤修改ORACLE_HOME導致無法登陸資料庫Oracle資料庫
- listener的ORACLE_HOME配置出錯導致無法遠端登陸資料庫Oracle資料庫
- 編譯過程導致ORA-4068錯誤編譯
- 關於Apache錯誤頁面導致版本顯示的設定Apache
- 多餘索引導致explain錯誤索引AI
- 版本不當導致的exp出錯
- impdp時parallel=4導致的錯誤Parallel
- 什麼會導致HTTP出現429請求過多錯誤?HTTP
- 【OCR】Oracle CRS 10.2.0.1版本Bug導致映象OCR時報PROT-22錯誤Oracle
- memlock過低導致的資料庫效能問題資料庫
- 一次 JDBC 與 MySQL 因 “CST” 時區協商誤解導致時間差了 14 或 13 小時的排錯經歷JDBCMySql
- merge語句導致的ORA錯誤分析
- java jdbc Protocol violation錯誤JavaJDBCProtocol
- 微軟配置錯誤導致大量敏感資料洩露,全球客戶受影響微軟
- 軟體版本不同導致配置資訊不能匯入
- Lombok 的@ToString導致的Maven編譯錯誤LombokMaven編譯
- ORA-04031錯誤導致當機案例分析
- 如何解決url傳參導致錯誤問題
- 修復svn hook導致的字符集錯誤Hook
- Oracle GoldenGate導致IMP出現ORACLE 32588錯誤OracleGo
- 錯誤思維導向致IT專案問題多
- sys密碼修改導致的RMAN-00571錯誤密碼
- goldengate命令輸入錯誤導致的血案2Go
- CHAR型別函式索引導致結果錯誤型別函式索引
- 記一次 hosts 檔案配置錯誤導致應用卡頓的奇葩問題
- WARNING! 配置不當,或導致Kotlin原始碼洩漏!Kotlin原始碼
- [譯] RxJS: 避免因濫用 switchMap 而導致錯誤JS
- 升級Xcode10導致的編譯錯誤XCode編譯
- autotrace 和explain plan for可能導致執行計劃錯誤AI
- 修改記憶體導致Ora-27100錯誤記憶體
- 資料庫升級導致ORA-918錯誤資料庫
- 執行計劃錯誤導致系統負載高負載
- import提升導致Fundebug報錯:“請配置apikey”ImportAPI
- 你遇到過嗎?介面返回錯誤的格式,導致前端各種亂象。怎麼辦?前端
- pyOpenSSL版本問題導致Scrapy安裝報錯,打補丁
- PostgreSQL DBA(29) - Backup&Recovery#2(日期格式導致的錯誤)SQL
- 12.2.0.1bug導致的Failed to register in OCRLOCAL group.錯誤AI