/**數據庫連接屬性
* 已經用了連接池,此類已經作廢
* 時間:2013-7-10 12:34:40
* */
public class DBConfig {
public static String driver = "oracle.jdbc.driver.OracleDriver";
public static String url = "jdbc:oracle:thin:@ip地址:1521:search";
public static String username = "icd";
public static String password = "icd130423";
//jdbc thin 連接 rac數據源-ORACLE
public static String driver2 = "oracle.jdbc.driver.OracleDriver";
public static String url2 = "jdbc:oracle:thin:@(description=(address_list= "
+" (address=(host=ip地址1) (protocol=tcp)(port=1521))"
+" (address=(host=ip地址2)(protocol=tcp) (port=1521))"
+" (load_balance=yes)(failover=yes))"
+" (connect_data=(service_name= gzodsrd)))";
public static String username2 = "gd10000gz";
public static String password2 = "Ab123456";
// 調用方式:
// String driver = DBConfig.driver;
// String url = DBConfig.url;
// String username = DBConfig.username;
// String password = DBConfig.password;
}