【筆記】sql tuning advidor
declare
l_task_id varchar2(20);
l_sql varchar2(2000);
begin
l_sql := 'select * from test.t_test_resumable where wner = ''SYS''';
dbms_sqltune.drop_tuning_task ('FOLIO_COUNT');
l_task_id := dbms_sqltune.create_tuning_task (
sql_text => l_sql,
user_name => 'TEST',
scope => 'COMPREHENSIVE',
time_limit => 120,
task_name => 'FOLIO_COUNT'
);
dbms_sqltune.execute_tuning_task ('FOLIO_COUNT');
end;
/
insert into test.t_test_resumable select * from test.t_test_resumable ;
select count(*) from test.t_test_resumable;
select * from test.t_test_resumable where wner = 'SYS';
select dbms_sqltune.report_tuning_task ('FOLIO_COUNT') from dual;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/16179598/viewspace-626489/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【筆記】SQL tuning筆記SQL
- 讀ZLABB 的sql tuning 的筆記SQL筆記
- oracle.Performance.Tuning筆記OracleORM筆記
- sql tuningSQL
- 播布客視訊-Performance Tuning筆記(二)Diagnostic and Tuning ToolsORM筆記
- sql tuning set/sql tuning advisor(待完善)SQL
- sql tuning setSQL
- 熟悉SQL tuningSQL
- sql tuning task和sql profileSQL
- Automatic SQL Tuning and SQL ProfilesSQL
- Oracle SQL Perfomance TuningOracleSQL
- sql筆記SQL筆記
- SQL TUNING ADVISORSQL
- Automatic SQL Tuning 原理SQL
- sql tuning之變通SQL
- 9i Performance Tuning Guide 讀書筆記ORMGUIIDE筆記
- 播布客視訊-Performance Tuning筆記(一)OverviewORM筆記View
- Visual Instruction Tuning論文閱讀筆記Struct筆記
- 9i Performance Tuning Guide 讀書筆記一ORMGUIIDE筆記
- SPA_SQL Performance Analyzer_SQL Tuning SetSQLORM
- SQL-Server筆記SQLServer筆記
- SQL優化筆記SQL優化筆記
- SQL語句筆記SQL筆記
- Linq to sql 筆記SQL筆記
- SQL學習筆記SQL筆記
- Oracle 常用SQL筆記OracleSQL筆記
- 9i Performance Tuning Guide 讀書筆記二(zt)ORMGUIIDE筆記
- 使用sql tuning advisor最佳化sqlSQL
- Oracle SQL優化之sql tuning advisorOracleSQL優化
- 快速SQL TUNING——1分鐘搞定超慢SQLSQL
- oracle實用sql(3)--sql tuning advisorOracleSQL
- SQL Tuning Advisor簡介SQL
- sql tuning 第一章SQL
- 轉貼_push_subq_sql tuningSQL
- oracle sql tuning 14 --10046OracleSQL
- 二個SQL tuning例子(使用case)SQL
- ORACLE SQL Tuning Health-Check(SQLHC)OracleSQL
- Cris 的 Spark SQL 筆記SparkSQL筆記