Message Reference

SQL30000 - SQL30099

SQL30000NExecution failed because of a Distributed Protocol Error that will not affect the successful execution of subsequent commands or SQL statements: Reason Code "<reason-code(subcode)>".

Explanation: A system error occurred that prevented successful processing of the current environment command or SQL statement. This message (SQLCODE) is produced at statement compilation or execution time.

The command or statement cannot be processed. The current transaction is not rolled back and the application remains connected to the remote database.

User Response: Record the message number and the reason code. Record all error information from the SQLCA, if possible. Attempt to rerun the application.

If sufficient memory resources exist and the problem continues, invoke the Independent Trace Facility at the operating system command prompt. Refer to the Independent Trace Facility in the Troubleshooting Guide for information on how to use this facility.

Required information:

sqlcode: -30000

sqlstate: 58008

SQL30002NThe SQL statement cannot be executed due to a prior condition in a chain of statements.

Explanation: An SQL statement was chained to PREPARE, but the PREPARE statement has received a warning SQLCODE that requires the program or end user to either re-issue the chained statement or issue a different SQL request. This error can occur only in a client/server environment.

The statement cannot be executed as chained.

User Response: The statement must be sent again as a separate request.

sqlcode: -30002

sqlstate: 57057

SQL30020NExecution failed because of a Distributed Protocol Error that will affect the successful execution of subsequent commands and SQL statements: Reason Code "<reason-code>".

Explanation: A system error occurred that prevented successful execution of the current environment command or SQL statement, as well as any subsequent commands or SQL statements.

The command or statement cannot be processed. The current transaction is rolled back and the application is disconnected from the remote database.

User Response: Record the message number (SQLCODE) and the reason code. Record all error information from the SQLCA, if possible. Attempt to connect the remote database and rerun the application.

If sufficient memory resources exist and the problem continues, invoke the Independent Trace Facility at the operating system command prompt. Refer to the Independent Trace Facility in the Troubleshooting Guide for information on how to use this facility.

Required information:

Some possible reason codes include:

121C
Indicates that the user is not authorized to perform the requested command.

1232
The command could not be completed because of a permanent error. In most cases, the server will be in the process of an abend.

220A
The target server has received an invalid data description. If a user SQLDA is specified, ensure that the fields are initialized correctly. Also, ensure that the length does not exceed the maximum allowed length for the data type being used.

If you are using the DB2 Connect product in a gateway server environment with downlevel clients, this error may occur if your application's host variables and the queried table's column descriptions do not match.

sqlcode: -30020

sqlstate: 58009

SQL30021NExecution failed because of a Distributed Protocol Error that will affect the successful execution of subsequent commands and SQL statements: Manager "<manager>" at Level "<level>" not supported.

Explanation: A system error occurred that prevented successful connection of the application to the remote database. This message (SQLCODE) is produced for SQL CONNECT statement. "<manager>" and "<level>" are numeric values that identify the incompatibility between the client and the server.

The command cannot be processed.

User Response: Record the message number, the "<manager>", and "<level>" values. Record all error information from the SQLCA, if possible. Attempt to connect to the remote database again.

If the problem persists, invoke the Independent Trace Facility at the operating system command prompt. Refer to the Independent Trace Facility in the Troubleshooting Guide for information on how to use this facility. Then, contact your service representative with the following information:

sqlcode: -30021

sqlstate: 58010

SQL30040NExecution failed because of unavailable resources that will not affect the successful execution of subsequent commands and SQL statements: Reason "<reason>". Type of Resource "<resource-type>". Resource name "<resource-name>". Product ID "<product-ID>".

Explanation: The application cannot process the command or SQL statement because the specified resource has run out. The current transaction is not rolled back and the application remains connected to the remote database.

The command cannot be processed.

User Response: Increase the size of the specified resource and resubmit the command.

sqlcode: -30040

sqlstate: 57012

SQL30041NExecution failed because of unavailable resources that will affect the successful execution of subsequent commands and SQL statements: Reason "<reason>". Type of Resource "<resource-type>". Resource name "<resource-name>". Product ID "<product-ID>".

Explanation: The application cannot process the command or SQL statement because resources are not available at the remote database. This SQLCODE is produced at statement compilation or processing time.

