JDBC URL:
1、ServiceName方式:
jdbc:oracle:thin:@//<host>:<port>/ServiceName
如果是集群,不知道为什么是在配置文件里面没效果,直接写在代码就可以
2、SID方式:
jdbc:oracle:thin:@<host>:<port>:<SID>
JDBC URL:
1、ServiceName方式:
jdbc:oracle:thin:@//<host>:<port>/ServiceName
如果是集群,不知道为什么是在配置文件里面没效果,直接写在代码就可以
2、SID方式:
jdbc:oracle:thin:@<host>:<port>:<SID>
转载于:https://www.cnblogs.com/linn/p/10339054.html