QuestionQ8

VerifiedTuning SQL Statements

The CURSOR_SHARING and OPTIMIZER_CAPTURE_SQL_PLAN_BASELINES parameters retain their default settings. The five leading wait events in an AWR report result from numerous hard parses caused by several nearly identical SQL statements.

Which two actions could decrease the number of hard parses?

Choose two
Explanation

CURSOR_SHARING=FORCE permits similar statements that differ in literals to share a SQL area, reducing hard parses. Increasing library-cache memory helps keep executable SQL from aging out, avoiding hard reparses when it is executed again. KEEP and RECYCLE buffer caches affect cached data blocks, while automatic SQL plan baseline capture controls plan baselines rather than cursor sharing.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!