1. 程式人生 > >jdbc連線oracle

jdbc連線oracle

 Class.forName("oracle.jdbc.driver.OracleDriver");
  Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:ORACLE9I", "sys/sunlei4379 as sysdba", "sunlei4379");