JDBC,ODBC

JDBC,ODBC

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;
  }

你可能感兴趣的:(JDBC,ODBC)