try {
System.out.print(" Loading JDBC Driver -> " + driverClass + "\n");
Class.forName(driverClass).newInstance();
System.out.print(" Connecting to -> " + connectionURL + "\n");
this.con = DriverManager.getConnection(connectionURL, userID, userPassword);
System.out.print(" Connected as -> " + userID + "\n");
System.out.print(" Looking for Warnings\n");
SQLWarning sqlw = con.getWarnings();
if (sqlw != null && sqlw.getErrorCode() == 28002) {
System.out.println(" WARNING: ORA-28002: Your password will expire soon!");
System.out.println(" MESSAGE: " + sqlw.getMessage());
}
System.out.print(" Warning check process completed\n");
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (InstantiationException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
}
}
The progress and work done after the advent of computers has resulted in more dedicated hosting services coming up everyday, and many of them are cheap web hosting services.
No comments:
Post a Comment