Rumah  >  Artikel  >  pangkalan data  >  ????java thin 连接oracle url的几种写法

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

WBOY
WBOYasal
2016-06-07 15:24:401776semak imbas

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

Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Artikel sebelumnya:[week2]每周总结与工作计划Artikel seterusnya:TopCoder SRM 634 Div.2[ABC]