SQLNexus and RML Utilities (ReadTrace) - SQL Server效能分析工具
軟體下載與安裝方法
0.SQLNexus and RML需要SQL Server DB(可以使用SQL Server Express)
1.RML Utilities (ReadTrace)
Please refer this KB for detals on downloading ReadTrace
RML Utilities for SQL Server (x86) – http://www.microsoft.com/downloads/details.aspx?FamilyId=7EDFA95A-A32F-440F-A3A8-5160C8DBE926&displaylang=en
RML Utilities for SQL Server (x64) – http://www.microsoft.com/downloads/details.aspx?FamilyId=B60CDFA3-732E-4347-9C06-2D1F1F84C342&displaylang=en
2.Report Viewer
不同版本SQL Nexus,需要不同版本的Report Viewer
RML Utilities requires Report Viewer to run correctly and Report Viewer also has a few updates to be considered.
Report Viewer | ||
2008 | Microsoft Report Viewer 2008 SP1 Redistributable http://www.microsoft.com/download/en/details.aspx?id=3841
Security Update MS09-062 |
|
2010 | Microsoft Report Viewer 2010 SP1 Redistributable Package http://www.microsoft.com/download/en/details.aspx?id=6610
Update fixes several Report Viewer issues after you install Visual Studio 2010 Service Pack 1 (主要描述的就是要安裝下面那個連結) http://support.microsoft.com/kb/2549864 Update for Microsoft Visual Studio 2010 Service Pack 1 Report Viewer (KB2549864) Note If you have Microsoft Report Viewer 2010 SP1 Redistributable Package installed, install the file that is named "ReportViewer.exe." If you use Microsoft Visual Studio 2010 Service Pack 1, install the file that is named "VS10SP1-KB2549864-x86.exe." |
遇到以下錯誤,需安裝Report Viewer 2010 SP1 Redistributable Package
SQL Nexus的Reports有超連結,但是無法點選開啟報表,需安裝Report Viewer 2010 SP1 update(KB2549864) |
2015
Version=12.x.x.x |
MICROSOFT REPORT VIEWER 2015 RUNTIME (12.0.2402.15) https://www.microsoft.com/en-us/download/details.aspx?id=45496 |
|
Version=13.0.0.0 |
SQL Server 2016 Feature Pack
https://www.microsoft.com/en-us/download/details.aspx?id=52676 i. Download and install enux86sqlsysclrtypes.msi ii. Download and install enux86reportviewer.msi |
若沒有安裝正確會出現以下錯誤訊息
If you run sqlnexus.exe, Error "Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=13.0.0.0,'" |
3. Install RML Utilities
Description of the Replay Markup Language (RML) Utilities for SQL Server
http://support.microsoft.com/kb/944837
How to obtain the RML Utilities for SQL Server
The following files are available for download from the Microsoft Download Center:
The RML Utilities for SQL Server, x86 version
Download the RMLSetup_X86.msi package now.
The RML Utilities for SQL Server, x64 version
Download the RMLSetup_AMD64.msi package now.
4.Install SQL Nexus
Microsoft SQL Nexus
https://github.com/Microsoft/SqlNexus/releases
Installation Steps
1.Download the latest binary files from Releases
2.Unzip the file to a local directory
3.Run sqlnexus.exe to start SQL Nexus
Note: We don't recommend this tool to point to your production SQL Server.
5.分析方法
(1)事先建立好分析用的log DB或用SQL Nexus建立log DB
(2)匯入log
A.如果用PSSDiag收集log
使用SQL Nexus,選擇log DB,匯入PSSDiag收集後的output folder
B.如果只有收集SQL Trace (trc檔)
使用SQL Nexus,選擇log DB,匯入trc檔
或
用命令列匯入
Cd C:Program FilesMicrosoft CorporationRMLUtils
ReadTrace.exe -S"(local)" -E -d"ReadTraceDB20161020213501" -I"D:TEMPSQLTraceFiles2016-10-20_21-35-01TPECDB08_20161020212501.trc" -o"D:TEMPSQLTraceFiles2016-10-20_21-35-01output"
修改參數
-d後面的資料庫名稱
-l要匯入第一個trc檔
-o指定一個執行匯入過程的紀錄檔目錄
匯入Import完成後自動啟動Reporter.exe顯示報表
Cumulative Update 1 to the RML Utilities for Microsoft SQL Server Released
https://blogs.msdn.microsoft.com/psssql/2008/11/12/cumulative-update-1-to-the-rml-utilities-for-microsoft-sql-server-released/
Microsoft SQL Nexus
https://github.com/Microsoft/SqlNexus/releases
Precision Performance FOR MICROSOFT SQL SERVER...
http://blogs.technet.com/b/patricg/archive/2008/01/11/precision-performance-for-microsoft-sql-server.aspx
PRB: RML Utilities - ReadTrace processing fails with "Attempt to use an invalid variant type
http://blogs.msdn.com/b/psssql/archive/2009/02/11/prb-rml-utilities-readtrace-processing-fails-with-attempt-to-use-an-invalid-variant-type.aspx
SQL Nexus and RML Utilities: A primer on the issues that I have dealt with last year
http://blogs.msdn.com/b/sqlserverfaq/archive/2011/02/07/sql-nexus-and-rml-utilities-a-primer-on-the-issues-that-i-have-dealt-with-last-year.aspx