Federated system users: this situation can also be detected by the data source.

If the "<resource name>" is "Encrypt" or "Decrypt", the user exits for password encryption or decryption are unavailable or had an error.

The command or statement cannot be processed.

User Response: Investigate the remote database system environment.

Federated system users:

sqlcode: -30041

sqlstate: 57013

SQL30050N"<number>" command or SQL statement invalid while bind is in progress.

Explanation: An application attempted to issue a command or SQL statement that is not valid while a precompile/bind operation is in progress. <number> is a numeric value that identifies the erroneous command or SQL statement.

The command or statement is not processed.

User Response: If the application is not the database manager precompiler/binder, verify that bind is not active before issuing the command or SQL statement.

If the application is the database manager precompiler/binder, record the message number (SQLCODE) and the <number> value. Record all error information from the SQLCA, if possible. Attempt to perform the bind operation again.

If sufficient memory resources exist and the problem continues, invoke the Independent Trace Facility at the operating system command prompt. Refer to the Independent Trace Facility in the Troubleshooting Guide for information on how to use this facility.

Contact your technical service representative with the following information:

Required information:

sqlcode: -30050

sqlstate: 58011

SQL30051NBind process with the specified package name and consistency token not active.

Explanation: An attempt has been made to issue a precompile/bind operation when precompile/bind is not active or an attempt was made to use an invalid package name and/or consistency token during an active precompile/bind operation.

The command or statement cannot be processed.

User Response: If the application is not the database manager precompiler/binder, verify that precompile/bind is active before issuing the bind operation and that correct information is being passed on the bind operation.

If the application is the database manager precompiler/binder, record the message number (SQLCODE) and all error information from the SQLCA, if possible. Attempt to perform the operation again.

If sufficient memory resources exist and the problem continues, invoke the Independent Trace Facility at the operating system command prompt. Refer to the Independent Trace Facility in the Troubleshooting Guide for information on how to use this facility.

Contact your technical service representative with the following information:

Required information:

sqlcode: -30051

sqlstate: 58012

SQL30052NProgram preparation assumptions are incorrect.

Explanation: The SQL statement being compiled is not recognized by the precompiler and cannot be processed by the database.

The statement cannot be processed.

User Response: Ensure that the statement is correct and attempt to perform the operation again. If the problem continues, remove the statement from the program.

sqlcode: -30052

sqlstate: 42932

SQL30053NThe value for OWNER failed the authorization check at the remote database.

Explanation: The value specified for the OWNER option on the precompile/bind failed the authorization check at the remote database. This SQLCODE is produced during precompile/bind. It is not produced by the database manager precompiler/binder.

The precompile/bind operation cannot be processed.

User Response: Ensure that you are authorized to use the ID specified for the OWNER option, or do not use the OWNER option.

sqlcode: -30053

sqlstate: 42506

SQL30060N"<authorization-ID>" does not have the privilege to perform operation "<operation>".

Explanation: Authorization ID <authorization-ID> attempted to perform the specified <operation> without having been granted the proper authorization to do so. This SQLCODE is produced at statement compilation or processing time.

The statement cannot be processed.

User Response: Ensure that the <authorization-ID> has been granted the authorization necessary to perform the desired operation.

sqlcode: -30060

sqlstate: 08004

SQL30061NThe database alias or database name "<name>" was not found at the remote node.

Explanation: The database name is not an existing database at the remote database node.

The statement cannot be processed.

User Response: Resubmit the command with the correct database name or alias.

Federated system users: check to ensure that the entry in SYSCAT.SERVERS correctly specifies the database name of the data source.

sqlcode: -30061

sqlstate: 08004

SQL30070N"<command-identifier>" Command is not supported.

Explanation: The remote database received a command that it does not recognize. The current environment command or SQL statement cannot be processed successfully, nor can any subsequent commands or SQL statements.

The current transaction is rolled back and the application is disconnected from the remote database. The statement cannot be processed.

User Response: Record the message number (SQLCODE) and the command identifier. Record all error information from the SQLCA, if possible. Attempt to connect to the remote database and rerun the application.

