单选题You executed the following commands: Which statement is correct regarding the above statistics collection on the SH.CUSTOMERS table in the above session?()A The statistics are stored in the pending statistics table in the data dictionary.B The stati

题目
单选题
You executed the following commands: Which statement is correct regarding the above statistics collection on the SH.CUSTOMERS table in the above session?()
A

The statistics are stored in the pending statistics table in the data dictionary.

B

The statistics are treated as the current statistics by the optimizer for all sessions.

C

The statistics are treated as the current statistics by the optimizer for the current sessions only.

D

The statistics are temporary and used by the optimizer for all sessions until this session terminates.

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You need to design the retrieval of advertising statistics without compromising security. What should you do?()

  • A、Design a Notification Services solution that sends the advertising statistics to specified subscribers by e-mail.
  • B、Design a SQL Server Web service that runs a stored procedure to return the statistics on a call from the advertisers application.
  • C、Design a Database Mail solution that sends the advertising statistics to e-mail addresses that are specified in a table.
  • D、Design a stored procedure to return the statistics on a call from the advertisers application.
  • E、Design a user-defined function to return the statistics on a call from the advertisers application.

正确答案:B

第2题:

You have a range-partitioned table in your database. Each partition in the table contains the sales data for a quarter.  The partition related to the current quarter is modified frequently and other partitions undergo fewer data manipulations. The preferences for the table are set to their default values. You collect statistics for the table using the following command in regular intervals: SQL> EXECUTE  DBMS_STATS.GATHER_TABLE_STATS(’SH’,’SALES’,GRANULARITY=>’GLOBAL’);   You need statistics to be collected more quickly.  What can you do to achieve this?()

  • A、 Set DYNAMIC_SAMPLING to level 4
  • B、 Set the STATISTICS_LEVEL parameter to BASIC
  • C、 Set the INCREMENTAL value to TRUE for the partition table
  • D、 Increase the value of STALE_PERCENT for the partition table

正确答案:C

第3题:

You executed the following commands:Which statement is correct regarding the above statistics collection on the SH.CUSTOMERS table in the above session?()

A. The statistics are stored in the pending statistics table in the data dictionary.

B. The statistics are treated as the current statistics by the optimizer for all sessions.

C. The statistics are treated as the current statistics by the optimizer for the current sessions only.

D. The statistics are temporary and used by the optimizer for all sessions until this session terminates.


参考答案:A

第4题:

Examine this command: SQL > exec DBMS_STATS.SET_TABLE_PREFS (‘SH’, ‘CUSTOMERS’, ‘PUBLISH’, ‘false’); Which three statements are true about the effect of this command?()

  • A、Statistics collection is not done for the CUSTOMERS table when schema stats are gathered.
  • B、Statistics collection is not done for the CUSTOMERS table when database stats are gathered.
  • C、Any existing statistics for the CUSTOMERS table are still available to the optimizer at parse time.
  • D、Statistics gathered on the CUSTOMERS table when schema stats are gathered are stored as pending statistics.
  • E、Statistics gathered on the CUSTOMERS table when database stats are gathered are stored as pending statistics.

正确答案:A,C,D

第5题:

You executed the following commands:   SQL> ALTER SESSION SET OPTIMIZER_USE_PENDING_STATISTICS = false; SQL> EXECUTE DBMS_STATS.SET_TABLE_PREFS(’SH’, ’CUSTOMERS’, ’PUBLISH’,’false’); SQL> EXECUTE DBMS_STATS.GATHER_TABLE_STATS(’SH’, ’CUSTOMERS’);   Which statement is correct regarding the above statistics collection on the SH.CUSTOMERS table in the above session?()

  • A、 The statistics are stored in the pending statistics table in the data dictionary.
  • B、 The statistics are treated as the current statistics by the optimizer for all sessions.
  • C、 The statistics are treated as the current statistics by the optimizer for the current sessions only.
  • D、 The statistics are temporary and used by the optimizer for all sessions until this session terminates.

正确答案:A

第6题:

Examine the command: SQL> DBMS_STATS.SET_TABLE_PREFS(’SH’, ’CUSTOMERS’, ’PUBLISH’, ’false’);  Which statementdescribes the effect of the above command()

  • A、Automatic statistics collection is stopped for the CUSTOMERS table.
  • B、Statistics for the CUSTOMERS table are locked and cannot be overwritten.
  • C、Existing statistics for the CUSTOMERS table become unusable for the query optimizer.
  • D、Subsequently, statistics gathered on the CUSTOMERS table are stored as pending statistics

正确答案:D

第7题:

You want to analyze a SQL Tuning Set (STS) using SQL Performance Analyzer in a test database. Which two statements are true regarding the activities performed during the test execution of SQLs in a SQL Tuning Set?()

  • A、 Every SQL statement in the STS is considered only once for execution.
  • B、 The SQL statements in the STS are executed concurrently to produce the execution plan and execution statistics.
  • C、 The execution plan and execution statistics are computed for each SQL statement in the STS. 
  • D、 The effects of DDL and DML are considered to produce the execution plan and execution statistics.

正确答案:A,C

第8题:

Examine the following command that is executed for the TRANSPORT table in the SH schema:Which statement describes the significance of this command?()

A. It collects statistics into the pending area in the data dictionary

B. It creates a virtual hidden column in the CUSTOMERS_OBE table

C. It collects statistics with AUTO_SAMPLE_SIZE for ESTIMATE_PERCENT

D. It creates a histogram to hold skewed information about the data in the columns


参考答案:B

第9题:

You created the ORDERS table in your database by using the following code:   SQL> CREATE TABLE ORDERS (ORDER_DATE TIMESTAMP(0) WITH TIME ZONE);   Then, you inserted data in the ORDERS table and saved it by issuing the following statements:SQL> INSERT INTO ORDERS VALUES(’18-AUG-00 10:26:44 PM America/New_York’);   SQL> INSERT INTO ORDERS VALUES(’23-AUG-02 12:46:34 PM America/New_York’);   SQL> COMMIT;   Next, you issued the following statement to change the time zone for the database:   SQL> ALTER DATABASE SET TIME_ZONE=’Europe/London’;   What will be the result of executing the above statement?()  

  • A、 The statement will fail.
  • B、 The statement will be executed successfully, and the new time zone will be set for the database.
  • C、 The statement will be executed successfully, but the new time zone will be set for the current session.
  • D、The statement will be executed successfully, but the new time zone will neither be set for the database nor for a specific session.

正确答案:A

第10题:

Consider the following statement:   SQL> EXECUTE DBMS_STATS.GATHER_SHEMA_STATS (-  2> ownname => ‘OE’, -  3> estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, -  4> method opt => ‘for all columns size AUTO’);   What is the effect of ‘for all columns size AUTO’ of the METHOD_OPT option?()

  • A、The Oracle server creates a new histogram based on existing histogram definitions for all table, column, and index statistics for the OE schema. 
  • B、The Oracle server creates a histogram based on data distribution regardless of how the application uses the column/s for all table, column, and index statistics for the OE schema.
  • C、The Oracle server creates a histogram based on data and application usage of the column/s for all table, column, and index statistics for the OE schema. 
  • D、The Oracle server creates a histogram based on application usage, regardless of data distribution, for all table, column, and index statistics for the OE schema.

正确答案:C

更多相关问题