Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn = DriverManager.getConnection(
"jdbc:oracle:thin:@dssnt01:1521:dssora01","scott","tiger");
DatabaseMetaData meta = conn.getMetaData();
System.out.println("You're using version: " +
meta.getDriverVersion() +
" of the Oracle JDBC driver.");
conn.close();