Solved

oracle 10.2.0.5 jdbc driver

Posted on 2011-02-14
8
1,531 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
  • 5
  • 3
8 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
Comment Utility
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
Comment Utility
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 76

Expert Comment

by:slightwv (䄆 Netminder)
Comment Utility
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
 

Accepted Solution

by:
dba840 earned 0 total points
Comment Utility
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
Comment Utility
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
Comment Utility
see above comments.
0
 

Author Comment

by:dba840
Comment Utility
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
Comment Utility
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
Via a live example, show how to take different types of Oracle backups using RMAN.

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now