dataserver Errors

This section contains general error messages for the Adaptive Server dataserver utility program.




Error 4001

Severity

11

Message text

Cannot open default database ’%.*s’.

Explanation

This error is raised when Adaptive Server is unable to open the user’s default database at login.

After raising the error, the server checks if the user is allowed to log in to master. If the master database is forbidden, the login request is denied.

Common reasons why the default database cannot be opened include:

Action

Retry the login in the event that the database was in recovery or temporarily unavailable.

Since the 4001 error is usually a symptom of some other problem, check the server error log for any other errors that may have been raised prior to 4001. Check for the following errors and retry:

Versions in which this error is raised

All versions




Error 4002

Severity

14

Message text

Login failed.

Explanation

This error occurs when a login request is rejected by Adaptive Server.

Some reasons for Error 4002 are:

Action

Determine whether any of the reasons listed above are causing the 4002 error. If you have checked each of these and you still cannot login to Adaptive Server, call Sybase Technical Support.

Following are instructions for checking on the above reasons:

Additional information

For information about logins and the procedures mentioned in this writeup, refer to the Security Administration Guide.

Versions in which this error is raised

All versions




Error 4020

Severity

20

Message text

While reading characters from the client, the receiving buffer has been detected to be too small.

Explanation

All client/server communication occurs over a network via packets. Clients initiate a connection to the server. The connection sends client requests and server responses.

Error 4020 is raised when the server detects an overflow in the destination buffer while reading one or more characters from the client. The error breaks the connection to the server.

Possible reasons for Error 4020 include:

Action

Collect all relevant information about the circumstances in which the error occurred: character set differences on client and server, changed or new applications, recent changes in the network configuration, and so on.

Check for coding errors in the application which may be causing incorrectly sized packets to be sent.

Check for possible packet corruption within the network.

Check the network configuration. For example, if there is 7-bit communication at one end, and 8-bit at the other end, check that the network is properly configured to handle this setup.

Check that Adaptive Server is correctly configured to work with the underlying network packet size or buffer size on your system. Relevant server parameters include:

default network packet size
maximum network packet size
total memory

Versions in which this error is raised

All versions