System Procedure Errors

This section contains error messages raised by Adaptive Server system procedures.

When system procedure error messages are raised, the error number is displayed as 0 and the global variable @@error returns 0. This section includes non-zero error numbers along with the error message text. If you call Sybase Technical Support about an error in this section, include the error number that is shown here even though that number was not displayed when the error was raised.




Error 17461

Severity

0

Message text

Object does not exist in this database.

Explanation

This error occurs when the object you specified does not exist in the current database when you run any of the following stored procedures:

Action

Make sure you are in the database in which the object resides before entering the stored procedure command.

Use the owner name in your object name specification if you are not the object owner.

Versions in which this error is raised

All versions




Error 17715

Severity

0

Message text

The last-chance threshold for database %1! is now %2! pages.

Explanation

This informational message is displayed when a last-chance threshold has been established on a newly created log device (sp_logdevice), or an existing one has been adjusted after a procedure which alters the size of a log device was executed (sp_dropsegment, sp_extendsegment). The threshold is established automatically by Adaptive Server.

Action

No action is necessary.

Versions in which this error is raised

All versions




Error 17716

Severity

0

Message text

Could not update the last-chance threshold for database %1!

Explanation

Procedure lct_admin is run automatically when any attempt is made to add or modify the log segment of a database with sp_logdevice, sp_dropsegment, or sp_extendsegment. Error 17716 occurs when an attempt to run such a command has failed.

Action

Check other messages displayed near the attempted command. They may give you additional information regarding the failure of lct_admin or may indicate the original command was not successful. If the command appeared to run successfully, except for this error message, contact Sybase Technical Support about evaluating the current status of the last-chance threshold in this database.

Before calling Technical Support, have the following information available:

Versions in which this error is raised

All versions




Error 17737

Severity

0

Message text

Partitioned objects cannot be moved.

Explanation

Adaptive Server does not allow you to use sp_placeobject on partitioned objects. Error 17737 occurs when you try to use sp_placeobject to change future space allocations for a partitioned table.

Action

If you want to use sp_placeobject on the table, use the unpartition clause of the alter table command to concatenate all partitions:

1> alter table table_name unpartition
2> go

Then run your sp_placeobject command again.

Additional information

Refer to the Reference Manual for information about alter table and sp_placeobject.

Versions in which this error is raised

All versions




Error 17870

Severity

0

Message text

Table '%1!' does not exist in database '%2!' -- cannot add thresholds.

Explanation

systhresholds should exist in every database in Adaptive Server. Error 17870 occurs when the system table systhresholds does not exist in the current database, and sp_addthreshold or sp_modifythreshold was not able to add or modify the requested threshold.

Action

Run dbcc checkalloc and dbcc checkdb to determine if the database is corrupted.

Contact Sybase Technical Support if systhresholds is missing from a database.

Have the following information ready when you call Technical Support:

Additional information

Refer to “sp_addthreshold” in the Reference Manual for additional information.

Versions in which this error is raised

All versions




Error 17871

Severity

0

Message text

There is no segment named '%1!'.

Explanation

This error occurs when an attempt is made to add, drop, or modify (using sp_addthreshold, sp_dropthreshold, or sp_modifythreshold) a segment that does not exist in the current database.

Action

Run sp_helpsegment to display segment information about the current database. If the segment does exist, check that you have spelled it correctly in your procedure. If the segment does not exist and you believe it has been dropped, use sp_addsegment to add it back.

If the requested segment does not exist and you are certain no one has dropped it, run dbcc commands to check the integrity of the database.

Additional information

Refer to “sp_addthreshold” in the Reference Manual for additional information.

Versions in which this error is raised

All versions




Error 17872

Severity

0

Message text

This threshold is too close to one or more existing thresholds. Thresholds must be no closer than 128 pages to each other.

Explanation

This error occurs when an attempt is made to add or modify thresholds sp_addthreshold or (sp_modifythreshold) that are too close together.

Action

Thresholds for a database cannot be closer than (size_of_threshold + (2 * @@thresh_hysterisis)). Ensure that the free space allocation allows enough pages. Rerun the command with the appropriate value for free space. Refer to “Managing Free Space with Thresholds” in the Adaptive Server Enterprise System Administration Guide for information about threshold size and hysteresis value.

