使用Read80Trace優化數據庫遭遇的問題

     我用事件探查器做一個Trace.trc,放在F盤,在本地數據庫建立了一個新數據庫mydb,

接着打開cmd,找到對應Read80Trace.exe目錄
然後使用:Read80trace –f –dmydb –I"f:/trace.trc"
提示:

Output path was not specified; defaulting to E:/rml/output
05/11/08 16:22:16 -----------------------------------------------------
05/11/08 16:22:16 Read80Trace version 8.10.0010
05/11/08 16:22:16 –f
05/11/08 16:22:16 –dmydb
05/11/08 16:22:16 –IE:/rml/mytrace.trc
05/11/08 16:22:16 ERROR: Invalid path specified for input file

 

後來改用(語法錯誤)

read80trace -f -I"f:/trace.trc"  -dmydb

提示以下:

08/08/05 12:12:06 WARNING: The following trace events were not captured: SQL:BatchStarting
, RPC:Starting, SP:StmtStarting, SP:StmtCompleted, Showplan Statistics. Review the help fi
le to ensure that you have collected the appropriate set of events and columns for your in
tended analysis.
08/08/05 12:12:06 ERROR: Event 10 does not contain the following required column(s): 15
08/08/05 12:12:06 WARNING: Event 10 does not contain the following recommended column(s):
3
08/08/05 12:12:06 ERROR: Event 12 does not contain the following required column(s): 15
08/08/05 12:12:06 WARNING: Event 12 does not contain the following recommended column(s):
3
08/08/05 12:12:06 ERROR: Event 14 does not contain the following required column(s): 15
08/08/05 12:12:06 ERROR: Event 15 does not contain the following required column(s): 15
08/08/05 12:12:06 ERROR: Event 17 does not contain the following required column(s): 15
08/08/05 12:12:06 ERROR: Performance analysis has been disabled because one or more events
 is missing required columns. Consult the help file for the recommended set of trace event
s and necessary columns.

 

提示數據列列不足,查看了READ80TRACE幫助文件後,增加 以下列 DatabastID , EndTime, ObjectID, NestLevel,

IntegerData.

 

後來又出現這個錯誤提示:

08/08/05 12:18:51 WARNING: The following trace events were not captured: SQL:BatchStarting
, RPC:Starting, SP:StmtStarting, SP:StmtCompleted, Showplan Statistics. Review the help fi
le to ensure that you have collected the appropriate set of events and columns for your in
tended analysis.

 

再添加事件:

TSQL:BatchStarting,
, 存儲過程RPC:Starting, 存儲過程SP:StmtStarting, 存儲過程SP:StmtCompleted, 性能Showplan Statistics

 

 

再運行OK了

 

發佈了41 篇原創文章 · 獲贊 1 · 訪問量 7萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章