You need to get the current driver for your 8i database from Oracle (free download) and set your classpath to point to the classes111.zip (it's the same name for each version of Oracle but, won't reliably work with different versions) I personnally like the thin drivers instead of the OCI. Then to connect it's
try
{
//register the driver
DriverManager.registerDriver(new
oracle.jdbc.driver.OracleDriver());
// Get database connection.
Connection conn = DriverManager.getConnection(databaseURL,
userName, password);
}
catch (Exception ec)
{
System.out.println("Error on Connect " + ec + "\n");
}
the database url is
jdbc
racle:thin:@[ip address or dns name for database]:[port of oracle listener]:[sid]
[This message has been edited by Carl Trusiak (edited June 13, 2000).]