### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
localhost:1521:orcl
)
是監聽配置問題嗎,求各位打什么指教
uj5u.com熱心網友回復:
你給的服務名 或者實體名錯了uj5u.com熱心網友回復:
1、檢查TNSNAME組態檔2、檢查監聽和資料服務是否已經啟動
3、TNSPING
uj5u.com熱心網友回復:
host port sid 檢查這三者是否正確uj5u.com熱心網友回復:
服務器端lsnrctl status輸出和客戶端使用的連接字串貼下uj5u.com熱心網友回復:
localhost 只能是本機,你的服務器和客戶端不是一個電腦就不行。轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/69665.html
標籤:基礎和管理
上一篇:求助資料查詢及匯出問題
