IT stuff – oracle hard parse

December 3rd, 2009 by Vivian Leave a reply »

今日學咗啲野, 想寫低佢…冇乜特別架

copied from this: http://www.dba-oracle.com/t_hard_vs_soft_parse_parsing.htm

Oracle hard-parse vs. soft parse

Oracle SQL is parsed before execution, and a hard parse includes these steps:

  1. Loading into shared pool – The SQL source code is loaded into RAM for parsing. (the “hard” parse step)

  2. Syntax parse – Oracle parses the syntax to check for misspelled SQL keywords.

  3. Semantic parse – Oracle verifies all table & column names from the dictionary and checks to see if you are authorized to see the data.

  4. Query Transformation - If enabled (query_rewrite=true), Oracle will transform complex SQL into simpler, equivalent forms and replace aggregations with materialized views, as appropriate.

  5. Optimization – Oracle then creates an execution plan, based on your schema statistics (or maybe with statistics from dynamic sampling in 10g).

  6. Create executable - Oracle builds an executable file with native file calls to service the SQL query

Advertisement

6 comments

  1. 嘩, 我以為個site俾人hack左添….

  2. Andrew says:

    嘩, 我以為個site俾人hack左添….

  3. 柔柔媽 says:

    祝你地2人+4 cats聖誕&新年快樂!~~

  4. Sara Lam says:

    好野, 留到啦

  5. Andrew says:

    好呀! v同鬆叮糖虎都好好呀!

Leave a Reply

*
To prove you're a person (not a spam script), type the answer to the math equation shown in the picture. Click on the picture to hear an audio file of the equation.
Click to hear an audio file of the anti-spam equation