证明你这个分析开销好大,DTA本身就是资源占用很大的应用,如果你的数据库处于压力状态,再分析一个大查询,就出现这种“警告”,但是它也不算“错误”。

解决方案 »

  1.   

    标题: DTAEngine
    ------------------------------已占用工作负荷的 15% 具有语法错误。有关详细信息,请查看优化日志。------------------------------
    按钮:确定
    ------------------------------
      

  2.   

    这是官方白皮书上的:
    Question: DTA tunes a workload and displays an error message, “X% of consumed 
    workload has syntax errors. Check tuning log for more information.” Why is DTA 
    throwing an error? 
    Answer: This is not a DTA error. The tool is giving feedback to the user indicating that 
    X% of the workload it consumed had syntax errors. Syntax errors are logged in the 
    tuning log. Note that DTA provides a recommendation for the valid statements. 
      

  3.   

    我建议你可以检查一下你的语句,是否有一些虽然能运行但是可能会导致DTA识别困难的写法,比如SELECT *等。