nerdexam
Oracle

1Z0-117 · Question #52

You need to migrate database from oracle Database 10g to 11g. You want the SQL workload to start the 10g plans in the 11g database instance and evolve better plans. Examine the following steps: 1…

The correct answer is C. 1, 2, 3, 4, 8, 10. By setting the parameter OPTIMIZER_FEATURES_ENABLE to the 10g version used before the upgrade, you should be able to revert back to the same execution plans you had prior to the OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES In Oracle Database 11g a new feature called SQL Plan Management…

Managing SQL Performance with SQL Plan Management

Question

You need to migrate database from oracle Database 10g to 11g. You want the SQL workload to start the 10g plans in the 11g database instance and evolve better plans. Examine the following steps: 1. Capture the pre-Oracle Database 11g plans in a SQL Tuning Set (STS) 2. Export the STS from the 10g system. 3. Import the STS into Oracle Database 11g. 4. Set the OPTIMIZER_FEATURES_ENABLE parameter to 10.2.0. 5. Run SQL Performance Analyzer for the STS. 6. Set the OPTIMIZER_FEATURES_ENABLE parameter to 11.2.0. 7. Rerun the SQL Performance Analyzer for the STS. 8. Set OPTIMIZER_CAPTURE_SQL_PLAN_BASELINE to TRUE. 9. Use DBMS_SPM.EVOLVE_SQL_BASELINE function to evolve the plans. 10. Set the OPTIMIZER_USE_SQL_PLAN_BASELINE to TRUE. Identify the required steps in the correct order.

Options

  • A1, 2, 3, 4, 5, 6, 7,
  • B4, 8, 10
  • C1, 2, 3, 4, 8, 10
  • D1, 2, 3, 6, 9, 5
  • E1, 2, 3, 5, 9, 10

How the community answered

(23 responses)
  • B
    9% (2)
  • C
    83% (19)
  • D
    4% (1)
  • E
    4% (1)

Explanation

By setting the parameter OPTIMIZER_FEATURES_ENABLE to the 10g version used before the upgrade, you should be able to revert back to the same execution plans you had prior to the OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES In Oracle Database 11g a new feature called SQL Plan Management (SPM) has been introduced to guarantees any plan changes that do occur lead to better performance. When OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES is set to TRUE (default FALSE) Oracle will automatically capture a SQL plan baseline for every repeatable SQL statement on the system. The execution plan found at parse time will be added to the SQL plan baseline as an accepted OPTIMIZER_USE_SQL_PLAN_BASELINES enables or disables the use of SQL plan baselines stored in SQL Management Base. When enabled, the optimizer looks for a SQL plan baseline for the SQL statement being compiled. If one is found in SQL Management Base, then the optimizer will cost each of the baseline plans and pick one with the lowest cost.

Topics

#SQL Tuning Set#SQL plan baseline#database migration#SQL Performance Analyzer

Community Discussion

No community discussion yet for this question.

Full 1Z0-117 Practice