nerdexam
Oracle

1Z0-054 · Question #40

A user in a session executed the following SQL statement to set the optimizer mode: ALTER SESSION SET OPTIMIZER_MODE = ALL_ROWS What impact would it have on the goal of the optimizer for that…

The correct answer is A. Statement level OPTIMIZER_MODE hints take precedence over the session-level setting. D. The optimizer uses a cost-based approach for all SQL statements in the session, regardless of. See the full explanation below for the reasoning.

Question

A user in a session executed the following SQL statement to set the optimizer mode:

ALTER SESSION SET OPTIMIZER_MODE = ALL_ROWS What impact would it have on the goal of the optimizer for that session? (Choose all that apply.)

Options

  • AStatement level OPTIMIZER_MODE hints take precedence over the session-level setting.
  • BThe OPTIMIZER_MODE parameter set at instance level takes precedence over the session-level
  • CThe optimizer uses a cost-based approach, regardless of the presence of statistics;
  • DThe optimizer uses a cost-based approach for all SQL statements in the session, regardless of

How the community answered

(55 responses)
  • A
    73% (40)
  • B
    9% (5)
  • C
    18% (10)

Community Discussion

No community discussion yet for this question.

Full 1Z0-054 Practice