ExplainplancurrentSQLorCTRL+E2.Getstatist" />

日韩久久久精品,亚洲精品久久久久久久久久久,亚洲欧美一区二区三区国产精品 ,一区二区福利

使用 Toad 實現 SQL 優化

系統 3018 0

?????? 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
? 使用 Toad 實現 SQL 優化

2.?Get statistics/Auto Trace
Enable Auto Trace panel.

使用 Toad 實現 SQL 優化

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

使用 Toad 實現 SQL 優化

?

3.?Get statistics after executed sql.
? 使用 Toad 實現 SQL 優化

4.?Tuning SQL

使用 Toad 實現 SQL 優化

Executed sql

? 使用 Toad 實現 SQL 優化

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

?

5.?Compare result
? 使用 Toad 實現 SQL 優化

使用 Toad 實現 SQL 優化

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

Author : Robinson Cheng

Blog: http://blog.csdn.net/robinson_0612

?

使用 Toad 實現 SQL 優化


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 长葛市| 灌阳县| 武安市| 治县。| 抚松县| 勐海县| 定陶县| 蒲江县| 共和县| 岱山县| 延津县| 湟源县| 汝州市| 钟祥市| 江城| 江津市| 天全县| 嵩明县| 建阳市| 浦江县| 鄂托克旗| 科技| 大洼县| 都匀市| 洞头县| 改则县| 出国| 仁怀市| 吉木乃县| 怀来县| 应城市| 大安市| 自贡市| 吉安县| 常宁市| 武穴市| 永新县| 称多县| 香港 | 运城市| 西宁市|