Which three statements are true about histograms?
A. They capture the distribution of different values in an index for better selectivity estimates.
B. They can be used only with indexed columns.
C. They provide metadata about distribution of and occurrences of values in a table column.
D. They provide improved selectivity estimates in the presence of data skew, resulting in execution plans with uniform distribution.
E. They help the optimizer in deciding whether to use an index or a full table scan.
F. They help the optimizer to determine the fastest table join order.
You are administering database that supports an OLTP workloads. Most of the queries use an in- dex range scan or index unique scan as access methods.
Which three scenarios can prevent the index access being used by the queries?
A. When highly selective filters is applied on an indexed column of a table with sparsely popu- lated blocks.
B. When the rows are filtered with an IS NULL operator on the column with a unique key de- fined
C. When the histogram statistics are not collected for the columns used in where clause.
D. When a highly selective filter is applied on the indexed column and the index has very low value for clustering factor.
E. When the statistics for the table are not current.
You enable auto degree of parallelism (DOP) for your database instance.
Examine the following query:
Which two are true about the execution of statement?
A. Dictionary DOP for the objects accessed by the query is used to determine the statement DOP.
B. Auto DOP is used to determine the statement DOP only if the estimated serial execution time exceeds PARALLEL_MIN_TIME_THRESHOLD.
C. Dictionary DOP is used to determine the statement DOP only if the estimated serial execution time exceeds PARALLEL_MIN_TIME_THRESHOLD.
D. The statement will be queued if insufficient parallel execution slaves are available to satisfy the statements DOP.
E. The statement will be queued if the number of busy parallel execution servers exceeds PARALLEL_SERVERS_TARGET.
F. The statements may execute serially.
You enabled auto degree of parallelism (DOP) for your instance.
Examine the query:
Which two are true about the execution of this query?
A. Dictionary DOP will be used, if present, on the tables referred in the query.
B. DOP is calculated if the calculated DOP is 1.
C. DOP is calculated automatically.
D. Calculated DOP will always by 2 or more.
E. The statement will execute with auto DOP only when PARALLEL_DEGREE_POLICY is set to AUTO.
View Exhibit1 and examine the structure and indexes for the MYSALES table.
The application uses the MYSALES table to insert sales record. But this table is also extensively used for generating sales reports. The PROD_ID and CUST_ID columns are frequently used in the WHERE clause of the queries. These columns have few distinct values relative to the total number of rows in the table. The MYSALES table has 4.5 million rows.
View exhibit 2 and examine one of the queries and its autotrace output.
Which two methods can examine one of the queries and its autotrace output?
A. Drop the current standard balanced B* Tree indexes on the CUST_ID and PROD_ID columns and re-create as bitmapped indexes.
B. Use the INDEX_COMBINE hint in the query.
C. Create a composite index involving the CUST_ID and PROD_ID columns.
D. Rebuild the index to rearrange the index blocks to have more rows per block by decreasing the value for PCTFRE attribute.
E. Collect histogram statistics for the CUST_ID and PROD_ID columns.
You execute the following query for the first time:
Examine the SQL statement processing steps:
1.
The value of the variable SAL is obtained to run the query.
2.
The syntax of the query is checked
3.
A parse tree for the query is generated
4.
Semantics for the query are checked
5.
The required rows are fetched
6.
The SQL is executed to produce the required result.
Which is the correct order of execution of the above query?
A. 1, 2 3, 4, 5, 6
B. 1, 4, 2, 3, 6, 5
C. 2, 4, 1, 3, 6, 5
D. 2, 3, 1, 4, 6, 5
See the table below:
All parallel execution servers are available and sessions use default settings for parallelism.
Which three are true about parallel execution in your instance?
A. Parallel execution occurs when estimated serial execution time exceeds the minimum time threshold.
B. Parallel execution occurs for all DML statements.
C. Parallel execution occurs for those statements that access tables with dictionary DOP defined.
D. Parallel execution occurs for those statements that access tables with no dictionary DOP defined.
E. Parallel execution occurs for all DDL statements.
Which three factors does the estimator depend on for overall cost estimation of a given execution plan?
A. Cardinality
B. Sort area size
C. OPTIMIZER_FEATURE_ENABLE parameter
D. NOT NULL_FEATURE_ENABLE parameter
E. NOT NULL constraint on a unique key column
F. Library cache size
G. The units of work such as disk input/output, CPU usage, and memory used in an operation
Examine the query and its execution plan: Which two statements are true regarding the execution plan?
A. For every row of CUSTOMERS table, the row matching the join predicate from the ORDERS table are returned.
B. An outer join returns NULL for the ORDERS table columns along with the CUSTOMERS table rows when it does not find any corresponding rows in the ORDER table.
C. The data is aggregated from the ORDERS table before joining to CUSTOMERS.
D. The NESTED LOOP OUTER join is performed because the OPTIMZER_MODE parameter is set to ALL_ROWS.
Which two statements are true about the use of the DYNAMIC_SAMPLING hint in a query?
A. It estimates selectivity better for the filters.
B. It is always used for flashback queries that contain the AS OF clause.
C. It cannot be used if there is a single-table predicate in the WHERE clause.
D. It cannot be used for processing SQL statements in parallel.
E. It can compensate for the lack of extended statistics to get accurate cardinality estimates for complex predicate expressions.