Oracle
1Z0-117 · Question #27
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…
The correct answer is F. 2, 5. 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…
Understanding and Influencing the Optimizer
Question
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.
Exhibit
Options
- A5, 1, 3, 4
- B2, 4, 3
- C5, 2, 3, 4
- D1, 4, 3
- EOnly 5
- F2, 5
How the community answered
(32 responses)- A3% (1)
- B9% (3)
- D3% (1)
- F84% (27)
Explanation
- 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
Topics
#SQL parsing#shared pool#hard parse#soft parse
Community Discussion
No community discussion yet for this question.
