SAP Knowledge Base Article - Preview

2041545 - Is it possible to limit the number of locks acquired on a per transaction basis? - SAP ASE

Symptom

  • When executing a large query against a very large table, the number of locks acquired by the transaction may sometimes be excessive.
  • Such queries, or other unrelated queries needing to acquire a lock, may fail with ASE error 1204:   

         ASE has run out of LOCKS. Re-run your command when there are fewer active
         users, or contact a user with System Administrator (SA) role to reconfigure
         ASE with more LOCKS.

  • It is possible to limit the number of rows a given query returns using the ASE "resource limits" feature.  How can this feature be used to limit the number of locks acquired for a given transaction?


Read more...

Environment

SAP Adaptive Server Enterprise (ASE) all versions

Product

SAP Adaptive Server Enterprise all versions ; Sybase Adaptive Server Enterprise all versions

Keywords

resource limit, lock , 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.