오라클 연동
import java.sql.DriverManager; import java.sql.SQLException; public class OracleEx01 23; public static void main(String[] args) 23; String driver = "oracle.jdbc.driver.OracleDriver"; String url = "jdbc:oracle:thin:@localhost:1521:xe"; String user = "scott"; String password = "tiger"; try 23; Class.forName(driver); System.out.println("jdbc driver 로딩 성공"); DriverManager.getConnection(url, user, password); System.out.println("오라클 연결 성공"); 25; catch (ClassNotFoundException e) 23; System.out.println("jdbc driver 로딩 실패"); 25; catch (SQLException e) 23; System.out.println("오라클 연결 실패"); 25; 25; 25;