December 10, 2008

JDBC driver and poor SQL execution plan

Follow-up to performance impact of java.sql.TimeStamp from Oracle/Java/Others

I was asked to create a index for a simple query. it is using FULL table scan. The index works find on test server.
On live server, it refuse to use the index.
I checked the table stats, it is up-to-date.
I manually execute the query, it was using the index.

When we configured our test app server using the live data, , it used the index correctly.
When the driver used in live server was copied to test server, the query run very slow.

No doubt the JDBC driver cause problem again.


- No comments Not publicly viewable


Add a comment

You are not allowed to comment on this entry as it has restricted commenting permissions.

Trackbacks

  1. National characters and indexes

    We need to upgrade to the Oracle driver version 10.2.0.4 to fix a multi-bytes character display problem in out web app. But with this driver, some SQLs run very slow. With a lower version driver, the application works fine. <p...

    Oracle/Java/Others - 16 Mar 2009, 12:14

Search this blog

Search Warwick Blogs

 

Tags

Most recent comments

  • Oracle 11g is the clear leader in this area. Oracle has invested he… by shaane on this entry
  • All the features are very nice.I like Repair Advisors the most.Orac… by lucy on this entry
  • “logical standby failed to re–start, I am also getting … by anemia on this entry
  • thanks for give nice information for health.. by Appointment Setting on this entry
  • Thanks for the nice information because from last three days i am s… by robot vacuum on this entry
Not signed in
Sign in

Powered by BlogBuilder
© MMXII