Java JDBC - How to connect to Oracle using tnsnames.ora

后端 未结 5 2080
再見小時候
再見小時候 2020-11-29 08:41

tnsnames.ora file contains the Databases and the their description (host + port).

  • Is it possible to esta

5条回答
  •  难免孤独
    2020-11-29 09:13

    Starting from 18.3, TNS_ADMIN that provides the location of the tnsnames.ora file can be passed as part of the connection URL. Please note the syntax.

    jdbc:oracle:thin:@jdbctest_medium?TNS_ADMIN=/test/cloud/network
    

提交回复
热议问题