If sufficient memory resources exist and the problem continues, invoke the Independent Trace Facility at the operating system command prompt. Refer to the Independent Trace Facility in the Troubleshooting Guide for information on how to use this facility.

Contact your technical service representative with the following information:

Required information:

sqlcode: -30070

sqlstate: 58014

SQL30071N"<object-identifier>" Object is not supported.

Explanation: The remote database received data it does not recognize. The current environment command or SQL statement cannot be processed successfully, nor can any subsequent commands or SQL statements.

The current transaction is rolled back and the application is disconnected from the remote database. The command cannot be processed.

User Response: Record the message number (SQLCODE) and the object identifier. Record all error information from the SQLCA, if possible. Attempt to connect to the remote database and rerun the application.

If sufficient memory resources exist and the problem continues,

If trace was active, invoke the Independent Trace Facility at the operating system command prompt. Refer to the Independent Trace Facility in the Troubleshooting Guide for information on how to use this facility.

Contact your technical service representative with the following information:

Required information:

sqlcode: -30071

sqlstate: 58015

SQL30072N"<parameter-identifier>" Parameter is not supported.

Explanation: The remote database received data it does not recognize. The current environment command or SQL statement cannot be processed successfully, nor can any subsequent commands or SQL statements.

The command cannot be processed.. The current transaction is rolled back and the application is disconnected from the remote database.

User Response: Record the message number (SQLCODE) and the parameter identifier. Record all error information from the SQLCA, if possible. Attempt to connect to the remote database and rerun the application.

If sufficient memory resources exist and the problem continues, invoke the Independent Trace Facility at the operating system command prompt. Refer to the Independent Trace Facility in the Troubleshooting Guide for information on how to use this facility.

Contact your technical service representative with the following information:

Required information:

sqlcode: -30072

sqlstate: 58016

SQL30073N"<parameter-identifier>" Parameter value "<value>" is not supported.

Explanation: The remote database received data it does not recognize. The current environment command or SQL statement cannot be processed successfully, nor can any subsequent commands or SQL statements.

The current transaction is rolled back and the application is disconnected from the remote database. The command cannot be processed.

User Response: Record the message number (SQLCODE) and the parameter identifier. Record all error information from the SQLCA, if possible. Attempt to connect to the remote database and rerun the application.

If sufficient memory resources exist and the problem continues,

If trace was active, invoke the Independent Trace Facility at the operating system command prompt. Refer to the Independent Trace Facility in the Troubleshooting Guide for information on how to use this facility. Contact your technical service representative with the following information:

Required information:

Some possible parameter identifiers include:

002F
The target server does not support the data type requested by the application requester. For example, when DB2 Connect is used to connect to DB2 2.3, this error will be returned unless the proper PTF is applied to DB2 2.3. Ensure that the level of the server is supported by the requester.

119C, 119D, 119E
The target server does not support the CCSID requested by the application requester. Ensure the CCSID used by the requester is supported by the server.

sqlcode: -30073

sqlstate: 58017

SQL30074N"<reply-identifier>" Reply is not supported.

Explanation: The client received a reply it does not recognize. The current environment command or SQL statement cannot be processed successfully, nor can any subsequent commands or SQL statements.

The current transaction is rolled back and the application is disconnected from the remote database. The statement cannot be processed.

User Response: Record the message number (SQLCODE) and the reply identifier. Record all error information from the SQLCA, if possible. Attempt to connect to the remote database and rerun the application.

If sufficient memory resources exist and the problem continues, invoke the Independent Trace Facility at the operating system command prompt. Refer to the Independent Trace Facility in the Troubleshooting Guide for information on how to use this facility.

Contact your technical service representative with the following information:

Required information:

sqlcode: -30074

sqlstate: 58018

SQL30080NA communication error "<reason-code>" occurred sending or receiving data from the remote database.

Explanation: The "<reason-code>" contains the original error codes reported by Communications Manager.

For APPC error codes, the format is pppp-ssssssss-dddddddd where pppp is the primary return code, ssssssss is the secondary return code and dddddddd is the sense data. Each of these error code values is represented in hexadecimal notation. Possible primary and secondary error codes include 0003-00000004 and 0003-00000005, which indicate that a conversation with the Database Server could not be allocated. Sense data will only be displayed for an APPC ALLOCATE error.

