1 / 33

資料庫快跑 !

資料庫快跑 !. SQL Server 效能 調校準則及最佳範例分享. 集英信誠資深顧問 胡百敬 集英信誠資深顧問 許致學 2011 SQL Hero 莊國志. 大綱. 影響資料庫效能的 因素 效能問題的 迷 思與調校指標 效能問題排除方法論 (DETECT ) 效能調校參考原則. 影響資料庫效能的因素. 資料來源: SQL Server 2005 Performance Tuning 效能調校,悅知文化,胡百敬等. 效能調校的迷思. 效能調校的 指標. 效能問題排除方法論 (DETECT). E : 探究原因. T : 提供可能的 解決方案.

josef
Download Presentation

資料庫快跑 !

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 資料庫快跑! SQLServer 效能調校準則及最佳範例分享 集英信誠資深顧問 胡百敬 集英信誠資深顧問 許致學 2011 SQL Hero 莊國志

  2. 大綱 • 影響資料庫效能的因素 • 效能問題的迷思與調校指標 • 效能問題排除方法論 (DETECT) • 效能調校參考原則

  3. 影響資料庫效能的因素 資料來源:SQL Server 2005 Performance Tuning效能調校,悅知文化,胡百敬等

  4. 效能調校的迷思

  5. 效能調校的指標

  6. 效能問題排除方法論 (DETECT) • E:探究原因 • T:提供可能的解決方案 • E:執行最有可能的解決方案 • C:確認解決方案成功與否 • T:完成收尾工作 • D:發現問題 資料來源:SQL Server 2005 Performance Tuning效能調校,悅知文化,胡百敬等

  7. 效能調校參考原則

  8. 效能調校參考原則(續) < 75% <2 > 90%

  9. 效能調校參考原則(續)

  10. 效能調校參考原則(續)

  11. 效能調校參考原則-執行計畫重用

  12. 效能調校參考原則-執行計畫重用(續)

  13. 效能調校參考原則-規劃tempdb

  14. 效能調校參考原則-交易

  15. 效能調校參考原則-鎖定

  16. 效能調校參考原則-死結

  17. 效能調校參考原則-前端應用程式設計 "SELECT SerialNo,BrokerId,BrokerName,MemberName FROM ConferenceData Where ConferenceDate='" & ConfDate2 & "'" Dim SelectCmd As String = "SerialNo,BrokerId,BrokerName,MemberName FROM Members WHERE ConferenceDate = @ConferenceDate“ Dim ConferenceDate As New SqlParameterWith {.ParameterName = "@ConferenceDate", .SqlDbType = SqlDbType.Char, .Size = 8, .Value = …")}

  18. 效能調校參考原則-連線集區

  19. Summary • 影響資料庫效能的因素 • 效能問題的迷思與調校指標 • 效能問題排除方法論 (DETECT) • 效能調校參考原則 • 執行計畫重用 • 規劃tempdb • 使用交易的建議 • 管理鎖定 • 防止與處理死結 • 使用者端存取SQL Server的方式 • 前端應用程式設計 • 連線集區

  20. 介紹 • 資料庫顧問組  資深合夥顧問 • 開發架構顧問組 • SharePoint平台開發 • 許致學 lancelot.hsu@mentortrust.com • 胡百敬 byron.hu@mentortrust.com • 陳俊宇 derrick.chen@mentortrust.com MS-SQL為核心的各種資料庫規劃、設計、管理顧問。包含:效能調校、整合、整併、升級…等。 MS-SQL資料庫長期維護服務。 資料庫系統開發建議。

  21. 介紹 • 資料庫顧問組 • 開發架構顧問組資深合夥顧問 • SharePoint平台開發 • 趙敏翔 adams.chao@mentortrust.com • 曹祖聖 jimy.cao@mentortrust.com • 張書源 john.chang@mentortrust.com • 李智樺 ruddy.lee@mentortrust.com TFS ALM團隊開發全生命周期導入顧問。 應用系統開發架構設計規劃、委外監管、執行方案驗証…等。 系統效能與問題排除,Code Review。 .NET、Java開發技術POC。 私有雲、公有雲設計及架構規劃。 服務導向架構設計。

  22. 介紹 • 資料庫顧問組 • 開發架構顧問組 • SharePoint平台開發資深合夥顧問 • 趙敏翔 • 曹祖聖 • 李智樺(Private Cloud) SharePoint 2010 開發 SharePoint 2007 Upgrade Notes Migration / Integration Private Cloud Architect Design

  23. 方案A 中型企業資料庫及應用系統健檢維護 • 主維護標的:SQL Server Instance x 3 • 顧問健檢:7 days / 年 (3.5hr x14) • Xecho 資料庫監控軟體標準版 • 20個技術問題遠端支援 • 期初及期末報告 • 年度規劃:期初以2~3次到場顧問檢查系統環境、效能調校、設定監控環境、並討論制定管理政策、備份還原設定及演練 • 定期健檢:每月半天主動顧問式健檢 • 技術諮詢:透過電話、郵件回覆問題諮詢 • 結案報告:年底提供全年度資料庫維護報告

  24. 方案B 小型企業資料庫監控與技術支援方案 • Xecho 資料庫監控軟體標準版 • 20個技術問題遠端支援 • 初次到場安裝及健檢

  25. 服務相關訊息與詢問http://www.mentortrust.cominfo@mentortrust.com服務相關訊息與詢問http://www.mentortrust.cominfo@mentortrust.com 客戶連絡窗口 李書賢 SCOTT scott.lee@mentortrust.com 0936-393-696

  26. © 2009 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

More Related