jdbc@1521:orcl和jdbc@1521/orcl的区别

Oracle Thin JDBC Driverhtml

驱动程序包名:ojdbc14.jar、ojdbc6.jaroracle

驱动程序类名: oracle.jdbc.driver.OracleDriveride

JDBC URL: htm

  1. ServiceName方式:
    jdbc:oracle:thin:@//<host>:<port>/ServiceNameblog

  2. SID方式:
    jdbc:oracle:thin:@<host>:<port>:<SID>

3.RAC方式(老的写法,如今通常用ServiceName方式)
jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=x.x.x.1)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=x.x.x.2)(PORT=1521)))(LOAD_BALANCE=yes)(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=xxrac)))ci

  1. jdbc:oracle:oci:@service (这种通常没有人写吧)

转自:https://www.cnblogs.com/joechinochl/articles/5545450.htmlget

相关文章
相关标签/搜索