Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IO Error: The Network Adapter could not establish the connection
- public void makeOracleConnection() {
- try {
- Class.forName("oracle.jdbc.OracleDriver");
- oraCon = DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.217:1521:orcl", "hr", "hr");
- oraStmt = oraCon.createStatement();
- oraRsStmt=oraCon.createStatement(ResultSet.CONCUR_READ_ONLY,ResultSet.TYPE_SCROLL_INSENSITIVE);
- } catch (Exception e) {
- System.out.println("Error while making connection with Database : " + e.getMessage());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement