http://www.cnblogs.com/zhangliang0115/archive/2012/02/18/2357097.htmlhtml
JDBC Thin Driver 的formats 有三種格式:oracle
jdbc:oracle:thin:@//<host>:<port>/<service_name>
Example: jdbc:oracle:thin:@//192.168.2.1:1521/XEide
注意這裏的格式,@後面有//, 這是與使用SID的主要區別。orm
這種格式是Oracle 推薦的格式,由於對於集羣來講,每一個節點的SID 是不同的,可是SERVICE_NAME 確能夠包含全部節點。htm
jdbc:oracle:thin:@<host>:<port>:<SID>
Example: jdbc:oracle:thin:192.168.2.1:1521:X01A
blog
Note: Support for SID is being phased out. Oracle recommends that users switch over to usingservice names.get
jdbc:oracle:thin:@<TNSName>
Example: jdbc:oracle:thin:@GL
Note:
Support for TNSNames was added in the driver release 10.2.0.1it