Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

Error 1203 [Table of Contents] Error 1205

Troubleshooting and Error Messages Guide

[-] Chapter 3 Error Message Writeups
[-] Lock Manager Errors
[-] Error 1204

Error 1204

Severity

19

Error message text

SQL Server 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 SQL Server with more LOCKS.

Explanation

This error occurs when Adaptive Server runs out of locks . The number of locks available is controlled by the Adaptive Server configuration parameter number of locks.

Following is an example of the output from sp_configure, and a brief description of the output related to locks:

1> sp_configure "number of locks"
2> go
Parameter Name        Default     Memory Used Config Value Run Value 
--------------------- ----------- ----------- ------------ ----------- 
number of locks             5000           0        5000        5000

Action

Rerun the command when there are fewer active users, or ask the Sybase System Administrator ("sa") to reconfigure Adaptive Server for more locks. Increasing the number of available locks impacts performance and memory requirements.

Warning!

Before making any changes to Adaptive Server, refer to the Performance and Tuning Guide and "Configuring Memory" in the System Administration Guide for information about how Adaptive Server uses memory resources.

To increase the number of locks available, complete the following steps:

  1. Determine the number of locks currently configured for Adaptive Server:

    1> use master 
    2> go
    1> sp_configure "number of locks"
    2> go

    Warning!

    If you increase the number of locks available by too many locks, Adaptive Server may run out of memory and be unable to restart. Refer to Chapter 1, "Adaptive Server Does Not Start After Altering Configuration" if you run out of memory and cannot restart Adaptive Server.

  2. Choose the number of locks you want to configure and issue the following command:

    1> sp_configure "number of locks", new_value
    2> go

  3. Restart Adaptive Server to operate with the new values.

Additional information

Refer to the Performance and Tuning Guide for information about locks and other Adaptive Server resources.

Refer to "number of locks" in the System Administration Guide for information about the number of locks configuration parameter.

Versions in which this error is raised

All versions


Error 1203 [Table of Contents] Error 1205