ExplainplancurrentSQLorCTRL+E2.Getstatist" />

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

使用 Toad 實現 SQL 優(yōu)化

系統(tǒng) 2992 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 優(yōu)化

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

使用 Toad 實現 SQL 優(yōu)化

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

使用 Toad 實現 SQL 優(yōu)化

?

3.?Get statistics after executed sql.
? 使用 Toad 實現 SQL 優(yōu)化

4.?Tuning SQL

使用 Toad 實現 SQL 優(yōu)化

Executed sql

? 使用 Toad 實現 SQL 優(yōu)化

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

?

5.?Compare result
? 使用 Toad 實現 SQL 優(yōu)化

使用 Toad 實現 SQL 優(yōu)化

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 優(yōu)化


更多文章、技術交流、商務合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯(lián)系: 360901061

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

【本文對您有幫助就好】

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

發(fā)表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 洪洞县| 淅川县| 林口县| 金华市| 门源| 贵定县| 陆丰市| 逊克县| 贵溪市| 大名县| 汉川市| 黑龙江省| 宁武县| 镶黄旗| 筠连县| 昭平县| 马山县| 胶州市| 察隅县| 郓城县| 铁岭县| 宁河县| 乌鲁木齐市| 沅陵县| 汾阳市| 正蓝旗| 白水县| 伊春市| 柳林县| 中阳县| 鸡东县| 桑植县| 南靖县| 南溪县| 砀山县| 稷山县| 陈巴尔虎旗| 阳曲县| 建德市| 阜宁县| 灵丘县|