You want to capture column group usage and gather extended statistics for better cardinality estimates for the CUSTOMERS table in the SH schema.Examine the following 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.Step 1 (2). Seed column usageOracle must observe a representative workload, in order to determine the appropriate column groups. Using the new procedureDBMS_STATS.SEED_COL_USAGE, you tell Oracle how long it should observe the workload.Step 2: (3) You donÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢t need to execute all of the queries in your work during this window. You can simply run explain plan for some of your longer running queries to ensure column group information is recorded for these queries. Step 3. (1) Create the column groupsAt this point you can get Oracle to automatically create the column groups for each of the tables based on the usage information captured during the monitoring window. You simply have to call the DBMS_STATS.CREATE_EXTENDED_STATS function for each table.This function requires just two arguments, the schema name and the table name. From then on, statistics will be maintained for each column group whenever statistics are gathered on the table.Note:*DBMS_STATS.REPORT_COL_USAGE reports column usage information and records all the SQL operations the database has processed for a givenobject.*The Oracle SQL optimizer has always been ignorant of the implied relationships between data columns within the same table. While the optimizer hastraditionally analyzed the distribution of values within a column, he does not collect value-based relationships between columns.*Creating extended statisticsHere are the steps to create extended statistics for related table columns withdbms_stats.created_extended_stats:1 ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ The first step is to create column histograms for the related columns.2 ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Å“ Next, we run dbms_stats.create_extended_stats to relate the columns together.Unlike a traditional procedure that is invoked via an execute (ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œexecÃƒÂ¢Ã¢â€šÂ¬Ã‚Â) statement, Oracle extended statistics are created via a select statement.
You want to capture column group usage and gather extended statistics for better cardinality estimates for the CUSTOMERS table in the SH schema.
3, 2, 1, 4
2, 3, 4, 1
4, 1, 3, 2
3, 2, 4, 1
The Correct Answer for this Question is
2, 3, 4, 1