OCP 8 SQL Tuning
Home > Flashcards > Print Preview
The flashcards below were created by user
on FreezingBlue Flashcards
. What would you like to do?
Which SQL statements does Automatic SQL Tuning tune?
SQL statements identified as top SQL statements in the AWR
In which two ways can you invoke SQL Repair Advisor?
Using Enterprise Manager, or from PL/SQL using the DBMS_SQLDIAG package
When using SQL Profiling, what does the Automatic Tuning Optimizer (ATO) use to optimize the SQL statement?
The historical information about the specified SQL statement's execution
Which action can you take to prevent Automatic SQL Tuning from automatically accepting and implementing SQL profiles?
Call the DBMS_SQLTUNE.SET_TUNING_TASK_PARAMETERS procedure, setting ACCEPT_SQL_PROFILES to FALSE.
Which tool builds a SQL Profile?
Automatic Tuning Optimizer (ATO)
How can you use Enterprise Manager to invoke SQL Repair Advisor for a SQL statement that crashed and created an incident, if the incident is no longer active?
From the Advisor Central page, click the SQL Advisors link and click the Click here to go to Support Workbench link in the SQL Advisors section.
What output is produced when running the SQL Test Case Builder?
A SQL script you can use to re-create the environment and the affected objects
For SQL Access Advisor to make recommendations on partitioning of a table, what must be true of the workloads?
They must have some predicates and joins on NUMBER or DATE columns.
When using the DBMS_ADVISOR package, you should include code to perform which three actions before executing the tuning task?
Create the task, set the task's parameters, and associate the task with a workload.
By default, when does the Automatic SQL Tuning Advisor task run?
What information is gathered by the SQL Test Case builder about a SQL-related problem?
The SQL query, optimizer statistics, initialization parameter settings, and table, index, function, procedure, and package definitions, but not the data
What are the four valid input sources for the SQL Tuning Advisor?
Automatic Database Diagnostic Monitor (ADDM), high-load SQL statements, cursor cache, and SQL Tuning Sets (STS)
After the SQL Tuning Advisor recommends that a SQL Profile be used and you have accepted it, in which location is the information about the profile stored?
In the data dictionary
When reviewing the result details from Automatic SQL Tuning, what does a check mark in the Statistics column indicate?
That statistics should be gathered
When using SQL Profiling, what must you do to ensure that the SQL Profile created by the Automatic Tuning Optimizer (ATO) is used to optimize the query?
Nothing, the query optimizer will automatically use the optimizer settings generated by the ATO for the given profile.
What is the result of executing the QUICK_TUNE procedure to analyze a SQL statement?
A task and workload is created, the task is executed, and the results are stored.
When reviewing the result details from Automatic SQL Tuning, which formula is used to calculate the benefit percentage for each recommendation?
benefit % = (time_old - time_new) / time_old
For SQL Access Advisor to make recommendations on partitioning of a table, how many rows must the table have?
At least 10,000
When reviewing the result details from Automatic SQL Tuning, what does a high benefit percentage in the Index column indicate?
That additional recommended indexes would improve performance
When optimizing queries with SQL Access Advisor, which recommendations can the advisor make?
To modify the table's partitioning, or to create, modify, or drop indexes, materialized views, or materialized view logs
Which recommendations are automatically implemented as part of the Automatic SQL Tuning task?
SQL profile recommendations with a benefit percentage of more than 66 percent
Which package is used as the command-line interface for Automatic SQL Tuning?
The DBMS_SQLTUNE package
What would you like to do?
Home > Flashcards > Print Preview