Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

oracle 10.2.0.5 jdbc driver

Posted on 2011-02-14
8
Medium Priority
?
1,601 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
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

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…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

636 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