jdbc连接oracle的几种格式

1. SID的方式。已经不推荐使用这种方式了。

jdbc:oracle:thin:[<user>/<password>]@<host>[:<port>]:<SID>

 

2.Service Name的方式。

jdbc:oracle:thin:[<user>/<password>]@//<host>[:<port>]/<service>

 

3.TNSNames 的方式。

jdbc:oracle:thin:[<user>/<password>]@<TNSName>

 

posted @ 2017-12-04 15:02  张不正  阅读(686)  评论(0编辑  收藏  举报
返回顶部