The statistics are stored in the pending statistics table in the data dictionary.
The statistics are treated as the current statistics by the optimizer for all sessions.
The statistics are treated as the current statistics by the optimizer for the current sessions only.
The statistics are temporary and used by the optimizer for all sessions until this session terminates.
第1题:
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?()
第2题:
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?()
第3题:
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?()
第4题:
Examine the following statement that is used to modify the constraint on the SALES table: SQL> ALTER TABLE SALES MODIFY CONSTRAINT pk DISABLE VALIDATE; Which three statements are true regarding the above command()
第5题:
Examine the command: SQL> DBMS_STATS.SET_TABLE_PREFS(’SH’, ’CUSTOMERS’, ’PUBLISH’, ’false’); Which statement describes the effect of the above command()
第6题:
You work with a database named DB1, which is located on a SQL Server 2005 computer. You discover that a table scan on Table1 in DB1 causes a slow query. Table1 is a very large table that is used frequently. You ascertain that the query contains the following statement. SELECT col1, col2 FROM table1 WHERE col3 =
第7题:
Design a Notification Services solution that sends the advertising statistics to specified subscribers by e-mail.
Design a SQL Server Web service that runs a stored procedure to return the statistics on a call from the advertisers application.
Design a Database Mail solution that sends the advertising statistics to e-mail addresses that are specified in a table.
Design a stored procedure to return the statistics on a call from the advertisers application.
Design a user-defined function to return the statistics on a call from the advertisers application.
第8题:
Statistics collection is not done for the CUSTOMERS table when schema stats are gathered.
Statistics collection is not done for the CUSTOMERS table when database stats are gathered.
Any existing statistics for the CUSTOMERS table are still available to the optimizer at parse time.
Statistics gathered on the CUSTOMERS table when schema stats are gathered are stored as pending statistics.
Statistics gathered on the CUSTOMERS table when database stats are gathered are stored as pending statistics.
第9题:
Automatic statistics collection is stopped for the CUSTOMERS table.
Statistics for the CUSTOMERS table are locked and cannot be overwritten.
Existing statistics for the CUSTOMERS table become unusable for the query optimizer.
Subsequently, statistics gathered on the CUSTOMERS table are stored as pending statistics.
第10题:
The EMPLOYEES table will be changed to read-only mode during the shrink operation.
The indexes created on the EMPLOYEES table will need to be rebuilt after the shrink operation is over.
The shrink behavior will be cascaded to all dependent segments of the table that support a shrink operation.
Data manipulation language (DML) operations will not be possible on the EMPLOYEES table during the COMPACTION phase of the shrink operation.
第11题:
Set DYNAMIC_SAMPLING to level 4
Set the STATISTICS_LEVEL parameter to BASIC
Set the INCREMENTAL value to TRUE for the partition table
Increase the value of STALE_PERCENT for the partition table
第12题:
Every SQL statement in the STS is considered only once for execution.
The SQL statements in the STS are executed concurrently to produce the execution plan and execution statistics.
The execution plan and execution statistics are computed for each SQL statement in the STS.
The effects of DDL and DML are considered to produce the execution plan and execution statistics.
第13题:
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?()
第14题:
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?()
第15题:
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?()
第16题:
You executed the following SQL statement to shrink the EMPLOYEES table segment stored in the EXAMPLE tablespace: ALTER TABLE employees SHRINK SPACE CASCADE; Which statement is correct in this scenario?()
第17题:
Examine the following statement that is used to modify the primary key constraint on the SALES table: SQL> ALTER TABLE SALES MODIFY CONSTRAINT pk DISABLE VALIDATE; Which three statements aretrue regarding the above command()
第18题:
Update all statistics on Table1 in DB1.
Use the CREATE STATISTICS statement in DB1 to create missing statistics on col3of Table1.
Set the priority boost server option to 1.
Execute the following statement.USE DB1GOCREATE INDEX index1 ON table1(col3)INCLUDE(col1, col2) WITH (ONLINE = ON)GO
第19题:
The data in the segment will be compacted but the high water mark will not be adjusted
The EMPLOYEES table will be changed to read-only mode during the shrink operation
The indexes created on the EMPLOYEES table will need to be rebuilt after the shrink operation is over
The shrink behavior will be cascaded to all dependent segments of the table that support a shrink operation
Data manipulation language (DML) operations will not be possible on the EMPLOYEES table during the COMPACTION phase of the shrink operation
第20题:
Automatic statistics collection is stopped for the CUSTOMERS table.
Statistics for the CUSTOMERS table are locked and cannot be overwritten.
Existing statistics for the CUSTOMERS table become unusable for the query optimizer.
Subsequently, statistics gathered on the CUSTOMERS table are stored as pending statistics
第21题:
The statement will fail.
The statement will be executed successfully, and the new time zone will be set for the database.
The statement will be executed successfully, but the new time zone will be set for the current session.
The statement will be executed successfully, but the new time zone will neither be set for the database nor for a specific session.
第22题:
The Oracle server creates a new histogram based on existing histogram definitions for all table, column, and index statistics for the OE schema.
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.
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.
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.
第23题:
The statistics are stored in the pending statistics table in the data dictionary.
The statistics are treated as the current statistics by the optimizer for all sessions.
The statistics are treated as the current statistics by the optimizer for the current sessions only.
The statistics are temporary and used by the optimizer for all sessions until this session terminates.