private Connection conn;
private void initNewConnection() throws SQLException {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
this.conn = DriverManager.getConnection(
"jdbc:oracle:thin:@192.168.xx.xx:1521:sid",
"userId",
"userPwd");
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
}
}
"jdbc:oracle:thin:@192.168.xx.xx:1521:sid",
"userId",
"userPwd");
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
}
}