The command cannot be processed. The connection attempted to the database is unsuccessful or the current transaction to the connected database is rolled back and the application is disconnected from the remote database.

Refer to the document IBM Communications Manager 1.0 APPC Programming Guide and Reference (SC31-6160) for explanation of the APPC primary and secondary return codes. For details of APPC sense data, refer to the IBM Communications Manager 1.0 Problem Determination Guide (SC31-6156).

User Response: Ensure that both the database manager and Communications Manager are started at the Database Server and that all Communications Manager configuration parameters are correct. Also, consult the Communications Manager/2 APPC Programming Guide & Reference for further information.
Note:If the reason code embedded in your message is 0003-084C0001 one possible cause for this message is that you are trying to make a remote connection to a workstation that is not a server. Verify that the remote workstation is a server. If it is not a server, install the database manager as a server.
sqlcode: -30080

sqlstate: 08001

SQL30081NA communication error has been detected. Communication protocol being used: <protocol>. Communication API being used: <interface>. Location where the error was detected: <location>. Communication function detecting the error: <function>. Protocol specific error code(s): <rc1>, <rc2>, <rc3>.

Explanation: An error has been detected by the communication subsystem.

If the connection has already been established, possible causes include the following:

If you are trying to establish a new connection, possible causes include the following:

Refer to the token values for details. Depending on the protocol being used and the communication function invoked, some tokens may not be applicable. The following is the explanation of the token values:

<protocol>
The actual communication protocol being used. Valid token values are:

<interface>
The application programming interface used to invoke the above communication protocol services. Valid token values are:

<location>
This is a protocol specific ID which uniquely identifies the node that detected the error. If the protocol being used is:

If the location information is not available at the time that the error occurred, this token is not filled in.

<function>
The name of the communication subsystem function that returned the error code(s).

<rc1>, <rc2>, <rc3>
The list of the available error codes and subcodes that are specific to each protocol being used. Tokens that are not applicable contain "*".

If the protocol being used is:

See the Communications Errors appendix of the Messages Reference for more information on specific communication error codes.

User Response:

If the connection has already been established, check if:

  1. The database agent at the server has been forced off.
  2. The database manager at the server has abnormally terminated.
  3. A communication subsystem or network error has occurred. See the Messages Reference for more information on specific communication error codes.

If you are trying to establish a new connection, check if:

  1. The remote database server is cataloged properly on the client node.
  2. The database manager configuration file at the server is configured with the proper communication related parameters. If the database manager configuration parameters have been updated at the server, ensure that you stop and then re-start the database manager, for the changes to take effect.
  3. The communication subsystems on both client and server nodes are configured and started up properly.
  4. The DB2COMM environment variable at the server specifies the communication protocol used by the client.
  5. The database manager at the server is successfully started. Start database manager processing at the server should have returned SQL1063, and not SQL5043. If SQL5043 is returned, check the First Failure Service Log (DB2DIAG.LOG) for more information.
  6. A communication subsystem or network error has occurred.

If the problem persists, consult with your network administrator and/or communication expert to determine the cause of the problem using the set of tokens provided.

sqlcode: -30081

sqlstate: 08001

SQL30082NAttempt to establish connection failed with security reason "<reason-code>" ("<reason-string>").

Explanation: The attempt to connect to the remote database server was rejected due to invalid or incorrect security information. The cause of the security error is described by the <reason-code> and corresponding <reason-string> value.

The following is a list of reason codes and corresponding reason strings:

0 (NOT SPECIFIED)
The specific security error is not specified.

1 (PASSWORD EXPIRED)
The password specified in the request has expired.

2 (PASSWORD INVALID)
The password specified in the request is not valid.

3 (PASSWORD MISSING)
The request did not include a password.

4 (PROTOCOL VIOLATION)
The request violated security protocols.

5 (USERID MISSING)
The request did not include a userid.

6 (USERID INVALID)
The userid specified in the request is not valid.

7 (USERID REVOKED)
The userid specified in the request has been revoked.

8 (GROUP INVALID)
The group specified in the request is not valid.

9 (USERID REVOKED IN GROUP)
The userid specified in the request has been revoked in the group.

