Solved

oracle 10.2.0.5 jdbc driver

Posted on 2011-02-14
8
1,564 Views
Last Modified: 2012-05-11
is 10.2.0.5 jdbc driver compatible with oracle database 10.2.0.4?    we are seeing issues once we upgrade the jdbc driver from 10.2.0.1 to 10.2.0.5.

we are getting ORA-00932: inconsistent datatypes: expected DATE got NUMBER.   our developer described the issue seems to be the code expecting java..util.Date but we are getting java.sql.Date.  
0
Comment
Question by:dba840
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 34893159
There shouldn't be an issue with versions.  The problem is likely an issue with implicit date conversions.

Oracle can convert strings to dates itself IF everything is correct.  This rarely happens.  

The developers should force string to dates with the Oracle TO_DATE call specifying the mask for the string and force the java date call to a matching specific string.
0
 

Author Comment

by:dba840
ID: 34898445
Well it was working fine before with 10.2.0.1 version of jdbc driver.   this might require code change or upgrade rdbms to 10.2.0.5 for fix but just wonder if anyone has run into similar issue with 10.2.0.5.   thanks.
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 34898575
You can control the 'default' date format for Oracle with NLS_DATE_FORMAT.  Try setting that value on the client side to match the format produced by Java.

It's possible they did that for the old install.
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

Accepted Solution

by:
dba840 earned 0 total points
ID: 34928770
our developer resolved the issue by setting -Doracle.jdbc.V8Compatible=true
 it is compatiblity issue with older oci8 driver that our app uses.

thanks for all your comments.
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 34928795
Glad you finally got the issue resolved.

I suggest you select your last post, http:#a34928770, as the solution in case anyone else runs into this probem.
0
 

Author Comment

by:dba840
ID: 34928871
see above comments.
0
 

Author Comment

by:dba840
ID: 34928878
since 9i oracle jdbc driver has changed how it handles date and other datatypes that might requires this settings if you still use oci8 driver each time you upgrade your jdbc driver.

more information:
http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-faq-090281.html#08_01
0
 

Author Closing Comment

by:dba840
ID: 34959184
since 9i oracle jdbc driver has changed how it handles date and other datatypes that might requires this settings if you still use oci8 driver each time you upgrade your jdbc driver.

more information:
http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-faq-090281.html#08_01
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to trim oracle sql sentence in unix 17 86
update statement in oracle 9 51
only show the last 365 days 6 34
Oracle function return value when null 2 33
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question