import java.sql.*;
public class MainDemo {
public static void main(String[] args)throws ClassNotFoundException ?? SQLException{
String driverName = "oracle.jdbc.driver.OracleDriver" ;
String dbURL = "jdbc:oracle:thin:@localhost :1521:ORACLE " ;
String userName = "scott";
String userPwd = "tiger" ;
Connection conn = null ;  //????Connection??????????????
Class.forName(driverName) ;   //?????????????????
conn= DriverManager.getConnection(dbURL ?? userName?? userPwd);   //?????????
conn.close();
??
??
??????????????????·???????>Build Path >configure>libraries>E:appAdministratorproduct11.2.0dbhome_1jdbclibojdbc5.jar
????????????????????????????????????????????????????????????ū???ò????????????String driverName = "oracle.jdbc.driver.OracleDriver" ;??????????СС?????????????????????