This may not be exactly what you are looking for, but this is the code I
use to connect to oracle. ( and it is for 1.1 ).
/*******************************************************************************************************************************/
/******************************************************* S N I P P L E T
*****************************************************/
/*******************************************************************************************************************************/
import java.sql.*;
import oracle.jdbc.driver.*;
import java.math.*;
public class OrclConn{
public OrclConn(){
try{
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
}catch(Exception e){System.out.println("ORACLE DRIVER LOADER ERROR: " +
e);}
}//end constructor
Connection CurrConn;
String Driver;
private return getOracleConnection(String IP-ADDRESS, String PORT, String
SID, String USERNAME, String PASSWORD,){
try{
Driver = "oracle.jdbc.driver.OracleDriver";
Class.forName(Driver);
CurrConn = DriverManager.getConnection("jdbc:oracle:thin:@" +
IPADDRESS + ":" + PORT + ":" + SID + ", "+ USERNAME + ", " + PASSWORD);
}catch(Exception e){System.out.println("ORACLE ERROR: " + e);
e.printStackTrace();}
}//end getInformixConnection
public void closeConn() throws SQLException{
CurrConn.close();
}//end closeConn
}//end class OrclConn
/*******************************************************************************************************************************/
/************************************************** E N D - S N I P P L E T
**************************************************/
/*******************************************************************************************************************************/
_________________
Steve Gee
Java Developer
Maxor National Pharmacies
Information Technologies
[EMAIL PROTECTED]
806.324.5540
www.maxor.com
806.324.5400
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]