Re: How to connect Java application with Oracle Database using JDBC?
- From: "DRS.Usenet@xxxxxxxxxxxxxxxx" <DRS.Usenet@xxxxxxxxxxxxxxxx>
- Date: Fri, 31 Aug 2007 11:52:26 -0700
public OracleConnection connect() throws Exception {
String connectString =
"jdbc:oracle:thin:@some.server.name:someportnumber:somedatabasename";
OracleDriver driver = new OracleDriver();
driver = null;
Class.forName ("oracle.jdbc.driver.OracleDriver");
con = (OracleConnection)
DriverManager.getConnection(connectString,userid, password);
con.setAutoCommit(false);
return con;
}
You need to find a copy of classes12.jar.
--Dale--
.
- Follow-Ups:
- References:
- Prev by Date: Manually Terminating a Session (FROM an HTTP POST)
- Next by Date: Re: Coding Standards
- Previous by thread: How to connect Java application with Oracle Database using JDBC?
- Next by thread: Re: How to connect Java application with Oracle Database using JDBC?
- Index(es):