Guest User

Untitled

a guest
May 27th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. String dbacct, passwrd;
  2. dbacct = readEntry("Enter database account: ");
  3. passwrd = readEntry("Enter database password: ");
  4. try {
  5. Connection conn = DriverManager.getConnection
  6. ("jdbc:oracle:thin:@127.0.0.1:1521:ite10g",dbacct,passwrd);
  7. } catch (SQLException x) {
  8. System.out.println("Connection failed: " + x.toString());
  9. }
  10. System.out.println("Hello World!");
  11. }
Add Comment
Please, Sign In to add comment