Versions in which this error is raised

All versions




Error 17873

Severity

0

Message text

Adding threshold for segment '%1!' at '%2!' pages.

Explanation

This message is displayed after the successful completion of a sp_addthreshold command or a sp_modifythreshold command that adds a threshold.

Action

No action is required.

Versions in which this error is raised

All versions




Error 17874

Severity

0

Message text

A threshold at %1! pages is logically impossible for segment '%2!'. Choose a value between %3! and %4! pages.

Explanation

This error occurs when an attempt is made to either add or modify a threshold (sp_addthreshold or sp_modifythreshold) for a number of pages that is greater than the segment named in the command.

Action

Run sp_helpdb database_name to display the device fragments used by the specified database and the size of the device fragment. Then rerun the command with an appropriate page value for free_space.

Versions in which this error is raised

All versions




Error 17875

Severity

0

Message text

Only the DBO of database '%1!' or a user with System Administrator (SA) role may add, delete, or modify thresholds in that database.

Explanation

This error occurs when you try to run sp_addthreshold, sp_dropthreshold, or sp_modifythreshold and you are not the owner of the current database and do not have “sa” role.

Action

If you are not the database owner, run sp_displaylogin to display roles currently assigned to you (you must have sso_role or sa_role to display this information about another user).

Ask your system administrator to give you sa_role or ask another user to execute the command.

Versions in which this error is raised

All versions




Error 17903

Severity

0

Message text

Table '%1!' does not exist in database '%2!' -- cannot drop thresholds.

Explanation

systhresholds should exist in every database in Adaptive Server. Error 17903 occurs when the system table systhresholds does not exist in the current database, and sp_dropthreshold is unable to drop the requested threshold.

Action

Run dbcc checkalloc and dbcc checkdb to determine if there is corruption in the database.

Contact Sybase Technical Support if systhresholds is missing from a database.

Additional information

Have the following information ready when you call Technical Support:

Versions in which this error is raised

All versions




Error 17904

Severity

0

Message text

Segment '%1!' does not have a threshold at '%2!' pages.

Explanation

This error occurs when an attempt is made to either drop or modify a threshold (sp_dropthreshold or sp_modifythreshold) that does not exist for the free space page allocation given in the command.

Action

Run sp_helpthreshold without any options to display all the thresholds and their free page allocations for the current database. Then rerun the stored procedure with corrected parameters.

Versions in which this error is raised

All versions




Error 17905

Severity

0

Message text

You may not drop the log's last-chance threshold. 

Explanation

The last-chance threshold is created and maintained by the Adaptive Server and cannot be dropped by a user. Error 17905 occurs when an attempt is made to drop the database last-chance threshold with sp_dropthreshold.

Action

No action is required.

Versions in which this error is raised

All versions




Error 17906

Severity

0

Message text

Dropping threshold for segment '%1!' at '%2!' pages. 

Explanation

This message is issued after successful completion of an sp_dropthreshold command or an sp_modifythreshold command that drops a threshold.

Action

No action is required.

Versions in which this error is raised

All versions




Error 17910

Severity

0

Message text

Database '%1!' has no thresholds -- table '%2!' does not exist.

Explanation

systhresholds should exist in every database in Adaptive Server. Error 17910 occurs when the system table systhresholds does not exist in the current database and sp_helpthreshold is unable to output information from that table.

Action

Run dbcc checkalloc and dbcc checkdb to determine if there is database corruption.

Additional information

Have the following information ready if you call Sybase Technical Support:

Versions in which this error is raised

All versions




Error 18031

Severity

0

Message text

This procedure can only affect thresholds in the current database. Say 'USE %1!', then run this procedure again.

Explanation

Thresholds for a specified database may only be created or modified while in the database. Error 18031 occurs when you try to run sp_addthreshold, sp_dropthreshold, or sp_modifythreshold when you are not in the database for which you are running the command.

Action

  1. Determine the name of the current database:

    1> select db_name()
    2> go
    

  2. Select the correct database:

    1> use database_name
    2> go
    

    where database_name is the name of the database for which you want to run the threshold command.

  3. Rerun the sp_addthreshold, sp_dropthreshold, or sp_modifythreshold command.

Versions in which this error is raised

All versions




