jdbc: oracle: thin: @ localhost: 1521: orcl 과 jdbc: oracle: thin: @ / localhost: 1521 / orcl 의 차이
1597 단어 지식 점 총화
Oracle Thin JDBC Driver
:ojdbc14.jar、ojdbc6.jar
: oracle.jdbc.driver.OracleDriver
JDBC URL:
1. ServiceName :( )
jdbc:oracle:thin:@//:/ServiceName
2. SID :
jdbc:oracle:thin:@::
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)))
4. jdbc:oracle:oci:@service ( )
:
jdbc:oracle:thin:@localhost:1521/orcl