Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String dbacct, passwrd;
- dbacct = readEntry("Enter database account: ");
- passwrd = readEntry("Enter database password: ");
- try {
- Connection conn = DriverManager.getConnection
- ("jdbc:oracle:thin:@127.0.0.1:1521:ite10g",dbacct,passwrd);
- } catch (SQLException x) {
- System.out.println("Connection failed: " + x.toString());
- }
- System.out.println("Hello World!");
- }
Add Comment
Please, Sign In to add comment