1. 程式人生 > >連線資料庫Oracle12c異常解決:Connections could not be acquired from the underlying database

連線資料庫Oracle12c異常解決:Connections could not be acquired from the underlying database

Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database!

之前本地使用的oracle11g,結果伺服器上來了一個Oracle12c,瞬間就連不上了,害得我花費了好幾天時間。

具體解決方案如下:

首先ping 或者telnet資料庫看是否是通的,如果不通那累死也連不上呢。

其次確認驅動版本,儘量使用6以上版本

最後確認資料庫連線寫法,正確寫法為:jdbc:oracle:thin:@//127.0.0.1:1521/orcl

然後再次嘗試