| View previous topic :: View next topic |
| Author |
Message |
schusr Newbie

Joined: 08 Mar 2006 Posts: 4
|
Posted: Wed Jul 28, 2010 2:21 pm Post subject: OO 3.2.1 Base, Windows, Oracle, JDBC |
|
|
Installed OpenOffice 3.2.1 on a Windows 2003 system.
I want to connect to an Oracle instance using JDBC
JRE 1.6.0_20 is installed and used
Add driver via Tools, Options, Java, Class Path, Add Archive, point to ojdbc6.jar
Then File, New, Database, Connect to JDBC
No matter what I put in the JDBC driver class it does not test successfully.
Most common answer is oracle.jdbc.driver.OracleDriver but does not work. |
|
| Back to top |
|
 |
dacm Super User


Joined: 07 Jan 2010 Posts: 734
|
Posted: Wed Jul 28, 2010 2:31 pm Post subject: |
|
|
Okay...I'm posting without doing the research myself but are you sure that Oracle supplies all JDBC services through a single .jar file? Some enterprise-level engines require multiple .jar files for all/specific services. Though normally the driver service is one archive file. Otherwise, make sure the 'oracle.jdbc.driver.OracleDriver' syntax is exactly correct...and check for a space at the end of your string and eliminate it if found. _________________ Soli Deo gloria
Tutorial: avoiding data loss with Base + Migrating 'Embedded databases' |
|
| Back to top |
|
 |
schusr Newbie

Joined: 08 Mar 2006 Posts: 4
|
Posted: Thu Jul 29, 2010 7:56 am Post subject: |
|
|
Readme suggests the new class name is oracle.jdbc.
Attempting to use the Oracle 11.1.0.7.0 driver that downloads as one file ojdbc6.jar.
Can't believe this is a problem. |
|
| Back to top |
|
 |
schusr Newbie

Joined: 08 Mar 2006 Posts: 4
|
Posted: Thu Jul 29, 2010 8:03 am Post subject: |
|
|
Oracle readme with the driver has this code snippet
Connection conn =
new oracle.jdbc.OracleDriver().defaultConnection();
So I assume the correct JDBC driver class name is oracle.jdbc.OracleDriver but that does not work |
|
| Back to top |
|
 |
r4zoli Super User

Joined: 17 May 2005 Posts: 570 Location: Budapest, Hungary
|
|
| Back to top |
|
 |
dacm Super User


Joined: 07 Jan 2010 Posts: 734
|
|
| Back to top |
|
 |
|