Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class.forName("oracle.jdbc.driver.OracleDriver");
- Connection con=DriverManager.getConnection(
- "jdbc:oracle:thin:@localhost:1521:amani","system","a123");
- Statement stmt=con.createStatement();
- ResultSet rs=stmt.executeQuery("select * from emp");
- while(rs.next())
- System.out.println(rs.getInt(1)+" - "+ rs.getString(2)+" - "+rs.getInt(3)+"n");
- java.sql.SQLException: Io exception: Bad packet type
Add Comment
Please, Sign In to add comment