Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Hard Parse Time - too long...

439902Oct 12 2012 — edited Oct 18 2012
We have a DSS type database (11G R2), which has all kinds of queries run against it. There is not one typical query that is generated by the app, and so, while we use bind variables (good practice), no two requests are alike.

Some of the queries may end up joining 10-20 tables (the same table actually gets used multiple times). While these are not difficult to generate, they do take time to parse. On a few queries I noticed that query itself might execute in 3-4 seconds, but because DB needs to do a hard parse, total time will be close to a minute.

Doing a query against V$SESS_TIME_MODEL shows "hard parse elapsed time" = 45,709,571.

Is there any way to help speed up the process? Our tables/indexes are mostly cached due to system using the same set over and over again, so it seems impractical that DB would spend so much time parsing...

Any help/suggestions would be much appreciated.

Thank you in advance.

--Alex
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 15 2012
Added on Oct 12 2012
41 comments
11,484 views