import java.sql.Connection;
import java.sql.DriverManager;
public class JDBCTest
{
public static void main(String[] args)
{
String url = "jdbc:oracle:thin:@127.0.01:1521:XE";
String id = "system";
String password = "nam";
Connection con;
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
con = DriverManager.getConnection(url, id, password);
System.out.println("접속 완료");
}
catch(Exception e)
{
}
}
}
댓글 없음:
댓글 쓰기