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!

soft parse vs hard parse

OracleGuy777Sep 7 2008 — edited Nov 29 2012
hi guys,

I am reading a [document |http://www.jlcomp.demon.co.uk/faq/soft_hard_parse.html] where the parsing of a sql statement is described as:

In summary,

+1. Perform syntax check+
+2. Perform semantic check+
+3. Perform hash function+
+4. Perform library cache lookup+
+5. If hash value found then+
+6. .....If command is identical to existing one in cache then+
+7. ..........If the objects referenced in the cached command are the same as the ones in the new command then+
+8. ...............This is a soft parse, go to step 11+
+9. This is a hard parse, build parse tree+
+10. Build execution plan+
+11. Execute plan.+


However, in a book that I am reading, it says that "parse locks are acquired" to make sure that the objects referenced by the statement are not changed. But the above does not make mention of this. I'm thinking either the author forgot it, either it is so obvious that it is not even worth a mention, or either my book is wrong.

Any help appreciated.
This post has been answered by Fco Munoz Alvarez on Sep 7 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 6 2008
Added on Sep 7 2008
13 comments
9,343 views