前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >使用 Toad 实现 SQL 优化

使用 Toad 实现 SQL 优化

作者头像
Leshami
发布2018-08-14 11:03:01
1.1K0
发布2018-08-14 11:03:01
举报
文章被收录于专栏:乐沙弥的世界乐沙弥的世界

       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 http://www.quest.com/sql-optimizer-for-oracle/

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

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2012年03月21日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档