博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
使用 Toad 实现 SQL 优化
阅读量:6954 次
发布时间:2019-06-27

本文共 988 字,大约阅读时间需要 3 分钟。

       It is very easy for us to implement sql tuning by toad.  We need to do is just give complex sql statement to toad. The article

give you some examples to demonstrate how to tuning sql by toad for oracle.

 

1. Get execution plan

Editor  --> Explain plan current SQL  or CTRL + E
 

2. Get statistics/Auto Trace

Enable Auto Trace panel.

or you can right click and choose auto trace to enable it in SQL editor blank.

 

3. Get statistics after executed sql.

 

4. Tuning SQL

Executed sql

 

Then current SQL will be executed and many alternative sql statement will be generated.

 

5. Compare result

 

From above using where clause replace having clause is fine.

Actually SQL tuning tools is derived from Quest SQL optimizer. If you learn more please go through 

Although  SQL tuning optimizer help us a lot ,master SQL tuning we should have deep understand such like sql execution plan,

auto trace statistics, table join, index and so on.

The demo is based on Toad for Oracle 10.5.0.41

Author : Robinson Cheng

Blog:

 

转载地址:http://fvvil.baihongyu.com/

你可能感兴趣的文章
0302思考
查看>>
update
查看>>
mysql之表操作
查看>>
hdu3294 manacher算法
查看>>
Struts2入门学习
查看>>
2017年11月27日高级软件测试技术例会记录
查看>>
MongoDB数据类型
查看>>
vue写一个公用弹出框
查看>>
sublime text 插件集锦
查看>>
精通JS正则表达式
查看>>
修改文件默认代码方式
查看>>
Linux命令之grep 和 wc命令 --- !管道命令!
查看>>
解决阿里云无法正常使用samba的问题【转】
查看>>
第八周 进程的切换和系统的一般执行过程【转】
查看>>
兼容性
查看>>
分块下载文件的思路
查看>>
linux黄金命令[积累中]
查看>>
后渗透阶段
查看>>
***书单
查看>>
第五章
查看>>