Need help on explain plan [message #186955] |
Thu, 10 August 2006 05:18 |
gkodakalla
Messages: 49 Registered: March 2005
|
Member |
|
|
Hi,
we have a query which takes 31 seconds when called through JDBC.
The same sql statement, when executed from sqlplus takes only 1 second.
When we took help of our dba to find out why it takes 31 seconds in production,our dba found that one table is undergoing full table scan when called from JDBC. This was also found from V$SQL_PLAN.
However, explain plan shows index access and we get the output in just 1 second while executing from sqlplus.
How can we find out what is the reason for this discrepancy? and how can we fix this problem.
Thanks.
|
|
|
|
|
|