/**数据库连接属性<BR>
* 已经用了连接池,此类已经作废<BR>
* 时间: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;
}
jdbc thin 连接 rac数据源-JAVA-ORACLE
最新推荐文章于 2021-04-13 22:36:30 发布