Connection con=null;
try{
Class.forName("oracle.jdbc.OracleDriver");
con =
DriverManager.getConnection(
"jdbc:oracle:oci8:@DVS",
"USR_KT02GN",
"USR_KT02GN");
}catch(Exception e){
System.out.println("error");
}
String odbcName = getConfig("ODBC", "CLIENTMDB");
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
connClientMdb = DriverManager.getConnection(
"jdbc:odbc:" + odbcName ,"","");
} catch (Exception e) {
systemLog.fatal("Connection が取得できません。", e);
connClientMdb = null;
}
posted on 2008-05-29 15:48
大鸟 阅读(219)
评论(0) 编辑 收藏