????java thin 连接oracle url的几种写法
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))
)
)
)