SQL Language (MOSC)

MOSC Banner

Hard vs Soft Parsing

edited Jun 6, 2013 7:39PM in SQL Language (MOSC) 5 commentsAnswered
I'm trying to understand exactly what comprises hard vs soft parsing.  According to my readings, SQL is parsed in the following order:

  1. The SQL is loaded into the shared pool
  2. syntax parse
  3. semantics parse
  4. Query Transformation
  5. Optimization
  6. Executable created

Exactly which steps comprise the hard and soft parse steps?  According to clearest document I could find, step 1 is the hard parse and 2-6 are the soft parse steps.  But, if that is true, how can there ever be a soft parse?  Is there a step 0 where the shared pool is checked to see if the SQL has already been loaded and all of the necessary environmental variables match so that step 1 can be skipped?  

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center