2009-08-11 105 views
0

這裏是我當前的連接字符串:JDBC連接字符串可以指定多個數據庫嗎?

jdbc:amazon;moduleName=Foobar:oracle:thin:@ab1na-orasvr.db.foobar.com:42111:ab1na 

但我需要JDBC訪問多個數據庫。我可以簡單地附加第二個模塊名稱,用分號分隔嗎?

+0

對不起,這是一個非常基本的是/否的問題。只是想在我追逐我的尾巴之前確定。 – 2009-08-11 17:13:38

回答

3
jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST = (ADDRESS =(PROTOCOL=TCP) 
(HOST=1)(PORT=1521))(ADDRESS=(PROTOCOL=TCP) 
(HOST=2)(PORT=1521))(ADDRESS =(PROTOCOL=TCP) 
(HOST=3)(PORT=1521))(ADDRESS =(PROTOCOL=TCP) 
(HOST=4)(PORT=1521))(ADDRESS =(PROTOCOL=TCP) 
(HOST=5)(PORT=1521))(ADDRESS =(PROTOCOL=TCP) 
(HOST=6)(PORT=1521))(ADDRESS =(PROTOCOL=TCP) 
(HOST=7)(PORT=1521))(ADDRESS =(PROTOCOL=TCP) 
(HOST=8)(PORT=1521))(FAILOVER=on) (LOAD_BALANCE=ON)) 
(CONNECT_DATA = (SERVER=DEDICATED) 
(SERVICE_NAME =ccbfsinterface.comp.pge.com))) 
相關問題