
January 9th, 2005, 08:59 PM
|
|
Contributing User
|
|
Join Date: Aug 2004
Posts: 119
Time spent in forums: 17 h 6 m 41 sec
Reputation Power: 4
|
|
|
oracledatasource
i tried doing this but i have error on the oracledatasource.
I tried looking for this pool.oracledatasource in my folders but couldn't find. Whats the mistake here?
import java.sql.*;
import java.math.*;
import oracle.jdbc.pool.OracleDataSource;
^^^^^^^^^^^
class dbconnection {
OracleDataSource ods = new OracleDataSource();
^^^^^^^^^^^^^^^^
ods.setUser("my_user");
ods.setPassword("my_password");
ods.setURL("jdbc: oracle:thin:@<TSH1>");
Connection conn = ods.getConnection();
}
|