USAGE: NOTE: All command line arguments are case sensitive
-- 输入文件 -I File name of the first .TRC or .XEL file to process [REQUIRED]. Note: XEL processing is ‘BETA‘ and limited.
-- 文件在压缩文件内 -i If specified, indicates that the .TRC file(s) to process are present inside a CAB/ZIP/RAR file with this file name
-- 输出文件(要全路径的),默认是当前目录 -o Full path of directory to place output files [default is current directory]
--数据库服务器(生成的数据库对象保存在该服务器上),默认local -S Name of SQL Server 2005 server to connect to when loading performance analys is data [default is (local)]
--指定数据库(用与存放分析的数据),未指定会创建PerfAnalysis数据库 -d Database to use when loading performance data [default is PerfAnalysis]. User specified below must have CREATE DATABASE permission (if DB doesn‘t exist) or be part of the db_owner role if the database already exists.
-- 登录数据库服务器为windows授权模式 -E Connect to SQL using Windows Authentication [default]
--登录数据库服务器的用户 -U Connect to SQL using this user name
--登录数据库服务器的密码 -P Password for the user specified in -U option
-- 禁用执行分析 -a Disable performance analysis
-f Do not produce .RML output files for each Session and Request -Q Do normalization parse using quoted_identifier OFF symantics. (Default is O N) -r# Read at most this # of files (including the first) [default is all files until a break in the rollover file sequence is detected]. -M Mirror trace events by Session to the specified output directory (All Sessio ns will be output even if Session filter is specified) -MF Mirror trace events by Session to the specified output directory (Only Sessi ons matching filter parameters will be output) -MS Mirror trace events to a single .TRC file in the specified output directory.
-M[FS] or -M[SF] Combine mirror filtering with single .TRC file output *** NOTE: The mirroring option may be overwritten because the source metadat a information indicates such a change. *** -A ‘INCLUDE or EXCLUDE‘ events with Application Names -C ‘INCLUDE or EXCLUDE‘ events with Database Names when possible -H ‘INCLUDE or EXCLUDE‘ events with Host Names -s# ‘INCLUDE or EXCLUDE‘ events from specified Sessions -X# ‘INCLUDE or EXCLUDE‘ events based on Event Class value -x# ‘INCLUDE or EXCLUDE‘ events based on SubClass value -B### Time bias: Adjusts the start and end times, as read by (+-)### minutes. -b Provide a designated start time in required format 2000-05-25 11:46:20:060 -e Provide a designated stop time in required format 2000-05-25 11:46:20:060 -D Skip date on log file output -L Integer value representing the language id -Y Optional scratch path used by Expander when handling compressed files. If y ou processing lots of files from a nested archive this can increase performance.
-? Show usage of command line parameters
EXAMPLES: ReadTrace -Iserver__sp_trace.trc -ic:\temp\traces.cab -oc:\temp\output -f ReadTrace -I"c:\my traces\80AllEvents.trc" -o"c:\my output" ReadTrace -Ioutput\SQLSRV1__sp_trace_20.trc -ic:\temp\pssdiag.zip -oc:\temp\brea kout -f -r2 NOTE: Command line parameters must start with hyphen or slash and must not have a space between the switch and parameter value.
以上是关于RML Utilities for SQL Server工具的主要内容,如果未能解决你的问题,请参考以下文章