Examine the statements being executed for the first time:
Steps followed by a SQL statement during parsing:
1. Search for a similar statement in the shared pool.
2. Search for an identical statement in the shared pool.
3. Search the SQL area of identical statement already in the shared pool.
4. Proceed through the remaining steps of the parse phase to ensure that the execution plan of
the existing statements is applicable to the view statement.
5. Perform hard parsing.
6. Share the SQL area of the similar statement already in the shared pool.
Identify the required steps in the correct sequence used by the third query.
A.
5, 1, 3, 4
B.
2, 4, 3
C.
5, 2, 3, 4
D.
1, 4, 3
E.
Only 5
F.
2, 5
Explanation:
2) before 5).
Note:
* When application code is run, Oracle attempts to reuse existing code if it has been executed
previously and can be shared. If the parsed representation of the statement does exist in the
library cache and it can be shared, then Oracle reuses the existing code. This is known as a soft
parse, or a library cache hit. If Oracle is unable to use existing code, then a new executable
version of the application code must be built. This is known as a hard parse, or a library cache
miss.
Reference: Oracle Database Performance Tuning Guide, SQL Sharing Criteria
For me, “F” seems to be correct