Last night we connected to our Oracle 8i database using the following info
(the db url took us a bit as this was our first time).

I hope that helps! -b

String jdbcDRIVER = "oracle.jdbc.driver.OracleDriver";
String dBURL = "jdbc:oracle:thin:@unknown:1521:test";
String userName = "system";
String passWord = "manager";


-----Original Message-----
From: Hugo Espinoza B. [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 26, 2000 12:32 PM
To: [EMAIL PROTECTED]
Subject: Re: Connection Error with Oracle


this is the source. and yes!! Employee.class exist and my
CLASSPATH get the path of the JDBCDriver is a classes12_01.zip
.




i'dont know why is not Work?!
import java.sql.*;




class Employee
{
public static void main (String args [])
throws SQLException
{
DriverManager.registerDriver(new
oracle.jdbc.driver.OracleDriver());




Connection conn =
DriverManager.getConnection
("jdbc:oracle:thin:@130.102.1.100:1521:pr80",
"conta", "conta98");




Statement stmt = conn.createStatement ();




ResultSet rset = stmt.executeQuery ("select
nomemp from sctemp");




while (rset.next ())
System.out.println (rset.getString (1));
}
}







___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".


Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to