Error 18032

Severity

0

Message text

You may not alter the free space or segment name of the log's last-chance threshold.

Explanation

The only parameter you can change for the last-chance threshold is the name of the procedure that will execute when the threshold is crossed. Error 18032 occurs when you try to modify the last-chance threshold name or free space allocation with sp_modifythreshold.

Action

No action is required.

Versions in which this error is raised

All versions




Error 18033

Severity

0

Message text

You cannot drop user because user '%1!' owns thresholds in database.

Explanation

The user who created a threshold or last modified a threshold is the threshold owner. A user who owns a threshold cannot be dropped. Error 18033 occurs when you use sp_dropuser to try to drop a user who owns a threshold.

Action

You have three options:

Versions in which this error is raised

All versions




Error 18097

Severity

0

Message text

Object must be a trigger, view or stored procedure.

Explanation

The procedure sp_procqmode displays the query processing mode of a stored procedure, view, or trigger. The object name parameter is the name of the stored procedure, view, or trigger whose query processing mode you are examining. Error 18097 occurs when the object name you specify is not a trigger, view, or stored procedure.

Action

Check the name of your object and make sure it is the name of a trigger, view, or stored procedure.

Additional information

Refer to the Reference Manual for information about sp_procqmode.

Versions in which this error is raised

All versions




Error 18123

Severity

0

Message text

Configuration option changed. The SQL Server must be rebooted before the change in effect since the option is static.

Explanation

When you use sp_configure to modify a static parameter:

Error 18123 is an informational message letting you know that a static parameter has been changed and that the change will not take effect until Adaptive Server is restarted.

Action

Shut down and restart Adaptive Server to make the parameter change take effect.

Additional information

Refer to the Reference Manual for information about sp_configure.

Versions in which this error is raised

All versions




Error 18145

Severity

0

Message text

Less memory moved than requested in cache '%1!'. Requested size = %2! Kb: from pool = %3!, to pool = %4!, actual memory moved = %5! Kb.

Explanation

The Adaptive Server command sp_poolconfig allows you to create, drop, resize, and get information about memory pools within named data caches. You can use sp_poolconfig to move memory from one pool to another.

Error 18145 is an informational message that is displayed when the source pool you specified has less memory available then you requested to have moved to the destination pool. Adaptive Server moves as much memory as it can of the amount you requested and specifies in the message output how much was actually moved.

Action

If the amount of memory that was moved to the destination pool is not enough:

  1. If necessary, use sp_cacheconfig to enlarge the cache size.

  2. Use sp_poolconfig to reconfigure the source pool to have a larger amount of memory available.

Additional information

Refer to the Reference Manual for information about sp_poolconfig and sp_cacheconfig.

Versions in which this error is raised

All versions




Error 18750

Severity

0

Message text

The command ’%1!’ can not be run in this server. The server is currently configured with mode ’%2!’.

Explanation

In Adaptive Server’s High Availability (HA) cluster configuration, two nodes in a cluster can take over each other’s workload in the event of a failure; once the problem with the primary is resolved, you can use failback to move the primary companion’s shared disks from the secondary node back to the primary node and start the primary companion on the primary node.

Error 18750 is raised if you try to assign a (primary or secondary) server to a mode that is incompatible with its current state. For example, the error is raised if you issue sp_companion ’prepare_failback’ on the secondary companion, but the secondary is not in the correct state for failback.

Action

Take the following steps:

  1. Check the companion mode of your servers by issuing the following on both primary and secondary servers:

    1> select @@cmpstate
    2> go
    

    This command returns a value denoting the current companion mode. Refer to “Determining the Companion’s Mode” in Using Sybase Failover in a High-Availability System for a description of the return values.

  2. Check that the command which raised the 18750 message (appearing in the message text) is compatible with the server’s companion mode. For example, you cannot issue a suspend command to a server currently in failover mode.

    At times the 18750 message may require corrective action. For example, if you issued prepare_failback and your primary companion is in normal companion mode but the secondary companion is in secondary failover mode, you will need to recover from this inconsistent state manually. The process involves shutting down both servers, restarting the secondary and repairing any suspect databases on the secondary. The steps for achieving this are platform-specific. Refer to one of the following:

Versions in which this error is raised

12.0 and later