baztian / jaydebeapi

JayDeBeApi module allows you to connect from Python code to databases using Java JDBC. It provides a Python DB-API v2.0 to that database.
GNU Lesser General Public License v3.0
365 stars 148 forks source link

jdbc 连接oracle12c报错,连接11g没问题 #113

Closed lifuqiang2016 closed 5 years ago

lifuqiang2016 commented 5 years ago

code: __pool = jaydebeapi.connect("oracle.jdbc.driver.OracleDriver","jdbc:oracle:thin:@xxxxxxxx:1521/orcl", ["xx", "xx"], os.path.join(PATH,"ojdbc6.jar"))

error: error:java.sql.SQLRecoverableException: IO 错误: The Network Adapter could not establish the connection