Performing a Quick Tune

18.2.6 Performing a Quick
Tune


To tune a single SQL statement,
the QUICK_TUNE procedure accepts as its input
task_name and a SQL statement. The procedure creates a
task and workload and executes this task. There is no difference in the results
from using QUICK_TUNE. They are exactly the same as those from
using EXECUTE_TASK, but this approach is easier to use when
there is only a single SQL statement to be tuned. The syntax is as follows:

DBMS_ADVISOR.QUICK_TUNE (
advisor_name IN VARCHAR2,
task_name IN VARCHAR2,
attr1 IN CLOB,
attr2 IN VARCHAR2 := NULL,
attr3 IN NUMBER := NULL,
task_or_template IN VARCHAR2 := NULL);

The following example shows how to quick tune a single SQL statement:

VARIABLE task_name VARCHAR2(255);
VARIABLE sql_stmt VARCHAR2(4000);
EXECUTE :sql_stmt := ‘SELECT COUNT(*) FROM customers
WHERE cust_state_province =‘‘CA‘‘‘;
EXECUTE :task_name := ‘MY_QUICKTUNE_TASK‘;
EXECUTE DBMS_ADVISOR.QUICK_TUNE(DBMS_ADVISOR.SQLACCESS_ADVISOR,
:task_name, :sql_stmt);

See Oracle Database PL/SQL Packages and Types
Reference
 for more information regarding
the QUICK_TUNE procedure and its parameters.

http://docs.oracle.com/cd/E11882_01/server.112/e41573/advisor.htm#PFGRF94911

Performing a Quick Tune,布布扣,bubuko.com

时间: 2024-10-11 10:36:19

Performing a Quick Tune的相关文章

Different ways to trigger touchcancel in mobile browsers

The touchcancel event is often neglected when building touch–interfaces using JavaScript. Historically, browsers vendors have never really published documentation detailing the circumstances as to when this event gets fired, and hence it has always b

SQL Access Advisor in Oracle Database 10g

The SQL Access Advisor makes suggestions about indexes and materialized views which might improve system performance. This article describes how to use the SQL Access Advisor in Oracle 10g. Enterprise Manager DBMS_ADVISOR Quick Tune Related Views Rel

A Quick Overview of MSAA

A Quick Overview of MSAA 原文地址:https://mynameismjp.wordpress.com/2012/10/24/msaa-overview/ Previous article in the series: Applying Sampling Theory to Real-Time Graphics MSAA can be a bit complicated, due to the fact that it affects nearly the entire

Nemerle Quick Guide

This is a quick guide covering nearly all of Nemerle's features. It should be especially useful to anyone who is already familiar with C# or a similar language: Table of Contents Variables Operators Logical Operators Bit Operators Type Casts/Conversi

Quick setup

Quick setup — if you’ve done this kind of thing before We recommend every repository include a README, LICENSE, and .gitignore. …or create a new repository on the command line echo "# Architect" >> README.md git init git add README.md git

怎么用HD Tune检测硬盘坏道

HD Tune软件不仅小巧而且很易使用,是一款检测电脑硬盘的优良工具.不仅是电脑硬盘,包括移动硬盘在内一样可以检测.那么,如何使用HD Tune呢?如何使用HD Tune检测磁盘坏道呢? 工具/原料 HD Tune软件一枚 使用HD Tune检查硬盘坏道 1.百度搜索下载HD Tune软件,注意:尽量选择系统之家官网上下载这类软件,因为系统之家上的软件不会捆绑的流氓软件 2.软件打开之后,界面如图,最上方显示硬盘的厂家信息,图示红色遮挡区 3.点击选项卡切换至错误扫描,如图,然后在红框位置,尽量

WIN7任务栏的QUICK LAUNCH怎么调出来

右键单击任务栏--工具栏--新工具栏 在空白处输入%UserProfile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch然后选择文件夹.ok现在显示了,不过是在任务栏的右侧,现在我们把它移一下位置 右键任务栏--取消"锁定任务栏",按住那个每行有3个小点的手柄,往左边拖过去现在它跑到左边去了,哈哈. 接着右键点击分离和取消 "显示标题" 和 "显示文本" 最后根据你任务栏的大小

Quick Sort(快排)

这是挖坑填补法的演示 快排之挖坑填补法: 1 void Quick(int top/*起始位置*/,int end/*末尾位置*/,int arr[])//挖坑填补法 2 { 3 int i=top,j=end,mark;//i是记住前面的坑 j记住后面的坑 mark记住标准值 4 5 mark=arr[top];//以起始位置作为标准值,同时起始点成为第一个坑 6 if(top>=end)return; 7 while(i<j) 8 { 9 while(i<j)//从后向前找比标准值小

Union-Find(并查集): Quick union improvements

Quick union improvements1: weighting 为了防止生成高的树,将smaller tree放在larger tree的下面(smaller 和larger是指number of objects),而不是将larger tree放在smaller tree的下面(如上图中的第一种情况) Examples: quick-union & weighted quick-union 从上面的这个例子可以看到用quick-union时的树的高度很大,而用weighted qui