-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Oracle drivers.
PostPosted: Wed Oct 29, 2003 2:20 pm 
Regular
Regular

Joined: Mon Sep 08, 2003 10:05 am
Posts: 50
Location: Dublin, Ireland
Is anyone using the 9.2.0.1 or 9.2.0.3 Oracle drivers (JDK 1.4 version: ojdbc14.jar)?

If so, does it operate correctly??

Anything to watch out for?

I'm getting as far as my logon page, when the Session.find (on the username and password) doesn't return the row (even though the data *does* exist in the database). Note that this *does* work with the DataDirect Oracle driver against the same database and configuration.. Any suggestions? I can't see anything in the FAQ, manual, or previous forum entries.


Top
 Profile  
 
 Post subject: Correction
PostPosted: Wed Oct 29, 2003 2:41 pm 
Regular
Regular

Joined: Mon Sep 08, 2003 10:05 am
Posts: 50
Location: Dublin, Ireland
Correction: the 9.2.0.1 version *does* run correctly against the database, which is 9.2.0.2. The 9.2.0.3 JDBC driver still does not seem to work, which is probably not surprising (given that its a later version than the database itself)


Top
 Profile  
 
 Post subject: Re: Oracle drivers.
PostPosted: Wed Oct 29, 2003 5:31 pm 
Beginner
Beginner

Joined: Tue Aug 26, 2003 2:46 pm
Posts: 45
Location: Saskatoon SK Canada
themax wrote:
Is anyone using the 9.2.0.1 or 9.2.0.3 Oracle drivers (JDK 1.4 version: ojdbc14.jar)?

If so, does it operate correctly??


I'm just getting into Hibernate, so I can't comment on it's use of the Oracle driver, but I am using 9.2.0.3 thin driver with another application, and it has been working okay. I use it against databases with varying versions of 9i, from 9.0.1.3.0 to 9.2.0.4.0.


Maury...


Top
 Profile  
 
 Post subject: Re: Oracle drivers.
PostPosted: Thu Oct 30, 2003 10:36 am 
Proxool Developer
Proxool Developer

Joined: Tue Aug 26, 2003 10:42 am
Posts: 373
Location: Belgium
Quote:
Is anyone using the 9.2.0.1 or 9.2.0.3 Oracle drivers (JDK 1.4 version: ojdbc14.jar)?

If so, does it operate correctly??


We are using Hibernate since version 1.2.1 (currently dev on 2.1b4) with Oracle 9.2.0.1 on both Windows & Linux, together with JDK1.4 and ojdbc14.jar.

Works perfectly so far - no particular issue discovered...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 30, 2003 10:47 am 
Regular
Regular

Joined: Mon Sep 08, 2003 10:05 am
Posts: 50
Location: Dublin, Ireland
I discovered an issue that might explain the 9.2.0.3 driver not working from within Hibernate (or any other tool, for that matter): the table I was referencing had char(40) columns rather than the intended varchar2(40), and the sql statement I was issuing was saying something like this..

Code:
select * from CDB_USER where username = 'username' and password = 'password'


Because char(40) is padded out to 40 characters wide (varchar2 isn't), the SQL statement above should actually return NO results.. so I changed the table definition to use varchar2(40) instead of incorrect char(40), and the 9.2.0.3 driver worked first time. Interestingly, the DataDirect driver worked with both char(40) and varchar2 (40).. which it probably should *not* have done.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.