欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

????java thin 连接oracle url的几种写法

程序员文章站 2023-12-29 16:21:40
...

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))
)
)
)

上一篇:

下一篇: