1 | The JDBC API is in the package java.sql. |
2 | The classes include a DriverManager that keeps track of available database drivers. Download the driver you want and use it to connect to the database server. |
3 | Class.forName("oracle.jdbc.driver.OracleDriver"); conn = DriverManager.getConnection ("jdbc:oracle:thin:@carver.npac.syr.edu:1521:europe", "dbusername", "dbpassword"); |