SAP Knowledge Base Article - Preview

3447608 - Error 11060 - Error 11060 for maximum number of recompilations(20) when running a query in SAP ASE

Symptom

  • Running a query which has been running for years, suddenly receives:
    Msg 11060, Level 16, State 1:
    This statement has exceeded the maximum number of recompilations (20). This indicates an internal error. Please note the error prior to this one and contact SAP Technical Support.

  • The query has, set merge_join off, as the first line in the query.
  • Yet, the query plan that is being used clearly shows it is using merge join:
    ...
    |   |   |   |   |   |   |MERGE JOIN Operator (Join Type: Left Outer Join) (VA = 63)
           |   |   |   |   |   |   | Using Worktable5 for internal storage.
    ...
  • Why is it selecting a bad plan and how is this fixed?


Read more...

Environment

  • SAP Adaptive Server Enterprise (ASE) 15.7
  • SAP Adaptive Server Enterprise (ASE) 16.0

Product

SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0

Keywords

KBA , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.