Guest_imported
New member
- Jan 1, 1970
- 0
I need to connect to a Oracle DB through jdbc and I'm not managing to do it. I'm using the thin drivers so apart from including classes111.zip to the required libraries of the project (I'm using JBuilder 3.5 as the IDE) should I need anything else?
This is the code I'm using:
Class.forName("com.evermind.sql.DriverManagerDataSource"
String dbUrl = "jdbcracle:thinrc.mydomain.com:1521MyDBName";
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
DriverManager.getDriver("oracle.jdbc.driver.OracleDriver"
Connection c = DriverManager.getConnection(dbUrl,"user1","passwd"
but this don't work, maybe I need something else. I know the thin drivers don't need Oracle Client installed on the machine, but maybe something else?
This is the code I'm using:
Class.forName("com.evermind.sql.DriverManagerDataSource"
String dbUrl = "jdbcracle:thinrc.mydomain.com:1521MyDBName";
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
DriverManager.getDriver("oracle.jdbc.driver.OracleDriver"
Connection c = DriverManager.getConnection(dbUrl,"user1","passwd"
but this don't work, maybe I need something else. I know the thin drivers don't need Oracle Client installed on the machine, but maybe something else?