QuestionQ169

VerifiedManage Database Performance

You want to capture column-group usage and collect extended statistics to improve cardinality estimates for the customers table in the SH schema.

Examine these steps:

  1. Issue the SELECT DBMS_STATS.CREATE_EXTENDED_STATS(SH, 'CUSTOMERS') FROM DUAL statement.
  2. Execute the DBMS_STATS.SEED_COL_USAGE(NULL, SH, 500) procedure.
  3. Execute the required queries on the customers table.
  4. Issue the SELECT DBMS_STATS.REPORT_COL_USAGE(SH, 'customers') FROM DUAL statement.

Identify the correct sequence of steps.

Explanation

SEED_COL_USAGE records column and column-group usage from the workload during its monitoring period. The workload queries must run while usage is being recorded; REPORT_COL_USAGE can then display the captured usage, and the two-argument CREATE_EXTENDED_STATS function creates extensions based on that recorded column-group usage.

Learn more

Community Discussion

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