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!

Usage of Library Cache during Parsing

ChilakamarthiJun 27 2012 — edited Jun 27 2012
Reading some articles online and in Oracle metalink I understood that

Library Cache Locks and Pins are needed while parsing(hard parse) phase of a sql execution in Oracle.Do we need the same during a soft parse too?

During the soft parse what Oracle does is to check syntatic and sematics of the statement and return result set using the existing plan,so I think access to objects cached in library cache is needed in Soft parse also to do the semantic and syntatic check.

Correct me if I am wrong here.

So I think the reason why the hard parse is much slower here is due to loading the object info into library cache(part of sharedpool) if the statement is parsed for the first time.

Please advice me if my assumtion is correct or am I misstating some things here.

Thanks,
Ravi.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 25 2012
Added on Jun 27 2012
3 comments
650 views