当前位置:Gxlcms > mysql > ????javathin连接oracleurl的几种写法

????javathin连接oracleurl的几种写法

时间:2021-07-01 10:21:17 帮助过:3人阅读

java连接oracle的url几种写法 1. jdbc:oracle:thin:@10.12.1.161:1521:bomc 2. jdbc:oracle:thin:@(DESCRIPTION= (LOAD_BALANCE=on) (ADDRESS=(PROTOCOL=TCP) (HOST=127.0.0.1) (PORT=1521)) (ADDRESS=(PROTOCOL=TCP) (HOST=10.32.11.4)(PORT=1521)) (CONNEC

java连接oracle的url几种写法


1. jdbc:oracle:thin:@10.12.1.161:1521:bomc

2. jdbc:oracle:thin:@(DESCRIPTION=
(LOAD_BALANCE=on)
(ADDRESS=(PROTOCOL=TCP) (HOST=127.0.0.1) (PORT=1521))
(ADDRESS=(PROTOCOL=TCP) (HOST=10.32.11.4)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=bomc)) )

3. jdbc:oracle:thin:@(DESCRIPTION_LIST =
(LOAD_BALANCE = off)
(FAILOVER = on)
(DESCRIPTION =
(ADDRESS_LIST =
(LOAD_BALANCE=OFF)
(FAILOVER=ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.32.11.4)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = bomc)
(INSTANCE_NAME = bomc)
(FAILOVER_MODE=(TYPE=session)(METHOD=basic)(RETRIES=4)(DELAY=1))
)
)
(DESCRIPTION =
(ADDRESS_LIST =
(LOAD_BALANCE=OFF)
(FAILOVER=ON)
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.1.162)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = bomc)
(INSTANCE_NAME = bomc)
(FAILOVER_MODE=(TYPE=session)(METHOD=basic)(RETRIES=4)(DELAY=1))
)
)
)

人气教程排行