±Û¾´ÀÌ :Ȳ±Ô¿µ 1999³â 2¿ù 10ÀÏ 13:53:14
¾ÆÁÖ Á׾°í ÀÖ½À´Ï´Ù. µÎ°³°¡ ¿¬°áÀÌ ¾ÈµÇ¼ ¹ÝÂë Á×¾ú½À´Ï´Ù. °íÁö°¡ ´«¾Õ¿¡ º¸ÀÌ´Â µí Çϸ鼵µ, ±× ¾Õ¿¡¼ ¹Ì²ô·¯Áø °ÍÀÌ ¹ú½á ¸îĥ°ÀÔ´Ï´Ù.
Á¦°¡ »ç¿ëÇÑ ¼Ò½ºÄÚµåÀÇ ÀϺθ¦ º¸¿©µå¸®¸é,
public static void main(String args[])
throws ClassNotFoundException,SQLException
{
System.out.println("Start connection process...");
String driverName="oracle.jdbc.driver.OracleDriver";
Class.forName(driverName);
System.out.println("Registering the jdbc Driver...");
Class.forName(driverName);
String drcon="jdbc:oracle:thin:@100.100.100.53:1521:orcl";
System.out.println("Attempting to connect to the oracle..");
Connection dbcon=DriverManager.getConnection("jdbc:oracle:thin:@100.100.100.53:1521:orcl","scott","tiger");
System.out.println("Co0nnection!!");
System.out.println("Creating a statement...");
Statement dbStatement=dbcon.createStatement();
ÀÌ°í,
°á°ú ¸Þ½ÃÁö´Â
Start connection process...
Registering the jdbc Driver...
Attempting to connect to the oracle..
java.sql.SQLException : No more data to read from socket
at oracle.jdbc.dbaccess.DBError.check_error<DBError.java:411>
at oracle>jdbc.ttc7...............
..................
..............
¿Í °°Àº Çü½ÄÀ¸·Î ³ª¿É´Ï´Ù.
ÄÄÆÄÀÏ·¯·Î´Â jdk1.2beta3¿Í jdk1.1.6À» »ç¿ëÇØ ºÃ½À´Ï´Ù.
Á¦¹ß ´ë´äÀ» ÇØ ÁÖ¼¼¿ä.... ´äÀ» °¡¸£ÃÄ ÁÖ¼¼¿ä...
Á¤¸» ¸îĥ° ¹ÌÄ¥Áö°æÀÔ´Ï´Ù.