10 (USERID NOT IN GROUP)
The userid specified in the request is not in the group.

11 (USERID NOT AUTHORIZED AT REMOTE LU)
The userid specified in the request is not authorized at the remote Logical Unit.

12 (USERID NOT AUTHORIZED FROM LOCAL LU)
The userid specified in the request is not authorized at the remote Logical Unit when coming from the local Logical Unit.

13 (USERID NOT AUTHORIZED TO TP)
The userid specified in the request is not authorized to access the Transaction Program.

14 (INSTALLATION EXIT FAILED)
The installation exit failed.

15 (PROCESSING FAILURE)
Security processing at the server failed.

16 (NEW PASSWORD INVALID)
the password specified on a change password request did not meet the server's requirements.

17 (UNSUPPORTED FUNCTION)
the security mechanism specified by the client is invalid for this server. Some typical examples:

18 (NAMED PIPE ACCESS DENIED)
The named pipe is inaccessible due to a security violation.

19 (USERID DISABLED or RESTRICTED)
The userid has been disabled, or the userid has been restricted from accessing the operating environment at this time.

20 (MUTUAL AUTHENTICATION FAILED)
The server being contacted failed to pass a mutual authentication check. The server is either an imposter, or the ticket sent back was damaged.

21 (RESOURCE TEMPORARILY UNAVAILABLE)
Security processing at the server was terminated because a resource was temporarily unavailable. For example, on AIX, no user licenses may have been available.

User Response: Ensure that the proper userid and/or password is supplied.

The userid may be disabled, the userid may be restricted to accessing specific workstations, or the userid may be restricted to certain hours of operation.

For reason code 17, retry the command with a supported authentication type.

For reason code 20, make sure the authentication mechanism for the server is started, and retry.

sqlcode: -30082

sqlstate: 08001

SQL30083NAttempt to change password for user id "<uid>" failed with security reason "<reason-code>" ("<reason-string>").

Explanation: The attempt to change password was rejected due to invalid or incorrect security information. The cause of the security error is described by the "<reason-code>" and corresponding "<reason-string>" values.

The following is a list of reason codes and corresponding reason strings:

0 (NOT SPECIFIED)
The specific security error is not specified.

1 (CURRENT PASSWORD INVALID)
The old password specified in the request is not vaild.

2 (NEW PASSWORD INVALID)
The password specified in the request is not valid under the password rules imposed by the system where password was to be changed.

3 (CURRENT PASSWORD MISSING)
The request did not include an old password.

4 (NEW PASSWORD MISSING)
The request did not include a new password.

5 (USERID MISSING)
The request did not include a userid.

6 (USERID INVALID)
The userid specified in the request is not valid.

7 (USERID REVOKED)
The userid specified in the request has been revoked. Passwords can not be changed for revoked userids.

14 (INSTALLATION EXIT FAILED)
The installation security exit failed.

15 (PROCESSING FAILURE)
Security processing at the server failed.

17 (UNSUPPORTED FUNCTION)
Change password funcion is not supported by the system.

19 (USERID DISABLED or RESTRICTED)
The userid has been disabled, or the userid has been restricted from accessing the operating environment at this time.

24 (USERNAME AND/OR PASSWORD INVALID)
The username specified, password specified, or both, are invalid.

User Response: Ensure that the proper userid, current and new passwords are supplied. For reason code 14, check the file db2pem.log in the instance subdirectory (typicaly "db2") for a detailed description of the problem encountered.

The userid may be disabled, the userid may be restricted to accessing specific workstations, or the userid may be restricted to certain hours of operation.

sqlcode: -30083

sqlstate: 08001

SQL30090NOperation invalid for application execution environment. Reason code = "<reason-code>"

Explanation: The operation is invalid for the application execution environment. For example, an operation might be invalid for applications that have special restrictions on statements or APIs - applications such as those that operate in an XA Distributed Transaction Processing environment, such as CICS; those that operate with CONNECT type 2 connection settings; or those that use federated system functionality to update multiple heterogeneous data sources. The operation was rejected.

Possible reason codes are:

User Response:

Correct the problem by doing one of the following steps:

sqlcode: -30090

sqlstate: 25000


[ Top of Page | Previous Page | Next Page ]