Performance Tuning with SQL Server Dynamic Management Views (Paperback)
暫譯: 使用 SQL Server 動態管理視圖進行效能調優 (平裝本)

Louis Davidson, Tim Ford

  • 出版商: Red gate books
  • 出版日期: 2010-09-01
  • 售價: $1,300
  • 貴賓價: 9.5$1,235
  • 語言: 英文
  • 頁數: 344
  • 裝訂: Paperback
  • ISBN: 1906434476
  • ISBN-13: 9781906434472
  • 相關分類: MSSQLSQL
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

Dynamic Management Views (DMVs) are a significant and valuable addition to the DBA's troubleshooting armory, laying bare previously unavailable information regarding the under-the-covers activity of your database sessions and transactions.

Why, then, aren't all DBAs using them? Why do many DBAs continue to ignore them in favour of "tried and trusted" tools such as sp_who2, DBCC OPENTRAN, and so on, or make do with the "ready made" reports built into SSMS? Why do even those that do use the DMVs speak wistfully about "good old sysprocesses"?

There seem to be two main factors at work. Firstly, some DBAs are simply unaware of the depth and breadth of the information that is available from the DMvs, or how it might help them troubleshoot common issues. This book investigates all of the DMVs that are most frequently useful to the DBA in investigating query execution, index usage, session and transaction activity, disk IO, and how SQL Server is using or abusing the operating system.

Secondly, the DMVs have a reputation of being difficult to use. In the process of exposing as much useful data as possible, sysprocesses has been normalized, and many new views and columns have been added. This fact, coupled with the initially-baffling choices of what columns will be exposed where, has lead to some DBAs to liken querying DMVs to "collecting mystic spells".

In fact, however, once you start to write your own scripts, you'll see the same tricks, and similar join patterns, being used time and again. As such, a relatively small core set of scripts can be readily adapted to suit any requirement. This book is here to de-mystify the process of collecting the information you need to troubleshoot SQL Server problems. It will highlight the core techniques and "patterns" that you need to master, and will provide a core set of scripts that you can use and adapt for your own systems, including how to:

  • Root out the queries that are causing memory or CPU pressure on your system
  • Investigate caching, and query plan reuse
  • Identify index usage patterns
  • Track fragmentation in clustered indexes and heaps
  • Get full details on blocking and blocked transactions, including the exact commands being executed, and by whom.
  • Find out where SQL Server is spending time waiting for resources to be released, before proceeding
  • Monitor usage and growth of tempdb

The DMVs don't make existing, built-in, performance tools obsolete. On the contrary, they complement these tools, and offer a flexibility, richness and granularity that are simply not available elsewhere. Furthermore, you don't need to master a new GUI, or a new language in order to use them; it's all done in a language all DBAs know and mostly love: T-SQL.

商品描述(中文翻譯)

動態管理視圖(Dynamic Management Views, DMVs)是資料庫管理員(DBA)故障排除工具箱中一個重要且有價值的補充,揭示了有關資料庫會話和交易的內部活動的先前無法獲得的信息。

那麼,為什麼並非所有的DBA都在使用它們呢?為什麼許多DBA仍然忽視它們,而偏好使用像是 sp_who2、DBCC OPENTRAN 等「經過驗證的」工具,或是使用SSMS內建的「現成」報告?即使是那些使用DMVs的人,為什麼也會懷念「好舊的 sysprocesses」?

似乎有兩個主要因素在起作用。首先,一些DBA根本不知道DMVs所提供的信息的深度和廣度,或是這些信息如何幫助他們排除常見問題。本書將探討所有對DBA在調查查詢執行、索引使用、會話和交易活動、磁碟IO,以及SQL Server如何使用或濫用作業系統時最常用的DMVs。

其次,DMVs有著難以使用的聲譽。在揭示盡可能多的有用數據的過程中,sysprocesses已被標準化,並添加了許多新的視圖和列。這一事實,加上最初令人困惑的列曝光選擇,導致一些DBA將查詢DMVs比作「收集神秘咒語」。

然而,事實上,一旦你開始編寫自己的腳本,你會發現相同的技巧和類似的聯接模式不斷被使用。因此,一組相對較小的核心腳本可以輕鬆調整以滿足任何需求。本書旨在揭開收集所需信息以排除SQL Server問題的過程的神秘面紗。它將突出你需要掌握的核心技術和「模式」,並提供一組核心腳本,供你使用和調整以適應自己的系統,包括如何:

- 找出導致系統內存或CPU壓力的查詢
- 調查快取和查詢計劃重用
- 確定索引使用模式
- 追蹤聚集索引和堆的碎片化
- 獲取有關阻塞和被阻塞交易的完整詳細信息,包括執行的確切命令及其執行者
- 找出SQL Server在等待釋放資源時花費的時間
- 監控tempdb的使用和增長

DMVs並不使現有的內建性能工具過時。相反,它們補充了這些工具,並提供了其他地方無法獲得的靈活性、豐富性和細緻度。此外,你不需要掌握新的GUI或新的語言來使用它們;這一切都是用所有DBA都知道且大多數人喜愛的語言來完成:T-SQL。

最後瀏覽商品 (20)