Db2 SQL Errors
Db2 SQL Errors
GC09-2979-00
® ®
IBM DB2 Universal Database
Message Reference
Volume 2
Version 7
GC09-2979-00
Before using this information and the product it supports, be sure to read the general information under
“Appendix C. Notices” on page 555.
This document contains proprietary information of IBM. It is provided under a license agreement and is protected by
copyright law. The information contained in this publication does not include any product warranties, and any
statements provided in this manual should not be interpreted as such.
Order publications through your IBM representative or the IBM branch office serving your locality or by calling
1-800-879-2755 in the United States or 1-800-IBM-4YOU in Canada.
When you send information to IBM, you grant IBM a nonexclusive right to use or distribute the information in any
way it believes appropriate without incurring any obligation to you.
© Copyright International Business Machines Corporation 1993, 2000. All rights reserved.
US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract
with IBM Corp.
Contents
About This Guide . . . . . . . . . . v SQL3400 - SQL3499 . . . . . . . . . 348
Who Should Use This Guide . . . . . . . v SQL3500 - SQL3599 . . . . . . . . . 351
How This Guide Is Structured . . . . . . v SQL3600 - SQL3699 . . . . . . . . . 359
Organization . . . . . . . . . . . v SQL3700 - SQL3799 . . . . . . . . . 361
Conventions . . . . . . . . . . . v SQL3800 - SQL3899 . . . . . . . . . 363
SQL3900 - SQL3999 . . . . . . . . . 364
Chapter 1. Introduction to Messages . . . 1 SQL4000 - SQL4099 . . . . . . . . . 370
Information Available Online. . . . . . . 1 SQL4100 - SQL4199 . . . . . . . . . 373
Other DB2 Messages . . . . . . . . 3 SQL4300 - SQL4399 . . . . . . . . . 382
Other Message Sources. . . . . . . . 3 SQL4400 - SQL4499 . . . . . . . . . 384
SQL4900 - SQL4999 . . . . . . . . . 386
Chapter 2. SQL Messages . . . . . . . 5 SQL5000 - SQL5099 . . . . . . . . . 394
SQL0000 - SQL0099 . . . . . . . . . . 5 SQL5100 - SQL5199 . . . . . . . . . 400
SQL0100 - SQL0199 . . . . . . . . . 15 SQL6000 - SQL6099 . . . . . . . . . 406
SQL0200 - SQL0299 . . . . . . . . . 32 SQL6100 - SQL6199 . . . . . . . . . 423
SQL0300 - SQL0399 . . . . . . . . . 51 SQL6500 - SQL6599 . . . . . . . . . 425
SQL0400 - SQL0499 . . . . . . . . . 64 SQL7000 - SQL7099 . . . . . . . . . 434
SQL0500 - SQL0599 . . . . . . . . . 90 SQL8000 - SQL8099 . . . . . . . . . 437
SQL0600 - SQL0699 . . . . . . . . . 110 SQL8100 - SQL8199 . . . . . . . . . 441
SQL0700 - SQL0799 . . . . . . . . . 123 SQL9300 - SQL9399 . . . . . . . . . 442
SQL0800 - SQL0899 . . . . . . . . . 128 SQL10000 - SQL10099 . . . . . . . . 443
SQL0900 - SQL0999 . . . . . . . . . 136 SQL20000 - SQL20099 . . . . . . . . 447
SQL1000 - SQL1099 . . . . . . . . . 154 SQL20100 - SQL20199 . . . . . . . . 469
SQL1100 - SQL1199 . . . . . . . . . 175 SQL20200 - SQL20299 . . . . . . . . 472
SQL1200 - SQL1299 . . . . . . . . . 188 SQL29000 - SQL29100 . . . . . . . . 473
SQL1300 - SQL1399 . . . . . . . . . 208 SQL30000 - SQL30099 . . . . . . . . 476
SQL1400 - SQL1499 . . . . . . . . . 222 SQL30100 - SQL30199 . . . . . . . . 489
SQL1500 - SQL1599 . . . . . . . . . 234
SQL1600 - SQL1699 . . . . . . . . . 239 Chapter 3. SQLSTATE Messages . . . . 491
SQL1700 - SQL1799 . . . . . . . . . 246 Class Code 00 Unqualified Successful
SQL1800 - SQL1899 . . . . . . . . . 252 Completion . . . . . . . . . . . . 492
SQL1900 - SQL1999 . . . . . . . . . 257 Class Code 01 Warning . . . . . . . . 492
SQL2000 - SQL2099 . . . . . . . . . 257 Class Code 02 No Data . . . . . . . . 495
SQL2100 - SQL2199 . . . . . . . . . 268 Class Code 07 Dynamic SQL Error . . . . 496
SQL2200 - SQL2299 . . . . . . . . . 269 Class Code 08 Connection Exception . . . 496
SQL2300 - SQL2399 . . . . . . . . . 272 Class Code 09 Triggered Action Exception 496
SQL2400 - SQL2499 . . . . . . . . . 275 Class Code 0A Feature Not Supported . . . 497
SQL2500 - SQL2599 . . . . . . . . . 278 Class Code 0D Invalid Target Type
SQL2600 - SQL2699 . . . . . . . . . 290 Specification . . . . . . . . . . . 497
SQL2700 - SQL2799 . . . . . . . . . 292 Class Code 0F Invalid Token . . . . . . 497
SQL2800 - SQL2899 . . . . . . . . . 300 Class Code 0K Invalid RESIGNAL statement 497
SQL3000 - SQL3099 . . . . . . . . . 303 Class Code 20 Case Not Found for Case
SQL3100 - SQL3199 . . . . . . . . . 318 Statement . . . . . . . . . . . . 497
SQL3200 - SQL3299 . . . . . . . . . 334 Class Code 21 Cardinality Violation . . . . 498
SQL3300 - SQL3399 . . . . . . . . . 342 Class Code 22 Data Exception. . . . . . 498
Message identifiers consist of a three character message prefix (see above list),
followed by a four or five digit message number. The single digit letter at the
end which describes the severity of the error message is optional.
db2 “? XXXnnnnn”
If the message text is too long for your screen, use the following command
(on unix-based systems and others which support ’more’):
Help can also invoked in the interactive input mode. To enter the interactive
input mode, enter the following at the operating system command prompt:
db2
Once in the interactive input mode, you can enter commands at the following
command prompt:
db2 =>
To get DB2 message help in this mode, type the following at the command
prompt:
? XXXnnnnn
Note: If the message text exceeds the length of the screen, users with
non-graphical workstations can pipe the output to the ’more’ (on
unix-based systems) program or redirect the output to a file which can
then be browsed.
The message text associated with a given SQLSTATE value can be retrieved
by issuing:
or
db2 “? nn”
where nnnnn is a five digit SQLSTATE (alphanumeric) and nn is the two digit
SQLSTATE class code (first two digits of the SQLSTATE value).
Other DB2 Messages
Some DB2 components return messages that are not described in this manual,
or online. Some of the message prefixes may include:
AUD messages generated by the DB2 Audit facility.
DIA diagnostics messages generated by many DB2 components. These
messages are written in the diagnostics log file db2diag.log, and are
intended to provide additional information for users and DB2 service
personnel when investigating errors.
GOV messages generated by the DB2 governor utility.
For information on these messages, refer to the publications that you received
for that program product.
SQL0000 - SQL0099
The statement cannot be processed. User Response: Ensure that the source file
name is correct.
User Response: Examine the statement for a
missing or extra comment delimiter in the
indicated comment. SQL0015N The host variable data type
″<token_1>″ is not valid. Use
″<token_2>″ instead.
SQL0012W Correlation without qualification
has occurred for the column Explanation: If the WCHARTYPE CONVERT
“<column>”. precompile option is in effect then the graphic
host variable must be declared with the data
Explanation: The named column occurs in a type ’wchar_t’, not ’sqldbchar’.
SELECT statement, is not explicitly qualified, and
occurs in a table specified in the FROM clause of If the WCHARTYPE NOCONVERT precompile
an outer select. Consequently, the reference to the option is in effect (the default) and ’wchar_t’ is
column in the SELECT statement has been taken defined as a 4-byte integer on this platform, then
to be an outer reference and correlation will the graphic host variable must be declared with
occur. the data type ’sqldbchar’, not ’wchar_t’.
The statement was processed under the User Response: Replace the current data type of
assumption that correlation was intended. the host variable with the data type specified in
the message.
User Response: Ensure that correlation was
intended. It is a good practice to explicitly
qualify intended outer references. SQL0020W Bind or precompile option(s)
“<option-name(s)/option-
sqlcode: +12 number(s)>” are not supported by
sqlstate: 01545 the target database and will be
ignored.
Explanation: This warning is returned in the
following situations:
SQL0022W Duplicate precompiler option SQL0028C The release number of the bind
“<option>” is ignored. file is not valid.
Explanation: The precompiler option Explanation: The release number of the bind
“<option>” is a duplicate. file is not compatible with the release number of
the installed version of the database manager.
The option is ignored.
The bind file cannot be used with the current
User Response: Ensure that all precompiler
version of the database manager. The command
options are specified only once.
cannot be processed.
User Response: If possible, repeat the
SQL0023N The database name is not valid.
precompile process with the current database
Explanation: The specified database name is not manager. Otherwise, use only bind files created
a valid name. with a compatible release level of the database
manager.
Precompilation is terminated.
User Response: Ensure that the database name SQL0029N INTO clause required.
is spelled correctly and follows the rules for
short identifiers. Explanation: Non-cursor SELECT or VALUES
statements embedded in an application program
must have an INTO clause to denote where the
SQL0024N A database name was not results of the statement are to be placed.
specified. Dynamic SELECT statements do not permit the
Explanation: No database name was provided INTO clause.
to proceed with precompilation. User Response: Add the INTO clause to the
Precompilation is terminated. SELECT or VALUES statement and precompile
the application program again.
User Response: Provide a database name.
sqlcode: -29
SQL0026N The password is not valid. SQL0031C File “<name>” could not be
opened.
Explanation: The specified password is not a
valid password. Explanation: The file “<name>” is required but
could not be opened.
Precompilation is terminated.
Precompilation is terminated.
User Response: Ensure that the password
Only the first 20 bind files in error are listed in If binding, an empty package is created.
the message. If there were more than 20 bind User Response: Ensure that you are
files in error, ellipses (...) are inserted after the precompiling or binding the correct program.
last bind file name in the list.
One or more packages were not created. SQL0055N Source input file is empty.
User Response: Refer to the messages in the Explanation: The program source input file
message file. Check the list file to verify that it contained no data.
contains valid names. Resubmit the command.
Precompilation is terminated.
SQL0041N No attempt was made to bind the User Response: Ensure that the correct input
files following file number file was specified.
″<number>″ in list ″<name>″
because a fatal error occurred SQL0056N An SQLSTATE or SQLCODE
which terminated processing. variable declaration is in a nested
Explanation: Some errors encountered during compound statement.
the binding process are considered fatal (i.e. Explanation: An SQLSTATE or SQLCODE
system errors, memory errors). If one of these variable declaration is in a nested compound
errors occurs while processing a file in a list file, statement instead of the outermost compound
processing terminates. No attempt is made to statement in the SQL routine.
bind the remaining files in the list file.
The statement cannot be processed.
Such an error occurred while binding the
Explanation: Host variable “<name>” cannot be User Response: Ensure that the SQL statement
uniquely identified. More than one host variable terminates properly.
with the same qualification can be found.
The statement cannot be processed.
User Response: Qualify the host variable
If installing the sample database, drop it and User Response: Do not use variables or
install the sample database again. parameters of LONG VARCHAR or LONG
VARGRAPHIC data types in SQL routines. For
LONG VARCHAR, use VARCHAR with an
SQL0095N No bind file was created because explicit length. For LONG VARGRAPHIC, use
of previous errors. VARGRAPHIC with an explicit length.
Explanation: Because of previous errors, no sqlcode: -97
bind file was created.
sqlstate: 42601
No bind file is created.
User Response: Correct the errors and retry the
precompilation.
SQL0100 - SQL0199
SQL0100W No row was found for FETCH, SQL0101N The statement is too long or too
UPDATE or DELETE; or the result complex.
of a query is an empty table.
Explanation: The statement could not be
Explanation: One of the following conditions is processed because it exceeds a system limit for
true: either length or complexity, or because too many
v No row was found that meets the search constraints or triggers are involved.
conditions specified in an UPDATE or If the statement is one that creates or modifies a
DELETE statement. packed description, the new packed description
v The result of a SELECT statement was an may be too large for its corresponding column in
empty table. the system catalogs.
v A FETCH statement was executed when the Federated system users should also check to see
cursor was positioned after the last row of the if the statement:
result table.
v Exceeds either a federated server system limit
v The result of the SELECT used in an INSERT or a data source system limit for length or
statement is empty. complexity.
No data was retrieved, updated, or deleted. v Violates some other data source specific limit.
User Response: No action is required. The statement cannot be processed.
Processing can continue.
Note: Where character data conversions are
sqlcode: +100
performed for applications and databases
sqlstate: 02000
The table or view that is the target of an INSERT, User Response: Correct the statement by
UPDATE, or DELETE cannot also be used to including the expression in the GROUP BY
supply the values to be inserted or to qualify the clause that are in the SELECT clause, HAVING
rows to be inserted, updated, or deleted. clause, or ORDER BY clause or by removing the
column function from the SELECT statement.
The statement cannot be processed.
sqlcode: -119
This message is only applicable to Version 1.2
servers and earlier, and hosts accessed through sqlstate: 42803
DB2 Connect.
User Response: The implied function is not SQL0120N A WHERE clause, GROUP BY
supported. To attempt to obtain the desired clause, SET clause, or SET
result, create a temporary copy of the object table transition-variable statement
or view and address the subselect to that copy. contains a column function.
The statement cannot be processed. For a Federated system users: Verify that the object is
CREATE VIEW statement, the view was not not a nickname.
created.
sqlcode: -156
User Response: Provide a column name list in
sqlstate: 42809
the CREATE VIEW statement or common table
expression or name the columns in the SELECT
list of the fullselect using the AS clause. SQL0157N “<name>” is not allowed in a
FOREIGN KEY clause because it
sqlcode: -153
does not identify a base table.
sqlstate: 42908
Explanation: The object “<name>” was
identified in a FOREIGN KEY clause of a
SQL0155N A trigger transition table cannot CREATE or ALTER TABLE statement. A
be modified. FOREIGN KEY clause must identify a base table.
Explanation: The trigger includes a The statement cannot be processed. The specified
REFERENCING clause with an OLD_TABLE or table is not created or altered.
NEW_TABLE identified. A DELETE, INSERT or
User Response: Correct the statement to specify
UPDATE triggered SQL statement has used the
a base table name in the FOREIGN KEY clause.
name specified as the OLD_TABLE or
NEW_TABLE as the table to modify. If an alias name was supplied, ensure that the
alias resolves to a base table.
User Response: Remove the DELETE, INSERT
or UPDATE triggered SQL statement from the sqlcode: -157
triggered action or change the name of the
sqlstate: 42810
transition table so that it does not conflict with
the table you are attempting to modify.
sqlcode: -155
sqlstate: 42807
The statement cannot be processed. v The second and third arguments of the
translate scalar function must end with
User Response: Ensure that the correct number correctly formed characters.
of arguments is specified for the scalar function. v The fourth argument of the translate scalar
sqlcode: -170 function must be a correctly formed
single-byte character if the first argument is
sqlstate: 42605 CHAR or VARCHAR.
v The fourth argument of the translate scalar
SQL0171N The data type, length or value of function must be a correctly formed
argument “<n>” of routine double-byte character if the first argument is
“<name>” is incorrect. GRAPHIC or VARGRAPHIC.
Explanation: The data type, length or value of The statement cannot be processed.
argument “<n>” of routine “<name>” is
User Response: Ensure that the second, third,
incorrect.
SQL0200 - SQL0299
– The data type does not exist in the database
SQL0203N A reference to column “<name>”
with a create timestamp earlier than the
is ambiguous.
time the package was bound (applies to
Explanation: The column “<name>” is used in static statements).
the statement and there is more than one – If the data type is in the UNDER clause of a
possible column to which it could refer. This CREATE TYPE statement, the type name
could be the result of: may be the same as the type being defined,
v two tables specified in a FROM clause that which is not valid.
have columns with the same name v A function is being referenced in one of:
v the ORDER BY clause refers to a name that – a DROP FUNCTION statement
applies to more than one column in the select
– a COMMENT ON FUNCTION statement
list
– the SOURCE clause of a CREATE
v a reference to a column from the subject table
FUNCTION statement
in a CREATE TRIGGER statement does not
use the correlation name to indicate if it refers If ″<name>″ is qualified, then the function
to the old or new transition variable. does not exist. If ″<name>″ is unqualified,
then a function of this name does not exist
The column name needs further information to in any schema of the current function path.
establish which of the possible table columns it Note that a function cannot be sourced on
is. the COALESCE, NULLIF, or VALUE
built-in functions.
The statement cannot be processed.
This return code can be generated for any type
User Response: Add a qualifier to the column of database object.
name. The qualifier is the table name or
correlation name. A column may need to be Federated system users: the object identified by
renamed in the select list. “<name>” is not defined in the database or
sqlcode: -203 “<name>” is not a nickname in a DROP
NICKNAME statement.
sqlstate: 42702
Some data sources do not provide the
SQL0204N “<name>” is an undefined name. appropriate values for “<name>”. In these cases,
the message token will have the following
Explanation: This error is caused by one of the format: “OBJECT:<data source> TABLE/VIEW”,
following: indicating that the actual value for the specified
v The object identified by “<name>” is not data source is unknown.
defined in the database.
v A data type is being used. This error can occur The statement cannot be processed.
for the following reasons: User Response: Ensure that the object name
– If ″<name>″ is qualified, then a data type (including any required qualifiers) is correctly
with this name does not exist in the specified in the SQL statement and it exists. For
database. missing data type or function in SOURCE clause,
– If ″<name>″ is unqualified, then the user’s it may be that the object does not exist, OR it
function path does not contain the schema may be that the object does exist in some
to which the desired data type belongs.
The statement cannot be processed. User Response: Correct the predicate with
mismatched number of elements on each side of
User Response: Modify the select-statement the predicate operator.
based on the reason specified by the
“<reason-code>” as follows: sqlcode: -216
The database manager has not set any SQLVAR sqlstate: 42994
entries (and the SQLDOUBLED flag has been set
off (i.e. to the space character).
User Response: If the distinct type or reference
type information is needed, the value of the
User Response: Correct the node range in the User Response: Ensure that the node names or
statement, then try the request again. node numbers in the ON NODES, ADD NODES,
or DROP NODES clause are unique. For the
sqlcode: -263 CREATE TABLESPACE and ALTER
sqlstate: 428A9 TABLESPACE statements, ensure that a node
appears in no more than one ON NODES clause.
SQL0264N Partitioning key cannot be added In addition, for the ALTER NODEGROUP
or dropped because table resides statement or REDISTRIBUTE NODEGROUP
in a table space defined on the command:
multi-node nodegroup “<name>”. v Do not specify a node in both the ADD
NODES and the DROP NODES clause.
Explanation: You can only add or drop a
partitioning key on a table in a single-node v Remove the node from the ADD NODES
nodegroup. clause if the node is already defined in the
nodegroup.
The statement cannot be processed.
sqlcode: -265
User Response: Do one of the following and try
the request again: sqlstate: 42728
v Define an identical table with a partitioning
key.
SQL0266N Node “<node-number>” is not
v Redistribute the nodegroup to a single-node defined.
nodegroup.
Explanation: The node “<node-number>” is not
sqlcode: -264 valid for one of the following reasons:
v the node number is not in the valid range of 0
sqlstate: 55037
to 999
v the node is not in the node configuration file
SQL0265N Node “<node-number>” is a
v the node is not part of the nodegroup,
duplicate node.
therefore the requested operation cannot be
Explanation: For the CREATE NODEGROUP processed.
statement, a node can only appear once in the
The statement cannot be processed.
ON NODES clause.
User Response: Depending on the condition:
For the CREATE TABLESPACE and ALTER
TABLESPACE statement, a node can appear only v issue the statement, command or API with
once and in only one ON NODES clause. node numbers in the valid range.
v follow the procedure to add a node to the
For the ALTER NODEGROUP statement or
system.
User Response: To add more containers to a Explanation: A database must contain at least
system managed table space, drop and recreate one system temporary table space with the same
the table space with more containers, ensuring page size as the page size of the catalog
that each container is of the same size and less tablespace. Dropping table space
than the container size limit, or change to a DMS “<tablespace-name>” would remove the last
table space. system temporary tablespace with a
“<page-size>” page size from the database.
sqlcode: -281
User Response: Ensure there will be another
sqlstate: 42921 system temporary table space with a
“<page-size>” page size in the database before
attempting to drop this table space.
sqlcode: -283
User Response: Shorten the path length. This message will also be returned if any other
unexpected error occurred which prevents DB2
sqlcode: -297 from accessing the container.
sqlstate: 54036
Details can be found in the system error log
and/or the database manager error log.
SQL0298N Bad container path.
User Response: Specify another container
Explanation: The container path violates one of location or change the container to make it
the following requirements: acceptable to DB2 (such as changing file
permissions) and try again.
SQL0300 - SQL0399
v The corresponding host variable or parameter
SQL0301N The value of a host variable in the
marker used in the SQL statement is defined
EXECUTE or OPEN statement
as numeric, but the input host variable
cannot be used because of its data
contains a numeric value that is too large.
type.
v The terminating NUL character is missing
Explanation: A host variable could not be used from the C language NUL-terminated
as specified in the statement because its data character string host variable.
type is incompatible with the intended use of its
v Federated system users: in a pass-through
value.
session, a data source-specific restriction might
This error can occur as a result of specifying an have been violated.
incorrect host variable or an incorrect SQLTYPE
This error occurs as a result of specifying either
value in a SQLDA on an EXECUTE or OPEN
an incorrect host variable or an incorrect
statement.
SQLLEN value in an SQLDA on an EXECUTE or
The statement cannot be processed. OPEN statement.
User Response: Verify that the data types of all
The statement cannot be processed.
host variables in the statement are compatible
with the manner in which they are used. User Response: Ensure that the input host
variable value is the correct type and length. If
sqlcode: -301
the input host variables supply values to
sqlstate: 07006 parameter markers, match values with the
implied data type and length of the parameter
marker.
SQL0302N The value of a host variable in the
EXECUTE or OPEN statement is Federated system users: for a pass-through
too large for its corresponding session, determine what data source is causing
use. the error (see the problem determination guide
for procedures to follow to identify the failing
Explanation: The value of an input host
data source). Examine the SQL dialect for that
variable was found to be too large for its use in
data source to determine which specific
the SELECT, VALUES, or prepared statement.
restriction has been violated, and adjust the
One of the following occurred:
failing statement as needed.
v The corresponding host variable or parameter
marker used in the SQL statement is defined sqlcode: -302
as string, but the input host variable contains a sqlstate: 22001, 22003
string that is too long.
SQL0309N The value of a host variable in the SQL0312N The host variable “<host-name>”
OPEN statement is NULL, but its is used in a dynamic SQL
corresponding use cannot be statement, a view definition, or a
NULL. trigger definition.
Explanation: The value of an input host Explanation: The host variable “<host-name>”
variable was found to be NULL but the appears in the SQL statement, but host variables
corresponding use in the SELECT, VALUES, or are not allowed in dynamic SQL statements, in
prepared statement did not specify an indicator the SELECT statement of a view definition, or in
variable. the triggered action of a trigger definition.
The statement cannot be processed. The statement cannot be processed.
User Response: Ensure you need a USING User Response: Use parameter markers (?)
clause. Otherwise, ensure an indicator variable is instead of host variables for dynamic SQL
specified only if required. statements. Do not use host variables and
parameter markers in view or trigger definitions.
sqlcode: -309
sqlcode: -312
sqlstate: 07002
sqlstate: 42618
SQL0310N SQL statement contains too many
host variables. SQL0313N The number of host variables in
the EXECUTE or OPEN statement
Explanation: The maximum number of host
is not equal to the number of
variables was exceeded in the statement.
input values required.
The statement cannot be processed.
Explanation: The number of host variables
User Response: Ensure the statement has fewer specified in the EXECUTE or OPEN statement is
host variables or is less complex. not the same as the number of host variables or
parameter markers (?) appearing in the SQL
statement.
SQL0311N The length of string host variable
number ″<var-number>″ is The statement cannot be processed.
negative or greater than the
User Response: Correct the application program
maximum.
so the number of host variables specified in the
Explanation: When evaluated, the length EXECUTE or OPEN statement and the number
specification for the string host variable, whose of host variables or parameter markers in the
entry in the SQLDA is indicated by SQL statement are the same.
01 The DB2 Data Links Manager or a Explanation: A DATALINK value could not be
communication link may be down. Wait assigned. The possible reason codes are as
a while and try again, or check with the follows:
DB2 Data Links Manager administrator.
21 DATALINK value data location format
If the problem persists, disconnect the
is not valid.
application from the database, and retry
after connecting again. 22 DATALINK value DB2 Data Links
manager is not registered with the
02 Register the database server, instance, or
database.
database with the DB2 Data Links
Manager. 23 DATALINK linktype value is not valid.
03 Access to the DB2 Data Links Manager 24 DATALINK value referenced file cannot
is disallowed until DB2 can ensure that be found by a DB2 Data Links Manager.
it is in a consistent state. Wait until DB2
25 DATALINK value referenced file is
does this asynchronously. It is possible
already linked to a database.
that DB2 is unable to do this because of
conditions in other reason codes. So, if 26 DATALINK value referenced file cannot
the problem persists, check the be accessed for linking. It may be a
db2diag.log file of the instance to find directory, a symbolic link or a file with
out the condition and correct that permission bit for set user ID (SUID) on
condition. For more information, refer to or set group ID (SGID) on.
the Administration Guide for
information on crash recovery for DB2 27 DATALINK value data location or
Data Links Managers. comment is too long.
04 Check that the DB2 Data Links Manager 28 Existing registry on the DB2 Data Links
configured to the database is available Manager does not allow this file to be
on the network. linked (No matching prefix on DLFM).
05 Check that the DB2 Data Links Manager 29 The DB2 Data Links Manager does not
and the communication link are up. If authorize the DB2 user to link this file.
the problem persists, disconnect the 30 A link is already in progress for the file
application from the database, and retry by another application.
after connecting again.
31 File copy by the DB2 Data Links
06 If the DB2 Data Links Manager was Manager is not complete for the file to
installed for DFS, then it must added as be unlinked. The statement cannot be
a CELL to the database. If it was processed.
installed for native file systems, then it
must be added as a NODE. Refer to the User Response: The action is based on the
Command Reference for details on ADD reason code as follows.
DATALINKS MANAGER command. 21 Correct the data location format. If
hostname is not specified, DB2 can use
sqlcode: -0357 the local hostname as default only if the
database manager configuration
sqlstate: 57050 parameter Datalinks is set to YES.
22 Ensure that the correct DB2 Data Links
User Response: None required. Remove any User Response: Either chose a different function
assignments to the SQLSTATE or SQLCODE instance, change the source data type, or change
special variable to prevent the warning. the target data type.
SQL0400 - SQL0499
Some data sources do not provide the
SQL0401N The data types of the operands for
appropriate values for “<operator>”. In these
the operation “<operator>” are not
cases the message token will have the following
compatible.
format: “<data source>:UNKNOWN”, indicating
Explanation: The operation “<operator>” that the actual value for the specified data source
appearing within the SQL statement has a is unknown.
mixture of numeric and nonnumeric operands, or
The statement cannot be processed.
the operation operands are not compatible.
User Response: Check all operand data types to
Federated system users: this data type violation
ensure that they are comparable and compatible
can be at the data source or at the federated
with the statement usage.
server.
Explanation: The alias <name> has been Explanation: The specified numeric literal is not
defined upon: in the acceptable range.
v a table or view which currently is not defined The proper ranges for SQL values are as follows:
in the database v For FLOAT values:
v another alias which resolves to a table or view – 0
which is not defined in the database.
– In the positive range of +2.225E-307 to
The object <name2> is the undefined object. This +1.79769E+308
object must exist before any SQL statement
SQL0440N No function by the name Explanation: There are several possible causes.
“<function-name>” having v The keyword DISTINCT or ALL was detected
compatible arguments was found within the parentheses in a reference to
in the function path. function “<function-name>”, and the function
Explanation: This occurs in a reference to has been resolved as a scalar function. Use of
function “<function-name>”, where the keyword DISTINCT or ALL with a scalar
“<function-name>” can refer to a method, when function is invalid.
the database manager cannot find a function or v The keyword DISTINCT is used in a column
method it can use to implement the reference. function for which it is not supported. These
There are several reasons why this could occur: functions include COVARIANCE,
v “<function-name>” was either incorrectly CORRELATION and the linear regression
specified or does not exist in the database. functions (those that start with REGR).
v A qualified reference was made, and the v The function was expected to be a column
qualifier was incorrectly specified. function supporting the keyword ALL or
DISTINCT but the function it resolved to was
v The user’s function path does not contain the not a column function.
schema to which the desired function or
method belongs, and an unqualified reference User Response:
was used. v If a scalar function is being used, then remove
v The wrong number of arguments were the keyword DISTINCT or ALL. It is invalid
included. for a scalar function.
v The right number of arguments were included, v If the function is a column function that does
but the data types of one or more of the not support the DISTINCT or ALL keywords,
arguments is incorrect. then remove the keywords.
v The function does not exist in the database v If a column function is being used, then there
with a create timestamp earlier than the time is a problem with function resolution. Check
the package was bound (applies to static your function path to see if the desired
statements). function is in one of the schemas, and also
v The mutator method corresponding to an check the SYSFUNCTIONS catalog for the
attribute assignment used in an UPDATE spelling of the function name and the number
statement could not be found. The data type of and types of parameters.
the new value for the attribute is not a data Correct the error and try again.
type that is the same or promotable to the data
type of the attribute. sqlcode: -441
User Response: Fix the problem and retry. This
could involve catalog access, change to the sqlstate: 42601
statement, the addition of new functions, and/or
change to the function path. SQL0442N Error in referring to routine
sqlcode: -440 “<routine-name>”. The maximum
number of allowable arguments
sqlstate: 42884 (90) has been exceeded.
Explanation: Too many arguments were
specified in the reference to routine
sqlstate: 42883
SQL0500 - SQL0599
User Response: Remove the authorization ID Explanation: One of the following occurred:
from the list. v The GRANT or REVOKE statement contains a
sqlcode: -554 combination of privileges that are of different
classes. The privileges must all be of one class.
sqlstate: 42502 Examples are DATABASE, PLAN, or TABLE.
v The GRANT statement attempted to grant a
SQL0555N An authorization ID cannot privilege for a view that is not allowed.
revoke a privilege from itself. ALTER, INDEX and REFERENCES cannot be
granted for a view.
Explanation: An authorization ID attempted to
execute a REVOKE statement where the The statement cannot be processed.
authorization ID itself appears as one of the User Response: Correct and resubmit the
entries in the authorization ID list from which statement.
privileges are to be revoked.
sqlcode: -557
The statement cannot be processed.
sqlstate: 42852
User Response: Remove the authorization ID
from the list.
SQL0558N An attempt to revoke a privilege
sqlcode: -555 from “<authorization-ID>” was
sqlstate: 42502 denied because
“<authorization-ID>” would still
hold “<control>” authority.
SQL0556N An attempt to revoke a privilege
from “<authorization-ID>” was Explanation: “<authorization-ID>” holds the
denied because “<control>” privilege. The privilege to be
“<authorization-ID>” does not revoked is implicit in the “<control>” privilege,
hold this privilege. so it cannot be revoked unless the “<control>”
privilege is also revoked.
Explanation: The privilege cannot be revoked
because “<authorization-ID>” does not hold the The valid values for “<control>” are the
privilege. following:
v DBADM
The statement cannot be processed.
v CONTROL
User Response: Change the REVOKE statement
to conform to the REVOKE rules and resubmit The statement cannot be executed. No privileges
the statement. Ensure that when a REVOKE are revoked.
statement lists several privileges to be revoked User Response: Revoke the “<control>”
and a list of authorization IDs that each privilege, if desired.
authorization ID possesses at least one of the
specified privileges. sqlcode: -558
sqlcode: -556 sqlstate: 42504
sqlstate: 42504
SQL0600 - SQL0699
sqlcode: -623
SQL0629N SET NULL cannot be specified
sqlstate: 55012 because FOREIGN KEY
“<name>” cannot contain null
SQL0624N Table “<name>” already has a values.
“<key-type>” key. Explanation: The SET NULL option of the
Explanation: A primary key or partitioning key indicated FOREIGN KEY clause is not valid
cannot be defined in an ALTER TABLE statement because no column of the key allows null values.
because the indicated table already has a key of “<name>” is the constraint name, if specified, in
this type. the FOREIGN KEY clause. If a constraint name
The statement cannot be executed. was not specified, “<name>” is the first column
name specified in the column list of the
User Response: A table cannot have more than FOREIGN KEY clause followed by three periods.
one primary key or partitioning key.
The statement cannot be processed.
sqlcode: -624
User Response: Change either a column of the
sqlstate: 42889 key to allow null values or change the delete
rule.
SQL0628N Multiple or conflicting keywords sqlcode: -629
involving the “<clause-type>”
clause are present. sqlstate: 42834
sqlstate: 54032
SQL0669N A system required index cannot
be dropped explicitly.
SQL0667N The FOREIGN KEY “<name>”
Explanation: The DROP INDEX statement
cannot be created because the
attempted to drop an index required to:
table contains rows with foreign
key values that cannot be found v enforce the primary key constraint on a table
in the parent key of the parent v enforce a unique constraint on a table
table. v enforce the uniqueness of the object identifier
Explanation: The definition of the indicated (OID) column of a typed table hierarchy
foreign key failed because the table being altered v maintain a replicated summary table.
contains at least one row where the foreign key
A system required index cannot be dropped
does not match the parent key value in the
using the DROP INDEX statement.
parent table.
“<name>” is the constraint name, if specified. If The statement cannot be processed. The specified
a constraint name was not specified, “<name>” index is not dropped.
is the first column name specified in the column
list of the FOREIGN KEY clause followed by User Response: If you do not want to keep the
three periods. primary or unique constraint, use the DROP
PRIMARY KEY clause or the DROP
The statement cannot be processed. The specified CONSTRAINT clause of the ALTER TABLE
table is not altered. statement to remove the primary key or unique
constraint. If the index was created only for
User Response: Remove the erroneous table
enforcing the primary or unique key, then the
rows and define the foreign key.
index will be dropped. If not, the DROP INDEX
sqlcode: -667 statement could then be processed.
sqlstate: 23520 The index for an OID column can only be
dropped by dropping the table.
SQL0668N Operation not allowed when the The index required to maintain a replicated
underlying table (or a dependent summary table can only be dropped by first
table) is in the Check Pending dropping the replicated summary table.
state.
sqlcode: -669
Explanation: When a table is in a check
sqlstate: 42917
pending state, there may be one or more rows
that violate constraints defined on the data. This
table cannot be used for the operation. An
SQL0700 - SQL0799
Explanation: Either the value specified in the User Response: Check the message associated
SET <special-register> statement is not a valid with the SQLCODE of the SQL statement that
value of the indicated special register, or the failed. Follow the action suggested by that
value specified is NULL as a result of an message.
indicator variable. sqlcode: -723
The statement cannot be executed. sqlstate: 09000
User Response: Correct the replacement value
and/or any indicator variables. See the SQL SQL0724N The activation of trigger
Reference for an explanation of the valid values of “<trigger-name>” would exceed
each special register. the maximum level of cascading.
sqlcode: -713 Explanation: Cascading of triggers occurs when
sqlstate: 42815 a triggered SQL statement in a trigger would
result in another trigger being activated or when
a referential constraint delete rule causes
additional triggers to be activated. The depth of
this cascading is limited to 16.
Note that recursive situations where a trigger
includes a triggered SQL statement that directly
or indirectly causes the same trigger to be
SQL0782N A condition or SQLSTATE value User Response: Declare the SQLSTATE variable
specified in a handler is not valid. as CHAR(5) and the SQLCODE variable as
INTEGER. Set the variable to a valid value.
Explanation: A condition or SQLSTATE value
specified in a handler in an SQL is not valid for sqlcode: -785
one of the following reasons: sqlstate: 428D8
v The condition or SQLSTATE value has already
been specified by another handler in the same
SQL0787N RESIGNAL statement not within
scope.
a handler.
v The condition or SQLSTATE value was
specified in the same handler as Explanation: The RESIGNAL statement can
SQLEXCEPTION, SQLWARNING, or NOT only be used inside condition handlers.
FOUND. User Response: Remove the RESIGNAL
User Response: Remove the condition or statement or use a SIGNAL statement instead.
SQLSTATE value from the handler. sqlcode: -787
sqlcode: -782 sqlstate: 0K000
sqlstate: 428D7
SQL0789N The data type for parameter or
SQL0783N A duplicate column name or variable “<name>” is not
unnamed column was specified in supported in the SQL routine.
a DECLARE CURSOR statement Explanation: The SQL routine (function,
of a FOR statement. method, or procedure) does not support
Explanation: The select list in the FOR variables or parameters of DATALINK,
statement must contain unique column names. REFERENCE, DISTINCT, STRUCTURED, or LOB
The select list specified contains either duplicate data types.
column names or unnamed expressions. User Response: Do not use SQL variables or
User Response: Specify unique column names parameters of DATALINK, REFERENCE,
DISTINCT, STRUCTURED, or LOB data types in
SQL0800 - SQL0899
If the problem is data dependent, examine the
SQL0801N Division by zero was attempted.
data being processed at the data sources when
Explanation: The processing of a column the error occurred.
function or arithmetic expression resulted in
sqlcode: -801
division by zero.
sqlstate: 22012
The statement cannot be processed. For the
INSERT, UPDATE, or DELETE statements, no
inserts or updates are performed. SQL0802N Arithmetic overflow or other
arithmetic exception occurred.
User Response: Examine the SQL statement to
determine the cause of the problem. If the Explanation: The processing of a column
problem is data dependent, it is necessary to function or arithmetic expression has resulted in
examine the data processed when the error an arithmetic overflow.
occurred. Refer to the SQL Reference to see the
valid ranges for the data types. The statement cannot be processed. For the
INSERT, UPDATE, or DELETE statements, no
Federated system users: examine the SQL inserts or updates are performed.
statement to determine the cause of the problem.
101 SQLDA.SQLN is less than 113 The SQLFLAG4 field is not valid. If a
SQLDA.SQLD structured type is specified the value
must be X’12’. If a reference type is
102 SQLVAR.SQLTYPE is invalid. specified the value must be X’01’.
Federated system users: A data type that Otherwise the value must be X’00’.
you specified is not supported by either
the federated server or the data source In SQL statements with host variables, use the
that you want to access. host variable number to count in from the
beginning of the statement (or substatement, in
103 The length specified in the case of compound SQL) to locate the invalid
SQLVAR.SQLLEN or host variable. For statements using an SQLDA,
SQLVAR2.SQLLONGLEN is incorrect the SQLVAR number is used to locate the invalid
for the SQL type given in SQLVAR. For an input SQLDA, count only input
SQLVAR.SQLTYPE. host variables or SQLVARs; similarly for output.
104 Doubling of the SQLVARs is expected, Note that this number is based at 1.
but the SQLDOUBLED field of
SQLDA.SQLDAID is not set to ’2’. This The statement cannot be processed.
may be required because of a large
User Response: Examine the application
object type or a structured type.
program for any errors noted. Note that the
105 A double-byte character Large Object programmer should not attempt to modify the
has an odd value indicated by the precompiler output.
SQL0817N The SQL statement cannot be This problem can be caused by the following:
executed because the statement v Precompile, compile, and link without doing
will result in a prohibited update an application bind.
operation.
v Precompile and bind without doing the
Explanation: The application attempted to program compile and link.
execute an SQL statement that would result in v Bind the application using a bind file that
updates to user data or to the subsystem catalog. resulted from a different precompile of the
This is prohibited for one of the following program than the precompile that produced
reasons: the object module linked into the application
v The application is running as an IMS module.
inquiry-only transaction. v Bind an application with the same name as an
v The application is an IMS or CICS application existing plan and execute the existing (old)
that is attempting to update data at a remote application.
DBMS that does not support two-phase
Federated system users: in addition to the causes
commit.
listed previously, the problem can also be due to
v The application is attempting to update data at not binding the required packages at all
multiple locations and one of the locations applicable data sources.
does not support two-phase commit.
These SQL statements include INSERT, UPDATE, The statement cannot be processed.
DELETE, CREATE, ALTER, DROP, GRANT, and User Response: Bind the application again,
REVOKE. using the bind file for the program that matches
the object module. Or, execute the program that
The statement cannot be executed. corresponds to the package stored in the
User Response: If the application is running as database.
an IMS inquiry-only transaction, see your IMS If installing the sample database, record the
system programmer about changing the number and text of this message and then
inquiry-only status of the transaction under contact your technical service representative.
which your application is running.
Federated system users: in addition to the
If the IMS or CICS application is attempting a previously listed actions, ensure that the
remote update, either the application must be packages required for the federated server are
changed to run as a local application on the bound at the applicable data sources. Refer to the
server DBMS, or the server DBMS must be Installation and Configuration Supplement for
upgraded to support two-phase commit. more information on binding packages to data
If the application is attempting to update data at sources.
multiple locations, either the application must be sqlcode: -818
changed, or all DBMSs involved must be
upgraded to support two-phase commit. sqlstate: 51003
sqlcode: -817
sqlstate: 25000
User Response: Possible actions: User Response: Do not submit SQL statements
or commands that use characters which are not
v Refer to the SQLCODE that was returned with
common between the application and database
this message, and follow the appropriate
codepages.
action for that SQLCODE.
v Verify that the tm_database exists; if not, create Federated system users: do not submit SQL
a new database or select a database that statements or commands that use characters
currently exists for use as the TM database. It which are not common between the client
is recommended to create a separate database system, the federated system, and the data
if there are no serious constraints on disk source.
storage. sqlcode: +863
sqlstate: 01539
SQL0900 - SQL0999
SQL0900N The application state is in error. A SQL0901N The SQL statement failed because
database connection does not of a non-severe system error.
exist. Subsequent SQL statements can
be processed. (Reason
Explanation: A connection to a database does
“<reason>”.)
not exist. This may be due to one of the
following reasons: Explanation: An error has occurred which is
v A serious error in the application state has due to a system error. Processing of the SQL
caused the database connection to be lost. statement has ended for reason “<reason>” (this
is in English only and is useful only to IBM
v The application may have disconnected from a
support personnel).
database and not established a new current
connection before executing the next SQL User Response: Record the message number
statement. (SQLCODE) and reason “<reason>”.
User Response: Reestablish a current If trace was active, invoke the Independent Trace
connection be either switching to an existing Facility at the operating system command
dormant connection (using CONNECT TO or prompt. Refer to the Independent Trace Facility
SET CONNECTION) or by establishing a new in the Troubleshooting Guide for information on
connection (using CONNECT). how to use this facility. Then contact your
technical service representative with the
sqlcode: -900
following information:
sqlstate: 08003 v Problem description
v SQLCODE
sqlcode: -902
sqlcode: -904
SQL0906N The SQL statement cannot be
sqlstate: 57011 executed because this function is
disabled due to a prior error.
SQL0905N Unsuccessful execution due to Explanation: Execution of the SQL statement
resource limit being exceeded. failed because the requested function had been
Resource name = disabled by a prior error. This situation can arise
″<resource-name>″, limit = if the application program has intercepted an
″<limit-amount1>″ CPU seconds abend (for instance, by an ON ERROR condition
(″<limit-amount2>″ service units) in a PL/I program) and continued to execute
derived from ″<limit-source>″. SQL statements. This situation may also arise if a
DB2 CICS transaction encountered a create
Explanation: The execution of the SQL
thread error yet continued to issue SQL requests
statement was terminated because a resource
without issuing a SYNCPOINT ROLLBACK first.
limit was exceeded.
User Response: In general, an application
The name of the resource whose limit was
program should terminate upon receipt of this
exceeded is ″<resource-name>″. It is also the
return code. All subsequent attempts by the
name of the column in the resource limit
application to execute other SQL statements will
specification table from which the limit was
also fail with the same return code. In the case of
derived. The limit that was exceeded in CPU
a DB2 CICS transaction, if the SQLERRP field in
seconds is ″<limit-amount1>″ and in service
the SQLCA contains the module name
units it is ″<limit-amount2>″. The
DSNCEXT1, the transaction may issue a
″<resource-name>″ may be ASUTIME, which is
SYNCPOINT ROLLBACK and continue
the number of CPU seconds permitted for each
processing. If the transactions chooses to
SQL statement. The maximum number of CPU
ROLLBACK and continue processing, it must be
seconds permitted is ″<limit-amount1>″. The
capable of correcting the situation that caused
maximum number in service units is
the create thread error to occur originally.
″<limit-amount2>″.
sqlcode: -906
The source used to derive the limit-amount is
″<limit-source>″ and is either the name of a sqlstate: 24514, 51005, 58023
SQL0909N The object has been deleted. The SQL statement cannot be processed.
Explanation: The application program has User Response: Modify the application program
either (1) dropped a table and then attempted to so there is no attempt to access an object within
access it, or (2) dropped an index and then tried the same unit of work in which the modification
to access its object table using that index. was made. In general, it is better to isolate Data
Definition Language (DDL) statements in a
User Response: The logic of the application different unit of work than Data Manipulation
program must be corrected such that it does not Language (DML) statements that access the same
attempt to access or use an object after it has objects.
been dropped.
The unit of work must be committed or rolled
Dropping indexes within an application program back before the statement that failed can be
is especially hazardous, because there is no way processed successfully. If the committed
of determining whether or not the plan that has modification caused an object to be dropped,
been generated for the application (by BIND or then the object may have to be recreated in order
REBIND) actually uses a particular index for for the failing SQL statement to be processed
access to its object table. successfully.
sqlcode: -909
Explanation: The current unit of work was User Response: The application should submit
involved in an unresolved contention for use of a COMMIT or ROLLBACK statement before
an object and had to be rolled back. submitting other SQL statements. Consider
increasing the database configuration parameter
The reason codes are as follows: (locklist) to allow more lock list space.
2 transaction rolled back due to deadlock. sqlcode: -912
68 transaction rolled back due to lock sqlstate: 57011
timeout.
72 transaction rolled back due to an error SQL0913N Unsuccessful execution caused by
concerning a DB2 Data Links Manager deadlock or timeout. Reason code
involved in the transaction. “<reason-code>”.
Explanation: The request issued was involved
Note: The changes associated with the unit of
in an unresolved contention for use of an object
work must be entered again.
and the execution failed.
SQL0956C Not enough storage is available in NOTE: This message is applicable only for
the database heap to process the releases of DB2 prior to Version 2.
statement. sqlcode: -959
Explanation: All available memory for the sqlstate: 57011
database has been used.
The statement cannot be processed. SQL0960C The maximum number of files
User Response: Terminate the application on has been reached in the database.
receipt of this message. Increase the database Explanation: The maximum number of database
configuration parameter (dbheap) to allow a larger files has been reached.
database heap. If the number of I/O servers is
near the high limit, reducing this number may The statement cannot be processed.
also help. User Response: Terminate the application on
sqlcode: -956 receipt of this message. Have all active
applications disconnect from the database and
sqlstate: 57011 then have them reconnect to the database. If the
error continues, drop either tables, indexes, or
SQL0958C The maximum number of open both from the database, or split the database.
files has been reached. If installing the sample database, drop it and
Explanation: The maximum number of file install the sample database again.
handles available to the database has been sqlcode: -960
reached.
SQL1000 - SQL1099
SQL1000N “<alias>” is not a valid database SQL1002N “<drive>” is not a valid drive.
alias name.
Explanation: The drive specified in the
Explanation: The alias specified in the command is not valid. The drive is a single
command or api is not valid. The alias must character (A to Z) indicating the diskette drive or
contain 1 to 8 characters (bytes in MBCS fixed-disk partition where the database or
countries) and all the characters must be from database directory is located.
the database manager base character set.
The command cannot be processed.
The command cannot be processed.
User Response: Resubmit the command with
User Response: Resubmit the command with the correct drive.
the correct alias.
SQL1003N The password is not valid because
SQL1001N “<name>” is not a valid database the syntax is not correct or the
name. password does not match the
password of the specified
Explanation: The syntax of the database name
database.
specified in the command is not valid. The
database name must contain 1 to 8 characters Explanation: The length of the password is
and all the characters must be from the database expected to be 18 characters or less. However, if
manager base character set. the password is to be verified for an APPC
conversation, it must be 8 characters or less.
The command cannot be processed.
User Response: Ensure that the password is not
User Response: Resubmit the command with
longer than the limit allowed.
the correct database name.
sqlcode: -1003
sqlcode: -1001
sqlstate: 28000
sqlstate: 2E000
SQL1014W There are no more entries in the SQL1017N The mode parameter “<mode>”
directory, file, or list being specified in the CATALOG NODE
scanned. command is not valid.
Explanation: The scan of the directory, file, or Explanation: The mode specified in the
list is finished. CATALOG NODE command is not permitted.
User Response: No action is required. The mode parameter identifies the
communications profile the Communications
Manager uses to set up a session. The mode
must be 1 to 8 characters. Valid characters are
uppercase or lowercase A through Z, 0 through
9, #, @, and $. The first character must be
User Response: Verify that the name is a Explanation: The nodename specified in the
permitted mode name. Verify the characters used command could not be found in the node
in the name. Resubmit the command with a directory.
correct mode.
The command cannot be processed.
User Response: If the nodename parameter is
SQL1018N The node name “<name>”
correct, the node may already have been
specified in the CATALOG NODE
uncataloged, and processing can continue.
command already exists.
Otherwise, resubmit the command with the
Explanation: The node name specified in the correct node name.
nodename parameter of the CATALOG NODE
command is already cataloged in the node
SQL1022C There is not enough memory
directory on this file system.
available to process the command.
The command cannot be processed.
Explanation: Not enough random access
User Response: If the nodename parameter is memory (RAM) is available to process the
typed correctly, continue processing. command.
Uncatalog the cataloged node in the node If a remote procedure was invoked, the remote
directory if the node cataloged information is no procedure may use a local variable space that is
longer valid and resubmit the command. If the larger than the allowable maximum (4K).
node cataloged information is valid, define a
If the statement involves a user-defined function
new node name and resubmit the command
(UDF), the memory set controlled by the
using the new node name.
udf_mem_sz database manager configuration
parameter may be larger than the memory
SQL1019N The node name “<name>” available.
specified in the command is not
The command cannot be processed.
valid.
User Response: Stop the application. Possible
Explanation: The node name specified in the
solutions include:
command is not valid. The node name may be 1
to 8 characters and all of the characters must be v Change the MEMMAN NO SWAP, NO MOVE
from the database manager base character set. option in the CONFIG.SYS file to SWAP,
MOVE.
The command cannot be processed.
v Remove background processes.
User Response: Resubmit the command with v Decrease the values of the configuration
the correct node name. parameters that define allocation of memory,
including udf_mem_sz if UDFs are involved in
SQL1020C The node directory is full. the failing statement.
v Install more random access memory (RAM).
Explanation: The node directory cannot hold
any more entries. v If a remote procedure was invoked, ensure
that the remote procedure uses a local variable
The command cannot be processed. space that is less than or equal to 4K.
User Response: Uncatalog any unnecessary v If you are using Remote Data Services,
entries in the node directory. increase the Remote Data Services heap size
User Response: Retry the original command. If Explanation: A start database manager
the error persists, contact your communications command is already processed.
administrator. The command cannot be processed.
Federated system users: this situation can also be User Response: Because the command is
detected by the data source. already processed, the application may continue
sqlcode: -1023 processing.
sqlstate: 08001
SQL1027N The node directory cannot be
found.
SQL1024N A database connection does not
exist. Explanation: The list node directory command
cannot be processed because the node directory
Explanation: There is no connection to a could not be found.
database. Other SQL statements cannot be
processed unless an SQL CONNECT was The command cannot be processed.
previously executed. User Response: Issue a CATALOG NODE
The command cannot be processed. command with the appropriate parameters and
resubmit the current command.
User Response: If the error occurred when
Explanation: Either the system database Explanation: The application attempted to start
directory or the local database directory cannot an inactive database but the number of active
SQL1056N There are already eight database Explanation: A directory scan command was
directory scans open. issued before the scan was opened.
SQL1100 - SQL1199
User Response: Resubmit the request with a
SQL1100W The node name “<name>”
valid authorization ID and password
specified in the Catalog Database
combination for the remote system.
command has not been cataloged
in the Node Directory.
SQL1102N A database name was not
Explanation: The Catalog Database command
specified.
specified node name “<name>” but that is not
cataloged in the node directory. The node name Explanation: No database name was provided
must be cataloged before the remote database to proceed with migration.
can be used.
The statement cannot be processed.
The CATALOG DATABASE command completed
successfully. User Response: Specify a database name for
migration.
User Response: Issue a CATALOG NODE
command.
SQL1103W The Migrate Database command
processing was successful.
SQL1101N Remote database “<name>” on
node “<node-name>” could not be Explanation: The Migrate command completed
accessed with the specified successfully.
authorization id and password. Note that this message will also be returned if
Explanation: A connection to the remote the database was already at the current level and
database ″<name>″ on node ″<node-name>″ was did not need to be migrated.
requested, and the remote node does not accept Processing continues.
the authorization ID and password combination
specified for this node (either in the remote User Response: No action is required.
authorization tables or at runtime).
The request cannot be processed.
Explanation: There is not enough random User Response: Correct the remote stored
access memory (RAM) to load the specified DLL procedure so the data length information in the
(dynamic link library) module. output SQLDA is not changed.
Federated system users: this situation can also be Explanation: The database is in an inconsistent
detected by the data source. state because a system error occurred during a
restore function.
User Response: Roll forward the database or
indicate that you do not wish to roll forward by No connection was made.
using the ROLLFORWARD command. Note that
Federated system users: this situation can be
if you do not roll forward the database, the
detected by the data source.
records written since the last backup of the
database will not be applied to the database. User Response: Issue the RESTORE command
and then try the command again.
Federated system users: if necessary isolate the
problem to the data source rejecting the request Federated system users: if necessary isolate the
(see the Troubleshooting Guide for procedures to problem to the data source rejecting the request
follow to identify the failing data source) and (see the Troubleshooting Guide for procedures to
take recovery action appropriate to that data follow to identify the failing data source) and
source to bring the data source to a point of issue the RESTORE command against that data
consistency. source prior to trying the command again.
sqlcode: -1117 sqlcode: -1119
sqlstate: 57019 sqlstate: 57019
In SQL statements with host variables, use the 8 The SQLDATA pointer is invalid or
host variable number to count in from the points to insufficient storage.
beginning of the statement (or substatement, in 9 The SQLIND pointer is invalid or points
the case of compound SQL) to locate the invalid to insufficient storage.
host variable. For statements using an SQLDA,
the SQLVAR number is used to locate the invalid 10 The SQLDATALEN pointer is invalid or
SQLVAR. For an input SQLDA, count only input points to insufficient storage.
host variables or SQLVARs; similarly for output.
11 A specific number of input host
Note that this number is based at 1, and may not
variables/SQLVARS is expected for the
be applicable to all reason codes. Reason codes
current SQL statement.
are interpreted as follows:
1 SQLDA.SQLN is less than The statement cannot be processed.
SQLDA.SQLD
User Response: Examine the application
2 SQLVAR.SQLTYPE is invalid. program for any errors noted. Note that the
programmer should not attempt to modify the
3 The length specified in
precompiler output.
SQLVAR.SQLLEN or
SQLVAR2.SQLLONGLEN is incorrect sqlcode: -1164
for the SQL type given in
sqlstate: 07002
SQLVAR.SQLTYPE.
4 A Large Object SQLVAR is present, but
the SQLDOUBLED field of
SQLDA.SQLDAID is not set to ’2’.
SQL1200 - SQL1299
SQL1200N The object parameter is not valid. SQL1202N Status has not been collected.
Explanation: The value specified for the object Explanation: The value specified for the handle
parameter in the COLLECT DATABASE STATUS parameter in the GET NEXT DATABASE
function call is not valid. Valid values are: STATUS BLOCK or the FREE DATABASE
STATUS RESOURCES function calls is not valid.
SQLE_DATABASE
The handle must be the one returned as the
Status is to be collected for a single
positive function value from the COLLECT
database.
DATABASE STATUS function call.
SQLE_DRIVE
This is the second COLLECT DATABASE
Status is to be collected for all LOCAL
STATUS call made from the process. The first
databases on a single path.
COLLECT DATABASE STATUS call terminates
SQLE_LOCAL and its handle can no longer be used.
Status is to be collected for all LOCAL
The command cannot be processed.
databases.
User Response: Correct the handle parameter
The command cannot be processed. and resubmit the COLLECT DATABASE STATUS
function call.
User Response: Correct the object parameter
and resubmit the COLLECT DATABASE STATUS
function call. SQL1203N The database has no users
connected.
SQL1201N The status parameter is not valid. Explanation: A request was made for user
status on a database, but the database has no
Explanation: The value specified for the status users connected.
parameter in the COLLECT DATABASE STATUS
function call is not valid. Valid values are: The command cannot be processed.
2. the active logfile path is set to a raw device. User Response: Ensure that the DOS
Requester/WINDOWS Requester configuration
User Response: Do not issue the PRUNE file exists in the appropriate path and that the
LOGFILE command for this database. parameters are explicitly defined.
SQL1221N The Application Support Layer User Response: Increase the maxagents
heap cannot be allocated. configuration parameter, and/or reduce the
number of users using the database.
Explanation: The Application Support Layer
heap could not be allocated. The cause of this sqlcode: -1223
error may be insufficient memory resources sqlstate: 57019
either for the database manager or the
environment in which its operations are being
attempted. Memory resources that can cause this SQL1224N A database agent could not be
error include: started to service a request, or was
v The number of shared memory identifiers terminated as a result of a
allocated in the system database system shutdown or a
force command.
v The amount of paging or swapping space
available in the system Explanation: The message may be attributed to
v The amount of physical memory available in any of the following cases.
the system v The database manager has not been started on
the database server
User Response: One or more of the following:
v The database manager was stopped
v Validate that sufficient memory resources are
available to satisfy the database manager’s v The database manager has already allocated
requirements, and those of the other programs the maximum number of agents
running on the system. v The database agent was forced off by the
v Reduce the aslheapsz configuration parameter. system administrator
v Where appropriate, stop other programs using v The database agent was terminated due to an
the system. abnormal termination of a key database
manager process
sqlcode: -1221 v The application is using multiple contexts with
local protocol. In this case the number of
sqlstate: 57011 connections is limited by the number of shared
memory segments to which a single process
SQL1222N Not enough storage is available in can be attached. For example, on AIX, the limit
the Application Support Layer is ten shared memory segments per process.
heap to process the request. Additional federated server cases are:
Explanation: All available memory in the v The maximum number of processes per user
Application Support Layer heap has been used. (maxuproc on AIX) at the operating system
level has been exceeded.
User Response: Increase the aslheapsz
configuration parameter. v In the client/server environment using the
TCP/IP protocol, the port number assigned to
sqlcode: -1222 the TCP/IP service name on the client is not
the same as the port number on the server.
User Response: This is a warning message only. where <instance> is the DB2 instance name
No response is necessary. and xxxx is the port number Ensure that
these port numbers are not being used for
SQL1229N The current transaction has been DB2 remote client support.
rolled back because of a system User Response:
error.
1. Try the request again. If the error persists,
Explanation: One of the following has occurred: you can find more information about the
1. A system error, such as node failure or problem in the db2diag.log file. It may be
connection failure, has occurred. The necessary to contact the system administrator
application is rolled back to the previous for assistance since the most common reason
COMMIT. for this error is that a node has failed.
Note that in the case of DB2 utility functions, Note that in an SP environment where the
the behavior is described below: high speed switch is used, this error can be a
symptom of a failure in the high speed
Import The application is rolled back. If the switch.
COMMITCOUNT parameter was
2. Update the service ports to be the same on all
used, the operation is rolled back to
nodes and try the request again.
a previous committed point.
The sixth sqlerrd field of the SQLCA will
Reorg The operation is aborted and must
indicate the node number that detected the node
be resubmitted.
failure. On the node that detected the failure a
Redistribute message will be placed in the db2diag.log that
The operation is aborted, however, identifies the failed node.
some of the operation may have
been successful. Issuing the request sqlcode: -1229
(Note : if you are using a partitioned database Explanation: The timestamp parameter
server, the node number(s) indicate which specified for the point-in-time stopping value is
node(s) the error occurred on. Otherwise, it is not valid. The timestamp must be entered in ISO
not pertinent and should be ignored.) format (YYYY-MM-DD-hh.mm.ss.<ssssss> where
YYYY represents year, MM represents month,
User Response: Ensure that recovery is required DD represents day, hh represents hours, mm
on the specified node(s), then restore the most represents minutes, ss represents seconds, and
recent backup version of the database on these ssssss represents optional microseconds).
nodes.
The database is not rolled forward.
User Response: Ensure that the timestamp is
entered in the correct format.
When you issue a ROLLFORWARD DATABASE
v If you cannot find the missing log files, restore If ″,...″ is displayed at the end of the node list,
the database/table space on all nodes, then do see the diagnostic log for the complete list of
point-in-time recovery using a timestamp that nodes.
is earlier than that of the missing log file.
(Note : if you are using a partitioned database
server, the node number(s) indicate which
SQL1274N The database “<name>” requires node(s) the error occurred on. Otherwise, it is
roll-forward recovery and the not pertinent and should be ignored.)
point-in-time must be to the end
User Response: Do one of the following:
of logs.
v Resubmit the command with a stoptime
Explanation: The database needs to be rolled greater than or equal to “<timestamp>”. Time
forward. For database level roll-forward recovery, must be specified in CUT (Coordinated
the point-in-time must be to the end of logs Universal Time).
because a database level roll-forward to end of
v Restore an earlier backup on node(s), then
logs is already in progess. To continue the roll
issue the ROLLFORWARD DATABASE
forward, the same stoptime must be specified.
command again.
For table space level roll-forward recovery, the
point-in-time must be to the end of logs for one
SQL1276N Database ″<name>″ cannot be
of the following reasons:
brought out of rollforward
v The system catalogs require roll-forward pending state until roll-forward
recovery. System catalogs must always be has passed a point in time greater
rolled forward to the end of logs to remain than or equal to ″<timestamp>″,
consistent with all other table spaces. because node “<node-number>”
v A table space level roll-forward to the end of contains information later than
logs is already in progress. To continue the roll the specified time.
forward, the same stoptime must be specified.
Explanation: A request was made to bring the
The database is not rolled forward. database or subset of table spaces out of
rollforward pending state by specifying caller
User Response: Resubmit the ROLLFORWARD action SQLUM_ROLLFWD_STOP, SQLUM_STOP,
command specifying ROLLFORWARD TO END SQLUM_ROLLFWD_COMPLETE, or
OF LOGS. SQLUM_COMPLETE. However, the database or
at least one of the table spaces to be rolled
forward was backed up online. The request
10 Entry not a database object Note that you may also see this message if the
DCE subsystem is not operational, or if you do
11 Native database name in the database
not have sufficient privilege to read the DCE
object is either not found or too long
directory entry.
12 Database protocol in the database object
is either not found or too long Note that this message may be returned from an
intermediate node involved in your connection.
13 Invalid authentication value found in
For example, if you are trying to connect to a
the database object
DRDA server via a DB2 Connect gateway and
14 Insufficient or invalid communication your client workstation does not use global
protocol information in the database directory services, this message may be returned
object from the DB2 Connect gateway.
15 Database locator object name not found User Response: Make sure the DCE subsystem
in the database object is operational and that you have the appropriate
privilege to read the directory entry. If the
16 Database locator object name in the problem persists, inform the database
database object invalid administrator to correct the error in the directory
entry. Refer to the Administration Guide for the
format of these directory objects.
20 Entry not a database locator object
sqlcode: -1293
22 Insufficient or invalid communication
protocol information in the database sqlstate: 08001
locator object
SQL1294N The directory path name being
used for global directory access is
30 Entry not a routing information object not specified or not valid.
31 Target database information not found Explanation: In order to use global directory
in the routing information object services, a directory path name must be specified
32 Insufficient information for the target either in the dir_path_name database manager
database in the routing information configuration parameter, or in the
object DB2DIRPATHNAME environment variable. You
either did not specify it, or the name you
33 No appropriate gateway found in the specified is not valid.
routing information object
Note that this message may be returned from an
34 Invalid flag for authentication at intermediate node involved in your connection.
gateway For example, if you are trying to connect to a
35 Database locator object name for the DRDA server via a DB2 Connect gateway and
gateway invalid your client workstation does not use global
directory services, this message may be returned
36 Database name in the target database from the DB2 Connect gateway.
information attribute of the routing
information object is either not found or User Response: Consult your database
too long
Explanation: In order to use global directory User Response: If you want to change the
services to access a remote database with a DIR_TYPE value, make sure the
database protocol that is not native to this client, DIR_PATH_NAME and DIR_OBJ_NAME
the name of a routing information object must be parameters have been specified with the valid
specified either in the route_obj_name database values first. If you want to blank out either the
manager configuration parameter, or in the DIR_PATH_NAME or the DIR_OBJ_NAME
DB2ROUTE environment variable. You either did parameter, make sure you set DIR_TYPE to
not specify it, or the name you specified is not NONE first.
valid.
Note that this message may be returned from an SQL1297N This command is currently not
intermediate node involved in your connection. supported on this platform.
For example, if you are trying to connect to a
Explanation: The function requested using this
DRDA server via a DB2 Connect gateway and
command is not supported on this platform.
your client workstation does not use global
directory services, this message may be returned User Response: Do not use this command.
from the DB2 Connect gateway.
User Response: Consult with your database
administrator for the correct object name to use,
specify it and try again.
sqlcode: -1295
sqlstate: 08001
SQL1300 - SQL1399
User Response: Issue a request to open the User Response: The system administrator
directory and collect the entries. Then resubmit should take the suggested corrective action so
this command. that the audit facility can resume logging.
sqlcode: -1322
SQL1320N The Database Connection Services
sqlstate: 58030
directory cannot be accessed at
this time.
SQL1323N An error occurred when accessing
Explanation: A request to access the Database
the audit configuration file.
Connection Services directory failed. Access to
the Database Connection Services directory is Explanation: db2audit.cfg could not be opened,
dependent on the type of access requested and or was invalid. Possible reasons:
the current activity in the directory. If the request v The db2audit.cfg file either does not exist, or
is for the intention of updating the directory, has been damaged. Take one of the following
then the directory must not be active. If the actions:
request is to read the directory, then access is
– Restore from a saved version of the file.
allowed if the directory is not being updated.
– Reset the audit facility configuration file by
The function cannot be processed. issuing the reset command from the
User Response: Wait for the current activity to db2audit executable.
complete and resubmit the command. User Response: The system administrator
should take the suggested action to resolve the
SQL1321N The structure ID specified in the problem.
directory entry structure is not sqlcode: -1323
valid.
sqlstate: 57019
Explanation: The structure ID received in the
directory entry structure does not represent a
recognized value. SQL1325N The remote database environment
does not support the command or
The function cannot be processed. one of the command options.
User Response: Verify the structure ID passed Explanation: An attempt has been made to
in the directory entry structure is a valid value issue a DB2 workstation database specific
and resubmit the command.
sqlcode: -1339
SQL1339N ″<n>″ SQL error(s) were detected
in the execution of a Not Atomic sqlstate: 56091
Compound SQL statement, and
have the following identification:
″<error1>″ ″<error2>″ ″<error3>″ SQL1340N The file server ″<fileserver>″ was
″<error4>″ ″<error5>″ ″<error6>″ not found.
″<error7>″.
Explanation: The system cannot find the
Explanation: One or more SQL substatements specified file server on the network. Possible
within a Compound SQL statement resulted in causes are:
SQL errors (negative return codes). v An incorrect fileserver name was specified
The error tokens will not be returned for when the IPX/SPX node was cataloged.
CLI/ODBC applications. CLI/ODBC applications v The correct fileserver name was specified, but
can use SQLGetDiagRec, SQLGetDiagField, or the file server was not available at the time the
SQLError APIs to get more information about connect was tried.
each error.
User Response: Make sure that the fileserver
User Response: Examine the error identification name specified when cataloging the IPX/SPX
information provided. There will be <n> node is correct, and that the file server is
<errorX> tokens filled in, up to a maximum of 7. available on the network.
Explanation: The target principal name that was Federated system users: refer to the Installation
specified in the CATALOG DATABASE and Configuration Supplement for DB2INSTANCE
command is not valid. information.
User Response: Remove the database entry that Ensure your PATH environment variable
has the invalid target principal name by using contains the sqllib/adm path in the home
the UNCATALOG DATABASE command. directory of the instance you want to use (for
Re-catalog the database entry with a valid target example, /u/instance/sqllib/adm, where
principal name using the CATALOG DATABASE /u/instance is the home directory of the instance
command and retry the connection. owner on a UNIX system).
SQL1393C The environment variable User Response: If you are starting the DB2
DB2PATH is not defined or is Administration Server, then use the DB2ADMIN
invalid. SETID command to set a new logon account. If
you are starting a DB2 server on Windows NT,
Explanation: The environment variable you can set the logon account for a DB2 service
DB2PATH is not defined or is not set to a valid by using the Services dialog box from the
directory path. Control Panel.
User Response: Set the DB2PATH environment
variable to the directory where the database
manager is installed.
1 The context is not in use by any thread User Response: Make sure the current thread or
(no attach was done) process is attached to a context before making
any database calls.
2 The context is not in use by the current
thread.
SQL1450N Invalid registration information
3 The current thread is not using a pointer.
context.
Explanation: An invalid registration information
User Response: For a detach call, ensure that pointer was passed to the register/deregister
the context is the one in use by the current DB2 server command/API.
thread, and that a corresponding attach was
done. User Response: Verify that a valid pointer was
passed to the register/ deregister DB2 server
For a get current context call, ensure that the command/API.
thread is currently using a context.
sqlstate: 08001 If the above does not fix the problem, see the
Administration Guide for possible causes and
actions.
SQL1471N Cannot connect to database
″<database-name>″ on node sqlcode: -1472
″<node-number>″ because the sqlstate: 08004
database on this node is not
synchronized with catalog node.
SQL1473N Cannot commit the transaction
Explanation: The end-of-log information on this because the time difference
node does not match the corresponding record between the system time on the
on the catalog node. This can be caused by local node and the virtual
restoring the database on various nodes with timestamps of node(s)
backups taken from different times. ″<node-list>″ is greater than the
User Response: If the database is restored max_time_diff database manager
without rolling forward on one node, ensure that configuration parameter. The
the database is restored from consistent offline transaction is rolled back.
backups on all nodes without rolling forward. Explanation: The system time difference for the
sqlcode: -1471 machines in the configuration (listed in the
db2nodes.cfg file) is greater than the
sqlstate: 08004 max_time_diff database manager configuration
parameter.
If ″,...″ is displayed at the end of the node list,
see the syslog file for the complete list of nodes.
User Response: Synchronize the system times
on all machines, and ensure that the
max_time_diff parameter is configured to allow
User Response: Check the db2diag.log file for User Response: No action needed.
the correct source of the problem. Possible
solutions will be: SQL1480N The discover type specified in the
v Drop or alter the size of one or more of the DISCOVER database manager
buffer pools to allow the database to start configuration parameter is
properly. If there is extended storage specified invalid.
for the database, adjust the configuration
values of num_estore_segs and estore_seg_sz Explanation: Valid values for the DISCOVER
for less memory consumption. parameter in the database manager configuration
file are: DISABLE, KNOWN, or SEARCH.
SQL1490W Activate database is successful, User Response: Refer to the diagnostic log to
however, the database has already see which node returns this warning.
been activated on one or more
nodes. SQL1495W Deactivate database is successful,
Explanation: Database has already been however, there is still a
explicitly started (activated) on one or more connection to the database.
nodes. Explanation: There is still database connection
User Response: Refer to the diagnostic log to to one or more nodes.
see which node returns the warning. User Response: Refer to the diagnostic log to
see which node returns this warning.
SQL1500 - SQL1599
is numeric and greater than or equal to 65536
SQL1512N ddcstrc could not write to the
(64K). Note that the memory to be used will be a
specified file.
multiple of 64K. ddcstrc rounds down the
Explanation: ddcstrc was not able to write the buffersize specified to the nearest multiple of
trace information to the filename that it has been 64K.
instructed to write to.
User Response: Ensure that the filename SQL1525N An error occurred when starting
specified is valid for your file system. If a the DB2 security daemon.
filename is not specified, ensure that you have
Explanation: An unexpected error occurred
the necessary permission to write to the default
when starting the DB2 security daemon.
file ddcstrc.tmp.
User Response: Check the db2diag.log file for
further information, and then retry the
SQL1513W ddcstrc has not been turned off.
DB2START command.
Explanation: Because of an error condition
ddcstrc has not been turned off. This was done to
SQL1526N db2start failed because DB2VIA
ensure that the trace information will not be lost
support was not started. Reason
before being safely placed in a file.
code ″<reason code>″.
User Response: Correct the ddcstrc error
Explanation: DB2VIA support was not started
condition reported prior to this error and attempt
successfully at db2start time. The reason code
to turn off the trace again.
indicates the error:
1. The VIPL library specified in DB2_VI_VIPL
SQL1520N Buffersize must be a numeric registry variable could not be loaded.
value greater than or equal to
2. The Device name specified in
65536.
DB2_VI_DEVICE registry variable could not
Explanation: The user specified an invalid be opened.
buffersize for the ddcstrc command. 3. DB2 does not support the VIA
User Response: Ensure that the buffersize used implementation installed.
SQL1592N The INCREMENTAL option is not User Response: Do not specify the
valid with reason code INCREMENTAL option. The system will check
“<reason-code>” since the table the entire table for constraint violations (or if it is
“<table-name>” cannot be a summary table, recompute the summary table
incrementally processed. definition query).
8 The target pipe buffer is too small. The User Response: If possible, delete some of the
inbound pipe buffer must be at least event monitor data files from the target directory,
4096 bytes in size. (This reason code is and resubmit the SET EVENT MONITOR
applicable on OS/2 only.) statement.
SQL1615W The specified event monitor is Explanation: The specified event monitor was
already in the requested state. created with the same target path as another
event monitor. This other event monitor was
Explanation: An attempt was made to either activated at least once, and has left .evt and/or
activate an already active event monitor, or .ctl files in the target path. These files may be in
deactivate an already inactive event monitor. The use by application(s) that are reading the event
SET EVENT MONITOR statement was ignored. information they contain.
User Response: No user response is required. User Response: If the other event monitor is
sqlcode: +1615 currently active, deactivate it. After ensuring no
application(s) are using the files it created in the
sqlstate: 01598 target path, remove the files. Then resubmit the
SET EVENT MONITOR statement.
4. table 3. application
5. locks 4. table
SQL1650N The function invoked is no longer Explanation: The instance path could not be
supported. returned.
Explanation: The user has attempted to call an User Response: Check that the DB2INSTANCE
API that is no longer supported in this version of path was specified correctly. Check that the
the database manager. complete path length specified is not
approaching the maximum supported by the
User Response: The function required may be operating system.
supported by a different API call. Check in the
Administrative API Reference and Application
SQL1700 - SQL1799
failure) under the previous database manager.
SQL1700N The reserved schema name
Database migration cannot be done until the
″<name>″ was found in the
database has been restarted.
database during database
migration. The command cannot be processed.
Explanation: The database contains one or more User Response: The database must be restarted.
database objects which use the schema name You must issue the RESTART DATABASE
″<name>″ that is reserved by the current command using the release of Database Manager
Database Manager. where the database was last accessed. Then,
resubmit the database migration command under
The command cannot be processed.
the current release of Database Manager.
User Response: Ensure that all the database
objects that use the reserved schema name are
SQL1702W The “<protocol>” connection
dropped and recreate the objects using a different
managers have started
schema name. This correction must be made in
successfully.
the release of Database Manager where the
database was originally created. Ensure that no User Response: No action required.
reserved schema names are in use before
attempting the migration again. Then, resubmit
the database migration command under the SQL1703W The db2event directory could not
current release of Database Manager. be created during database
migration.
SQL1701N The database cannot be migrated Explanation: The database was migrated
because the last session was successfully but the db2event directory could not
abnormally terminated. be created.
11 structured type and function have the 8 Resubmit the database migration
same name. command. If the problem persists,
contact your IBM service representative.
12 structured type/table has an invalid
attribute. 9 Correct the table space by going back to
the release of the database manager in
13 structured type encountered. use prior to the current release. Refer to
User Response: Possible solutions based on the message SQL0290N for the suggested
reason code are: actions to take to correct the table space.
1 The reserved schema names are: 10 The type name is reserved by the
SYSIBM, SYSCAT, SYSSTAT, and system. Ensure that the type and
SYSFUN. Ensure that all the database database objects that use the type are
objects that use one or more of these dropped and recreated using a
SQL1800 - SQL1899
mode has been activated by setting the
SQL1800N An invalid pointer to structure
DB2_NO_PKG_LOCK registry environment
sqle_request_info was passed to
variable to ″ON″.
the catalog admin command/api.
In this mode, the following classes of operations
Explanation: The pointer to structure
are prevented from being executed because of
sqle_request_info passed as a parameter to the
their impact on packages:
catalog admin command/api was invalid. For
Client Configuration Assistance request this v An operation that invalidates packages.
pointer must not be NULL. v An operation that makes a package
inoperative.
User Response: Specify a valid pointer to
sqle_request_info and re-submit the command. v Binding, rebinding (explicitly or implicitly) or
dropping a package.
SQL1801N Invalid request type. Since the requested operation would affect the
package ″<package-name>″ in one of these ways,
Explanation: The specified request type is not the operation is disallowed.
supported for this command.
User Response: Do not attempt disallowed
User Response: Ensure that the request type is operations in ″No Package Lock″ mode. In order
one of the following supported request types: to execute the requested operation, ″No Package
1. SQLE_CCA_REQUEST - CCA catalog node Lock″ mode must be exited. This is accomplished
request for catalog and open scan command by unsetting the DB2_NO_PKG_LOCK
2. SQLE_DAS_REQUEST - DAS catalog node environment registry variable. In order for the
request for catalog and open scan command variable change to take effect, that database
manager must be stopped and restarted.
3. SQLE_CND_REQUEST - Open scan
command for CCA and DAS catalog entries sqlcode: -1803
sqlstate: 57056
SQL1802N No entry belongs to the request
type.
SQL1816N Wrapper “<wrapper-name>”
Explanation: There is no entry in the node cannot be used to access the
directory that is catalogued by the given request “<type-or-version>” of data source
type. (“<server-type>”
“<server-version>”) that you are
User Response: Catalog an entry with the same
trying to define to the federated
request type and re-submit the command.
database.
Explanation: The wrapper that you specified
SQL1803N The requested operation cannot
does not support the type or version of data
be executed in ″No Package Lock″
source that you want to define.
mode. An affected package is
″<package-name>″. User Response: Consult the documentation to
find out which wrapper supports the type and
Explanation: The database manager is currently
version of data source that you want to define.
operating in ″No Package Lock″ mode. This
Make sure that the wrapper has been registered
SQL1900 - SQL1999
User Response: Correct and resubmit the
SQL1900N The command completed
command.
successfully.
Explanation: The command line utility
successfully completed the command.
User Response: No action is required.
SQL2000 - SQL2099
The utility stops processing.
SQL2000N The drive specified in the utility
command is not a valid diskette User Response: Restart the application or
drive or fixed disk. reissue the command, if needed. The output data
from the interrupted command may be
Explanation: The input or output drive
incomplete, and should not be used.
specified in the utility command does not exist.
The utility stops processing.
SQL2002N The specified database utility
User Response: Resubmit the utility command command is not valid for remote
with the correct drive specifier. databases. The database specified
in the command must reside on
your local workstation.
SQL2001N The utility was interrupted. The
output data may be incomplete. Explanation: The database utility command is
only valid for local databases.
Explanation: The user may have pressed the
interrupt key sequence, or had called the utility The utility stops processing.
with a terminate caller action.
User Response: Run the utility locally.
This message can also be returned by DB2
Enterprise - Extended Edition during a backup
SQL2003C A system error occurred.
or restore operation on a database node when
the database catalog node is down. Explanation: An operating system error
occurred. The return code can be found in the
The utility stops processing. Explanation: Either the callerac parameter value
is not one of the acceptable values or the
User Response: Look at the SQLCODE requested action is out of sequence.
(message number) in the message for more
information. Make changes and resubmit the The command cannot be processed.
command.
User Response: Each utility has its own list of
valid callerac values. Check the Application
SQL2005C An I/O error occurred during a Development Guide for the valid values for the
read operation. The data may be callerac for the utility in use. Resubmit the
incomplete. command with a valid callerac parameter.
User Response: Ensure the shared library Explanation: An unexpected error occurred
provided is valid and resubmit the utility while processing DATALINK values.
command or use another supported media.
User Response: Resubmit the command. If the
problem still exists, resubmit the command after
SQL2072N Unable to bind the shared library shutdown and restart of the DB2 Data Links
“<shr-lib-name>”. Reason code: Managers.
“<reason-code>”.
The Restore utility can avoid DATALINK
Explanation: An error was encountered while processing by specifying WITHOUT DATALINK.
binding the shared library during the processing
of a database utility. The utility stops processing.
SQL2076W The DB2 Data Links Manager
User Response: Note the reason code returned “<server-name>” was not
from the vendor utility in the message and take registered to the database.
corrective action if possible. Resubmit the
Explanation: The DB2 Data Links Manager
command with a valid shared library or using
“<server-name>” was not registered to the
another supported media.
database with the ADD DATALINKS
MANAGER command.
SQL2073N DATALINK processing failed
User Response: For details on why the ADD
because of internal problems at
DATALINKS MANAGER command failed, check
the database server or DB2 Data
the diagnostic log file db2diag.log.
Links Manager.
Explanation: An unexpected error occurred
while processing DATALINK values.
SQL2200 - SQL2299
Explanation: The table name is required. It User Response: Resubmit the command with a
must be fully qualified and in the format valid index or without an index.
authid.name where authid is 1 to 30 characters and
name is 1 to 128 characters (bytes in MBCS SQL2207N The filepath specified by the
environments). The table name must be located datafile parameter is not valid.
at a valid application address.
Explanation: The datafile parameter is not any
The utility stops processing. of the values that indicate the default filepath.
User Response: Resubmit the command with Also the datafile parameter is not a valid
the correct table name. non-default value. One of the following may
apply:
v The pointer is not valid.
SQL2204N The iname parameter is not valid.
The name of the index is too long, v The pointer points to a string that is too long
only an authorization ID was for a filepath designation.
specified, or the address of the v The specified path value is not valid (on the
index is not valid. server machine).
Explanation: If an index is specified, it must be v The file path does not end with an appropriate
fully qualified and in the format authid.name separator for the server machine.
where authid is 1 to 30 characters and name is 1 The utility stops processing.
to 18 characters (bytes in MBCS environments).
The index must be located at a valid application User Response: Resubmit the command with a
address. valid datafile parameter.
SQL2300 - SQL2399
SQL2300N The identifier for the table name SQL2301N The tablename parameter is not
is too long or it was not specified valid. Either it is too long, only an
as part of the table name. authorization ID was specified, or
the address of the name is not
Explanation: The table name must be fully
valid.
qualified. The format is authid.tablename where
authid contains 1 to 30 characters and tablename Explanation: The table name must be fully
contains 1 to 128 characters (bytes in MBCS qualified and in the format authid.name where
environments). authid contains 1 to 30 characters and name
contains 1 to 128 characters (bytes in MBCS
The utility stops processing.
environments) and must be located at a valid
User Response: Resubmit the command with application address.
the fully qualified table name, including the
The utility stops processing.
correct qualifier.
User Response: Resubmit the command with
the correct table name.
SQL2400 - SQL2499
SQL2400N The type specified in the SQL2404N The backup target media is full.
BACKUP command is not valid. It At least “<number>” free bytes
must be either 0 to back up the are needed on the target media.
entire database or 1 to back up
Explanation: The backup target media does not
only the current changes.
have enough space for creating an internal
Explanation: The type must be either 0 for subdirectory and information file.
backing up the whole database or 1 for backing
The utility stops processing.
up changes only.
User Response: Prepare a backup media that
The utility stops processing.
has at least the specified number of bytes of free
User Response: Resubmit the utility command space and then resubmit the command.
with the correct type.
SQL2405N The BACKUP cannot be
SQL2401N “Backup changes only” cannot be performed because there is a
performed until a backup of the previously incomplete RESTORE.
entire database has been done.
Explanation: The database is in an inconsistent
The type must be 0.
state due to a system crash during a restore
Explanation: A backup of changes only has operation or due to an abnormally terminated
been requested without requesting a backup of RESTORE.
the entire database first, or an internal file has
The utility stops processing.
been damaged such that the BACKUP utility
cannot determine whether a full backup had User Response: Resubmit the RESTORE
been taken. The backup of changes only cannot command.
be used until after a backup of the entire
database.
SQL2406N The BACKUP cannot be
The utility stops processing. performed because the database
needs to be rolled forward.
User Response: Resubmit the utility command
with the correct type. Explanation: The backup failed because the
database is in an inconsistent state.
SQL2403N The user does not have the The utility stops processing.
authority to run the utility against
the database. User Response: Use the ROLLFORWARD
command to make the database usable. Then
Explanation: The user attempted to execute a resubmit the BACKUP command.
database utility without either SYSADM or
DBADM authority.
The utility stops processing.
User Response: Do not attempt to call the
utility command without appropriate
authorization.
SQL2413N Online backup is not allowed SQL2418N The database specified for Backup
because either logretain or does not exist.
userexit for roll-forward is not
Explanation: The database specified in the dbase
activated, or a backup pending
parameter of the Database Backup command
condition is in effect for the
could not be found.
database.
User Response: Ensure that the correct database
Explanation: Online backup cannot be
alias was specified for the Backup Database
performed while the database is not logging for
utility and that the database exists for this alias.
forward recovery as forward recovery will be
Resubmit the command with the correct alias.
required at restore time. Forward recovery is
placed into effect by setting either the database
configuration logretain parameter or the userexit SQL2419N The target disk ″<disk>″ has
parameter, and then performing an offline become full.
backup of the database.
Explanation: During the processing of a
User Response: Execute an offline backup or database utility, the target disk became full. The
reconfigure the database for roll-forward utility has stopped and the target is deleted.
recovery and issue an offline backup so that
subsequent online backups will be allowed. User Response: Ensure enough disk space is
available for the utility or direct the target to
other media, such as tape.
SQL2414W Warning! Insufficient space on
device ″<device>″ to contain On unix-based systems, this disk full condition
backup control information. This may be due to exceeding the maximum file size
media will not contain backup allowed for the current userid. Use the chuser
information. command to update fsize. A reboot may be
necessary.
Explanation: During the Backup operation a
new media was mounted and positioned after On non unix-based systems, this disk full
one or more media became full. There is not condition may be due to exceeding the
enough space on this media to contain the maximum file size allowed for the operating
Backup Control Information and the media system. Direct the target to other media, such as
tape, or use multiple targets.
SQL2421N Table space level backup is not SQL2424N The backup could not succeed
allowed because roll-forward because asynchronous copy
recovery is not enabled. operations at DB2 Data Links
Managers are not complete.
Explanation: Table space level backup cannot be
performed while the database is not logging for Explanation: The TSM or vendor supplied
forward recovery as forward recovery will be archive server might not be in operational state.
required at restore time. Forward recovery is
placed into effect by setting either the database User Response: Ensure TSM or the vendor
configuration logretain parameter or the userexit supplied archive server is in an operational state
parameter, and then performing an offline and resubmit the backup command.
backup of the database.
User Response: Execute a full database backup SQL2425W The log file for the online backup
or reconfigure the database for roll-forward was not truncated.
recovery and issue an offline backup so that Explanation: During an online backup, all
subsequent table space level backups will be buffered log records are forced to disk and the
allowed. last active log file is truncated. During the
current backup, truncation of the last active log
SQL2422N The database cannot be backed up file has failed. As a result, new log records will
with a back-level backup API due continue to be written into the last log file used
to incompatible table space during the backup.
locations. User Response: No user action is required. The
Explanation: This database contains table last active log file used during the backup will
space(s) which have been defined in a location eventually become inactive when it becomes full.
other than the database subdirectory. This is not
compatible with the API being used.
SQL2500 - SQL2599
SQL2507W The RESTORE utility is not User Response: Stop the database manager,
bound to the database correctly. then restart it and resubmit the utility command.
The database is restored, but the utility is not User Response: Look at the error number in the
correctly bound. message for more information. Make changes
and resubmit the command.
User Response: Reinstall DB2 or reapply recent
updates and resubmit the utility command.
SQL2512N The utility encountered an error
“<error>” while creating the
SQL2508N The Database Restore timestamp database.
parameter ″<timestamp>″ is not
valid. Explanation: The utility could not create the
database.
Explanation: The timestamp parameter must
contain either NULL or a portion of a valid The utility stops processing.
timestamp, the portion consisting of complete User Response: Look at the error number in the
components of a timestamp. message for more information. Make changes
User Response: Resubmit the Restore operation and resubmit the command.
with a valid timestamp value.
Explanation: The application calling the Restore The utility waits for a response to continue.
utility has supplied a target directory for the new
User Response: Mount the media with the
database to be created. Either this directory does
correct backup or copy image and return to the
not exist, or is not a valid directory for database
utility with the correct caller action parameter to
creation. An invalid directory for database
indicate if processing should continue or
creation would be a directory of greater than 255
terminate.
characters in length.
User Response: Reissue the Backup or Restore
command with a valid target directory.
Explanation: The utility completed successfully. 2 The table does not seem to exist on the
DB2 Data Links Manager. Nothing to
User Response: No action necessary. reconcile.
3 DB2 Data Links Manager may be down.
SQL2554N The RECONCILE utility failed Try starting the DB2 Data Links
with reason code ″<reason-code>″. Manager.
Possible problem with
″<component>″. 4 Ensure you have file permissions and
enough space for the report file. A fully
Explanation: Possible Reason codes: qualified path is required for the
1 Unknown connection to a DB2 Data DLREPORT parameter. Ensure that the
Links Manager. table being reconciled is not damaged.
SQL2562N Table space level restore from a User Response: Ensure that the table space
full database backup is not being restored into has the same pagesize as the
allowed. table space in the backup image.
SQL2600 - SQL2699
User Response: Correct the value of the input
SQL2600W The input parameter pointer to
parameter and resubmit the command.
the authorization block is invalid
or the block’s size is incorrect.
SQL2650N An invalid parameter was passed
Explanation: The pointer to the authorization
to the asynchronous read log API.
structure parameter is NULL, the pointer to the
Reason Code = ″<reason-code>″.
authorization structure points to an area that is
smaller than the length indicated in the structure Explanation: An invalid parameter was passed
length field, or the authorization structure length to the asynchronous read log API. The possible
field is not set to the correct value. reason codes are as follows:
The command cannot be processed. 01 Invalid action specified.
SQL2700 - SQL2799
1 There is an option not started with ’-’
SQL2701N Invalid command line option for
sign.
″<progname>″. Reason code:
″<reason-code>″ 2 Each option except ’h’ (or ’H’) must be
followed by an argument.
Explanation: Command line option for the data
splitting utility is not valid. Valid options are: 3 There is an invalid option.
v -c ″Configuration file name″ 4 The argument of an option is too long
v -d ″Distribution file name″ (maximum 80 characters).
v -i ″Input file name″
v -o ″Output file prefix″
v -h Usage message
User Response: Given for each reason code:
SQL2703N Failed to open the log file SQL2708N Failed to open the output data file
″<log-file>″. ″<out-data-file>″.
Explanation: The utility cannot open the log file Explanation: The utility cannot open the output
″<log-file>″ for writing or appending. data file ″<out-data-file>″ for writing.
User Response: Please ensure the log file exists User Response: Please ensure the output data
and is writable. file is writable.
SQL2704N Failed to open the input data file SQL2709N Syntax error at line ″<line>″ of
″<input-data-file>″. the configuration file.
Explanation: The utility cannot read the input Explanation: There is a syntax error in the
data file ″<input-data-file>″. specification of a keyword and its argument.
User Response: Please ensure the input data file User Response: A keyword and its argument
exists and is readable. must be delimited by an ’=’ sign.
SQL2705N Failed to open the input SQL2710N Invalid keyword at line ″<line>″
partitioning map file of the configuration file.
″<in-map-file>″.
Explanation: There is an undefined keyword in
Explanation: The utility cannot read the input the configuration file.
partitioning map file ″<in-map-file>″.
User Response: Valid keywords (case
User Response: Please ensure the input insensitive) are:
partitioning map file exists and is readable. v DESCRIPTION, CDELIMITER, SDELIMITER,
NODES, TRACE, MSG_LEVEL, RUNTYPE,
SQL2706N Failed to open the output OUTPUTNODES, NODES, OUTPUTNODES,
partitioning map file OUTPUTTYPE, PARTITION, MAPFILI,
″<out-map-file>″. INFILE, MAPFILO, OUTFILE, DISTFILE,
LOGFILE, NEWLINE, HEADER, FILETYPE
Explanation: The utility cannot open the output
partitioning map file ″<out-map-file>″ for
writing. SQL2711N Invalid column delimiter
(CDELIMITER) at line ″<line>″ of
User Response: Please ensure the output the configuration file.
partitioning map file is writable.
Explanation: The column delimiter
(CDELIMITER) specified in the configuration file
is not valid.
User Response: Make sure the column delimiter
(CDELIMITER) is a single byte character.
1 Fields must be delimited by the ’,’ Explanation: The node list specification is not
character. valid.
2 <position>, <offset> and <len> must be User Response: One and only one of the two
positive integers. parameters: NODES and MAPFILI (input
partition map) must be specified in the
3 <nullable> must take a value from configuration file.
{N,NN,NNWD}.
4 Valid <data type> includes: SMALLINT,
INTEGER, CHARACTER, VARCHAR,
FOR_BIT_CHAR, FOR_BIT_VARCHAR,
FLOAT (for binary numerics only),
SQL2726N There is no partitioning key SQL2731N Error while reading from input
defined. data file ″<filename>″.
Explanation: At least one partitioning key must Explanation: An I/O error occurred while
be defined. reading from input data file.
User Response: Specify one or more User Response: Check your operating system
partitioning keys. documentation for file I/O errors.
SQL2727N Partition key ″<key-name>″ SQL2732N Line ″<line>″ of the input data
exceeds the record length file contains binary data.
″<reclen>″.
Explanation: Binary data is not permitted on
Explanation: For non-delimited data, starting the host versions of this utility program.
position for a key must be less than the record
User Response: Check your input data file.
length.
User Response: Make sure starting position for
SQL2733N Run type (RUNTYPE) was not
a key is less than the record length.
defined in the configuration file.
Explanation: The run type (RUNTYPE) must be
SQL2728N Output node ″<out-node>″ is not
defined as either PARTITION or ANALYZE.
defined in the node list.
User Response: Please specify run type
Explanation: Output node list must be a subset
(RUNTYPE) in the configuration file.
of the node list, which is derived from NODES
or the input partition map file.
SQL2734N Invalid specification for parameter
User Response: Make sure all output nodes are
32KLIMIT at line ″<line>″ of the
defined in the node list.
configuration file.
Explanation: The specification for parameter
SQL2729N Invalid input partition map.
32KLIMIT in the configuration file is not valid.
Explanation: There is at least one error in the
User Response: Parameter 32KLIMIT can be
input partition map file.
either YES or NO, case insensitive.
User Response: The input partition map must
contain no less than 4096 data entries, and each
data entry must be a number between 0 and 999.
SQL2755N Decimal data can not be in both SQL2765W The utility failed to open output
IMPLIEDDECIMAL and partition map file
PACKEDDECIMAL format. ″<out-map-file>″.
Explanation: Valid format of decimal data is Explanation: The utility cannot open the output
SQL_PACKEDDECIMAL_FORMAT, partition map file for writing. It will write the
SQL_CHARSTRING_FORMAT, or output to stdout.
SQL_IMPLIEDDECIMAL_FORMAT, mutually
User Response: Check your file access
exclusive.
permissions.
User Response: Verify the format of your
decimal data, correct the format value, and
resubmit the command.
SQL2800 - SQL2899
v (7) Ensure that the TCP/IP services on your
SQL2800N CREATE, DROP, or CHANGE
system contains an entry for your instance
NODE failed. Reason code
″<reason-code>″. v (8) Ensure that you only use port values that
are specified in the services file on your
Explanation: The utility failed to add, drop, or system
change the node because the input parameters
v (9) Ensure that the node number specified is
specified are invalid as indicated by the
unique.
following reason codes:
v (10) Ensure that the new host name/port is
v (1) The node number is not specified
not already defined in the db2nodes.cfg file.
v (2) The TCP/IP host name is not specified
v (11) Ensure that the port value 0 has been
v (3) The computer name is not specified defined for host name specified.
v (4) The node number is invalid.
v (5) The port number is invalid. SQL2801N The syntax of the DB2NCRT
v (6) The TCP/IP host name is invalid. command is incorrect.
v (7) The port value is not defined for your Explanation: The DB2NCRT utility creates a
instance in the services file. new node in a partitioned database system.
v (8) The port value is not in the valid range DB2NCRT /n:node /u:username,password
defined for your instance in the services file. [/i:instance]
v (9) The node number is not unique. [/h:host]
[/m:machine]
v (10) The host name/port couple is not unique. [/p:port]
v (11) The host name value has no [/o:instance owning machine]
corresponding port 0. [/g:netname]
User Response: The action corresponding to the The command arguments are:
reason code is:
v /n Specify the node number
v (1) Ensure that the node number is specified
v /u to specify the account name and password
v (2) Ensure that the TCP/IP host name is for the DB2 service.
specified
v (3) Ensure that the computer name is specified The command options are:
v (4) Ensure that the node number is between 0 v /i Specify the instance if different from the
and 999. default/current instance
v (5) Ensure that the port number is between 0 v /h Specify the TCP/IP host name if the host
and 999. name is not the machine default TCP/IP host
name
v (6) Ensure that the host name specified is both
defined on the system and is operational v /m Specify the workstation name if the node
is created on a remote machine
User Response: Issue the DB2NCHG command User Response: The action corresponding to the
with one of the valid command options. reason code is:
v (1) If the workstation name is specified during
SQL2803N The syntax of the DB2NDROP DB2NCRT, ensure that the workstation name
command is incorrect. is correct.
v (2) Ensure that the user name specified is
Explanation: The DB2NDROP utility drops a valid.
node from a partitioned system.
v (3) Ensure that the user name and the
DB2NDROP /n:node [/i:instance] password specified are valid.
v (4) If the node resides on another machine,
The command options are:
ensure that the machine is running.
v /i Specify the instance if different from the
default/current instance
User Response: Issue the DB2NDROP
SQL3000 - SQL3099
The file is not closed.
SQL3001C An I/O error (reason =
“<reason>”) occurred while User Response: If the output data file is
opening the output file. incomplete, erase it and resubmit the command.
Explanation: A system I/O error occurred while
opening the output file. SQL3004N The filetype parameter is not
valid.
The command cannot be processed. No data is
processed. Explanation: The filetype parameter must be
DEL, ASC, IXF, WSF, or DB2CS for the
User Response: For IMPORT/LOAD, verify
command.
that the output file exists. For EXPORT, verify
that the output media has enough free space. The filetype parameter must be DEL, IXF, or WSF
Resubmit the command with a valid output file for the EXPORT command.
name, including the correct path. Look in the
message file for additional information. The filetype parameter must be ASC, DEL, IXF, or
DB2CS for the LOAD command.
SQL3002C An I/O error occurred while IXF files can not be used to load into a table
writing to the output data file. defined on a multinode nodegroup.
Explanation: A system I/O error occurred while The command cannot be processed.
writing to the output data file. The output may User Response: Resubmit the command with a
be incomplete or the disk may be full. valid filetype parameter.
The utility stops processing.
User Response: If the output data file is SQL3005N Processing was interrupted.
incomplete, erase it and resubmit the command. Explanation: An interrupt was received during
processing. The user may have pressed the
SQL3003C An I/O error occurred while interrupt key sequence.
closing the output data file. The utility stops processing. Any database
Explanation: A system I/O error occurred while updates not committed are rolled back.
closing the output data file. User Response: Resubmit the command. If
Note: entire hierarchy refers to all subtables or Explanation: The database name parameter is
object views in the hierarchy. not valid. See the SQLERRD[0] field in the
SQLCA for more information.
Import to an existing table or view using the The database name must contain 1 to 8
INSERT_UPDATE, REPLACE, or the characters and the characters must be from the
REPLACE_CREATE option, requires one of the database manager base character set.
following:
The command cannot be processed.
v SYSADM or DBADM authority
v CONTROL privilege on the table, view, or User Response: Resubmit the statement with a
entire hierarchy. valid database name parameter.
The utility stops processing. No data is loaded. The utility stops processing. No data is loaded.
User Response: Examine the version field in the User Response: Examine the double-byte code
H record. page field in the H record, change it to an
appropriate value as specified in the Application
Development Guide and resubmit the command.
SQL3060N The HCNT field in the H record
cannot be converted to a numeric
value or the value is out of range. SQL3063N The single-byte code page value
“<value 1>” in the H record is not
Explanation: The Heading-record-count field in compatible with the single-byte
the H record is not an ASCII representation of a code page value “<value 2>” for
number or is a number that is not valid for this the application. The FORCEIN
field. option was not specified.
The utility stops processing. No data is loaded. Explanation: The single-byte code page value in
User Response: Examine the HCNT field in the the H record is not compatible with the
H record. application code page value. When the FORCEIN
option is not used, the data cannot be loaded
unless conversion from value 1 to value 2 is
supported.
The utility stops processing. No data is loaded.
User Response: To load this data, resubmit the
SQL3100 - SQL3199
Explanation: This is the normal beginning Explanation: The database column type is not
message. The message may indicate the name of valid for this file. Because the column is nullable,
a temporary file created on the server instead of nulls are inserted.
the source file.
Null values are loaded for the indicated column.
User Response: No action is required.
User Response: If nulls are not acceptable for
the column, do one of the following:
SQL3110N The utility has completed v Edit the data in the table.
processing. “<number>” rows
v If possible, use another compatible column in
were read from the input file.
the database table as the target column and
Explanation: This is the normal ending resubmit the command.
message. v Redefine the database table so the columns are
User Response: No action is required. compatible with the columns being loaded and
resubmit the command.
SQL3139W An error ″<error>″ occurred while SQL3144W The length of fixed length column
the utility was disconnecting from “<column-number>” exceeds the
the database. 240-byte limitation. Data from the
column may be truncated.
Explanation: The IMPORT or EXPORT utility
could not disconnect from the database. Explanation: The Lotus 1-2-3** and Symphony**
programs have a limit of 240 bytes for label
The output data may be incomplete. records. Whenever a character field longer than
User Response: Use the error number in the 240 bytes is written to a worksheet format (WSF)
message to determine the exact error. file, the data will be truncated to 240 bytes.
All data entries for the column are truncated
SQL3142W The column heading for column with no additional messages written to the
“<column-number>” is being message log.
truncated to 240 bytes. Continue processing.
Explanation: The LOTUS 1-2-3** and User Response: Verify output. If significant data
Symphony** programs have a limit of 240 bytes from the column is lost because of truncation,
for label records. If a column heading greater investigate selecting the data from the column in
than 240 bytes is specified for export, it is be several fields by substringing, or redesign the
truncated to 240 bytes. database.
The column heading is truncated. Processing
continues. SQL3145W The data for row
User Response: Verify that the column headings “<row-number>”, column
are 240 bytes or less. Check for a possible error “<column-number>” is being
in specifying the names for the columns in the truncated to 240 bytes.
output worksheet format (WSF) file. Explanation: The Lotus 1-2-3** and Symphony**
programs have a limit of 240 bytes for label
User Response: The rows beyond 2048 can be User Response: No action is required.
read only by second and third generation
products.
SQL3151N No data conversion will be done
from the single-byte code page
SQL3148W A row from the input file was not value “<code-page>” in the H
inserted into the table. SQLCODE record to the application
“<sqlcode>” was returned. single-byte code page value
“<code-page>” because the
Explanation: The database operation to insert a FORCEIN option was specified.
row of data read from the input file failed. One
or more of the fields in the input file is not Explanation: No data conversion will be
performed from the IXF code page to the
User Response: No action is required. Explanation: The type field in the C record for
the indicated column is not valid. The code page
values may not be compatible with the column
SQL3154W The HCNT value in the H record type.
and the CCNT value in the T
record are not compatible. The Data from the indicated column is not loaded.
CCNT value in the T record will User Response: Change the type field in the C
be used. record and resubmit the command.
Explanation: The HCNT value in the H record
and the CCNT value in the T record do not SQL3158W The single-byte code page field in
agree. the C record for column
The CCNT value in the T record is used. “<name>” is not valid. Data from
the column will not be loaded.
User Response: Verify that the CCNT value is
correct. If not, make the necessary changes to the Explanation: The single-byte code page field in
the C record for the indicated column is not
valid.
User Response: Prompt the user for the diskette Explanation: At least one COLDEL, CHARDEL
and then return to the utility with the callerac or DECPT keyword in the filetmod parameter is
parameter indicating whether processing not at the beginning of the filetmod parameter
continues or ends. and does not follow a blank (space). This
condition may arise during the LOAD/IMPORT
or export of delimited ASCII (DEL) files.
SQL3181W The end of the file was reached
before the expected ending record The utility stops processing. The erroneous
was found. delimiter overrides are ignored.
Explanation: During the load of a PC/IXF file User Response: Resubmit the command with a
created by the database manager, the A record of correct filetmod parameter.
subtype E that is expected as the last A record
was not found.
The input file probably is damaged.
Continue processing.
User Response: Resubmit the command either The utility stops processing.
without the INDEXIXF option or with the other User Response: Examine the format specifier.
parameters that are valid with the INDEXIXF Correct the format, and resubmit the command.
option.
SQL3192N In the filetmod a user specified SQL3194N The specified table is a system
format “<keyword>” beginning table. You cannot load a system
with the string “<string>” is not table.
valid. Explanation: The utility cannot be run against a
Explanation: The user specified format is not system table.
valid because it may be specified more than The utility stops processing. No data is loaded.
once, or it may contain an invalid character.
SQL3200 - SQL3299
SQL3206N The specified view cannot be SQL3208W Importing data from typed tables
replaced because its definition into regular table.
involves a subquery. Explanation: User specified to import data from
Explanation: A view whose definition involves typed tables into regular table. Please note,
a subquery cannot be replaced. If the view object_id column will not be cast while
definition depends on the definition of other importing.
views, the other views cannot contain User Response: Please make sure such
subqueries. The use of a subquery anywhere in operation is intentional.
the definition of any view on which the target
view is based prohibits the REPLACE option.
SQL3209N Import with CREATE option does
The command cannot be processed. not allow renaming subtable
User Response: Select a different option, such name nor attribute names.
as INSERT, or choose a different target for the Explanation: When CREATE option is used,
utility operation. neither subtable name nor attribute names can be
renamed.
SQL3207N Invalid table-list provided. User Response: Please check your IMPORT
Reason code ″<reason-code>″. command and make sure no subtable-list is
Explanation: The traversal-order-list/subtable- specified.
list provided is invalid. The explanation for the
reason code is:
1 The Network Id parameter was not User Response: Register the DB2 server in
specified. LDAP using the REGISTER LDAP command.
Then re-submit the command.
2 The Partner LU parameter was not
specified.
SQL3265N An unexpected error occurred
3 The Transaction Program (TP) name during LDAP authentication.
parameter was not specified.
Explanation: Unable to authenticate the LDAP
4 The Mode parameter was not specified. user due to unexpected LDAP system error.
5 The Netbios NNAME parameter was User Response: Use the Independent Trace
not specified. Facility to obtain the DB2 trace. Refer to the
Independent Trace Facility in the Troubleshooting
6 The TCP/IP hostname parameter was
Guide for information on how to use this facility.
not specified.
Then contact your IBM service representative.
7 The TCP/IP service name parameter
was not specified.
SQL3266N The LDAP user password is
8 The IPX Address was not specified. incorrect.
9 The computer name was not specified. Explanation: The specified password is not a
correct password for the specified user
10 The instance name was not specified.
Distinguished Name (DN).
User Response: Re-submit the command with
the required input parameter
SQL3300 - SQL3399
SQL3300N The records in the input file are SQL3301N A BOF record was found in the
not in the correct sequence. middle of the input file.
Explanation: The records in the worksheet Explanation: A beginning-of-file (BOF) record
format (WSF) file are expected to be in ascending must be the first record of a worksheet format
order (row 1, col 1 ... row 1, col 256; row 2, col 1 (WSF) file. It cannot occur at any other location
... row 2, col 256, and so on). Some damage has in the file. Some damage has occurred to the
occurred to the WSF file or it was generated WSF file or it was generated incorrectly, possibly
incorrectly, possibly with a level of the Lotus with a level of the Lotus product not supported
product not supported by the database manager. by the database manager.
The IMPORT utility stops processing. The IMPORT utility stops processing.
User Response: Regenerate the WSF file with a User Response: Regenerate the WSF file with a
supported level of the Lotus product. supported level of the Lotus product.
Explanation: An SQL error occurred while Explanation: An error occurred in the wait/post
creating the table. semaphores.
The IMPORT utility stops processing. The table The utility stops processing. For the EXPORT
was not created. No data was imported. utility, data may be incomplete on the media. For
The command continues processing. If sufficient memory resources exist and the
problem continues, invoke the Independent Trace
User Response: No action required. This is an Facility at the operating system command
informational message. prompt. Refer to the Independent Trace Facility
in the Troubleshooting Guide for information on
how to use this facility.
SQL3326N The column list following the
table name in the Action String
parameter is invalid. SQL3330W In row “<row-number>” a
character field has an odd length
Explanation: When you call IMPORT or LOAD
but its target database column is a
with an Action String (e.g. ″REPLACE into ...″)
graphic column. The row was not
parameter which contains a column list after the
loaded.
table name, this message will result if it is
invalid. For example, the following Action String Explanation: Only even length character fields
parameters will fail: can be loaded into graphic database columns.
The row is not loaded.
SQL3400 - SQL3499
was specified for the indicated column, but the
SQL3400N The method specified in
column is not nullable.
METHOD is not valid for
Non-Delimited ASCII files. It The command cannot be processed.
must be ’L’ for locations.
User Response: Resubmit the command with a
Explanation: When loading from a valid set of locations for the columns in the
non-delimited ASCII file, columns must be source file.
selected by locations in the file.
The command cannot be processed. SQL3403N The beginning-ending location
pair for inserting into column
User Response: Resubmit the command with a
“<name>” is not valid.
valid set of locations for the columns in the
source file. Explanation: The field specification for locating
the input data for the indicated database column
within the input non-delimited ASCII file is not
SQL3401N The method specified in
valid. The field specification has one of the
METHOD is not valid for any
following errors:
filetype.
v The beginning location is less than zero.
Explanation: The method for selecting columns
v The ending location is less than zero.
in the file is not a value allowed for any filetype.
Choose one of the following method indicators: v The ending location is less than the beginning
location.
v P for positions
v N for names The command cannot be processed.
v L for locations User Response: Resubmit the command with a
v D for default valid set of locations for the columns in the
source file.
Further restrictions are based on filetype.
User Response: Resubmit the command with a User Response: No action is required.
valid set of locations for the columns in the
source file.
SQL3410N The beginning-ending location
pair for inserting into column
SQL3407N The beginning-ending location “<name>” is not valid for a
pair for inserting into column graphic column.
“<name>” is not valid for a
Explanation: The field specification for locating
timestamp.
the input data in the ASCII file that is to be
Explanation: The field specification for locating inserted into the indicated database column
the data for the indicated database column defines a field with an odd number of bytes.
within the input non-delimited ASCII file is not
The command cannot be processed.
valid. The location pair defines a field length that
is not valid for an external representation of a User Response: Resubmit the command with a
timestamp. valid set of locations for the columns in the
source file.
The command cannot be processed.
User Response: Resubmit the command with a
valid set of locations for the columns in the file.
SQL3500 - SQL3599
User Response: No action is required.
SQL3500W The utility is beginning the
″<phase>″ phase at time
″<timestamp>″. SQL3502N The utility has encountered
″<number>″ warnings which
Explanation: This is an informational message
exceeds the total number of
indicating that a phase is about to begin and that
warnings allowed.
the previous phase has ended. The phases are (in
order of appearance): Explanation: The number of warnings issued
v LOAD during the command has exceeded the total
number of warnings that the user specified at
v BUILD
invocation of the utility.
v DELETE
The utility terminates.
During the LOAD phase, data is loaded into
your table. If there are any indexes to be built, User Response: Ensure that the correct data is
BUILD phase will follow the LOAD phase. If being loaded with the appropriate options or
there were any duplicate keys found for a unique increase the number of warnings allowed.
index, the DELETE phase will follow the BUILD Resubmit the command.
phase.
SQL3503W The utility has loaded
If the LOAD is terminated before the end of the ″<number>″ rows which equals
LOAD, you need to know the phase at which the total count specified by the
you should restart the LOAD. user.
User Response: No action is required. Explanation: The number of rows loaded has
equaled the total number of rows that the user
SQL3501W The table space(s) in which the specified at invocation of the utility.
table resides will not be placed in The utility has successfully completed.
backup pending state since
forward recovery is disabled for User Response: No response required.
the database.
Explanation: COPY NO was specified on the SQL3504W A consistency point is being
invocation of LOAD which results in the table established.
space(s) in which the table resides being placed Explanation: Consistency points will be
into backup pending state unless forward established at times other than the regular
recovery is disabled for the database. interval specified in the SAVECOUNT parameter
The utility continues. at invocation when:
Explanation: At least one other LOAD was For IDENTITYOVERRIDE, this may violate the
invoked using the same TEMPFILES PATH as uniqueness property of an identity column
the queried LOAD and is still in progress. The defined as GENERATED ALWAYS.
LOAD QUERY utility cannot uniquely determine For GENERATEDOVERRIDE, this may result in
which LOAD to query. a non-identity GENERATED ALWAYS column
User Response: Use the TABLE parameter of containing a value that does not correspond to
LOAD QUERY instead. its column definition.
User Response: No action is required.
SQL3539N LOAD RESTART cannot proceed
because LOAD TERMINATE has
been attempted at least once.
Explanation: LOAD TERMINATE can only be
followed by LOAD TERMINATE.
User Response: User can proceed with LOAD
TERMINATE only.
SQL3700 - SQL3799
the targets for the unload. Unload will continue
SQL3700W Device ″<device>″ is full. There
but will ignore this device.
are ″<active-devices>″ other active
devices. Please mount new media User Response: The media loaded on the
or take appropriate action. specified device will not contain any unloaded
data and should not be included with the media
Explanation: The media on the specified device
supplied to the LOAD utility when the unloaded
is full. This device is one of the
data is being loaded. In order to fix the problem
″<active-devices>″ + 1 target devices to which
with the device, look up the returned SQLCODE
unloaded data is being directed.
in the Message Reference.
User Response: Take ONE of the following
actions:
SQL3703W ″<xxx>″ of ″<yyy>″ number of
v Mount a new target media on the specified type ″<type>″ pages have been
device and continue unloading by invoking unloaded and sent to be written
unload with caller action 1 out to the target media.
(SQLU_CONTINUE).
Explanation: The table being unloaded consists
OR
of ″<yyy>″ pages of the specified type of data.
v If ″<active-devices>″ is not zero, continue the ″<xxx>″ of these have been processed by the
unload without this device by invoking the UNLOAD utility and have been sent to a media
UNLOAD utility with the caller action 4 writer which will write the data to the target
(SQLU_DEVICE_TERMINATE). media.
OR
″<type>″ is one of:
v Cancel the unload by invoking the UNLOAD
v 0 for regular data
utility with caller action 2
(SQLU_TERMINATE). v 2 for Long data and allocation information
v 3 for LOB data
SQL3701W The lobpaths parameter was v 4 for LOB allocation information
specified, but the table does not Note that for Long and LOB data, ″<xxx>″ may
contain any LOB or Long data. be less than ″<yyy>″ when unload is complete,
This parameter will be ignored. because unused space is not unloaded, but will
Explanation: The lobpaths parameter specifies a be recreated when the data is reloaded.
separate target for LOB and Long data. The table
does not contain any LOB or Long data, so the Even for regular data, a final message where
targets specified by the lobpaths parameter will ″<xxx>″ = ″<yyy>″ may not be issued. Instead
not be used. message 3105 is used to indicate that the unload
completed successfully.
User Response: No action required.
User Response: This is an informational
message. No action is required.
SQL3702W Warning. SQLCODE ″<sqlcode>″
was received for device
″<device>″. Unload will attempt SQL3704N The num_buffers parameter
to continue without this device. specified is invalid.
Explanation: SQLCODE ″<sqlcode>″ was Explanation: The num_buffers parameter
detected for the specified device which is one of determines the number of buffers that the utility
User Response: Resubmit the command using a User Response: Reissue the command with a
valid num_buffers parameter. valid sort memory size.
To ensure that only the minimum amount of
SQL3705N The buffer size parameter storage is used, specify a value of 0 (to let it
specified is not valid. The buffer default). However, using more than the
size must be specified as 0 or be minimum should improve the performance of
between 8 and 16384 inclusive. the sort.
For multiple buffers, the total
buffer size must not exceed 16384. SQL3783N An error was encountered while
Explanation: The application calling the utility opening the copy location file.
has supplied a buffer size parameter that is not Open file error code is
valid. The buffer size is used to determine the “<errcode>”.
internal buffer size. The value is the number of Explanation: During load recovery, an error was
4K pages that are obtained for this buffer. The encountered while opening the copy location file.
value must be specified as 0 or be between 8 and The operating system file open return code is
16384 inclusive. If there are multiple buffers, the returned.
number of buffers multiplied by the buffer size
must not exceed 16834. User Response: Look at the error code in the
message for more information. Correct the error,
When 0 is specified: if possible, and resubmit the command.
v for a table whose regular data is in a database
managed storage table space, the default
SQL3784W Invalid data was encountered
buffer size chosen is the extent size for the
while reading from the copy
table space or 8, whichever is larger.
location file. Failure occurred at
v for a table whose regular data is in a system line “<line-no>” with error type
managed storage table space, the default “<errtype>”
buffer size chosen is 8.
Explanation: During load recovery, invalid data
User Response: Reissue the command with a was encountered while reading from the copy
valid buffer size. location file. The line number and error type are
SQL3800 - SQL3899
User Response: Check in the Administration
SQL3802N An invalid quiesce mode
Guide to determine the appropriate way to
“<quiesce-mode>” was
revalidate the index and resubmit the command
encountered.
after the condition is corrected.
Explanation: An invalid quiesce mode was
passed to the quiesce API.
SQL3805N The state of the application or of
User Response: Resubmit the command with one or more table spaces for the
the correct parameters. table specified prohibits the
loadapi action or quiescemode
“<action>”. Reason code =
SQL3804N The index is invalid.
“<reason-code>”.
Explanation: An invalid index was encountered
Explanation: The loadapi action (either
during the processing of a utility command.
quiescemode or callerac) passed to the load API
is in conflict with either the state of the
User Response: Corresponding to each of the Explanation: One or more constraints for the
above reasons: table to be loaded are still on when the load API
is invoked.
01 Resubmit the command with the correct
loadapi action or quiescemode, or User Response: Resubmit the command after all
correct the state of the table spaces for table constraints are turned off.
the table.
SQL3900 - SQL3999
v SQLCA contents if possible
SQL3901N A non-severe system error
occured. Reason code v Trace file if possible.
“<reason-code>”.
Explanation: Processing ended because of a SQL3902C A system error occurred. Further
non-severe system error. processing is not possible. Reason
code = “<reason-code>”.
User Response: If trace was active, invoke the
Independent Trace Facility at the operating Explanation: A system error occurred.
system command prompt. Refer to the User Response: If trace was active, invoke the
Independent Trace Facility in the Troubleshooting Independent Trace Facility at the operating
Guide for information on how to use this facility. system command prompt. Refer to the
Then contact your technical service Independent Trace Facility in the Troubleshooting
representative with the following information: Guide for information on how to use this facility.
v Problem description Then contact your technical service
v SQLCODE and embedded reason code representative with the following information:
User Response:
SQL3918I Synchronization progress
information was obtained
SQL3912I STOP completed successfully. successfully.
Explanation: Explanation:
User Response: User Response:
SQL4000 - SQL4099
SQL4001N The character “<character>” in SQL4002N “<token 1>” and “<token 2>” are
column “<column>” on line undeclared host variables that
“<line>” is not valid. cannot both be used as descriptor
names in a single SQL statement.
Explanation: The specified character is not a
valid character in SQL statements. Explanation: The specified identifiers have not
been declared as host variables. Descriptor
The statement cannot be processed.
names are not declared before using. Because
User Response: Remove or replace the character more than one descriptor name in a single
that is invalid. statement is not valid, at least one of the host
variables is not valid.
SQL4100 - SQL4199
User Response: Correct the SQL statement.
SQL4100I The “<sqlflag-type>” SQL
language syntax is used for syntax
checking by the flagger. SQL4103W A data definition statement is not
within a CREATE SCHEMA
Explanation: The SQL statements that have
statement.
passed the precompiler checking will be subject
to checking against the specified syntax by the Explanation: The FIPS standard requires that all
flagger. Warning message will be issued against data definition statements are contained within a
the statement when there is a syntax deviation. CREATE SCHEMA statement.
Processing continues. Processing continues.
User Response: None. This is an informational User Response: Correct the SQL statement.
message only.
SQL4300 - SQL4399
User Response: Ensure that a compatible Java
SQL4300N Java support is not installed or
Runtime Environment or Java Development Kit
properly configured on this
for the server is installed. Ensure that the
platform.
″jdk11_path″ configuration parameter is correctly
Explanation: Support for Java stored procedures set.
and user-defined functions is not installed and
sqlcode: -4300
configured on this server.
SQL4400 - SQL4499
User Response: No further action is required.
SQL4400N “<authorization-ID>” does not
have the authority to perform the
task at the DB2 Administration SQL4403N The syntax of the command is
Server. invalid.
Explanation: The user does not have the Explanation: The command was entered using
necessary authority at the DB2 Administration invalid arguments or an invalid number of
Server to perform the attempted action. parameters.
User Response: Attach to the DB2 User Response: Re-submit the command with
Administration Server using a user ID with the valid argument(s).
necessary Authority. Most tasks performed at the
DB2 Administration Server require SYSADM
authority. SQL4404N The DB2 Administration Server
does not exist.
SQL4401C The DB2 Administration Server Explanation: The DB2 Administration Server
encountered an error during was not found on the machine.
startup. User Response: Create the DB2 Administration
Explanation: An error was encountered during Server on the machine.
startup of the DB2 Administration Server. v On OS/2 or Windows 32-bit operating
systems, issue the following command:
User Response: Refer to the DB2
Administration Server’s First Failure Data db2admin create
Capture Log for additional information. Take the v On UNIX platforms, ensure that you have root
appropriate action as necessary and attempt to authority, and issue the following command
restart the DB2 Administration Server. from the instance subdirectory in the path of
the DB2 Universal Database instance, where
If the problem persists contact your technical <ASName> represents the name of the
service representative. Administration Server:
dasicrt <ASName>
SQL4402W The DB2ADMIN command was
successful.
Explanation: All processing completed
normally.
SQL4409W The DB2 Administration Server is SQL4413W Usage: DB2ADMIN creates, drops,
already active. starts, or stops the DB2
Explanation: The DB2ADMIN START command Administration Server.
can not be processed because the DB2 Explanation: The DB2ADMIN command syntax
Administration Server is already active. is:
User Response: No further action is required. DB2ADMIN CREATE [/USER:<username>
/PASSWORD:<password>]
DROP
SQL4410W The DB2 Administration Server is START
not active. STOP
SETID <username> <password>
Explanation: The DB2ADMIN STOP command /h
can not be processed because the DB2
Administration Server is not active.
The command options are:
User Response: No further action is required.
SQL4900 - SQL4999
User Response: Correct the specified parameter
SQL4901N Precompiler Services requires
and call the function again.
reinitialization because of a
previous error.
SQL4904N The pointer to parameter “<n>” of
Explanation: On a previous function call, an
function “<function>” is not
error occurred. The requested function call
valid.
cannot be processed until Precompiler Services is
reinitialized. Explanation: The pointer to the specified
parameter in the specified function is not valid.
The function cannot be completed.
The function cannot be completed.
User Response: Call the sqlainit function to
reinitialize Precompiler Services User Response: Correct the specified parameter
and call the function again.
SQL4902N At least one of the characters in
parameter “<n>” of function SQL4905N The value of parameter “<n>” of
“<function>” is not valid. function “<function>” is not
within the valid range.
Explanation: The specified parameter in the
specified function contains at least one character Explanation: The value of the specified
that is not valid. parameter in the specified function is outside the
valid range for that parameter. If the specified
The function cannot be completed.
parameter is a structure, it may contain values
User Response: Correct the specified parameter that are within the valid range but are not valid
and call the function again. when considered together. Some structures
contain headers that specify the allocated size
and how much of that size is being used. It is
SQL4903N The length of parameter “<n>” of
not valid for the allocated size to be less than the
function “<name>” is not valid.
used size.
Explanation: The length of the specified
The function cannot be completed.
parameter in the specified function is not valid.
User Response: Correct the specified parameter
The function cannot be completed.
and call the function again.
SQL4974W The ROLLFORWARD DATABASE User Response: Submit the command on the
QUERY STATUS command catalog node.
encountered sqlcode ″<sqlcode>″.
Explanation: The ROLLFORWARD DATABASE SQL4977N Dropped table export directory
QUERY STATUS command encountered an error ″<directory>″ is not valid.
with the sqlcode ″<sqlcode>″. The query might Explanation: The export directory path specified
not be successful on some nodes for various on the ROLLFORWARD command is not valid.
reasons. The most severe error is indicated by The export directory path must be a directory in
″<sqlcode>″. The roll-forward status is only a file system. This directory must be accessible
returned for the successful nodes. by the instance owner id.
User Response: Look up the sqlcode User Response: Resubmit the command with a
″<sqlcode>″ in the Message Reference, or online to valid export directory path.
determine the problems on the failed nodes. Take
the required corrective actions, then continue the
forward recovery on these nodes. SQL4978N The dropped table can not be
accessed.
SQL4975W Roll-forward operation was Explanation: The dropped table can not be
cancelled successfully. The accessed. This may be due to the table being put
database or selected table spaces into unavailable state because of a LOAD
have to be restored on node(s) without copy or a NOT LOGGED INITIALLY
″<node-list>″. operation.
Explanation: A roll-forward operation was User Response: The table can not be recovered
cancelled before it successfully completed, and using the DROPPED TABLE RECOVERY option.
User Response: Resubmit the precompilation if If trace was active, invoke the Independent Trace
needed. Facility at the operating system command
prompt. Refer to the Independent Trace Facility
in the Troubleshooting Guide for information on
SQL4997N The authorization ID is not valid. how to use this facility.
Explanation: The authorization ID for the v Environment: Outer Precompiler Using
application was specified previously but it was Precompiler Services API
defined with more than 8 characters or with v Required information:
characters that are not valid for an authorization
– Problem description
ID.
– SQLCODE
The authorization ID must not be PUBLIC
– SQLCA contents if possible
(public) and it must not begin with SYS (sys),
IBM (ibm), or SQL (sql). Also, it must not contain – Trace file if possible.
the underscore character or any characters
outside the database manager base character set.
SQL5000 - SQL5099
SQL5050C The content of the database Explanation: A token number specified in the
manager configuration file is not sqlfupd structure passed to a Configuration
valid. Services API is not valid. It does not represent
any of the supported configuration parameters.
Explanation: The database manager Alternatively, if an UPDATE was attempted, the
configuration file is not valid. The file may have token specified may be that of an unmodifiable
been altered by a text editor or a program other configuration parameter.
than the database manager.
User Response: Choose a valid token number
The command cannot be processed. from those specified in the description of the
Configuration Services API in the Application
User Response: Reinstall the database manager.
Development Guide. Recode the call to the API,
and rerun the program.
SQL5051N An object qualified by
“<qualifier>” cannot be created in
SQL5061N An invalid pointer to structure
schema “<schema-name>”.
sqlfupd was passed to
Explanation: An object created in a CREATE Configuration Services.
SCHEMA statement is qualified by “<qualifier>”
Explanation: The pointer to structure sqlfupd
which is different from the schema name. All
passed as a parameter to one of the
objects created in a CREATE SCHEMA statement
Configuration Services APIs was invalid. It is
must be either qualified by the schema name
either NULL, or does not point to an allocated
“<schema-name>” or not qualified. Unqualified
block of memory of the size indicated by the
objects are implicitly qualified by the schema
count parameter. See the Application Development
name.
Guide for more information.
The statement cannot be processed.
User Response: Correct the code which invokes
User Response: Explicitly qualify the object in the Configuration Services API, and retry the API
the schema with “<schema-name>” or remove call.
“<qualifier>” from the object name.
SQL5100 - SQL5199
segments >= ((number of databases * 5) + 1)
SQL5100N The entry in the database
manager configuration file for the
number of allowed concurrent The requested change is not made.
databases is too large. User Response: Do one of the following:
Explanation: The requested change would cause v Increase the maximum number of segments
(1) the number of allowed concurrent databases allowed for DB2.
to be too large or (2) the number of segments v Decrease the number of allowed concurrent
allowed for DB2 to be too small. databases.
The number of allowed concurrent databases is
restricted by the maximum number of segments
allowed for DB2. The following condition must
always be true:
Explanation: The user attempted to modify a User Response: Ensure that the value specified
database manager configuration parameter which for ″<parameter>″ is within the valid range, then
is invalid for the given node type. try the request again.
″<node-type-code″> is defined as follows:
1 Database server with local and remote SQL5132N The configuration parameter is
clients null or too long. The maximum
length is <maximum length>.
2 Client
Explanation: The configuration parameter is not
3 Database server with local clients set or too long.
4 Partitioned Database Server with local User Response: Change the value of the
and remote clients configuration parameter to within the maximum
5 Satellite Database Server with local length given.
clients
SQL5133N The value “<value>” for
The requested change is not made. configuration parameter “<parm>”
User Response: Resubmit the request with a is invalid. The valid set of values
valid parameter for the given nodetype. is “<value_list>”.
Explanation: “<value>” was the the value
SQL5130N The value specified for the specified for the configuration parameter
configuration parameter “<parm>”. This value is not one of the allowable
″<parameter>″ is not in the valid values shown in the “<value_list>”.
range of ″<start-of-range>″ to Consult the Application Development Guide
″<end-of-range>″. (SQLFUPD entry) and the Administration Guide
Explanation: The request is not done because for the meanings of these values.
the value of ″<parameter>″ is not within the User Response: Change the value of the
valid range. configuration parameter to one of the values
User Response: Ensure that the value specified shown in the valid list.
for ″<parameter>″ is within the valid range, then
try the request again. SQL5134N The configuration parameter
tpname contains invalid
characters.
Explanation: One or more characters in the
tpname is not in the valid range. The characters
in the tpname must be one of the following:
This command returns the number of bytes used The command cannot be processed.
by the listed file. Multiply that number by 3. The User Response: Return to your QMF host
result is an estimate of how much free space is session, rerun the QMF query without the named
needed on the file system. Increase the size of column, and export the data again. Then run the
the file system as necessary and retry the SQLQMF facility command again.
command.
The command cannot be processed. User Response: Return to your QMF host
session and rerun a query, selecting 255 or fewer
User Response: Verify that the host column data columns. EXPORT the data again and then
data type is DECIMAL. Retry the QMF EXPORT run the SQLQMF facility command again.
and then try the SQLQMF facility command
again. If the error continues, rerun the QMF
query without the named column. SQL6011N The data type “<number>”
(“<type-text>”) of column
“<name>” (positioned at column
SQL6008N The file specified in the command “<number>”) cannot be processed.
is not in QMF data format.
Explanation: The QMF file contains a column
Explanation: The file specified by the filename with data type that is not supported.
parameter is not in the expected QMF format.
The SQLQMF facility does NOT support the
The command cannot be processed. following data types:
User Response: Verify that you have typed the v LONG VARCHAR
name correctly. If correct, return to your QMF v LONG VARGRAPHIC.
host session and issue the command EXPORT
DATA TO filename again. Be sure to export using Only the SQLQMF facility SQLQMFDB supports
the QMF data format. graphic data types.
(1) Ensure that the $DB2INSTANCE userid (14) Ensure that you only use port values
has the required permissions to access that are specified in the services file
the sqllib directory of the instance. (/etc/services file on UNIX-based
systems) for your instance.
(2) Change the profile name to a shorter
name so that the total length of the fully (15) Ensure that all the hostname values
qualified path added to the profile name have a port 0 defined in the
length is smaller than the db2nodes.cfg file in the sqllib directory
SQL_PROFILE_SZ defined in the file including the restart option parameters.
sqlenv.h. (16) Ensure that the value specified for the
(3) Ensure that the profile file exists. option parameter is within the valid
range.
(4) Ensure that the nodenum value
specified is defined in the db2nodes.cfg (17) Specify the NODENUM option when
file in the sqllib directory and is you specify the DROP option.
between 0 and 999. (18) Ensure that the value specified for the
(5) Resubmit the command with the callerac parameter is within the valid
nodenum parameter specified. range.
(6) Ensure that the port value is between 0 (19) Check the permission of the /tmp
filesystem to make sure all intermediate
SQL6100 - SQL6199
SQL6100N The partitioning map in the data SQL6102W The parameter “<name>” is
file and the partitioning map for reserved for future use. Its value
the database are not the same. should be set to
“<default-value>”.
Explanation: The data to be loaded has either
not been partitioned, or was partitioned with a Explanation: A parameter reserved for future
partitioning map other than the current one for capabilities has been set to a value that is not its
the nodegroup to which the table belongs. The default value. It should be set to the default
data cannot be loaded. value to ensure future compatibility.
User Response: If the data was not partitioned, User Response: Ensure that the parameter
use the db2split program to partition the data, “<name>” is set to the value, “<default-value>”,
then load the partitioned data. then try the request again.
If the data was partitioned, do one of the
following: SQL6103C An unexpected utility error
v Use the partitioning map from the header of occurred. Reason code =
the data file to redistribute the nodegroup to “<reason-code>”.
which the table belongs. Then try the request Explanation: An unexpected utility error
again. occurred.
v Repartition the data with the current
User Response: Record the message number
partitioning map for the nodegroup. Then try
(SQLCODE) and reason code in the message.
the request again to load the newly partitioned
data. If trace was active, invoke the Independent Trace
Facility at the operating system command
prompt. See the Administration Guide for
SQL6101N This data file contains data for
information on how to use this facility. Then
node “<node-1>” but the Load
contact your technical service representative with
utility is connected to node
the following information:
“<node-2>”.
v Problem description
Explanation: The data to be loaded is associated
v SQLCODE and embedded reason code
with a node number that differs from the node
number of the node to which the application is v SQLCA contents if possible
connected. The data cannot be loaded. v Trace file if possible
User Response: Either find the data file
associated with this node and try the request SQL6104N The load utility does not support
again with that data file, or connect to the node the creation of indexes.
associated with this data file and issue the
request at that node. Explanation: The load utility does not support
the creation of indexes, but the table to be loaded
has at least one index defined on it. The index
may have been explictly created with the
User Response: The data must be split using Explanation: In the db2split configuration file:
db2split, then loaded without the ″NOHEADER″ v One of the partitioning columns defined for
option. the table was not specified.
v The order of the partitioning columns was
SQL6107N The partitioning key information incorrect
in the data file is not correct. v A column was specified that is not a
partitioning column for the table.
Explanation: Either the data was not split with
db2split or the db2split operation was not User Response: Do the following:
successful. 1. Ensure that the db2split configuration file is
User Response: Use the db2split program to correct.
SQL6500 - SQL6599
SQL6500W RESTARTCOUNT in the load SQL6501N Database name was not given in
command may cause some the configuration file.
problems.
Explanation: Database name has to be specified
Explanation: Since multiple loading processes in the configuration file.
for the same table are completely independent, it
User Response: Please specify the database
is almost impossible to have an identical
name and rerun the command.
restartcount for those multiple loading processes.
User Response: Please make sure you have the
correct load command in the configuration file.
Explanation: Either the table is not defined, or Explanation: The program can not create
it is not defined in an MPP environment. temporary output pipes for the splitter at node
″<node-num>″.
User Response: Make sure you have the table
properly defined. User Response: Please ensure your working
space is clean.
SQL6513N The program failed to create the SQL6518N The record length (reclen in the
input pipe for the loading process load command) is not valid.
at node ″<node-num>″.
Explanation: Valid record is between 1 to 32768.
Explanation: The program can not create
User Response: Please correct the record length,
temporary input pipe for the loading process at
and rerun the command.
node ″<node-num>″.
User Response: Please ensure your working
SQL6519N The mode (parameter: mode)
space is clean.
″<mode>″ in the configuration file
is not valid.
SQL6514N The program can not read the
Explanation: The running mode of this program
node configuration file:
can be: SPLIT_ONLY, LOAD_ONLY,
″<node-cfg-file>″.
SPLIT_AND_LOAD (default), or ANALYZE.
Explanation: Either the file does not exist, or it
User Response: Please correct the mode in the
is not readable.
configuration file.
User Response: Please check the existence and
permissions of the node configuration file.
SQL6520N The program failed to create
output pipes for the process,
SQL6515N The program failed to find a load which generates the header
command in the configuration information for split file.
file.
Explanation: The program can not create output
Explanation: A CLP load command must be pipes for the process, which generates the header
supplied in the configuration file. information for split file.
User Response: Please specify a CLP load User Response: Please ensure your working
command in the configuration file. space is clean.
SQL6516N The program failed to connect to SQL6521N The configuration file ″<cfg-file>″
database ″<db-name>″. for this program doesn’t exist.
Explanation: Either the database manager has Explanation: The program needs a
not been started yet, or it encountered problems. configuration file.
User Response: Check your database manager User Response: Please create a configuration
status. file.
SQL6525N The program can not read the SQL6530N The data type of one partitioning
input data file ″<file-name>″. key is float or double.
Explanation: Either the input data file was not Explanation: If the input file is a non-binary
found, or it is not readable. data file, float or double columns can not be
defined as partitioning key.
User Response: Please check the existence and
permissions of the input data file. User Response: Supply a binary data file, or
change the definition of your table.
SQL6526N The program can not write in
current working directory SQL6531N The program failed to reset
″<cwd>″. tablespace quiesce.
Explanation: The current working directory is Explanation: There are probably on-going
not writable. loading processes. Make sure all previous
SQL6534N There is an error in the .netrc file SQL6539N There is at least one command in
″<netrc-file>″. ″<cmd-list>″ not found in the
working environment.
Explanation: Either the .netrc file could not be
found, or there is no entry for remote host Explanation: The execution of this program
″<machine>″, or the permissions of the file are depends on a number of common Unix
not correct. commands. The process fails if any one of them
is not available in the working environment.
User Response: Please check the existence and
permission of the .netrc file. User Response: Make sure you have all
necessary commands properly installed on your
system.
SQL6535N The mode SPLIT_ONLY or
ANALYZE is not valid.
SQL6540N File type ″<file-type>″ specified in
Explanation: If a table is defined in a single
the load command is not valid.
node nodegroup, either splitting or analyzing is
not necessary. Explanation: Valid file types are ASC (positional
ASCII) or DEL (delimited ASCII).
User Response: Please change the mode to
LOAD_ONLY or SPLIT_AND_LOAD.
User Response: Examine the source data for User Response: Add the node to the node list
syntactical correctness. definition in the db2nodes.cfg file, or specify an
alternate node for the split operation which is a
member of the node configuration.
SQL6557N Failed to retrieve the default node
number.
SQL6561N Target node ″<node-number>″ for
Explanation: The utility attempted to determine load does not appear in the
a default node number, but was unable to. nodegroup.
User Response: State source and target node Explanation: A node was specified as a target
numbers explicitly in the utility configuration node for loading, but this node is apparently not
file, or contact DB2 Service for assistance. a member of the node group being loaded.
User Response: Check the nodegroup definition
SQL6558N The utility failed to determine the and confirm that the target node specified for
current working directory and/or loading is part of this nodegroup. If the node is
drive. not part of the nodegroup correct the utility
Explanation: The utility attempted to determine target node specification to include the correct
the current working directory and/or drive but list of nodes. If the node is part of the
encountered an error. nodegroup, please contact DB2 Service for
assistance.
User Response: Contact DB2 Service for
assistance.
SQL6562N The utility is unable to retrieve
the instance name.
SQL6559N An invalid command line option
was provided to the AutoLoader Explanation: The utility attempted to retrieve
utility. the instance name but encountered an error.
Explanation: The user specified a command line User Response: Confirm that the utility is
option for the AutoLoader utility which is either running on a node with DB2 installed, and a
not supported, or obsolete. valid instance is running. For additional help,
please contact DB2 Service.
User Response: Refer to the AutoLoader
documentation, or online help, for the supported
options and features. SQL6563N Failed to retrieve the current user
ID.
Explanation: The utility attempted to retrieve
the current user ID for the ID, but an error was
encountered.
User Response: Contact DB2 Service.
SQL6566N The LOAD command is missing SQL6571I The AutoLoader is waiting for all
from the AutoLoader LOAD operations to complete.
configuration file.
Explanation: The AutoLoader is waiting for
Explanation: The LOAD command is missing LOAD operations to complete.
from the AutoLoader configuration file. The
Explanation: Users should not specify RESTART Explanation: AutoLoader has acknowledged
nor TERMINATE in the LOAD command. that LOAD cannot be restarted on a given node.
Instead, the RESTART and TERMINATE options User Response: This is an informational
of the AutoLoader should be used. message.
User Response: Without modifing the
AutoLoader configuration file, users should SQL6582I Restarting LOAD on node
launch db2atld with option RESTART or ″<node-num>″ is not required.
TERMINATE.
Explanation: AutoLoader has acknowledged
that LOAD does not need to be restarted on a
SQL6580I LOAD is restarting on node given node.
″<node-num>″ in phase
″<restarting-phase>″. User Response: This is an informational
message.
Explanation: AutoLoader has acknowledged
that LOAD is restarting in either
SQL7000 - SQL7099
Explanation: The executable of the SQL Explanation: A REXX internal error has
procedure exceeds the limit of 2 megabytes and occurred.
therefore cannot be stored in the database The command cannot be processed.
catalog. It will not be recovered automatically at
database restore time or on ROLLBACK of a User Response: Verify that REXX is installed
DROP PROCEDURE statement. properly and rerun the procedure. If the error
continues, note the error number and call the
User Response: If the warning resulted from a dealer.
CREATE PROCEDURE statement, ensure that
SQL8000 - SQL8099
sqlstate: 42968
SQL8000N DB2START processing failed; a
valid product license was not
found. SQL8002N DRDA connect processing failed;
a valid product license was not
Explanation: A valid license key could not be
found.
found and the evaluation period has expired.
Explanation: A valid license key could not be
User Response: Install a license key for the
found and the evaluation period has expired.
fully entitled version of the product. You can
obtain a license key for the product by contacting User Response: Install a license key for the
your IBM representative or authorized dealer. fully entitled version of the product. You can
obtain a license key for the product by contacting
your IBM representative or authorized dealer.
SQL8001N DB2 connect processing failed; a
valid product license was not sqlcode: -8002
found.
sqlstate: 42968
Explanation: A valid license key could not be
found and the evaluation period has expired.
User Response: Install a license key for the
fully entitled version of the product. You can
obtain a license key for the product by contacting
your IBM representative or authorized dealer.
sqlcode: -8001
SQL8100 - SQL8199
v Create a new database with larger values for
SQL8100N The table is full.
maximum pages per segment and number of
Explanation: When creating a database the segments, back up the original database and
following parameters may be specified: restore to the new database.
v maximum number of pages per segment per Federated system users: isolate the problem to
file the data source failing the request (refer to the
v number of segments Troubleshooting Guide to determine which data
source is failing to process the SQL statement)
Each table part may now have multiple files
and:
within the database segments. The file can grow
until it reaches its maximum size in a segment v Take the necessary steps to increase the space
(maximum number of pages per segment) and in the table at the data source.
then it moves to the next segment to add more v If the table is on the federated server, create a
data. This occurs until it has used the maximum new database with larger values for maximum
number of pages per segment in all configured pages per segment and number of segments.
segments, and the table becomes full. Back up the original database and restore to
the new database.
Therefore, the total amount of space per database
part is the product of the maximum number of
SQL8101N A database segment may be
pages and the number of segments. The table
incorrect.
will be full if any of the table parts use all of
their configured space. Explanation: This error could occur in two
ways:
Federated system users: this situation can also be 1. Every database segment has an identifier file.
detected by the data source. The file may be missing or the contents of the
User Response: file may be incorrect.
v Delete rows from the table 2. One, or more, previously allocated database
segments are missing.
v Reorganize the table to make more space
User Response:
SQL9300 - SQL9399
The command cannot be processed.
SQL9301N An invalid option is specified or
an option parameter is missing. User Response: Ensure that the <name> does
not exceed the maximum length.
Explanation: Either the option specified is
invalid or an option parameter is not specified.
SQL9306N One or more of the field names
The command cannot be processed.
are too long. The maximum
User Response: Correct the option and resubmit length is <max-length>.
the command.
Explanation: The total length of a field name
includes the specified prefix and/or a column
SQL9302N Invalid option parameter: suffix, which can either be its name or its
“<option-parameter>”. number. This total length must not exceed the
maximum length.
Explanation: The option parameter specified is
invalid. The command cannot be processed.
The command cannot be processed. User Response: Ensure that all the field names
do not exceed the maximum length.
User Response: Correct the option parameter
and resubmit the command.
SQL9307N Remarks cannot be retrieved from
the database. Error code =
SQL9303N No <option> is specified.
“<sqlcode>”.
Explanation: The required option “<option>” is
Explanation: An error has occurred when
not specified.
attempting to retrieve the remarks of a column
The command cannot be processed. from the database.
User Response: Resubmit the command with The command cannot be processed.
the required option.
User Response: Check the error code for more
information.
SQL9304N Unable to open file “<filename>”
for writing.
SQL9308W SQL data type “<sqltype>” of the
Explanation: The command cannot be column “<colname>” is not
processed. supported.
User Response: Ensure that the system can Explanation: The SQL data type “<sqltype>” is
access the file. not supported in the specified host language.
No declaration is generated for this column.
SQL9305N The <name> is too long. The
User Response: Ensure that this is the desired
maximum length is <max-length>.
table.
Explanation: The <name> is longer than the
maximum length of <max-length>.
SQL10000 - SQL10099
User Response: Stop the application. Possible
SQL10002N The password supplied is too
solutions include:
long.
v Remove background processes.
Explanation: The length of the password is
v Terminate other applications using the above
expected to be 18 characters or less. However, if
resources.
the password is to be verified for an APPC
conversation, it must be 8 characters or less. v If you are using Remote Data Services,
increase the Remote Data Services heap size
User Response: Ensure that the password is not (rsheapsz) in the server and client
longer than the limit allowed. configuration because at least one block is
sqlcode: -10002 used per application.
NOTE: This is applicable only for releases of
sqlstate: 28000
DB2 prior to Version 2.
v Decrease the values of the configuration
SQL10003C There are not enough system parameters that define allocation of memory,
resources to process the request. including udf_mem_sz if UDFs are involved in
The request cannot be processed. the failing statement.
Explanation: The database manager could not sqlcode: -10003
process the request due to insufficient system
resources. The resources that can cause this error sqlstate: 57011
include:
v The amount of memory in the system
v The number of message queue identifiers
available in the system.
Explanation: There is not enough memory to Explanation: The database cannot be accessed
load the library module. for one of the following reasons:
v The path does not contain a database image.
User Response: Stop the application. Possible
solutions are: v Permissions on the path are incorrect.
v Remove background processes. User Response: Ensure that the path references
SQL20000 - SQL20099
SELECT FUNCSHEMA, FUNCNAME, SPECIFICNAME
SQL20005N The internal identifier limit for
FROM SYSCAT.FUNCTIONS
object type “<type>” has been WHERE FUNCID = INTEGER(“<method-ID>”)
exceeded.
Explanation: The create of an object of type sqlcode: -20010
“<type>” cannot be processed because the next
internal identifier for the object would exceed the sqlstate: 2202D
maximum value.
The statement cannot be processed. SQL20011N Transform group “<group-name>”
is already defined for a subtype
User Response: Drop objects of type “<type>”
or supertype of data type
that are not being used any more.
“<type-name>”.
sqlcode: -20005
Explanation: A transform group called
sqlstate: 54035 “<group-name>” already exists for a type in the
same hierarchy as “<type-name>”. It may be
defined for a supertype or subtype of
SQL20010N Mutation method “<method-ID>” “<type-name>”. A transform group name can
is not allowed when the instance only be used once within a structured type
of the structured type is NULL. hierarchy.
Explanation: The method “<method-ID>” is a The statement cannot be processed.
mutator method that is specified with an
instance of a structured type that is null. Mutator User Response: Change the name of the
methods cannot be processed on a null instance. transform group.
In some cases, the method name is not available.
sqlcode: -20011
The statement cannot be processed.
sqlstate: 42739
User Response: Determine the null instance that
is used with a mutator method. Use a
SQL20012N Type “<type-name>” does not
constructor function to create a non-null instance
have any associated transform
of the structured type before using any mutator
groups to drop.
methods on the instance.
Explanation: There are no transforms defined
To determine the method name associated with
for “<type-name>”. There is nothing to drop.
the “<method-ID>”, use the following query:
If the statement resulting in the error is creating 4 The RETURNS type of a FROM SQL
a table, then “<super-object-name>” is a table transform function that returns a scalar
that cannot be be a supertable of table must be a built-in data type other than
“<sub-object-name>” because it is not defined as DECIMAL.
a typed table or the type of table
5 All of the RETURNS types of a FROM
“<super-object-name>” is not the direct
SQL transform function that returns a
supertype of the type used in defining table
scalar must be built-in data types other
“<sub-object-name>”.
than DECIMAL.
If the statement resulting in the error is creating
6 There must be at least one parameter for
a view, then “<super-object-name>” is a view
a TO SQL transform function.
that cannot be be a superview of view
“<sub-object-name>” because it is not defined as 7 The parameter types for a TO SQL
a typed view or the type of view transform function must all be built-in
“<super-object-name>” is not the direct data types other than DECIMAL.
supertype of the type used in defining view
8 The TO SQL transform function must be
“<sub-object-name>”.
a scalar function.
The statement cannot be processed.
9 The FROM SQL transform function
User Response: Specify a valid type, table, or must be written using LANGUAGE
view in the UNDER clause of the CREATE SQL, or must use another FROM SQL
statement. transform function that is written using
LANGUAGE SQL.
sqlcode: -20013
10 The TO SQL transform function must be
sqlstate: 428DB
written using LANGUAGE SQL or use a
TO SQL transform function that is
written using LANGUAGE SQL.
User Response: Specify a valid argument for 12 The result type of a filter function or
the function. CASE expression is not an integer data
type.
sqlcode: -20043
13 A subquery is used in a CASE
sqlstate: 428E3 expression or as an argument of a filter
function.
sqlstate: 58004
SQL20059W The summary table
″<table-name>″ may not be used
SQL20057N Column ″<column-name>″ in to optimize the processing of
subview ″<view-name>″ cannot queries.
be defined as read only when the
corresponding column is Explanation: The summary table is defined with
updatable in the superview. REFRESH DEFERRED and a fullselect that is
currently not supported by the database manager
Explanation: The column identified by when optimizing the processing of queries. The
″<column-name>″ in the subview rules are based on the summary table options
″<view-name>″ is defined (implicitly) as read (REFRESH DEFERRED or REFRESH
only. The superview of ″<view-name>″ includes IMMEDIATE). The fullselect in the CREATE
the corresponding column that is updatable. A TABLE statement that returned this condition
column cannot be changed from updatable to violates at least one of the rules as described in
read only in a typed view hierarchy. the SQL Reference.
The statement cannot be processed. The summary table is successfully created.
User Response: Change the CREATE VIEW User Response: No action is required. If the
statement so that the column of the subview summary table was intended for use in
″<view-name>″ is updatable or drop the optimizing the processing of queries, redefine the
superview(s) and recreate them using the READ fullselect to ensure that it is a subselect that
ONLY clause to force the column to be read only. includes a GROUP BY clause.
sqlcode: -20057 sqlcode: +20059
sqlstate: 428EB sqlstate: 01633
SQL20058N The fullselect specified for the SQL20060N The key transform table function
summary table ″<table-name>″ is used by the index extension of
not valid. index “<index-id>” of table
Explanation: The summary table definition has “<table-id>” in “<tbspace-id>”
specific rules regarding the contents of the generated duplicate rows.
fullselect. Some rules are based on the summary Explanation: The key transform table function
table options (REFRESH DEFERRED or specified by the GENERATE USING clause of the
REFRESH IMMEDIATE) while others are based index extension used by index “<index-id>”
on whether or not the table is replicated. The generated duplicate rows. For a given invocation
fullselect in the CREATE TABLE statement that of the key transform table function, no duplicate
returned this condition violates at least one of rows should be produced. This error is occured
the rules as described in the SQL Reference. when inserting or updating the key value for the
The statement cannot be processed. index “<index-id>” of table “<table-id>” in table
space “<tbspace-id>”.
Explanation: The index could not be created or User Response: Enable the instance for the
altered because the key column length is greater requested action or operation. First, install the
than 255. specified functional area if it is missing. Then,
enable the specified functional area. Enablement
v “<index-name>” is the index name.
steps vary by “<reason-code>”:
v “<column-name>” is the name of the key
1. Set the DBM variable <DREQ> to ON and
column. If this error was returned from an
then restart the database manager. For a
ALTER TABLE operation, then the value of
federated server, set the DBM variable
“<column-name>” is the column number of
<FEDERATED> to YES and then restart the
the table.
database manager.
The index extension could not be created because
sqlcode: -20076
a column returned by the GENERATE KEY
function is greater than 255 bytes.
sqlstate: 0A502
v “<index-name>” is the index extension name.
v “<column-name>” is the name of a column
returned by the GENERATE KEY function. SQL20077N Cannot construct structured type
objects that have Datalink type
The statement could not be processed. The attributes.
specified index or index extension was not
created, or the table could not be altered. Explanation: An attempt was made to invoke
the constructor of a structured type which has a
User Response: If creating an index, eliminate Datalink and/or a Reference type attribute. This
the column from the index definition. If altering functionality is currently not supported. In
a table, reduce the new column length to the Version 6.1 or earlier, this error may also be
permitted maximum. If creating an index issued for a structured type object with a
extension, specify a different GENERATE KEY Reference type attribute.
function, or redefine the function to eliminate the
column. The statement cannot be processed.
sqlstate: 428ER
sqlcode: -20082
SQL20100 - SQL20199
2. There has been a syntax error in IP address of
SQL20108N A result set contains an
debugger client in the debugger table.
unsupported data type in position
“<position-number>” for the 3. A timeout in the communication between the
cursor “<cursor-name>” opened debugger backend and the debugger client
by the stored procedure occurred.
“<procedure-name>”. 4. A problem occured accessing the debugger
table DB2DBG.ROUTINE_DEBUG.
Explanation: The stored procedure named by
procedure-name cannot return at least one of its User Response:
query result sets named by cursor-name because 1. Verify that you install the debugger option on
at least one of the columns, column the DB2 server machine.
position-number contains a data type which is
not supported by either the DRDA Application 2. Make sure that the IP address in the
Requestor (client) or the DRDA Application debugger table has the correct syntax.
Server (server). As such the call to the stored 3. Check that the debugger demon on the client
procedure fails. is started and that the ports on the client and
server match.
User Response: Modify the OPEN statement
(and subsequent FETCH statements) for cursor 4. Verify that you have created the debugger
cursor-name in the stored procedure tables with the correct layout.
procedure-name on the server to not select the sqlcode: +20109
unsupported data type in column
position-number. The client application which sqlstate: 01637
invoked the stored procedure may need to be
modified to reflect the change in the stored
procedure. SQL20111N A SAVEPOINT, RELEASE
SAVEPOINT, or ROLLBACK TO
sqlcode: -20108 SAVEPOINT statement cannot be
sqlstate: 56084 issued in this context. Reason
code = “<reason-code>”.
SQL20109W Error in DB2 debugger support. Explanation: The statement cannot be processed
Reason code: “<reason-code>”. because it violates a restriction as indicated by
the following reason code:
Explanation: The debugger support had an
1. Savepoint cannot be issued inside a trigger.
error situation which will disable debugging, but
not affect normal execution. The following is a 2. Savepoint cannot be issued inside a global
list of reason codes: transaction.
1. The debugger support is not installed. The statement cannot be processed.
SQL20200 - SQL20299
correct format. If the jar id exists, it may need to
SQL20200N The install or replace of
be removed before it can be installed. For the
“<jar-id>” failed as “<url>” could
remove or replace procedures, ensure the jar id
not be located.
exists.
Explanation: The URL specified on the install or
sqlcode: -20201
replace jar procedure did not identify a valid jar
file. sqlstate: 46002
User Response: Reissue the install or replace jar
procedure with a URL that identifies a valid jar SQL20202N The replace or remove of
file. “<jar-id>” failed as “<class>” is in
use.
sqlcode: -20200
Explanation: The specified class in the jar file is
sqlstate: 46001
currently in use by a defined procedure, or the
replacement jar file does not contain the specified
SQL20201N The install, replace or remove of class for which a procedure is defined.
“<jar-id>” failed as the jar name
User Response: Ensure all procedures
is invalid.
referencing the classes being removed are
Explanation: The jar name specified on the dropped and resubmit the replace or remove
install, replace or remove jar procedure was procedure.
invalid. For example, the jar id may be of the
sqlcode: -20202
improper format, may not exist to be replaced or
removed, or can not be installed as it already sqlstate: 46003
exists.
User Response: Ensure the jar id is of the
SQL29000 - SQL29100
User Response: Use QueryMonitor or the User Response: Ensure that the DB2DBDFT
iwm_cmd command to examine the reason for profile variable on the DB2 Query Patroller
the aborted job and resubmit the query. server matches the client data source name.
SQL29013I Job “<job-ID>” has been held. SQL29017N Job “<job-id>” has been
cancelled.
Explanation: Job “<job-ID>” has been put on
hold. Explanation: Job “<job-id>” has been cancelled.
User Response: None.
SQL29014N The value specified for DB2
registry variable
SQL29018N The DB2 Query Patroller Client is
“<registry-variable>” is invalid.
not installed.
Explanation: The value specified for
Explanation: The user is querying a database
“<registry-variable>” is invalid because of the
which has enabled the database configuration
following restrictions by “<registry-variable>”:
parameter DYN_QUERY_MGMT. However, the
DQP_NTIER DB2 Query Patroller client code is not installed
The value must be one of OFF, on the client machine.
RUN[:timeout], or CHECK[:timeout].
User Response: Install the QueryEnabler
DQP_LAST_RESULT_DEST component of the DB2 Query Patroller client.
The length must not exceed 32
characters.
SQL29019N Jobs have been scheduled on the
DQP_TRACEFILE DB2 Query Patroller server.
The length must not exceed 256
Explanation: Jobs have been scheduled on the
characters.
DB2 Query Patroller server.
SQL30000 - SQL30099
received a warning SQLCODE that requires the
SQL30000N Execution failed because of a
program or end user to either re-issue the
Distributed Protocol Error that
chained statement or issue a different SQL
will not affect the successful
request. This error can occur only in a
execution of subsequent
client/server environment.
commands or SQL statements:
Reason Code “<reason- v A distributed client using DRDA has chained
code(subcode)>”. an OPEN statement to a PREPARE, but the
PREPARE statement received SQLCODE
Explanation: A system error occurred that +1140.
prevented successful processing of the current
environment command or SQL statement. This The statement cannot be executed as chained.
message (SQLCODE) is produced at statement User Response: The statement must be sent
compilation or execution time. again as a separate request.
The command or statement cannot be processed. sqlcode: -30002
The current transaction is not rolled back and the
application remains connected to the remote sqlstate: 57057
database.
User Response: Record the message number SQL30020N Execution failed because of a
and the reason code. Record all error information Distributed Protocol Error that
from the SQLCA, if possible. Attempt to rerun will affect the successful
the application. execution of subsequent
commands and SQL statements:
If sufficient memory resources exist and the Reason Code “<reason-code>”.
problem continues, invoke the Independent Trace
Facility at the operating system command Explanation: A system error occurred that
prompt. Refer to the Independent Trace Facility prevented successful execution of the current
in the Troubleshooting Guide for information on environment command or SQL statement, as well
how to use this facility. as any subsequent commands or SQL statements.
Required information: The command or statement cannot be processed.
v Problem description The current transaction is rolled back and the
application is disconnected from the remote
v SQLCODE and reason code database.
v SQLCA contents if possible
User Response: Record the message number
v Trace file if possible. (SQLCODE) and the reason code. Record all
sqlcode: -30000 error information from the SQLCA, if possible.
Attempt to connect the remote database and
sqlstate: 58008 rerun the application.
If sufficient memory resources exist and the
SQL30002N The SQL statement cannot be problem continues, invoke the Independent Trace
executed due to a prior condition Facility at the operating system command
in a chain of statements. prompt. Refer to the Independent Trace Facility
in the Troubleshooting Guide for information on
Explanation: An SQL statement was chained to how to use this facility.
PREPARE, but the PREPARE statement has
Required information:
Contact your technical service representative 002F The target server does not support the
with the following information: data type requested by the application
requester. For example, when DB2
Required information: Connect is used to connect to DB2 2.3,
v Problem description this error will be returned unless the
proper PTF is applied to DB2 2.3.
v SQLCODE and parameter identifier
Ensure that the level of the server is
v SQLCA contents if possible supported by the requester.
v Trace file if possible.
119C, 119D, 119E
sqlcode: -30072 The target server does not support the
CCSID requested by the application
sqlstate: 58016 requester. Ensure the CCSID used by the
requester is supported by the server.
If trace was active, invoke the Independent Trace User Response: Record the message number
Facility at the operating system command (SQLCODE) and the reply identifier. Record all
prompt. Refer to the Independent Trace Facility error information from the SQLCA, if possible.
in the Troubleshooting Guide for information on
- The database agent at the server If the connection has already been established,
was terminated due to an check if:
abnormal termination of a key 1. The database agent at the server has been
database manager process. forced off.
2. The database manager at the server has
Note: When using Windows Sockets, abnormally terminated.
if the <function> is
WSAStartup, and <rc1> is 0, 3. A communication subsystem or network error
then <rc2> contains the has occurred. See the Messages Reference for
Windows Sockets Specification more information on specific communication
version level requested by DB2, error codes.
and <rc3> contains the If you are trying to establish a new connection,
Windows Sockets Specification check if:
version level supported by the
1. The remote database server is cataloged
Windows Sockets DLL.
properly on the client node.
v APPC
2. The database manager configuration file at
<rc1> contains the return code from the server is configured with the proper
the CPI-C function. If present, <rc2> communication related parameters. If the
SQL30100 - SQL30199
v sqlerrmc (SQL message tokens)
SQL30101W Bind options specified on
REBIND request are ignored. sqlcode: +30101
Explanation: Bind options were specified on the
REBIND request however the database server sqlstate: 01599
does not support respecification of any bind
options. The bind options specified will be
ignored and the options from the original BIND
request will be used.
User Response: No action is required. This is a
warning situation only.
If the database server returned an additional
warning SQLCA, the ″sqlerrmc″ tokens will
indicate the following information about this
additional SQLCA in this order:
v sqlcode (SQL return code)
v sqlstate (universal SQL return code)
v sqlerrp (product name)
One of the following reason codes can be found in the message text:
01 Numeric value out of range
02 Division by zero
03 Arithmetic overflow or underflow
04 Invalid date format
05 Invalid time format
06 Invalid timestamp format
07 Invalid character representation of a timestamp duration
08 Invalid interval type (must be one of 1, 2, 4, 8, 16, 32, 64, 128,
256)
09 String too long
10 Length or position in string function out of range
11 Invalid character representation of a floating point number
TCP/IP
When using TCP/IP in a Unix environment, the following table lists some of
the errnos which the user may encounter most frequently. It is NOT a
complete list of errors. Errnos can be found in the file /usr/include/sys/errno.h.
The errno number itself is indicated for each operating system.
Table 36. Unix TCP/IP errnos.
Errno Number
Errno Description
AIX HP-UX Solaris UnixWare Linux
Interrupted system
EINTR 4 4 4 4 4
call.
Resource temporarily
EAGAIN 11 11 11 11 11
unavailable.
EBUSY 16 16 16 16 16 Resource busy.
The per-process file
EMFILE 24 24 24 24 24 descriptor table is
full.
EPIPE 32 32 32 32 32 Broken pipe.
The specified address
EADDRINUSE 67 226 125 125 98
is already in use.
The network is
ENETDOWN 69 228 127 127 100
down.
No route to the
ENETUNREACH 70 229 128 128 101
network is available.
If using SOCKS
protocol support, also
ensure that TCP/IP
protocol support at
the SOCKS server
has been started
successfully.
EHOSTDOWN 80 241 147 147 112 The host is down.
No route to the host
EHOSTUNREACH 81 242 148 148 113
is available.
When using OS/2 TCP/IP, the following is a list of errnos which the user may
encounter most frequently. It is NOT a complete list of errors. Errnos can be
found in the file nerrno.h This file is part of the TCP/IP product include files.
It may not be present on your system if they have not been installed. The
errno number itself is in parentheses.
v SOCEINTR (10003): Interrupted system call.
v SOCEMFILE (10024): Too many open files.
v SOCEPIPE (10032): Broken pipe.
v EADDRINUSE (10048): The specified address is already in use.
v ENETDOWN (10050): The network is down.
v ENETUNREACH (10051): No route to the network is available.
v ENETRESET (10052): The network has dropped the connection on reset.
v SOCECONNABORTED (10053): The software caused a connection abort.
v ECONNRESET (10054): Connection has been reset by the partner.
v ENOBUFS (10055): No buffer space available.
v ENOTCONN (10057): The socket is not connected.
v ETIMEDOUT (10060): The establishment of a connection timed out before a
connection was made.
v ECONNREFUSED (10061): The connection has been refused. If you are
trying to connect to the database, check that the database manager and
TCP/IP protocol support at the server has been started successfully.
If using SOCKS protocol support, also ensure that TCP/IP protocol support
at the SOCKS server has been started successfully.
v EHOSTDOWN (10064): The host is down.
v EHOSTUNREACH (10065): No route to the host is available.
v SOCEOS2ERR (10100): OS/2 error.
APPC
Below is a list of CPI-C function return codes which the user may encounter
most frequently. It is NOT a complete list of return codes. The number in
parentheses indicates the defined number corresponding to the return code.
v CM_ALLOCATE_FAILURE_NO_RETRY (1): Allocation failed because of a
non-temporary condition. For example, the session cannot be activated due
to a system definition error or session-activation protocol error. This return
code is also returned when the session is deactivated because of a session
protocol error before the conversation can be allocated.
v CM_ALLOCATE_FAILURE_RETRY (2): Allocation failed because of a
temporary condition. For example, the session cannot be activated due to a
temporary lack of resources at the local system or remote system.
v CM_CONVERSATION_TYPE_MISMATCH (3): Allocation failed because the
remote program does not support the conversation type in the allocation
request. This is likely a problem with the TP at the server. Ensure that the
TP at the server is configured to support a conversation type of basic.
v CM_TPN_NOT_RECOGNIZED (9): This error occurs when the allocate
request is sent to the remote system. It indicates that the remote system
does not recognize the transaction program name specified in the request. If
you are not using global directory services, ensure that the TP name
specified in the CPI-C Side Information profile at the client, matches the TP
name specified at the server. If you are using global directory services,
request your database administrator’s help to ensure that the TP name
specified in the global directory entry matches the TP name specified at the
server.
v CM_TP_NOT_AVAILABLE_NO_RETRY (10): This error occurs when the
allocate request is sent to the remote system. It indicates that the remote LU
recognizes the TP name sent, but cannot start the program. Also check that
the userid specified in the TPN profile at the server is valid.
v CM_TP_NOT_AVAILABLE_RETRY (11): This error occurs when the allocate
request is sent to the remote system. It indicates that the remote LU
recognizes the TP name sent, but for some reason which may be temporary,
it cannot start the program. Ensure that the database manager and APPC
protocol support at the server have been started successfully.
v CM_DEALLOCATED_ABEND (17): This error occurs when the remote
program deallocates the conversation. This can occur if the remote program
has abnormally terminated, or has encountered a fatal error condition. If
you are trying to connect to DB2 for AIX, check that the database manager
and APPC protocol support at the server have been started successfully. For
an AIX server, this error could also be caused by one of the following:
For Communication Server for AIX, the errno provides additional information.
Below is a list of some of the more common errnos. It is NOT a complete list.
Errnos numbered 101 and higher can be found in the file
/usr/include/luxsna.h, which contains the Communication Server for AIX
specific errnos. Most of these errnos are translated to CPI-C return codes.
Lower-numbered errnos are related to AIX problems and can be found in the
file /usr/include/sys/errno.h. The errno number itself is in parentheses.
NETBIOS
When using NetBIOS, the following is a list of hexadecimal return codes that
the user may encounter most frequently. It is NOT a complete list of return
codes.
01 Invalid buffer length
03 Invalid command
05 Command timed out
06 Message incomplete
07 Data not received
08 Invalid local session number
09 No resource available
0A Session closed
This error could be caused by one of the following:
v The database agent at the server was forced off by the system
administrator.
v A database agent could not be started at the server because the
maxagents database manager configuration parameter has been
exceeded. Check the First Failure Service Log (DB2DIAG.LOG) at
the server to see if an error message has been logged.
For more information on NetBIOS return codes, refer to the Local Area
Network technical reference.
IPX/SPX
When using IPX/SPX on Windows 32-bit operating systems, refer to the
TCP/IP section for a list of the most frequently encountered errors. Errors
returned by both TCP/IP and IPX/SPX on Windows systems conform to the
WINSOCK specifications. When using IPX/SPX on OS/2 or Unix systems, the
following is a list of t_errnos which the user may encounter most frequently. It
is NOT a complete list of errors. Error values can be found in the file tiuser.h.
The t_errno number itself is in parentheses.
v TBADF (4): Specified file handle does not refer to a transport endpoint.
v TNOADDR (5): Transport provider could not allocate an address.
v TOUTSTATE (6): A function was issued in the wrong sequence.
v TSYSERR (8): A system error occurred during execution of this function.
v TLOOK (9): An asynchronous event has occurred on this connection.
v TNODATA (13): No data is currently available from the transport provider.
v TADDRBUSY (23): Specified address is in use and the transport provider
could not allocate a new address.
When the first error token specifies t_errno = TLOOK, the second error token
specifies an event. Below is a list of events which the user may encounter most
frequently. It is NOT a complete list of events. Events can be found in the file
tiuser.h. The event value is in parentheses.
v T_DISCONNECT (0x0010): Disconnect received.
This error could be caused by one of the following:
– The server was not started, or IPX/SPX support on the server was not
started. Check the First Failure Service Log (DB2DIAG.LOG) at the
server to see if messages have been logged.
– The node directory information specified on the client is incorrect.
– The client or server IPX/SPX communications stack was not installed
and/or configured properly.
– The database agent at the server was forced off by the system
administrator.
When the first error token specifies t_errno = TLOOK, and the second error
token specifies the event T_DISCONNECT, the third error token specifies a
disconnect reason code. Below is a list of disconnect reason codes which the user
may encounter most frequently. It is NOT a complete list of reason codes.
Disconnect reason codes can be found in the file tispxipx.h. On UNIX
platforms, the reason codes are defined in the file spx_app.h. The reason code
value is in parentheses.
v TLI_SPX_CONNECTION_TERMINATED (0xEC): Disconnect received from
remote peer.
v TLI_SPX_CONNECTION_FAILED (0xED): Connection failure.
When using OS/2 IPX/SPX file server addressing, the following is a list of
return values which the user may encounter most frequently. It is NOT a
complete list of errors. Return values can be found in the file nwerror.h.
0x880F -
This is a ″NO CONNECTION TO SERVER″ error. Ensure that the file
server specified is up and running, and can be accessed by the client
and server workstations.
0x88FF -
If this error occurs when trying to connect to the database, and the
function is NWAttachToFileServer, ensure that the IPX/SPX protocol
support at the client has been installed correctly, and is started.
0x89EF -
This is an ″INVALID NAME″ error. Illegal characters were specified in
the file server or object name. Control characters, the comma,
semicolon, slash, backslash, question mark, asterisk, and tilde are
invalid.
0x89F2
This is a ″NO OBJECT READ PRIVILEGE″ error. The client does not
have access to read the DB2 server’s object registered at the Netware
file server.
0x89F4
This is a ″NO OBJECT DELETE PRIVILEGE″ error. Ensure that the
If this error occurs when trying to connect to the database, and the
function is NWScanProperty, ensure that:
v The network address of the database manager has been successfully
registered at the NetWare file server. This is done by running the
REGISTER command at the server.
v The object name specified in the IPXSPX node directory entry at the
client, matches the object name specified in the database manager
configuration file at the server.
v The file server name specified in the IPXSPX node directory entry
at the client, matches the file server name specified in the database
manager configuration file at the server.
For more information on IPX/SPX file server addressing errors, refer to the
NetWare Client API for C documentation.
When using Unix IPX/SPX file server addressing, the following is a list of
error generators that identify what location generated the error.
v 0x00 - File server
v 0x10 - API
v 0x20 - API
When using Unix IPX/SPX file server addressing mode, the following is a list
of error codes which the user may encounter most frequently. It is NOT a
complete list of errors. On AIX, error codes can be found in the file nwerrors.h.
0x02 - This is a ″TRANSPORT OPEN″ error. Ensure that IPX/SPX
communications was installed and configured correctly.
0xDE -
This is a ″BAD PASSWORD″ error. Ensure that the password specified
on register/deregister is valid for logging into the file server.
0xEF - This is an ″INVALID NAME″ error. Ensure that the file server and
object name specified in the database manager configuration file is
valid. Check that the name does not contain illegal characters.
0xF2 - This is a ″NO OBJECT READ PRIVILEGE″ error. The client does not
have access to read the DB2 server’s object registered at the Netware
file server.
0xF4 - This is a ″NO OBJECT DELETE PRIVILEGE″ error. Ensure that the
userid/password specified during deregister has sufficient authority
to delete an object and its properties, on the file server.
0xF5 - This is a ″NO OBJECT CREATE PRIVILEGE″ error. Ensure that the
userid/password specified during register has sufficient authority to
create an object and its properties, on the file server.
0xF6 - This is a ″NO PROPERTY DELETE PRIVILEGE″ error. Ensure that the
userid/password specified during deregister has sufficient authority
to delete an object and its properties.
If this error occurs when trying to connect to the database, and the
function is NWScanProperty, ensure that:
v The network address of the database manager has been successfully
registered at the NetWare file server. This is done by running the
REGISTER command at the server.
v The object name specified in the IPXSPX node directory entry at the
client, matches the object name specified in the database manager
configuration file at the server.
v The file server name specified in the IPXSPX node directory entry
at the client, matches the file server name specified in the database
manager configuration file at the server.
For more information on IPX/SPX file server addressing mode errors, refer to
the NetWare C Interface for UNIX API reference.
To access product information online, you can use the Information Center. For
more information, see “Accessing Information with the Information Center”
on page 551. You can view task information, DB2 books, troubleshooting
information, sample programs, and DB2 information on the Web.
The installation manuals, release notes, and tutorials are viewable in HTML
directly from the product CD-ROM. Most books are available in HTML on the
product CD-ROM for viewing and in Adobe Acrobat (PDF) format on the DB2
publications CD-ROM for viewing and printing. You can also order a printed
copy from IBM; see “Ordering the Printed Books” on page 547. The following
table lists books that can be ordered.
On OS/2 and Windows platforms, you can install the HTML files under the
sqllib\doc\html directory. DB2 information is translated into different
On UNIX platforms, you can install multiple language versions of the HTML
files under the doc/%L/html directories, where %L represents the locale. For
more information, refer to the appropriate Quick Beginnings book.
You can obtain DB2 books and access information in a variety of ways:
v “Viewing Information Online” on page 550
v “Searching Information Online” on page 554
v “Ordering the Printed Books” on page 547
v “Printing the PDF Books” on page 546
Table 37. DB2 Information
Name Description Form Number HTML
Directory
PDF File Name
DB2 Guide and Reference Information
Administration Guide Administration Guide: Planning provides SC09-2946 db2d0
an overview of database concepts, db2d1x70
information about design issues (such as
logical and physical database design),
and a discussion of high availability.
Notes:
1. The character x in the sixth position of the file name indicates the
language version of a book. For example, the file name db2d0e70 identifies
the English version of the Administration Guide and the file name db2d0f70
identifies the French version of the same book. The following letters are
used in the sixth position of the file name to indicate the language version:
Language Identifier
Brazilian Portuguese b
2. Late breaking information that could not be included in the DB2 books is
available in the Release Notes in HTML format and as an ASCII file. The
HTML version is available from the Information Center and on the
product CD-ROMs. To view the ASCII file:
v On UNIX-based platforms, see the Release.Notes file. This file is located
in the DB2DIR/Readme/%L directory, where %L represents the locale
name and DB2DIR represents:
– /usr/lpp/db2_07_01 on AIX
– /opt/IBMdb2/V7.1 on HP-UX, PTX, Solaris, and Silicon Graphics
IRIX
– /usr/IBMdb2/V7.1 on Linux.
v On other platforms, see the RELEASE.TXT file. This file is located in the
directory where the product is installed. On OS/2 platforms, you can
also double-click the IBM DB2 folder and then double-click the Release
Notes icon.
Printing the PDF Books
If you prefer to have printed copies of the books, you can print the PDF files
found on the DB2 publications CD-ROM. Using the Adobe Acrobat Reader,
you can print either the entire book or a specific range of pages. For the file
name of each book in the library, see Table 37 on page 538.
The PDF files are included on the DB2 publications CD-ROM with a file
extension of PDF. To access the PDF files:
1. Insert the DB2 publications CD-ROM. On UNIX-based platforms, mount
the DB2 publications CD-ROM. Refer to your Quick Beginnings book for
the mounting procedures.
2. Start the Acrobat Reader.
3. Open the desired PDF file from one of the following locations:
v On OS/2 and Windows platforms:
x:\doc\language directory, where x represents the CD-ROM drive and
language represent the two-character country code that represents your
language (for example, EN for English).
v On UNIX-based platforms:
/cdrom/doc/%L directory on the CD-ROM, where /cdrom represents the
mount point of the CD-ROM and %L represents the name of the desired
locale.
You can also copy the PDF files from the CD-ROM to a local or network drive
and read them from there.
Ordering the Printed Books
You can order the printed DB2 books either individually or as a set (in North
America only) by using a sold bill of forms (SBOF) number. To order books,
contact your IBM authorized dealer or marketing representative, or phone
1-800-879-2755 in the United States or 1-800-IBM-4YOU in Canada. You can
also order the books from the Publications Web page at
http://www.elink.ibmlink.ibm.com/pbl/pbl.
Two sets of books are available. SBOF-8935 provides reference and usage
information for the DB2 Warehouse Manager. SBOF-8931 provides reference
and usage information for all other DB2 Universal Database products and
features. The contents of each SBOF are listed in the following table:
Information Catalog
Manager Help
Satellite Administration
Center Help
You can view the online books or sample programs with any browser that
conforms to HTML Version 3.2 specifications.
You can also access the Information Center by using the toolbar and the Help
menu on the DB2 Windows platform.
The Information Center provides a find feature, so you can look for a specific
topic without browsing the lists.
For a full text search, follow the hypertext link in the Information Center to
the Search DB2 Online Information search form.
Refer to the release notes if you experience any other problems when
searching the HTML information.
Note: The Search function is not available in the Linux, PTX, and Silicon
Graphics IRIX environments.
Using DB2 Wizards
Wizards help you complete specific administration tasks by taking you
through each task one step at a time. Wizards are available through the
Control Center and the Client Configuration Assistant. The following table
lists the wizards and describes their purpose.
Note: The Create Database, Create Index, Configure Multisite Update, and
Performance Configuration wizards are available for the partitioned
database environment.
For information about how you can serve the DB2 Universal Database online
documentation files from a central machine, refer to the NetQuestion
Appendix in the Installation and Configuration Supplement.
Searching Information Online
To find information in the HTML files, use one of the following methods:
v Click Search in the top frame. Use the search form to find a specific topic.
This function is not available in the Linux, PTX, or Silicon Graphics IRIX
environments.
v Click Index in the top frame. Use the index to find a specific topic in the
book.
v Display the table of contents or index of the help or the HTML book, and
then use the find function of the Web browser to find a specific topic in the
book.
v Use the bookmark function of the Web browser to quickly return to a
specific topic.
v Use the search function of the Information Center to find specific topics. See
“Accessing Information with the Information Center” on page 551 for
details.
IBM may have patents or pending patent applications covering subject matter
described in this document. The furnishing of this document does not give
you any license to these patents. You can send license inquiries, in writing, to:
IBM Director of Licensing
IBM Corporation
North Castle Drive
Armonk, NY 10504-1785
U.S.A.
The following paragraph does not apply to the United Kingdom or any
other country where such provisions are inconsistent with local law:
INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS
PUBLICATION “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY
OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow
disclaimer of express or implied warranties in certain transactions, therefore,
this statement may not apply to you.
Any references in this information to non-IBM Web sites are provided for
convenience only and do not in any manner serve as an endorsement of those
Web sites. The materials at those Web sites are not part of the materials for
this IBM product and use of those Web sites is at your own risk.
IBM may use or distribute any of the information you supply in any way it
believes appropriate without incurring any obligation to you.
Licensees of this program who wish to have information about it for the
purpose of enabling: (i) the exchange of information between independently
created programs and other programs (including this one) and (ii) the mutual
use of the information which has been exchanged, should contact:
IBM Canada Limited
Office of the Lab Director
1150 Eglinton Ave. East
North York, Ontario
M3C 1H7
CANADA
The licensed program described in this information and all licensed material
available for it are provided by IBM under terms of the IBM Customer
Agreement, IBM International Program License Agreement, or any equivalent
agreement between us.
This information may contain examples of data and reports used in daily
business operations. To illustrate them as completely as possible, the examples
include the names of individuals, companies, brands, and products. All of
these names are fictitious and any similarity to the names and addresses used
by an actual business enterprise is entirely coincidental.
COPYRIGHT LICENSE:
Each copy or any portion of these sample programs or any derivative work
must include a copyright notice as follows:
© (your company name) (year). Portions of this code are derived from IBM
Corp. Sample Programs. © Copyright IBM Corp. _enter the year or years_. All
rights reserved.
ACF/VTAM IBM
AISPO IMS
AIX IMS/ESA
AIX/6000 LAN DistanceMVS
AIXwindows MVS/ESA
AnyNet MVS/XA
APPN Net.Data
AS/400 OS/2
BookManager OS/390
CICS OS/400
C Set++ PowerPC
C/370 QBIC
DATABASE 2 QMF
DataHub RACF
DataJoiner RISC System/6000
DataPropagator RS/6000
DataRefresher S/370
DB2 SP
DB2 Connect SQL/DS
DB2 Extenders SQL/400
DB2 OLAP Server System/370
DB2 Universal Database System/390
Distributed Relational SystemView
Database Architecture VisualAge
DRDA VM/ESA
eNetwork VSE/ESA
Extended Services VTAM
FFST WebExplorer
First Failure Support Technology WIN-OS/2
Java or all Java-based trademarks and logos, and Solaris are trademarks of
Sun Microsystems, Inc. in the United States, other countries, or both.
Tivoli and NetView are trademarks of Tivoli Systems Inc. in the United States,
other countries, or both.
L W
language identifier wizards
books 545 add database 552, 553
If you live in the U.S.A., then you can call one of the following numbers:
v 1-800-237-5511 for customer support
v 1-888-426-4343 to learn about available service options
Product Information
If you live in the U.S.A., then you can call one of the following numbers:
v 1-800-IBM-CALL (1-800-426-2255) or 1-800-3IBM-OS2 (1-800-342-6672) to
order products or get general information.
v 1-800-879-2755 to order publications.
http://www.ibm.com/software/data/
The DB2 World Wide Web pages provide current DB2 information
about news, product descriptions, education schedules, and more.
http://www.ibm.com/software/data/db2/library/
The DB2 Product and Service Technical Library provides access to
frequently asked questions, fixes, books, and up-to-date DB2 technical
information.
For information on how to contact IBM outside of the United States, refer to
Appendix A of the IBM Software Support Handbook. To access this document,
go to the following Web page: http://www.ibm.com/support/, and then
select the IBM Software Support Handbook link near the bottom of the page.
GC09-2979-00