SQL20000-20999
| SQL Message ID | Message | Explanation | User Response |
|---|---|---|---|
|
SQL20005N |
The statement failed because the maximum number of internal identifiers has been exceeded for the object type. Internal identifier limit: of limit. Object type: object-type. |
When one of several types of database object is created, declared, or altered, an internal identifier is created to uniquely identify that object. There is an upper limit on the number of unique identifier that can be created. This message is returned when the limit for internal identifiers for this type of object has been exceeded. |
Respond to this error by performing the following troubleshooting steps:
sqlcode: -20005 sqlstate: 54035 |
|
SQL20010N |
Mutation method method-ID is not allowed when the instance of the structured type is NULL. |
The method method-ID is a mutator method that is specified with an instance of a structured type that is null. Mutator methods cannot be processed on a null instance. In some cases, the method name is not available. The statement cannot be processed. |
Determine the null instance that is used with a mutator method. Use a constructor function to create a non-null instance of the structured type before using any mutator methods on the instance. To determine the method name associated with the method-ID,
use the following query:
sqlcode: -20010 sqlstate: 2202D |
|
SQL20011N |
Transform group group-name is already defined for a subtype or supertype of data type type-name. |
A transform group called group-name already exists for a type in the same hierarchy as type-name. It may be defined for a supertype or subtype of type-name. A transform group name can only be used once within a structured type hierarchy. The statement cannot be processed. |
Change the name of the transform group. sqlcode: -20011 sqlstate: 42739 |
|
SQL20012N |
Type type-name does not have any associated transform groups to drop. |
There are no transforms defined for type-name. There is nothing to drop. The statement did not drop any transform groups. |
Ensure the name of the type (including any required qualifiers) is correctly specified in the SQL statement and that the type exists. sqlcode: -20012 sqlstate: 42740 |
|
SQL20013N |
The object super-object-name is not valid as a supertype, supertable, or superview of object sub-object-name. |
If the statement resulting in the error is creating a type, then super-object-name is a type that cannot be a supertype of sub-object-name because it is not a user-defined structured type. If the statement resulting in the error is creating a table, then super-object-name is a table that cannot be a supertable of table sub-object-name because it is not defined as a typed table or the type of table super-object-name is not the direct supertype of the type used in defining table sub-object-name. If the statement resulting in the error is creating a view, then super-object-name is a view that cannot be a superview of view sub-object-name because it is not defined as a typed view or the type of view super-object-name is not the direct supertype of the type used in defining view sub-object-name. The statement cannot be processed. |
Specify a valid type, table, or view in the UNDER clause of the CREATE statement. sqlcode: -20013 sqlstate: 428DB |
|
SQL20014N |
The transform group group-name transform-type transform function for type type-name is not valid. Reason code = reason-code. |
The transform-type transform function in transform
group group-name is not valid. The reason is based
on the reason-code as follows.
The statement cannot be processed. |
sqlcode: -20014 sqlstate: 428DC |
|
SQL20015N |
A transform group group-name is not defined for data type type-name. |
A specified transform group group-name is not defined for the data type type-name. The data type type-name may have been explicitly specified in the statement or may be implicit based on the use of a structured type that requires the existence of the transform group for the data type. If group-name is empty, either the TRANSFORM GROUP bind option or the CURRENT DEFAULT TRANSFORM GROUP special register was not specified and therefore there was no transform for type-name. The statement cannot be processed. |
Define transform group transform-type for data type type-name using the CREATE TRANSFORM statement. If the error occurred when dropping the transform, no action is required because the transform group did not exist for the data type. If group-name is empty, specify the TRANSFORM GROUP bind option on the CURRENT DEFAULT TRANSFORM GROUP special register. sqlcode: -20015 sqlstate: 42741 |
|
SQL20016N |
The value of the inline length associated with type or column type-or-column-name is too small. |
For the definition of structured type type-or-column-name, it has an INLINE LENGTH value specified that is smaller than the size returned by the constructor function (32 + 10 * number_of_attributes) for the type and is less than 292. For the altering of column type-or-column-name, the INLINE LENGTH specified is smaller than the current inline length. The statement cannot be processed. |
Specify an INLINE LENGTH value that is large enough. For a structured type, that is at least the size returned by the constructor function for the type or is at least 292. For a column, it must be larger than the current inline length. If this error occurs when altering the type (or some supertype of this type) to add an attribute, either the attribute cannot be added or the type must be dropped and re-created with a larger INLINE LENGTH value. sqlcode: -20016 sqlstate: 429B2 |
|
SQL20017N |
Addition of this subtype exceeds the maximum number of levels of a type hierarchy. |
The maximum number of levels in a type hierarchy is 99. Adding this type would exceed the maximum. The statement cannot be processed. |
Do not add any more subtypes to this type hierarchy. sqlcode: -20017 sqlstate: 54045 |
|
SQL20018N |
Row function function-name must return at most one row. |
The function is a defined to return a single row. The result of the processing the function is more than one row. |
Ensure that the function is defined in such a way that at most one row is returned. sqlcode: -20018 sqlstate: 21505 |
|
SQL20019N |
The result type returned from the function body cannot be assigned to the data type defined in the RETURNS clause. |
The data type of each column returned by the function body must be assignable to the corresponding column specified in the RETURNS clause. If the function is a scalar function, there is only one column. |
Change the RETURNS type or the type returned from the function body so that the data types of corresponding columns are assignable. sqlcode: -20019 sqlstate: 42866 |
|
SQL20020N |
Operation operation-type is not valid for typed tables. |
The operation identified by operation-type cannot be performed on a typed table. The statement cannot be processed. |
If it is an ALTER statement, remove the ADD COLUMN clause, ADD PERIOD clause, or SET DATATYPE clause. Columns can only be added by re-defining the table with a structured type that includes the new column as an attribute. Similarly, the data type of a column can only be changed by re-defining the table with a type that includes the column with a different data type. If it is a CREATE TABLE statement, remove the DISTRIBUTE BY RANDOM clause. Typed tables are not allowed to be created as random distribution tables. sqlcode: -20020 sqlstate: 428DH |
|
SQL20021N |
Inherited column or attribute name cannot be changed or dropped. |
The value of name identifies either a column name or
an attribute name (depending on the statement context) that is
inherited from a typed table, typed view,
or structured type above it in the table, view,
or type hierarchy.
The statement cannot be processed. |
The options for a column may only be set or altered for the table or view in the typed table hierarchy or typed view hierarchy where the column is introduced. An attribute can only be dropped from the data type in the type hierarchy where the attribute was introduced. sqlcode: -20021 sqlstate: 428DJ |
|
SQL20022N |
The scope for the reference column column-name is already defined. |
The scope for the reference column column-name cannot be added because it is already defined. The statement cannot be processed. |
Remove the ADD SCOPE clause from the ALTER TABLE statement. sqlcode: -20022 sqlstate: 428DK |
|
SQL20023N |
Parameter parm-number of the external or sourced function has a scope defined. |
A reference type parameter should not have a scope defined when used with external or sourced user defined functions. The statement cannot be processed. |
Remove the SCOPE specification from the definition of the parameter. sqlcode: -20023 sqlstate: 428DL |
|
SQL20024N |
The scope table or view target-name is not defined with structured type type-name. |
The scope table or view target-name is not valid for use as
the scope of this reference because it is:
The statement cannot be processed. |
Specify the scope of the reference using a typed table or typed view with the same type as the target type of the REF type. sqlcode: -20024 sqlstate: 428DM |
|
SQL20025N |
SCOPE is not specified in the RETURNS clause of an external function or is specified in the RETURNS clause of a sourced function. |
There are two possible causes:
The statement cannot be processed. |
When defining an external function with a reference type as a returns type, ensure that the SCOPE clause is specified. When defining SOURCED function with a reference type as a returns type, ensure that the SCOPE clause is not specified. sqlcode: -20025 sqlstate: 428DN |
|
SQL20026N |
The type type-name is not a structured type or is not an instantiable structured type. |
The statement requires a structured type that can be instantiated.
The type type-name is either:
The statement cannot be processed. |
Verify that the correct type name is used in the statement. sqlcode: -20026 sqlstate: 428DP |
|
SQL20027N |
The subtable or subview sub-object-name was not created because subtable or subview object-name with type type-name already exists. |
Within a typed table or view hierarchy, only one subtable or subview may exist of a particular subtype. The table or view sub-object-name cannot be created since there is already a table or view of type type-name defined. The table or view that already exists is object-name. The statement cannot be processed. |
Verify that the subtable or subview is being created with the correct type and that the subtable is being created under the correct supertable or the subview is being created under the correct superview. sqlcode: -20027 sqlstate: 42742 |
|
SQL20028N |
The table or view table-name cannot have a different schema name from the other tables or views in the same hierarchy. |
All tables in a typed table hierarchy must have the same schema name and all views in a typed view hierarchy must have the same schema name. The statement cannot be processed. |
Verify that the schema name of the table or view is correct. If a hierarchy name is specified, verify that its schema name matches the schema name of the root table or view. If a subtable is being created, verify that it is being created under the correct supertable. If a subview is being created, verify that it is being created under the correct superview. sqlcode: -20028 sqlstate: 428DQ |
|
SQL20029N |
operation cannot be applied to a subtable or subview. |
The operation operation was applied to a table or view that is not the root of a table hierarchy or view hierarchy. The subtable or subview cannot be a random distribution table. The statement cannot be processed. |
Specify the root table of the table hierarchy or root view of the view hierarchy in the operation. If the operation was DISTRIBUTE BY RANDOM, execute the CREATE TABLE statement again without the DISTRIBUTE BY RANDOM clause. sqlcode: -20029 sqlstate: 428DR |
|
SQL20030N |
Attributes of a structured type type-name cannot be added or dropped when a typed table, typed view, or index extension object-name is dependent on the type. |
The attributes of a structured type cannot be added or dropped if a typed table or typed view of the structured type or any of its subtypes currently exists. Attributes of a structured type also cannot be added or dropped when a column exists in the table that directly or indirectly uses type-name. Also, attributes of a structured type cannot be added or dropped when the type type-name or one of its subtypes is used in an index extension. The table, view, or index extension object-name is one table, view, or index extension that is dependent on the structured type type-name. There may be other tables, views, or index extensions that are dependent on the type or one of its proper subtypes. The statement cannot be processed. |
Verify that the right type is being altered or drop any tables, views, and index extensions that are dependent on the structured type type-name. sqlcode: -20030 sqlstate: 55043 |
|
SQL20031N |
Object may not be defined on a subtable. |
Primary key and unique constraints can only be defined on the root table of a typed table hierarchy. Similarly, unique indexes can only be defined on the root table of a typed table hierarchy. The statement cannot be processed. |
Unique indexes, Primary key or unique constraints can only be defined on the root table of a table hierarchy. sqlcode: -20031 sqlstate: 429B3 |
|
SQL20032N |
Index on the specified columns cannot be defined on subtable table-name. |
The columns specified for the index were all introduced at a higher level in the typed table hierarchy than subtable table-name. Therefore, the index cannot be created on this subtable. The statement cannot be processed. |
Determine the table in the table hierarchy where all of the columns are included for the first time. Use this as the table name when creating the index. sqlcode: -20032 sqlstate: 428DS |
|
SQL20033N |
An expression including partial-expression does not include a valid scoped reference. |
The expression that includes partial-expression requires an operand that is reference type with a scope defined. If the expression includes the DEREF function, the argument of the function must be a reference type with a scope defined. For the dereference operator (->), the left operand needs to be a reference type with a scope defined. The statement cannot be processed. |
Correct the SQL statement syntax so the operand or argument is a reference type with a scope defined. sqlcode: -20033 sqlstate: 428DT |
|
SQL20034N |
The data type list-type-name is not included in a structured data type hierarchy that includes the data type left-type-name of the left operand of the TYPE predicate. |
All the data types listed in the TYPE predicate must be included in a data type hierarchy that includes the data type of the left operand of the TYPE predicate. The data type left-type-name is not a structured data type (not part of any type hierarchy) or the data type list-type-name is not included in the data type hierarchy that includes left-type-name. The statement cannot be processed. |
Ensure that the data type of the expression and all listed data types in the TYPE predicate are structured data types within the same data type hierarchy. If left-type-name is SYSIBM.REFERENCE, use DEREF to make the result data type of the expression a structured data type. sqlcode: -20034 sqlstate: 428DU |
|
SQL20035N |
Invalid left operand of a dereference operator. Path expression starts with expression-string. |
The left operand of the dereference operator in a path expression
is not valid.
Possible causes are:
|
Correct the left operand of the dereference operator for the path expression that starts with expression-string. sqlcode: -20035 sqlstate: 428DV |
|
SQL20036N |
The object identifier column column-name cannot be referenced using the dereference operator. |
The dereference operator is used with column-name as the right operand. This column is the object identifier column of the target table of the dereference and is not valid for this operator. The statement cannot be processed. |
Correct the name of the column in the dereference operation. sqlcode: -20036 sqlstate: 428DW |
|
SQL20037N |
Object identifier column is required to create the root table or root view object-name of a typed table or view hierarchy. |
When creating the root table of a typed table hierarchy, an object identifier (OID) column must be defined (using the REF IS clause) on the CREATE TABLE statement. When creating the root view of a typed view hierarchy, an object identifier (OID) column must be defined (using the REF IS clause) on the CREATE VIEW statement. The statement cannot be processed. |
Add the required OID column (REF IS clause) to the CREATE TABLE or CREATE VIEW statement. sqlcode: -20037 sqlstate: 428DX |
|
SQL20038N |
The statement could not be processed because the statement contains the following incompatible clauses or elements: keywords1 and keywords2. |
The keywords2 clause in the statement cannot be specified with the keywords1 clause. If CODEUNITS32 is one of the incompatible elements, note that the string unit might be set implicitly with the string_units configuration parameter. |
sqlcode: -20038 sqlstate: 42613 |
|
SQL20039N |
The definition of index index-name does not match the definition of index extension index-ext-name. |
The index definition and the index extension definition do not
match. The following lists the possibilities for where the definitions
do not match.
The statement cannot be processed. |
Change the index definition so that the index extension matches. sqlcode: -20039 sqlstate: 428E0 |
|
SQL20040N |
Number or type of the result of the range-producing table function range-function-name, is inconsistent with that of key transformation table function transform-function-name for index extension index-ext-name. |
The range-producing function must:
More precisely, let a 1:t 1,... a n:t n be the function result columns and data types of the key transformation function. The function result columns of the range-producing function must be b 1:t 1,...,b m:t m,c 1:t 1,...,c m:t m, where m <= n and the "b" columns are the start key columns and the "c" columns are the stop key columns. The statement cannot be processed. |
Specify a range-producing table function that is consistent with the key transformation table function. sqlcode: -20040 sqlstate: 428E1 |
|
SQL20041N |
Number or the type of target key parameters does not match with the number or type of key transform function function-name for index extension index-ext-name. |
The number of target key parameters has to match with the number of results returned by the key transform function. In addition, the type of the target key parameters must exactly match the corresponding function result types. The statement cannot be processed. |
Specify the correct number and type of parameters as the target key parameters. sqlcode: -20041 sqlstate: 428E2 |
|
SQL20042N |
The maximum allowable parm-type parameters is exceeded in index extension index-ext-name. The maximum is max-value. |
Too many parameters were specified. If parm-typeis INDEX EXTENSION, then up to max-value instance parameters may be specified. If parm-typeis INDEX KEYS, then up to max-value key source parameters may be specified. The statement cannot be processed. |
Specify no more than the maximum number of parameters. sqlcode: -20042 sqlstate: 54046 |
|
SQL20043N |
Argument for routine routine-name is not valid. Reason code = reason-code. |
The routine routine-name could be the
transformation function, the range-producing function, or a
routine (function or method) referenced in the FILTER
USING clause.
The reason code indicates why an argument is not valid:
The statement cannot be processed. |
Specify a valid argument for the function. sqlcode: -20043 sqlstate: 428E3 |
|
SQL20044N |
The routine routine-name or the CASE expression is not valid in a CREATE INDEX EXTENSION or CREATE FUNCTION statement. Reason code = reason-code. |
A routine (function or method) routine-name
used in the CREATE INDEX EXTENSION or CREATE FUNCTION statement is not
valid where it is used. If routine-name is empty,
then the CASE expression used for filtering is not valid.
The reason code indicates the reason.
The statement cannot be processed. |
If routine-name is not empty, specify a routine that conforms to the rules for a function or method specified in the specific clause of the CREATE INDEX EXTENSION or CREATE FUNCTION statement. Otherwise, specify a CASE expression that conforms to the rules for a CASE expression in the FILTER USING clause. sqlcode: -20044 sqlstate: 428E4 |
|
SQL20045N |
The data type of instance parameter parameter-name is invalid in index extension index-ext-name. |
An instance parameter must be one of the following data types: VARCHAR, VARGRAPHIC, INTEGER, DECIMAL, or DOUBLE. The statement cannot be processed. |
Specify a valid data type for the instance parameter parameter-name. sqlcode: -20045 sqlstate: 429B5 |
|
SQL20046N |
SELECTIVITY clause following predicate-string can only be specified for a valid user-defined predicate. |
The SELECTIVITY clause is specified with a predicate that does not include a valid user-defined function. A valid user-defined function includes a PREDICATES clause with a WHEN clause that matches the predicate. The SELECTIVITY clause cannot be specified except with a user-defined predicate. The statement cannot be processed. |
Remove the SELECTIVITY clause following the predicate. sqlcode: -20046 sqlstate: 428E5 |
|
SQL20047N |
The search method method-name is not found in the index extension index-ext-name. |
The method method-name referenced in an exploitation rule of the user-defined predicate has to match one of the search methods specified in the index extension index-ext-name. The statement cannot be processed. |
Specify a method defined in the index extension. sqlcode: -20047 sqlstate: 42743 |
|
SQL20048N |
The search argument of method method-name does not match the one in the corresponding search method in the index extension index-ext-name. |
The search argument provided for method method-name does not match the argument of the corresponding search method in the index extension index-ext-name. Either the number of arguments or the type of the arguments do not match the defined number or type of the parameters. The statement cannot be processed. |
Specify a search argument that matches the parameters defined in the index extension. sqlcode: -20048 sqlstate: 428E6 |
|
SQL20049N |
Type of an operand following the comparison operator in the AS PREDICATE WHEN clause does not exactly match the RETURNS type. |
The definition of the user-defined predicate is not valid. In the AS PREDICATE WHEN clause, the type of the operand following the the comparison operator is not an exact match with the RETURNS type of the function. The statement cannot be processed. |
Specify an the operand with the correct data type. sqlcode: -20049 sqlstate: 428E7 |
|
SQL20050N |
The search target or search argument parameter-name does not match a name in the function being created. |
Each search target in an index exploitation rule has to match some parameter name of the function that is being created. Each search argument in an index exploitation rule must match either an expression name in the EXPRESSION AS clause or a parameter name of the function being created. Parameter names must be specified in the parameter list for the function. The statement cannot be processed. |
Specify only valid names of the function in the search target or search argument. sqlcode: -20050 sqlstate: 428E8 |
|
SQL20051N |
The argument parameter-name cannot appear as both a search target and a search argument in the same exploitation rule. |
In the exploitation clause, a function parameter cannot be specified as an argument following KEY and as an argument of the method specified following the USE keyword. The statement cannot be processed. |
Specify a parameter name of the function in no more than on of the search target or the search argument. sqlcode: -20051 sqlstate: 428E9 |
|
SQL20052N |
Column column-name is an object identifier column which cannot be updated. |
The UPDATE statement includes setting a column that is an object identifier (OID) column. An OID column cannot be updated. The statement cannot be processed. |
Remove the SET of column-name from the UPDATE statement. sqlcode: -20052 sqlstate: 428DZ |
|
SQL20053N |
Fullselect in typed view view-name is not valid. Reason code = reason-code. |
The fullselect specified in the definition of typed view
view-name does not conform to the rules for the fullselect
of a typed view. Possible reason codes follow.
|
Change the fullselect of the view definition based on the
reason-code.
sqlcode: -20053 sqlstate: 428EA |
|
SQL20054N |
The operation was not performed because the table is in an invalid state for the operation. Table name: table-name. Reason code: reason-code. |
The table is in a state that does not allow the operation. The reason code indicates the state of the table that prevents the operation.
|
Respond to this error according to the reason code:
sqlcode: -20054 sqlstate: 55019 |
|
SQL20055N |
A result column data type in the select list is not compatible with the defined data type for column column-name. |
The data type of the select list expression corresponding to column-name is not assignable to the data type for the attribute of the structured type. |
Examine the current definition for the table and the associated structured type. Ensure the select list expression data type for the specified column is data type that is assignable to the attribute of the structure type. sqlcode: -20055 sqlstate: 42854 |
|
SQL20056N |
Processing on DB2 Data Links Manager name encountered an error. Reason code = reason-code. |
The processing on the DB2 Data Links Manager for the statement
encountered an error as indicated by the following reason codes.
The statement cannot be processed. |
The action is based on the reason code as follows.
sqlcode: -20056 sqlstate: 58004 |
|
SQL20057N |
Column column-name in subview view-name cannot be defined as read only when the corresponding column is updatable in the superview. |
The column identified by column-name in the subview view-name is defined (implicitly) as read only. The superview of view-name includes the corresponding column that is updatable. A column cannot be changed from updatable to read only in a typed view hierarchy. The statement cannot be processed. |
Change the CREATE VIEW statement so that the column of the subview view-name is updatable or drop the superview(s) and recreate them using the READ ONLY clause to force the column to be read only. sqlcode: -20057 sqlstate: 428EB |
|
SQL20058N |
The statement failed because the fullselect specified for the materialized query table table-name violates a restriction. Reason code = reason-code. |
Restrictions apply to the contents of a fullselect used in the definition of a materialized query table. Some restrictions are based on the materialized query table options, such as REFRESH DEFERRED or REFRESH IMMEDIATE. Other restrictions are based on whether or not the table is replicated. The fullselect in the statement that returned this condition violates at least one of these restrictions. If this message is returned during the creation of a staging table, the error applies to the query used in the definition of the materialized query table with which the staging table is associated. The reason code indicate which restriction was violated:
|
Respond according to the reason code:
sqlcode: -20058 sqlstate: 428EC |
|
SQL20059W |
The materialized query table table-name may not be used to optimize the processing of queries. |
The materialized query table is defined with REFRESH DEFERRED and a fullselect that is currently not supported by the database manager when optimizing the processing of queries. The rules are based on the materialized query table options (REFRESH DEFERRED or REFRESH IMMEDIATE). The fullselect in the CREATE TABLE statement that returned this condition violates at least one of the rules as described in the SQL Reference. The materialized query table is successfully created but will only be routed to for queries that reference the materialized query table directly. |
No action is required. However, if the materialized query was intended to optimize the processing of queries that do not reference the materialized query table directly, then this can be achieved as follows. Create a view using the fullselect specified for table-name and then re-create the materialized query table table-name using a fullselect that simply does a "SELECT *" from the view. This way, the materialized query table can be routed to by queries that reference the view. sqlcode: +20059 sqlstate: 01633 |
|
SQL20060N |
The key transform table function used by the index extension of index index-id of table table-id in tbspace-id generated duplicate rows. |
The key transform table function specified by the GENERATE USING clause of the index extension used by index index-id generated duplicate rows. For a given invocation of the key transform table function, no duplicate rows should be produced. This error is occurred when inserting or updating the key value for the index index-id of table table-id in table space tbspace-id. The statement cannot be processed. |
The code for the key transform table function used by the index extension of index index-id must be modified to avoid the creation of duplicate rows. To determine the index name, use the following query:
sqlcode: -20060 sqlstate: 22526 |
|
SQL20062N |
Transform function transform-type in transform group group-name for type type-name cannot be used for a function or method. |
The transform function defined in the transform group group-name for type type-name cannot be used for a function or method because the transform function is not written in SQL (defined with LANGUAGE SQL). The transform group cannot be used for this function or method. The statement cannot be processed. |
Specify a transform group for type type-name that has the transform functions defined with LANGUAGE SQL. sqlcode: -20062 sqlstate: 428EL |
|
SQL20063N |
TRANSFORM GROUP clause must be specified for type type-name. |
The function or method includes a parameter or returns data type of type-name that does not have a transform group specified. The statement cannot be processed. |
Specify a TRANSFORM GROUP clause with a transform group name that is defined for type-name. sqlcode: -20063 sqlstate: 428EM |
|
SQL20064N |
Transform group group-name does not support any data type specified as a parameter or returned data type. |
The transform group group-name specified in the TRANSFORM GROUP clause is not defined for any data type that is included in the parameter list or the RETURNS clause of a function or method. The statement cannot be processed. |
Remove the transform group from the function or method definition. sqlcode: -20064 sqlstate: 428EN |
|
SQL20065N |
Transform group group-name for data type type-name cannot be used to transform a structured type for use with a client application. |
The transform group group-name for data type
type-name defines a transform function that cannot
be used when performing transforms for client applications. The possible
reasons for this are based on the definition of the transform function
that is not supported for client applications. The unsupported transform
function may be:
The statement cannot be processed. |
For static embedded SQL, specify a different transform group using the TRANSFORM GROUP bind option. For dynamic SQL, specify a different transform group using the SET DEFAULT TRANSFORM GROUP statement. sqlcode: -20065 |
|
SQL20066N |
The transform-type transform function is not defined in the transform group group-name for data type type-name. |
The transform-type transform function of transform group group-name for data type type-name is required for a transform group used in a function or method definition. The statement cannot be processed. |
If creating a function or method, specify a different transform group in the function or method definition. If referencing a structured type in a dynamic SQL statement, specify a different transform group for the CURRENT DEFAULT TRANSFORM GROUP special register. Alternatively, add a transform-type transform function to the transform group group-name for data type type-name. sqlcode: -20066 sqlstate: 42744 |
|
SQL20067N |
The transform-type transform function is defined more than once in the transform group group-name for data type type-name. |
A TO SQL or FROM SQL transform function can only be specified once in a transform group. The transform group group-name for data type type-name has at least two FROM SQL or TO SQL (or both) transform functions defined. The statement cannot be processed. |
Delete the TO SQL or FROM SQL definitions from group-name in the transform definition so that there is only one of each. sqlcode: -20067 sqlstate: 42628 |
|
SQL20068N |
The structured type type-name may not be defined so that one of its attribute types directly or indirectly uses itself. The attribute attribute-name causes the direct or indirect use. |
Direct use: Type A is said to directly use type B
if one of the following is true:
Indirect use: Type A is said to indirectly use
type B if the following is true:
You cannot define a type so that one of its attribute types directly or indirectly uses itself. The type for attribute attribute-name is the cause of the direct or indirect use. |
Evaluate the type and remove the attribute type that causes the direct or indirect use. sqlcode: -20068 sqlstate: 428EP |
|
SQL20069N |
The RETURNS type of the routine-type routine-name is not the same as the subject type. |
The method method-name specifies SELF AS RESULT. The RETURNS data type of the method must be the same as the subject data type of the method. |
Change the RETURNS type of the method method-name to match the subject type. sqlcode: -20069 sqlstate: 428EQ |
|
SQL20075N |
The index or index extension index-name cannot be created or altered because the length of column-name is more than 255 bytes. |
The index could not be created or altered because the key column length is greater than 255.
The index extension could not be created because a column returned by the GENERATE KEY function is greater than 255 bytes.
The statement could not be processed. The specified index or index extension was not created, or the table or nickname could not be altered. |
If creating an index, eliminate the column from the index definition. If altering a table, reduce the new column length to the permitted maximum. If creating an index extension, specify a different GENERATE KEY function, or redefine the function to eliminate the column. sqlcode: -20075 sqlstate: 54008 |
|
SQL20076N |
The instance for the database is not enabled for the specified action or operation. Reason code = reason-code. |
An error has been detected at the instance level. The requested operation cannot be completed because a specified functional area was not installed or because a specified functional area was not enabled to the instance. The following is the list of reason codes and associated functional areas you can enable at the instance level:
|
Enable the instance for the requested action or operation. First, install the specified functional area if it is missing. Then, enable the specified functional area. Enablement steps vary by reason-code:
sqlcode: -20076 sqlstate: 0A502 |
|
SQL20077N |
Cannot construct structured type objects that have Datalink type attributes. |
An attempt was made to invoke the constructor of a structured type which has a Datalink and/or a Reference type attribute. This functionality is currently not supported. In Version 6.1 or earlier, this error may also be issued for a structured type object with a Reference type attribute. The statement cannot be processed. |
The error can be corrected by doing one of the following:
sqlcode: -20077 sqlstate: 428ED |
|
SQL20078N |
Hierarchy object object-name of type object-type can not be processed using operation operation-type. |
The operation operation-type was attempted using a hierarchy object named object-name of type object-type. This operation does not support processing of a hierarchy object. The statement could not be processed. |
Verify that the correct object name was used. For objects types TABLE or VIEW, the object must be the name of a subtable in the table or view hierarchy. In some cases, the object must specifically name the root table. For objects of type index, the name must be a name of an index created on a subtable. sqlcode: -20078 sqlstate: 42858 |
|
SQL20080N |
Method specification for method-name cannot be dropped because a method body exists. |
The method specification method-name still has an existing method body that must be dropped before the method specification can be dropped. The statement cannot be processed. |
Use the DROP METHOD statement with the same method specification to drop the method body and then issue the ALTER TYPE statement again to drop the method specification. sqlcode: -20080 sqlstate: 428ER |
|
SQL20081N |
The method body cannot be defined for a LANGUAGE language-type method specification method-name. |
The method specificationmethod-name is defined with LANGUAGE language-type. If the LANGUAGE is SQL, the method body must be an SQL control statement. For other languages, the EXTERNAL clause must be specified. The statement cannot be processed. |
Change the method body to match the LANGUAGE specified in the method specification. sqlcode: -20081 sqlstate: 428ES |
|
SQL20082N |
The dynamic type expression-type-id of the expression is not a subtype of the target data type target-type-id in a TREAT specification. |
The dynamic data type of the result of the expression specified in the TREAT specification is expression-type-id. The specified target data type target-type-id is a proper subtype of expression-type-id which is not allowed. The statement cannot be processed. |
Change the target-type-id of the TREAT specification to a supertype of expression-type-id or change the expression so that the dynamic data type of the result is a subtype of target-type-id. To determine the data type names for expression-type-id
and target-type-id, use the following query:
sqlcode: -20082 sqlstate: 0D000 |
|
SQL20083N |
The data type of the value returned by routine-type routine-id does not match the data type specified as RESULT. |
The method routine-id specifies SELF AS RESULT and therefore requires that the data type of the value returned must be the same as the subject data type used to invoke the method. The RETURN statement in either the SQL method body or in the TO SQL transform function for the type of an external method resulted in the incorrect data type. The statement cannot be processed. |
Change the RETURN statement of the method or transform function to ensure that the data type of the returned value is always the subject type used to invoke the method. To determine the routine name associated with the
routine-id, use the following query:
sqlcode: -20083 sqlstate: 2200G |
|
SQL20084N |
The routine-type routine-name would define an overriding relationship with an existing method. |
A method MT, with subject type T, is defined to override
another method MS, with subject type S, if all of the following
conditions are true:
A function and a method may not be in an overriding relationship. This means that if the function were a method with its first parameter as subject S, it must not override another method of any supertype of S and it must not be overridden by another method of any subtype of S. Furthermore, overriding relationships are not supported for:
The statement cannot be processed. |
Change the routine that is being defined to use a different routine name than routine-name or change the parameters of the routine. sqlcode: -20084 sqlstate: 42745 |
|
SQL20085N |
A routine defined with PARAMETER STYLE JAVA cannot have structured type type-name as a parameter type or as the returns type. |
A routine is defined with PARAMETER STYLE JAVA and one of the parameter types or a returns type is defined using the structured type type-name. This is not supported by this version of DB2. The statement cannot be processed. |
Change to a different parameter style for the routine or remove the structured type from the routine definition. sqlcode: -20085 sqlstate: 429B8 |
|
SQL20086N |
Length of the structured type value for a column exceeds the system limit. |
The value for a structured type column exceeds 1 gigabyte in overall size, including descriptor data for the instance. The column could be one that is being inserted or updated directly or it may be a column that is generated. The statement cannot be processed. |
Reduce the size of the structured type value that is being assigned to the column. sqlcode: -20086 sqlstate: 54049 |
|
SQL20087N |
DEFAULT or NULL cannot be used in an attribute assignment. |
The UPDATE statement is using an attribute assignment to set the value of an attribute in a structured type column. This form of assignment statement does not allow the use of the keyword DEFAULT or the keyword NULL as the right hand side of the assignment. The statement cannot be processed. |
Specify an expression for the right hand side of the attribute assignment or change the assignment so it is not using the attribute assignment syntax. sqlcode: -20087 sqlstate: 428B9 |
|
SQL20089N |
A method name cannot be the same as a structured type name within the same type hierarchy. |
A specified method name is the same as the structured type which is defined for one of the supertypes or subtypes of the structured type. The statement cannot be processed. |
Specify a different name for the method. sqlcode: -20089 sqlstate: 42746 |
|
SQL20090W |
The use of the structured type having attribute attribute-name of type DATALINK is effectively limited to the type of a typed table or type view. |
The attribute attribute-name is defined with a type of DATALINK or a distinct type based on a DATALINK. A structured type that includes such an attribute can only be used as the type of a table or view. If used as the type of a column of a table or view it can only be assigned the null value. The statement continued processing. |
Consider the intended use of the structured type. If the type will be used as a column data type, then remove the attribute attribute-name from the structured type or use a data type other than DATALINK for the attribute. sqlcode: +20090 sqlstate: 01641 |
|
SQL20092N |
The statement failed because a table or view was specified in the LIKE clause and the object cannot be used in this context. |
The LIKE clause for a CREATE GLOBAL TEMPORARY TABLE statement or DECLARE GLOBAL TEMPORARY TABLE statement specified the name of a table that has a column defined as IMPLICITLY HIDDEN. Since the implicitly hidden attribute is not supported for created temporary tables and declared temporary tables, the table cannot be specified in the LIKE clause. |
Specify the name of a table that is not defined with an implicitly hidden column. In order to specify a created temporary table or declared temporary table that includes columns that are defined as IMPLICITLY HIDDEN, use the AS (fullselect) option to explicitly specify those columns in the table. As a result, the IMPLICITLY HIDDEN attribute is not copied to the column being defined. sqlcode: -20092 sqlstate: 560AE |
|
SQL20093N |
The table table-name cannot be converted to or from a materialized query table. Reason code = reason-code. |
The ALTER TABLE statement is being used to change a table from a materialized query table to DEFINITION ONLY or to convert a regular table to a materialized query table. The ALTER TABLE statement failed as indicated by the following reason codes.
|
Respond according to the reason code:
sqlcode: -20093 sqlstate: 428EW |
|
SQL20094N |
The statement failed because the column column-name is a generated column or is defined with the data type DB2SECURITYLABEL and cannot be used in the BEFORE trigger trigger-name. |
The indicated column cannot be named in the column name list of a BEFORE UPDATE trigger or set in a BEFORE trigger because it is one of the following:
The statement cannot be processed. |
Remove the column from either the column name list or the SET assignment statement that sets the new transition variable of a generated column and resubmit the statement. sqlcode: -20094 sqlstate: 42989 |
|
SQL20102N |
The CREATE or ALTER statement for the routine routine-name specified the option-name option which is not allowed for the routine. |
The option option-name was specified when creating or altering the routine routine-name. The option does not apply to the routine because of other characteristics of the routine. For sourced procedures, only ALTER PARAMETER can be specified, and ALTER PARAMETER can only be specified for sourced procedures. |
For an ALTER statement, ensure that the correct routine is being specified. Otherwise, remove the failing option and reissue the statement. sqlcode: -20102 sqlstate: 42849 |
|
SQL20108N |
A result set contains an unsupported data type in position position-number for the cursor cursor-name opened by the stored procedure procedure-name. |
The stored procedure named by procedure-name cannot return at least one of its query result sets named by cursor-name because at least one of the columns, column position-number contains a data type which is not supported by either the DRDA Application Requestor (client) or the DRDA Application Server (server). As such the call to the stored procedure fails. |
Modify the OPEN statement (and subsequent FETCH statements) for cursor cursor-name in the stored procedure procedure-name on the server to not select the unsupported data type in column position-number. The client application which invoked the stored procedure may need to be modified to reflect the change in the stored procedure. sqlcode: -20108 sqlstate: 56084 |
|
SQL20109W |
Error in DB2 debugger support. Reason code: reason-code. |
The debugger support had an error situation which will disable debugging, but not affect normal execution. The following is a list of reason codes:
|
sqlcode: +20109 sqlstate: 01637 |
|
SQL20111N |
A SAVEPOINT, RELEASE SAVEPOINT, or ROLLBACK TO SAVEPOINT statement cannot be issued in this context. Reason code = reason-code. |
The statement cannot be processed because it violates a restriction as indicated by the following reason code:
The statement cannot be processed. |
Remove the SAVEPOINT, RELEASE SAVEPOINT, or ROLLBACK TO SAVEPOINT statement in the trigger or global transaction. sqlcode: -20111 sqlstate: 3B503 |
|
SQL20112N |
A savepoint cannot be set because a savepoint already exists and nested savepoints are not supported. |
A savepoint is a named entity that represents the state of data and schemas at a particular point in time within a unit of work. You can use savepoints in several ways. For example, you can roll a database back to a savepoint. You can set a savepoint within a transaction using the SAVEPOINT statement. In some environments, you can also set multiple, or nested, savepoints within the same transaction. This message can be returned when an error occurred in a SAVEPOINT statement or atomic compound SQL statement for the following reasons:
|
Respond to this error in one of the following ways:
sqlcode: -20112 sqlstate: 3B002 |
|
SQL20113N |
Null cannot be returned from method method-id defined with SELF AS RESULT. |
The method with method identifier method-id is defined with SELF AS RESULT. The invocation of the method used a non-null instance of a structured type so the method cannot return a null instance. |
Change the method implementation to ensure that a null value
is not returned as the return value for the method. One possibility
is to set all the attributes of the returned structured type
to null value. To determine the name of the method that failed,
use the following query:
sqlcode: -20113 sqlstate: 22004 |
|
SQL20114W |
Column column-name in table table-name is not long enough for the defined length of the USER default value. |
The column column-name is defined with a length that is less than 128 bytes. The clause DEFAULT USER has been specified for this column. Since the USER special register is defined as VARCHAR(128), any attempt to assign the default value for table-name by a user with a user ID longer than the column length results in an error. A user with a user ID longer than the column length would never be able to insert or update this column to the default value. |
If your system standards would not allow a user ID to exceed the length of the column, then this warning may be ignored. To prevent this warning from occurring, the length of the column must be at least 128 bytes. You can change the column length by dropping and creating the table again, or, if the data type is VARCHAR, by using ALTER TABLE to increase the length of the column. sqlcode: +20114 sqlstate: 01642 |
|
SQL20115N |
The routine-type routine-name cannot be used as a transform-type transform function in transform group group-name. |
If routine-type is FUNCTION, then the function defined by routine-name cannot be used as a transform function because it is a built-in function. If routine-type is METHOD, then the method defined by routine-name cannot be used as a transform function because it is a method. The statement cannot be processed. |
Specify a different function for the transform-type transform function of transform group group-name. sqlcode: -20115 sqlstate: 428EX |
|
SQL20116N |
The data type of the search target parameter-name does not match that of the source key specified in the index extension index-extension-name. |
If the search target is of a built-in or distinct data type, its type must exactly match that of the source key specified in the index extension. If the data type of the search target is a structured type, it must be in the same structured type hierarchy as the data type of the source key in the index extension. The statement cannot be processed. |
Specify a search target with a data type that matches that of the source key in the index extension. sqlcode: -20116 sqlstate: 428EY |
|
SQL20117N |
A window specification for an OLAP function is not valid. Reason code = reason-code. |
The window specification (OVER clause) of an OLAP function invocation
is not correctly specified.
The incorrect specification is indicated by the reason-code.
The statement cannot be processed. |
Change the window specification to correct the invalid specification indicated
by the reason-code.
sqlcode: -20117 sqlstate: 428EZ |
|
SQL20118N |
Structured type type-name has more than the maximum number of allowable attributes. The maximum is max-value. |
The maximum number of attributes, including inherited attributes, allowed for each structured type has been exceeded with the definition of structured type type-name. The maximum number of attributes, including inherited attributes, is max-value. The statement cannot be processed. |
Ensure that the number of attributes for the structured type does not exceed the limit. sqlcode: -20118 sqlstate: 54050 |
|
SQL20119N |
A ROW function must define at least two columns. |
A function that specifies ROW in the RETURNS clause must include a column list with at least two columns. |
Either remove the ROW keyword from the RETURNS clause to make it a scalar function or specify multiple columns in the column list of the RETURNS clause. sqlcode: -20119 sqlstate: 428F0 |
|
SQL20120N |
An SQL TABLE function must return a table result. |
An SQL function that specifies TABLE in the RETURNS clause must return a result that is a table. With the exception of a scalar fullselect, a scalar expression cannot be returned as the result of an SQL TABLE function. |
Either remove the TABLE keyword from the RETURNS clause to make it a scalar function or specify a fullselect in the RETURN statement of the TABLE function body. sqlcode: -20120 sqlstate: 428F1 |
|
SQL20121N |
Only one of WITH RETURN or SCROLL can be specified for cursor cursor-name. |
Both WITH RETURN and SCROLL were specified for cursor cursor-name, but this is not allowed. The statement cannot be processed. |
Change the DECLARE CURSOR statement to either specify NO SCROLL (or remove the SCROLL keyword), or remove the WITH RETURN clause. sqlcode: -20121 sqlstate: 428F3 |
|
SQL20123N |
Call to stored procedure procedure failed because the result set returned for a scrollable cursor is not positioned before the first row. |
A scrollable result set has been returned by a CALL to stored procedure procedure, and one or more of these cursors is not positioned before the first row. The CALL to the stored procedure was not successful. All result set cursors defined in the stored procedure were closed before returning to the caller. The scrollable cursor cannot be used to FETCH from the result set. Actions done by the stored procedure are not rolled back, and any external actions initiated by the stored procedure have completed because the error was detected at the end of the execution of the stored procedure. |
Modify the content of the stored procedure to make sure that the result set cursors are positioned before the first row before returning to the caller. sqlcode: -20123 sqlstate: 560B1 |
|
SQL20128N |
Cursor cursor-name is scrollable, but the result table cannot include output from a table function. |
The cursor cursor-name is defined to be scrollable, but the result table includes output from a table function. This combination is not supported. The statement cannot be processed. |
Either modify the definition of the cursor so it is not scrollable, or ensure that the result table does not include output from a table function. sqlcode: -20128 sqlstate: 428F6 |
|
SQL20131N |
Object number object-number of type object-type was specified more than once in a list of objects. |
In a list of object names of type object-type, the object numbered object-number was specified more than once. The operation of the statement cannot be performed on the object more than once. |
Correct the duplicated object in the list removing duplicate occurrences. (In the MDC case, the object type will be “dimension”.) sqlcode: -20131 sqlstate: 42713 |
|
SQL20133N |
Operation operation-name cannot be performed on external routine routine-name. The operation can only be performed on SQL routines. |
You attempted to perform operation operation-name on external routine routine-name. However, you can only perform that operation on SQL routines. The operation did not complete successfully. |
Ensure the name you provide identifies an SQL routine. sqlcode: -20133 sqlstate: 428F7 |
|
SQL20134N |
The SQL Archive (SAR) file for routine routine-name could not be created on the server. |
The creation of the SQL archive (SAR) for routine routine-name failed because the database manager could not find either the library or the bind file for the specified routine. Bind files are only available for SQL routines created with DB2 Version 7.1, FixPak 2 or later. |
Recreate the procedure on a server with DB2 Version 7.1, FixPak 2 or later, and try the operation again. sqlcode: -20134 sqlstate: 55045 |
|
SQL20135N |
The specified SQL archive does not match the target environment. Reason code = reason-code. |
The specified SQL archive does not match the target environment for one
of the following reasons:
|
Ensure that the environment on which the SQL archive was created matches the target environment and reissue the command. If the environments do not match, you must manually create the SQL routine using the target environment. sqlcode: -20135 sqlstate: 55046 |
|
SQL20136N |
Routine routine-name (specific name specific-name) attempted to access a federated object. |
An SQL statement in an external function or method attempted to access one or more federated objects. This statement is executed from routine routine-name (specific name specific-name). It is currently not supported to access a federated object from an external function or method. |
Remove the references to federated objects from the routine. sqlcode: -20136 sqlstate: 55047 |
|
SQL20138N |
The statement may not be explained because the routine routine-name (specific name specific-name) is not defined as MODIFIES SQL DATA. |
The routine routine-name (specific name specific-name) is defined as either CONTAINS SQL or READS SQL DATA and attempted to explain an SQL statement. Explaining an SQL statement requires writing to the explain tables, which is only permitted in a MODIFIES SQL DATA routine. |
Do not attempt to explain SQL statements from a routine defined as either CONTAINS SQL or READS SQL DATA. sqlcode: -20138 sqlstate: 42985 |
|
SQL20139N |
SQL statements may not be issued in routine routine-name (specific name specific-name) because of a previous statement failed or was interrupted. |
During the execution of routine routine-name (specific name specific-name), or a nested routine, either a statement failed and requires a roll back or an interrupt occurred. It is necessary for all routines invoked from the outer-most statement to finish executing and for control to be passed back to the outer-most statement so that the database manager may perform the necessary recovery. Until this recovery has been completed, SQL statements may not be issued. |
The routine continues to execute. The routine should not execute any further SQL statements and should return control to the invoking statement as quickly as possible. The recovery for the initial failure of interrupt will be automatically performed by the database manager once all routines have completed. sqlcode: -20139 sqlstate: 51038 |
|
SQL20140W |
COMPRESS column attribute ignored because VALUE COMPRESSION is deactivated for the table. |
One of the following situations occurred.
|
To allow COMPRESS to be specified for the column, ALTER the table and activate VALUE COMPRESSION for the table. sqlcode: +20140 sqlstate: 01648 |
|
SQL20142N |
Sequence sequence-name cannot be used as specified. |
sequence-name was referenced in a context in which it cannot be used. sequence-name is a sequence generated by the system. It was generated for one of the following purposes:
These sequences cannot be referenced in a DROP SEQUENCE, GRANT or REVOKE statement, or in a NEXT VALUE or PREVIOUS VALUE expression. |
Specify the name of a user-defined sequence object in this context. sqlcode: -20142 sqlstate: 428FB |
|
SQL20143N |
The encryption or decryption function failed, because the ENCRYPTION PASSWORD value is not set. |
The ENCRYPTION PASSWORD value is not set. |
Issue the SET ENCRYPTION PASSWORD statement to set the ENCRYPTION PASSWORD value. The length of the password must be a minimum of 6 bytes and a maximum of 127 bytes. sqlcode: -20143 sqlstate: 51039 |
|
SQL20144N |
The encryption password is invalid because the length of the specified password was less than 6 bytes or greater than 127 bytes. |
The data must be encrypted with a password length between 6 and 127. |
Ensure that the password length is between 6 and 127. sqlcode: -20144 sqlstate: 428FC |
|
SQL20145N |
The decryption function failed. The password used for decryption does not match the password used to encrypt the data. |
The data must be decrypted using the same password that was used to encrypt the data. |
Ensure that the same password is used to encrypt and decrypt the data. sqlcode: -20145 sqlstate: 428FD |
|
SQL20146N |
The decryption function failed. The data is not encrypted. |
The data must be a result of the ENCRYPT function. |
Ensure that the data type is a result of the ENCRYPT function. sqlcode: -20146 sqlstate: 428FE |
|
SQL20147N |
The ENCRYPT function failed. Multiple pass encryption is not supported. |
Data that has already been encrypted cannot be encrypted again. |
Ensure that the data has not already been encrypted. sqlcode: -20147 sqlstate: 55048 |
|
SQL20148N |
Routine routine-name with specific name specific-name must have the RETURN statement as the last SQL statement of the compound body. |
The RETURN statement must be the last SQL statement of the compound body in an SQL ROW or TABLE function. No other RETURN statement is allowed within the routine body. |
Ensure there is only one RETURN statement and it is the last SQL statement of the compound body. sqlcode: -20148 sqlstate: 429BD |
|
SQL20149W |
The buffer pool operation has been completed but will not take effect until the next database restart. |
The buffer pool has been successfully created or altered, but the changes will not take effect immediately. The changes will take effect when the database is restarted. The changes have been deferred for one of the following reasons:
|
To have the changes take effect at next database restart time, no further action is required. sqlcode: +20149 sqlstate: 01649 |
|
SQL20150N |
The statement failed because the number of block pages for a buffer pool is too large for the size of the buffer pool. |
You can optimize performance for sequential prefetching by using block-based buffer pools. When creating or altering a buffer pool, you can specify the number of pages that should exist in the block-based area by using the NUMBLOCKPAGES clause of the CREATE BUFFERPOOL statement or the ALTER BUFFERPOOL statement. The number of pages that are specified to exist in the block-based area must not exceed 98 percent of the total number of pages in the buffer pool. This message is returned when an attempt is made to configure more than 98 percent of the pages in a block-based buffer pool to exist in the block-based area. |
Respond to this message in one of the following ways:
sqlcode: -20150 sqlstate: 54052 |
|
SQL20151N |
The value specified for BLOCKSIZE is not in the valid range. |
The valid range for the value of BLOCKSIZE is 2 to 256. |
Change the value for BLOCKSIZE to be greater than or equal to 2 and less than or equal to 256. An optimal value would be the extent size. sqlcode: -20151 sqlstate: 54053 |
|
SQL20152N |
The specified buffer pool is not currently block-based. |
The BLOCKSIZE option was used without specifying the number of pages to use in the block area of the buffer pool. |
Specify a value for NUMBLOCKPAGES along with the BLOCKSIZE option. sqlcode: -20152 sqlstate: 428FF |
|
SQL20153N |
The split image of the database is in the suspended state. |
The database split image cannot be used while it is in the suspended state. |
To resume I/O for this database split image, issue one of the following db2inidb commands:
In a DB2 pureScale environment, you can issue this command from any member and need to issue the command only once. In a partitioned database environment, you must execute the db2inidb command on each database partition. You can run the command concurrently on each database partition. sqlcode: -20153 sqlstate: 55040 |
|
SQL20154N |
The requested insert or update operation into view view-name is not allowed because no target table can be determined for a row. Reason code = reason-code. |
The specified view contains a UNION ALL query. The reason-code indicates that a given row either:
Federated system users: Some other data source specific limitation may be preventing the row from being inserted. |
Ensure that the check constraints used by the underlying base tables to partition their rowsets cover the set of rows to be inserted. Also, ensure that for a view defined with UNION ALL for its fullselect that WITH ROW MOVEMENT is also specified if updates are to move rows from one underlying table to another. For example, given the check constraints (T1.c1 in (1,2)) on T1, and (T2.c1 in (2,3)) on T2, and view V1 as a union of T1 and T2,
Federated system users: If the reason is unknown, isolate the problem to the data source failing the request and examine the object definition and the update restrictions for that data source. sqlcode: -20154 sqlstate: 23513 |
|
SQL20155N |
Creating or activating the event monitor failed because the specified event monitor target tables are invalid. Reason code: reason-code. |
The reason code indicates more specifically what the problem is:
|
Check the administration notification log for detailed information and correct the table definition. sqlcode: -20155 sqlstate: 55049 |
|
SQL20156W |
The event monitor was activated successfully, however some monitoring information may be lost. |
An event monitor activated successfully, however it was determined that the event monitor may lose some information because of one of the following:
|
Check the administration notification log for detailed information.If this is a statistics event monitor, check the buffer size; if it is too small, recreate the event monitor with a buffer size of at least 4. For other types of event monitors, recreate the event monitor to create all target tables if necessary. sqlcode: +20156 sqlstate: 01651 |
|
SQL20157N |
User with authorization ID authorization-ID failed to attach to a quiesced instance, or connect to a quiesced database or a database in a quiesced instance which is in the following quiesce mode: quiesce-mode |
The specified authorization ID does not have the authority to attach to a quiesced instance or connect to a database in a quiesced instance when the instance is in QUIESCE RESTRICTED ACCESS mode. To be able to attach to the instance or connect to the database, the authorization ID must satisfy one of the following listed criteria:
In the event the quiesced database is in QUIESCE DATABASE mode, then the authorization ID must satisfy one of the previously listed criteria or hold either the DBADM authority or QUIESCE_CONNECT privilege before the user can successfully connect to a quiesced database. In the event the database in a quiesced instance is in QUIESCE INSTANCE mode, then the authorization ID must satisfy one of the above listed criteria or hold the DBADM authority before the user can successfully connect to a database in a quiesced instance. In the event the instance is in QUIESCE INSTANCE mode, then the authorization ID must satisfy one of the above listed criteria before the user can successfully attach to the quiesced instance. |
You can take one of the following actions to successfully connect to a quiesced database or a database of a quiesced instance, or attach to a quiesced instance:
sqlcode: -20157 sqlstate: 08004 |
|
SQL20158N |
DB2 Data Links Manager is not supported in this DB2 copy version. |
The DB2 Data Links Manager is not supported in this DB2 copy version and an attempt was made to perform one of the following actions:
|
Perform one of the following actions:
sqlcode: -20158 sqlstate: 42997 |
|
SQL20159W |
The isolation clause or concurrent-access-resolution clause is ignored because of the statement context. |
The isolation clause or concurrent-access-resolution clause is specified on a statement that is included in a compound statement that is processed as inline SQL. The clause is ignored. The default isolation level is used for all statements in the compound statement. |
No response required. Remove the isolation clause or concurrent-access-resolution to prevent this warning. sqlcode: +20159 sqlstate: 01652 |
|
SQL20160W |
The authorizations were granted to USER userid. Groups were not considered because the authorization name is more than 8 bytes. |
The authorization name has a length of more than 8 bytes. The privilege is granted to the user with authorization name userid without considering groups defined in the system that might have a matching name. Processing continues. |
If the grant was intended for a user, no action is required. If the grant was intended for a group, consider choosing an alternate group because group names greater than 8 bytes are not supported. To avoid this warning message, specify the USER keyword before the authorization name. sqlcode: +20160 sqlstate: 01653 |
|
SQL20161W |
The column name column-name is not a valid column for an event monitor table. |
The column name specified in the INCLUDES or EXCLUDES clause does not match any valid column for the event monitor table(s) being created. |
Examine and correct the specified column name. sqlcode: -20161 sqlstate: 428AA |
|
SQL20165N |
An SQL data change statement within a FROM clause is not allowed in the context in which it was specified. |
An SQL data change statement can be specified in the FROM clause in specific contexts. The SQL data change statement must be the only table-reference in the FROM clause that is used in:
If any input variables are used in other parts of the query, a multiple row INSERT in the FROM clause must not include the USING DESCRIPTOR clause. A multiple row INSERT statement in the FROM clause cannot specify NOT ATOMIC. A SQL fullselect within an XQuery statement cannot include an SQL data change statement in the FROM clause. An SQL fullselect in the default clause of a global variable definition cannot include an SQL data change statement in the FROM clause. The statement cannot be processed. |
Change the statement so that the SQL data change statement within a FROM clause is used in a supported context and is the only table-reference in the FROM clause. sqlcode: -20165 sqlstate: 428FL |
|
SQL20166N |
An SQL data change statement within a SELECT specified a view view-name which is not a symmetric view or could not have been defined as a symmetric view. |
The target view of the SQL data change statement within a SELECT statement must be defined WITH CASCADED CHECK OPTION or the fullselect in the view definition (or the fullselect of a view definition of a referenced view) must be able to be defined using WITH CASCADED CHECK OPTION. A symmetric view is a view defined implicitly or explicitly with the WITH CASCADED CHECK OPTION. The statement cannot be processed. |
Do not use the SQL data change statement within a SELECT with the specified view. sqlcode: -20166 sqlstate: 428FM |
|
SQL20167N |
The shared memory set is not large enough to process the request. |
There is insufficient memory in a shared memory set for one of the following
resource requests:
|
Try the request again. If the error persists, stop and restart the instance to allow the larger shared memory set size (automatically updated by DB2) to take effect and try the request again. sqlcode: -20167 sqlstate: 57011 |
|
SQL20168N |
The ALTER BUFFERPOOL statement is currently in progress. |
A buffer pool cannot be dropped or altered if an ALTER operation is already in progress. |
Wait until the ALTER operation has completed. Use the snapshot monitor to check the progress of the ongoing ALTER operation. sqlcode: -20168 sqlstate: 55051 |
|
SQL20169W |
The buffer pool is not started. |
The statement was successful, but it will only take effect when the buffer pool is started. |
The statement has completed successfully, and will take effect when the database is activated. This happens after all applications disconnect. For the statement to take effect immediately, re-submit it when the buffer pool is started. To start the buffer pool, it is possible in some cases to drop and re-create the buffer pool using the IMMEDIATE option. sqlcode: +20169 sqlstate: 01654 |
|
SQL20170N |
There is not enough space in the table space tablespace-name for the specified action. Reason code = reason-code. |
Space is being removed from a tablespace using one or more of the DROP, REDUCE, and RESIZE container actions resulting in one of the following scenarios:
|
sqlcode: -20170 sqlstate: 57059 |
|
SQL20173W |
The event monitor was created successfully but at least one event monitor target table already exists. |
While an event monitor was being created, the database manager tried to create one or more target tables but determined that tables with those names already exist. The event monitor was successfully created and target tables were not created to replace tables of the same name that already exist. When the event monitor is activated, it will attempt to use these tables. Event monitor activation may fail if activation processing determines these tables are not suitable. |
Check the administration notification log for detailed information. If necessary, drop all target tables and recreate the event monitor to create all target tables. sqlcode: +20173 sqlstate: 01655 |
|
SQL20178N |
View view-name already has an INSTEAD OF trigger trigger defined. |
The view view-name already has an INSTEAD OF trigger defined for the indicated operation (UPDATE, DELETE, INSERT). Only one INSTEAD OF trigger can be defined for each operation on the view. The statement cannot be processed. The INSTEAD OF trigger was not created. |
If a new INSTEAD OF trigger is required, drop the existing trigger and then create the new trigger. sqlcode: -20178 sqlstate: 428FP |
|
SQL20179N |
An INSTEAD OF trigger cannot be created because of how the view view-name is defined. |
An INSTEAD OF trigger cannot be defined on:
An INSTEAD OF UPDATE trigger cannot be defined on:
|
sqlcode: -20179 sqlstate: 428FQ |
|
SQL20180N |
column column-name in table table-name cannot be altered as specified |
Column column-name cannot be altered for one of the following reasons:
The statement cannot be processed. |
Change the name of the column to a column that can be altered or dropped, and recreate the table with the necessary attributes. sqlcode: -20180 sqlstate: 428FR |
|
SQL20183N |
The table table-name is not compatible with the specified table partitioning operation. |
The partitioning clause for table table-name is not valid because: ADD PARTITION BY was specified on an ALTER TABLE statement CREATE INDEX statement or CREATE TABLE statement, but the table is already a partitioned table. ADD PARTITION, ALTER PARTITION, DROP PARTITION, or DROP DISTRIBUTION was specified on an ALTER TABLE statement, but the table is not a partitioned table, the table is a materialized query table, or a materialized query table is defined on this table. ADD PARTITION for HASH partitions was specified on an ALTER TABLE statement, but the table is not partitioned using hashing. DROP PARTITION of a data partition was specified on the ALTER TABLE statement, but the PRESERVE ROWS clause was used. The PRESERVE ROWS clause is only valid for partitioned tables that have hash partitioning. |
Change the statement to one that is valid or specify a different table and reissue the statement. sqlcode: -20183 sqlstate: 428FT |
|
SQL20188N |
The primary key or a unique key identified by name is a subset of the columns in the ORGANIZE BY clause. |
All the columns in a primary or unique key are included in the table's ORGANIZE BY clause. This is not allowed, since each block of pages in the table would contain just one row, wasting all the rest of the space in the block. name is the constraint name, if specified, of the primary key or unique constraint. If a constraint name was not specified, name is the first column name specified in the primary key or unique constraint clause followed by three periods. If a unique index is being created, name is the name of the unique index. The statement cannot be processed. |
Modify the primary or unique key definition, the unique index definition or the ORGANIZE BY clause, if possible, so that the key is not a subset of the dimensions. sqlcode: -20188 sqlstate: 429BE |
|
SQL20189W |
The buffer pool operation (CREATE/ALTER) will not take effect until the next database startup due to insufficient memory. |
The CREATE or ALTER BUFFERPOOL statement was issued and completed successfully, however due to insufficient memory the create/alter was done DEFERRED. The changes will take effect on the next database startup. |
If you do not want to wait until the next startup to activate or resize the buffer pool, you can free memory resources and try again (with the same or different size). Memory resources that can be reduced include other buffer pools, the database heap, the catalog cache, the package cache, and the utility heap. These can be reduced using the ALTER/DROP BUFFERPOOL or UPDATE DATABASE CONFIGURATION command depending on the resource. In the future, to reserve extra memory for the dynamic allocation of buffer pool memory, you can increase the DATABASE_MEMORY database configuration parameter. If you do not try again:
To try again:
sqlcode: +20189 sqlstate: 01657 |
|
SQL20190N |
Federated insert, update, or delete operation cannot be compiled because of potential data inconsistency. |
When the data source does not provide application savepoint support and the server option 'iud_app_svpt_enforce' is set to 'Y', the federated insert, update, or delete operation is blocked during precompile. This will prevent potential data inconsistency, which may occur at runtime execution if an error is encountered in the middle of federated insert, update, or delete processing. |
Possible solutions include:
sqlcode: -20190 sqlstate: 0A503 |
|
SQL20191N |
For an INOUT parameter in a dynamically prepared CALL statement, the same host variable must be used in both the USING and INTO clauses. |
In a CALL statement, an INOUT parameter must correspond to a single host variable. When executing a dynamically prepared CALL statement, it is necessary to specify the same host variable in both the USING and INTO clauses of the EXECUTE statement. |
When specifying a host variable that corresponds to a parameter marker for an INOUT parameter, use the same host variable in both the USING and INTO clauses of the EXECUTE statement. When using SQLDAs to specify a host variable that corresponds to a parameter marker for an INOUT parameter, then the SQLDATA pointers of the corresponding SQLVARs must point to the same host variable. sqlcode: -20191 sqlstate: 560BB |
|
SQL20192N |
The specified modes are only supported in a partitioned database environment. |
Either RECOMMEND PARTITIONINGS or EVALUATE PARTITIONINGS was not invoked in a partitioned database environment. These two modes are only supported in a partitioned database environment. |
Invoke RECOMMEND PARTITIONINGS or EVALUATE PARTITIONINGS in a partitioned database environment. sqlcode: -20192 sqlstate: 56038 |
|
SQL20193N |
An error has occurred when accessing the file file-name. Reason code: reason-code. |
An attempt was made to access the file file-name on the server but
an error occurred. For reason codes 4 to 10, file-name may be in the
directory specified by the DB2_UTIL_MSGPATH registry variable, or possibly in
the directory which is the tmp directory of the instance. The specified error
encountered is indicated by the reason code as follows:
|
Use the reason code information to determine how to make the file accessible and resubmit the statement. sqlcode: -20193 sqlstate: 560BC |
|
SQL20194N |
Buffer pool bufferpool-name does not exist on database partition dbpartitionnum. |
The ALTER BUFFERPOOL statement is specifying a buffer pool, bufferpool-name, that does not exist on the database partition dbpartitionnum. |
Using the ALTER DATABASE PARTITION GROUP statement, add the database partition dbpartitionnum to a database partition group that has the buffer pool bufferpool-name already defined for it. If the buffer pool is not associated with any specific database partition group, then add the database partition to any database partition group or create a new database partition group for this database partition. Issue the ALTER BUFFERPOOL statement again. sqlcode: -20194 sqlstate: 53040 |
|
SQL20195N |
An error was encountered while processing line number line-number in the path rename configuration file config-file. Reason code = reason-code. |
The path rename configuration file config-file is being used to rename containers during the current crash or rollforward recovery process. However, while processing the statements in this file, an error was encountered at line line-number that is preventing the recovery process from proceeding. An explanation of the error is indicated by the following reason code:
|
Make the corresponding change to the configuration file as described in the following instructions, and reissue the command:
sqlcode: -20195 sqlstate: 08504 |
|
SQL20196N |
The one or more built-in types which are returned from the FROM SQL function or method does not match the corresponding built-in types which are parameters of the TO SQL function or method. |
The built-in types which are returned by a FROM SQL transform function or method have to match the types in the parameter list of the corresponding TO SQL transform function or method. |
Choose a different FROM SQL transform function or method or TO SQL transform function or method or alter either the FROM SQL transform function or method or TO SQL transform function or method to make sure that each built-in type returned from the FROM SQL function or method matches the corresponding built-in type that is a parameter of the TO SQL transform function or method. sqlcode: -20196 sqlstate: 428FU |
|
SQL20197N |
Cannot define method-name as an overriding method. Reason code reason-code. |
An attempt was made to define method-name as an overriding method. An overriding relationship
between this method and an original method cannot be created because of one of the following
reasons, as specified by reason-code:
|
Modify the method definition based on the reason specified by the reason-code as follows:
sqlcode: -20197 sqlstate: 428FV |
|
SQL20198N |
Method method-name calls itself recursively. |
A method attempted to call itself recursively. The recursion might be direct or indirect in nature. |
Modify the method definition. sqlcode: -20198 sqlstate: 55054 |
|
SQL20199N |
The key transform table function used by the index extension of index index-id of table table-id in tbspace-id generated duplicate rows. |
The key transform table function specified by the GENERATE USING clause of the index extension used by index index-id generated duplicate rows. For a given invocation of the key transform table function, no duplicate rows should be produced. This error is occurred when inserting or updating the key value for the index index-id of table table-id in table space tbspace-id. The statement cannot be processed. |
The code for the key transform table function used by the index extension of index index-id must be modified to avoid the creation of duplicate rows. To determine the index name, use the following query:
sqlcode: -20199 sqlstate: 22526 |
|
SQL20200N |
The install or replace of jar-id failed as url could not be located. |
The URL specified on the install or replace jar procedure did not identify a valid jar file. |
Reissue the install or replace jar procedure with a URL that identifies a valid jar file. sqlcode: -20200 sqlstate: 46001 |
|
SQL20201N |
The install, replace or remove of jar-id failed as the jar name is invalid. |
The jar name specified on the install, replace or remove jar procedure was invalid. For example, the jar id may be of the improper format, may not exist to be replaced or removed, or can not be installed as it already exists. |
Ensure the jar id is of the correct format. If the jar id exists, it may need to be removed before it can be installed. For the remove or replace procedures, ensure the jar id exists. sqlcode: -20201 sqlstate: 46002 |
|
SQL20202N |
The replace or remove of jar-id failed as class is in use by routine routine-name (specific name specific-name). |
The specified class in the jar file is currently in use by a defined procedure, or the replacement jar file does not contain the specified class for which a procedure is defined. |
Ensure all procedures referencing the classes being removed are dropped and resubmit the replace or remove procedure. sqlcode: -20202 sqlstate: 46003 |
|
SQL20203N |
User defined function or procedure function-name has a Java method with an invalid signature. |
The signature of the java method used to implement the function or procedure was invalid. For example, the method may have parameters that are not mappable to the parameters on the corresponding create statement or the method for a procedure may specify a return value. |
Reissue the corresponding CREATE statement specifying parameters that match the Java method, or correct the parameters or return type of the Java method and rebuild the class. sqlcode: -20203 sqlstate: 46007 |
|
SQL20204N |
The user defined function or procedure function-name was unable to map to a single Java method. |
The identified function or procedure either failed to find a matching Java method, or found more than 1 matching Java method. |
Correct either the Java method or corresponding create statement so that the function or procedure call resolves to a single Java method. sqlcode: -20204 sqlstate: 46008 |
|
SQL20205N |
The user defined function or procedure function-name has an input argument with a null value that could not be passed to the method. |
A function created with "CALLED ON NULL INPUT" or procedure has an input parameter with a null value but the Java datatype of this argument does not support null values. Examples of Java datatypes that do not support null values are BOOLEAN, BYTE, SHORT, INT, LONG or DOUBLE. |
If the method is to be called with null values, ensure the input Java types are capable of accepting a null value. For functions, the function could also be created with "RETURNS NULL ON NULL INPUT". sqlcode: -20205 sqlstate: 39004 |
|
SQL20206W |
The procedure function-name returned too many result sets. |
The specified procedure returned more results sets than were specified on the CREATE PROCEDURE statement. |
Modify the procedure to return fewer result sets, or drop and recreate the procedure specifying the correct number of result sets. sqlcode: +20206 sqlstate: 0100E |
|
SQL20207N |
The install or remove jar procedure for jar-id specified the use of a deployment descriptor. |
The DEPLOY or UNDEPLOY parameter of the install or replace jar procedure was non-zero; this parameter is not supported and must be zero. |
Reissue the procedure with the DEPLOY or UNDEPLOY parameter set to zero. sqlcode: -20207 sqlstate: 46501 |
|
SQL20208N |
The table table-name was not created. Reason code: reason-code. |
The table cannot be created because it violates a restriction as indicated by the following reason code:
|
Respond according to the reason code:
sqlcode: -20208 sqlstate: 428FG |
|
SQL20209N |
The option-type option is not valid for table table-name with reason code reason-code. |
The specified option is not valid as indicated by the following reason codes:
|
sqlcode: -20209 sqlstate: 428FH |
|
SQL20211N |
The specification ORDER BY, OFFSET, or FETCH clause is invalid. |
An ORDER BY, OFFSET, or FETCH clause is not allowed in:
A FETCH FIRST n ROWS ONLY is not allowed in:
|
In case of:
sqlcode: -20211 sqlstate: 428FJ |
|
SQL20212N |
User defined routine function-name encountered an exception attempting to load Java class class-name from JAR JAR-name. Original exception underlying-exception. |
A ClassNotFoundException has occurred. The ClassNotFoundException may reference an original Java exception which further describes why the class wasn't found. For example, the underlying exception might be an I/O error that occurred trying to read a JAR file, or an SQL error occurred reading the JAR from the data dictionary. As much of the following tokens that will fit within the SQLCA limits will be returned, as appropriate. The function-name identifies the specific name of the external Java function or procedure whose execution encountered the ClassNotFoundException. The class-name identifies the Java class whose definition could not be found. The JAR-name optionally identifies the installed JAR expected to contain the identified class. '(none)' will be present unless the external Java function or procedure is defined to be in an installed JAR. The underlying-exception optionally contains the toString() of the underlying exception that resulted in this ClassNotFoundException, if any. '(none)' will be present if there is no underlying exception. |
Execute an ALTER PROCEDURE to specify where the class is to be found, make sure the class is in the specified JAR or the system classpath, or correction the condition reported by the underlying-exception. sqlcode: -20212 sqlstate: 46103 |
|
SQL20223N |
The encryption or decryption operation failed because the encryption facility is not installed or is not functioning correctly. |
You can encrypt data in database tables by using built-in encryption functions. You can encrypt data in transit between DB2 clients and database servers by using encryption authentication. This message is returned when an attempt is made to encrypt or decrypt data either in storage or in transit, but the encryption facility is not available to service the encryption or decryption request. |
To use the encryption facility, perform the following troubleshooting steps:
sqlcode: -20223 sqlstate: 560BF |
|
SQL20225W |
The buffer pool operation (DROP) will not take effect until the next database startup because the buffer pool is in use. |
The DROP BUFFERPOOL statement was issued and completed successfully, however a table space is still using this buffer pool. Even though a table space may be reassigned to a different buffer pool, the table space reassignment may only take effect on the next database restart. If the table space in question is dropped by the time this operation commits, then this buffer pool will be removed from memory at that time. Until the next database restart, this buffer pool may remain in memory and a CREATE or ALTER of any other buffer pool that would reuse this buffer pool ID may be deferred. |
Restart the database to delete the buffer pool from memory. sqlcode: 20225 sqlstate: 01657 |
|
SQL20227N |
Required clause is missing for argument number of expression. |
expression expression requires that a clause be specified for argument number number. If expression is XMLATTRIBUTES, then an AS clause is required for the XML attribute name. If expression is XMLFOREST, then an AS clause is required for the XML element name. The statement cannot be processed. |
Correct the statement by providing the required clause for the argument. sqlcode: -20227 sqlstate: 42633 |
|
SQL20230N |
The procedure name may not be specified by a host variable in the CALL statement and the arguments may not be specified with a USING DESCRIPTOR clause. |
The procedure name must be specified as an identifier in the CALL statement and the arguments must be explicitly provided. A host variable may not be used for the procedure name. The USING DESCRIPTOR clause may not be used to specify the arguments. |
The CALL statement must be rewritten to provide an identifier for the procedure name and to explicitly list the arguments. If either the procedure name or the arguments are not known until run time, use a dynamically prepared CALL statement. For applications being migrated from a release previous to V8, the CALL_RESOLUTION DEFERRED precompile option can be used until the applications are rewritten to use the dynamically prepared CALL statement. sqlcode: -20230 sqlstate: 42601 |
|
SQL20238N |
The table table-name is defined as CCSID UNICODE and cannot be used in an SQL function or SQL method. |
In a non-Unicode database, only tables with the ASCII encoding scheme may be referenced inside an SQL function or SQL method. Since the table table-name is defined as CCSID UNICODE, it may not be used in an SQL function or an SQL method. |
Do not use CCSID UNICODE tables in an SQL function or SQL method. sqlcode: -20238 sqlstate: 560C0 |
|
SQL20239N |
Tables created in the Unicode encoding scheme cannot be a typed table, or contain graphic types, the XML type, or user-defined types. |
In a non-Unicode database, tables created in the Unicode encoding scheme cannot be a typed table and also cannot contain columns defined with any graphic type, the XML type, or user-defined type. |
Remove the CCSID UNICODE clause from the table definition or remove the graphic type, the XML type, or user-defined type from the table definition. sqlcode: -20239 sqlstate: 560C1 |
|
SQL20240N |
Invalid specification of a column column-name of type DB2SECURITYLABEL. Reason code: reason-code. |
For a column of type DB2SECURITYLABEL the specification of an attribute in a CREATE TABLE or ALTER TABLE statement may be invalid for the following reason.
|
Correct the specification of the column of type DB2SECURITYLABEL and resubmit the statement. sqlcode: -20240 sqlstate: 42963 |
|
SQL20241N |
Writing a history file entry for dropped table table-name failed. |
Dropped table recovery is enabled on the table space in which the dropped table table-name resides. When a table space has dropped table recovery enabled, a history file entry is created as part of a table drop. This history file is contains data which is useful during the recovery of a dropped table. The writing of the new history file entry for the dropped table failed. As a result, the table drop could not be completed. A possible cause for such a failure is a full file system where the history file is located. |
Ensure that the history file can be written to by the database manager. If you are not concerned about dropped table recovery, disable this feature and reissue the drop table statement. sqlcode: -20241 sqlstate: 560C2 |
|
SQL20242N |
The sample size specified in the TABLESAMPLE clause is not valid. |
The sample size specified in the TABLESAMPLE clause must be a positive numeric value greater than zero and less than or equal to 100. The statement was not processed. |
Change the sample size specified in the TABLESAMPLE clause to a valid numeric value greater than zero and less than or equal to 100. sqlcode: -20242 sqlstate: 2202H |
|
SQL20243N |
The view view-name is the target in the MERGE statement, but is missing the INSTEAD OF trigger for the operation operation. |
The view view-name is a direct or indirect target in the MERGE statement and has an INSTEAD OF trigger defined for it, but does not have INSTEAD OF triggers defined for all operations. The trigger for the operation operation is not present. |
Create INSTEAD OF triggers for the UPDATE, DELETE and INSERT operations on view view-name, or drop all INSTEAD OF triggers for the view. sqlcode: -20243 sqlstate: 428FZ |
|
SQL20247N |
Table table-name cannot be partitioned and contain a column with data type DATALINK. |
An attempt was made to create or alter table table-name in such a way that would create a partitioned table that contained a column with data type DATALINK. A table cannot be both partitioned and contain such a column. |
Create or alter the table to be either partitioned or to include a column of data type DATALINK, but not both. sqlcode: -20247 sqlstate: 429BH |
|
SQL20249N |
The statement was not processed because the package named package-name needs to be explicitly rebound. |
The package package-name contains a section that must be rebound. |
Explicitly rebind the package using either the REBIND command or the BIND command. To preserve function and data type resolution, specify the RESOLVE CONSERVATIVE option on the REBIND command. sqlcode: -20249 sqlstate: 560C5 |
|
SQL20250N |
The number of data partitions exceeds the number of table spaces for the table. |
The partitioned table was defined with NO CYCLE and there are not enough table spaces defined for the number of specified table partitions. The statement cannot be processed. |
In the CREATE TABLE statement, either specify additional table spaces for the table or remove the NO CYCLE specification for the table. sqlcode: -20250 sqlstate: 428G1 |
|
SQL20251N |
The last data partition cannot be detached from the table table-name. |
The ALTER TABLE statement would have resulted in the the last remaining data partition being detached from the table. This operation is not allowed. A partitioned table must have at least one data partition whose status is normal or attached. A partitioned table cannot have only data partitions whose status is detached. To determine the status of partitions, query the catalog view, SYSCAT.DATAPARTITIONS. The statement cannot be processed. |
Ensure that the ALTER TABLE statement leaves at least one data partition in the table. sqlcode: -20251 sqlstate: 428G2 |
|
SQL20253N |
The BEFORE trigger or generated column name cannot be created, altered, or executed because doing so would cause the table on which the BEFORE trigger or generated column is defined to be delete-connected to at least one ancestor table through multiple relationships with conflicting delete rules. The conflict is between the delete rules of constraints constraint-name1 and constraint-name2. Reason code = reason-code. |
The definition for the BEFORE trigger or generated column name in the CREATE TRIGGER, CREATE TABLE or ALTER TABLE statement is not valid for the reason specified by the reason-code as follows:
The statement cannot be processed. |
The action corresponding to the reason code is:
sqlcode: -20253 sqlstate: 42915 |
|
SQL20254N |
FOREIGN KEY name is not valid since it would cause table table-name to be delete-connected to itself through a cycle that contains a delete rule of either RESTRICT or SET NULL. Reason code = reason-code. |
A referential cycle must not contain a delete rule of RESTRICT or SET NULL. The delete rule specified for FOREIGN KEY name in the CREATE TABLE or ALTER TABLE statement is not valid for the reason specified by the reason-code as follows:
name is the constraint name, if specified, in the FOREIGN KEY clause. If a constraint name was not specified, name is the first column name specified in the column list of the FOREIGN KEY clause followed by three periods. The statement cannot be processed. |
The action corresponding to the reason code is:
sqlcode: -20254 sqlstate: 42915 |
|
SQL20255N |
FOREIGN KEY name is not valid because it would cause a descendent table descendent-table-name to be delete-connected to its ancestor table ancestor-table-name through multiple relationships with conflicting delete rules. The conflict is between the delete rules of constraints constraint-name1 and constraint-name2 on the descendent table. Reason code = reason-code. |
The referential constraint definition specified for FOREIGN KEY name in the CREATE TABLE or ALTER TABLE statement is not valid. The reason code indicates more specifcally what the problem is:
name is the constraint name, if specified, in the FOREIGN KEY clause. If a constraint name was not specified, name is the first column name specified in the column list of the FOREIGN KEY clause followed by three periods. The same convention applies to constraint-name1 and constraint-name2. |
Respond according to the reason code:
sqlcode: -20255 sqlstate: 42915 |
|
SQL20256N |
FOREIGN KEY name is not valid because it would cause two tables table-name1 and table-name2 to be delete-connected to each other while they are delete -connected to the same ancestor table ancestor-table-name through CASCADE relationships. Reason code = reason-code. |
When two tables are delete-connected to the same table through CASCADE relationships, the two tables must not be delete-connected to each other where the delete rule of the last relationship in each path is RESTRICT or SET NULL. The delete rule specified in a FOREIGN KEY clause of the CREATE TABLE or ALTER TABLE statement is not valid for the reason specified by the reason-code as follows:
|
The action corresponding to the reason code is:
sqlcode: -20256 sqlstate: 42915 |
|
SQL20257N |
FINAL TABLE is not valid when the target view viewname of the SQL data change statement in a fullselect has an INSTEAD OF trigger defined. |
The fullselect includes an INSERT or UPDATE statement that targets a view that has an INSTEAD OF trigger defined for the SQL data change operation. The FINAL TABLE results of an INSTEAD OF trigger cannot be returned. The statement cannot be processed. |
Change FINAL TABLE to NEW TABLE or drop the INSTEAD OF trigger. sqlcode: -20257 sqlstate: 428G3 |
|
SQL20258N |
Invalid use of INPUT SEQUENCE ordering. |
The ORDER BY clause specifies INPUT SEQUENCE and the FROM clause of the fullselect does not specify an INSERT statement. The statement cannot be processed. |
Use INPUT SEQUENCE when the FROM clause of the fullselect specifies an INSERT statement. sqlcode: -20258 sqlstate: 428G4 |
|
SQL20259N |
Column column-name cannot be selected from the target of the data change statement in the FROM clause of the fullselect. |
A column has been selected that cannot be specified in the select list of this query. This column is based on a column in a view or fullselect that is the target of an INSERT or UPDATE statement that is specified in a FROM clause using either NEW TABLE or FINAL TABLE. The column selected is based on:
The statement cannot be processed. |
Change the select list to remove the column. sqlcode: -20259 sqlstate: 428G6 |
|
SQL20260N |
The assignment clause of the UPDATE statement must specify at least one column that is not an INCLUDE column. |
The UPDATE statement has specified INCLUDE columns and the only assignments are made to INCLUDE columns. At least one of the assignments in an UPDATE statement must be to a column of the target of the UPDATE statement. The statement cannot be processed. |
Change the statement to specify an assignment to a column of the target of the UPDATE statement. sqlcode: -20260 sqlstate: 428G5 |
|
SQL20261N |
Invalid row movement to table table-name within the UNION ALL view view-name. |
A check-constraint on table table-name caused an updated row to be rejected. When attempting to insert the row into another underlying table of view-name, the table table-name accepted the row. The destination table of a moved row cannot be identical to the table from which it originated. The statement cannot be processed. |
Verify the interaction between before update and before insert triggers on the target table. When performing row movement, DB2 executes before update triggers first, which may modify the row. The rejected row may then be processed by before insert triggers which may again modify the row in a way that it is now accepted by the check constraints of the target table. Change the triggers so that this does not happen. sqlcode: -20261 sqlstate: 23524 |
|
SQL20262N |
Invalid usage of WITH ROW MOVEMENT in view view-name. Reason code = reason-code. |
The view view-name has been defined with the WITH ROW MOVEMENT clause. This clause is not applicable for the view because of one of the following:
The view cannot be created. |
Depending on the reason code, do the following:
sqlcode: -20262 sqlstate: 429BJ |
|
SQL20263N |
Invalid attempt to update view view-name1 because view view-name2 is defined WITH ROW MOVEMENT. |
The attempt to update view-name1 failed because it directly or indirectly contains a UNION ALL operation involving view view-name2 which is defined with the WITH ROW MOVEMENT clause. The statement cannot be executed. |
Drop the view view-name2 and recreate it without the WITH ROW MOVEMENT clause. sqlcode: -20263 sqlstate: 429BK |
|
SQL20264N |
For table table-name, authorization ID auth-id does not have access-type access to the column column-name. |
While accessing the table named table-name, the authorization ID auth-id is attempting access-type access on column column-name. The authorization ID does not have the LBAC credentials necessary to access the column in that way. If a generated column is being created, LBAC credentials for reading the column are required to include the column in a generation-expression. |
Contact a user who has SECADM authority and ask the user to grant the authorization ID authid LBAC credentials that allow access-type access to the column column-name. sqlcode: -20264 sqlstate: 42512 |
|
SQL20267N |
The function function-name (specific specific-name) modifies SQL data and is invoked in an illegal context. Reason code = reason-code. |
The function function-name with specific name specific-name is defined with the MODIFIES SQL DATA property. Functions with this property are only allowed as the last table reference in a select-statement, common-table-expression, RETURN statement that is a subselect, SELECT INTO statement, or row-fullselect in a SET statement. As well, each argument to the table function must be correlated to a table reference in the same FROM clause as the table function, and every table reference must be correlated to by some argument in the table function. An argument is correlated to a table reference when it is a column of that table reference. Reason-code:
The statement cannot be processed. |
For reason codes 1, 2, and 3, the query can be rewritten using a common table expression to isolate the table function invocation. For example:
Can be rewritten as:
sqlcode: -20267 sqlstate: 429BL |
|
SQL20268N |
Collation cannot be applied. Reason code = reason-code. |
The collation cannot be applied for reason code reason-code.
The reason codes and their meanings are:
|
For each reason code:
sqlcode: -20268 sqlstate: 429BM |
|
SQL20269N |
The nickname nickname cannot be referenced in an enforced referential constraint. |
A referential constraint in the CREATE TABLE statement or the ALTER TABLE statement is invalid. The constraint definition specifies ENFORCED but refers to a nickname. The statement cannot be processed. |
Change the referential constraint to specify NOT ENFORCED or remove the reference to the nickname. sqlcode: -20269 sqlstate: 428G7 |
|
SQL20271W |
The name at ordinal position number in the statement, with name name, was truncated. |
At least one name in the described statement was truncated. The first name that was truncated is identified by the name name and ordinal position number. If performing a describe output of a prepared query, the ordinal position is relative to the select list column of the query. If performing a describe output of a CALL statement, the ordinal position is relative to the OUT or INOUT parameters of the procedure to which the CALL resolved. If performing a describe input of a CALL statement, the ordinal position is relative to the IN or INOUT parameters of the procedure to which the CALL resolved. The column name, parameter name, user defined type name or user defined type schema name was either too long, or became too long after code page conversion. Note that the length of the column name, parameter name, user defined type name, and user defined type schema name are limited when using the SQLDA structure. |
If the exact name or schema is significant, do one of the following:
sqlcode: +20271 sqlstate: 01665 |
|
SQL20273N |
The nickname statistics cannot be updated because the database is not enabled for federation. |
An error has been detected at the instance level. The requested operation cannot be completed because federation was not enabled for the instance. |
Set the DBM variable FEDERATED to YES and then restart the database manager. sqlcode: -20273 sqlstate: 55056 |
|
SQL20274W |
Some of the nickname statistics cannot be updated. |
Either the database manager cannot execute a query against a nickname to gather the statistics, or the database manager cannot write the results of the updates to the federated database system catalog. |
The nickname statistics update errors are listed in the log file, if a log file path was specified. sqlcode: +20274 sqlstate: 550C8 |
|
SQL20275N |
The XML name xml-name is not valid. Reason code = reason-code. |
The statement cannot be processed because it violates a constraint as indicated
by the following reason code:
|
Correct the XML name and resubmit the statement. sqlcode: -20275 sqlstate: 42634 |
|
SQL20276N |
The XML namespace prefix xml-namespace-prefix is not valid. Reason code = reason-code. |
The statement cannot be processed because it violates a constraint as indicated
by the following reason code:
|
Correct the XML namespace prefix and resubmit the statement. sqlcode: -20276 sqlstate: 42635 |
|
SQL20277W |
Characters were truncated while performing conversion from code page source-code-page to code page target-code-page. The maximum size of the target area was max-len. The source string length was source-len and its hexadecimal representation was string. |
During the execution of the SQL statement, a code page conversion operation has resulted in a string that is longer than the maximum size of the target object. Characters were truncated so the result would fit in the target area. |
If the truncation has caused an unexpected consequence, then expand the length of the target column and issue the statement again. sqlcode: +20277 sqlstate: 01004 |
|
SQL20278W |
The view viewname may not be used to optimize the processing of queries. |
The fullselect of the view includes elements that prohibit the use of the statistics on the view for optimization when the view is not referenced directly in a query. These elements of the fullselect may include:
The view is successfully altered to enable query optimization. |
No action is required. If the intent of the view is to optimize queries that do not directly reference the view, then the view could be dropped or have query optimization disabled. You could also consider defining the fullselect of the view to remove the elements that prevent optimization. sqlcode: +20278 sqlstate: 01667 |
|
SQL20279N |
The view view-name cannot be enabled for query optimization. Reason code = reason-code. |
The view cannot allow the ENABLE QUERY OPTIMIZATION option because the fullselect does not conform to the set of queries that can take advantage of this capability. The statement failed for one of the following reasons:
The statement cannot be processed. |
The action is based on the reason code as follows:
sqlcode: -20279 sqlstate: 428G8 |
|
SQL20280W |
Insufficient permission to create or write to the log-file-path file. |
The statement completed successfully, but the user does not have permission to create or write to the specified log file, log-file-path. |
To write the details to the log file, make sure that you have write access to the log file path specified. Alternatively, omit the optional log file path. sqlcode: -20280 sqlcode: 42501 |
|
SQL20282N |
.NET procedure or user-defined function name, specific name specific-name could not load .NET class class. Reason code reason-code. |
The .NET class given by the EXTERNAL NAME clause of a CREATE PROCEDURE or CREATE FUNCTION statement could not be loaded. The reason codes are:
|
sqlcode: -20282 sqlstate: 42724 |
|
SQL20284N |
No plan was possible to create for federated data source server-name. Reason = reason-code. |
While building a federated query access plan, the query fragment for one or more data sources cannot be processed because of a missing predicate or a problem with the query syntax as indicated by the following reason code:
|
See the federation documentation for this data source. Correct the query syntax as needed and resubmit the statement. The action corresponding to the reason code is:
sqlcode: -20284 sqlcode: 429BO |
|
SQL20285N |
The statement or command was not processed either because the table named table-name has detached dependent tables or because an asynchronous partition detach operation on the table is not complete. Reason code = reason-code. |
You can manage ranges of data by using data partitioning. The process of detaching a data partition occurs in two phases:
Tables that need to be incrementally maintained with respect to the detached data partition are referred to as detached dependent tables. The specific reason this message was returned is indicated by the value of the runtime token reason-code:
|
Respond to this message according to the reason code:
sqlcode: -20285 sqlstate: 55057 |
|
SQL20287W |
The environment of the specified cached statement is different than the current environment. The current environment will be used to reoptimize the specified SQL statement. |
The Explain facility has been invoked to explain a statement that has been previously reoptimized with REOPT ONCE, but the current environment is different than the environment in which the cached statement was originally compiled. The current environment will be used to reoptimize the specified statement. The statement will be processed. |
In order to ensure that the plan matches the plan in the cache, reissue the EXPLAIN in an environment that matches the one in which the original statement was reoptimized and cached. sqlcode: -20287 sqlstate: 01671 |
|
SQL20288N |
Statistics could not be updated for the object. Object name: object-name. Object type: object-type. Reason code: reason-code. |
You can collect and update statistics on tables, indexes, and statistical views to provide the optimizer with accurate information for access plan selection by using the RUNSTATS utility. This message is returned when statistics could not be collected. The reason code indicates the cause of the failure:
|
Respond to this error according to the reason code:
sqlcode: -20288 sqlstate: 428DY |
|
SQL20289N |
Invalid string unit unit in effect for function function-name. |
The statement invoked a built-in function using a string unit that is not valid with the type of data that is provided to the function. This can occur for the following reasons:
The statement cannot be executed. |
Change the invocation of the function to remove the invalid string length unit or change it to a unit valid for the data type and values being processed. sqlcode: -20289 sqlstate: 428GC |
|
SQL20290N |
The SQL statement references routine routine-name (specific name specific-name) which cannot be run on partition partition-number. |
The routine routine-name (specific name specific-name) was called with an invalid partition number partition-number. |
Specify -1 for the partition number parameter to run the routine on the current partition. sqlcode: -20290 sqlstate: 560CA |
|
SQL20296N |
The ALTER TABLE statement is not allowed as it modifies some physical attribute of the table table-name that has detached partitions and there are dependant tables that need to be incrementally maintained with respect to these detached partitions. |
The table has detached partitions and there are dependent tables that need to be incrementally maintained with respect to these detached partitions. Modifying any physical attribute of the table is not allowed as doing so would invalidate the incremental maintenance of the dependent tables. The restricted physical attribute modification may include: adding a column, altering a column; or altering one of the following values: data capture, value compression, append, compact, logged, activate not logged initially. |
Identify the dependent tables that require incremental maintenance and issue the SET INTEGRITY statement with the IMMEDIATE CHECKED option on these dependent tables before re-issuing the failing ALTER TABLE statement. The following query can be used to identify the dependent tables that require incremental maintenance, where <schema name> is the qualifier of table-name and <table name> is the table name portion of table-name.
sqlcode: -20296 sqlstate: 55057 |
|
SQL20302W |
More table spaces than required were specified in the IN or LONG IN clause. The extra table spaces are ignored. |
If the table being created is a non-partitioned table, then more than one table space is specified in the IN or LONG IN clause. The first table space specified is used to store the table data or long data. Only one table space should be specified in the IN or LONG IN clause for a non-partitioned table. If the table being created is a partitioned table, then the number of table spaces specified in the IN or LONG IN clause was more than the number of partitions defined for the table. When adding partitions to a partitioned table that was created with the long data in the same table space as regular data, the LONG IN clause provided in the ADD PARTITION clause is ignored. The statement was processed successfully, but the extra table spaces were ignored. |
None. sqlcode: +20302 sqlstate: 01675 |
|
SQL20303N |
The partitioned unique index was not created because either the index definition did not include all of the partitioning columns, or the index was being created over XML data. |
You can create a partitioned index for a partitioned table by specifying the PARTITIONED clause in the CREATE INDEX statement. When you create a partitioned index for a partitioned table, each data partition is indexed in its own index partition. When you are defining a partitioned unique index, you must include all columns from the table-partitioning key in the index key. Note that any column that is included in an expression-based index key must also be specified plainly, without being included as part of an expression. This message can be returned for different reasons:
|
Submit the CREATE INDEX statement again, specifying all the partitioning columns in the index key. sqlcode: -20303 sqlstate: 42990 |
|
SQL20304N |
The index was not created because of a problem with an XMLPATTERN clause or a column of data type XML. Reason code: reason-code. |
This message can be returned when a column defined with a data type of XML is included (or missing) in the columns for the index. The reason code indicates what is invalid about the index definition:
|
Respond to this error according to the reason code:
sqlcode: -20304 sqlstate: 429BS |
|
SQL20305N |
An XML value cannot be inserted or updated because of an error detected when inserting or updating the index identified by index-id on table table-name. Reason code = reason-code. For reason codes related to an XML schema the XML schema identifier = xml-schema-id and XML schema data type = xml-schema-data-type. |
The statement cannot proceed and the table and index remain unchanged because of one of the following reason codes. The schema data type and schema identifier are not applicable for all reason codes. See specific reason codes for details.
|
Determine the index name and the XML pattern clause. The index name (<index-name>,<index-schema>) can be obtained from SYSCAT.INDEXES by issuing the following query using index-id:
After the index name (<index-name>,<index-schema>) is found, it can be used to obtain the index data type and XML pattern from SYSCAT.INDEXES by issuing the following query:
If the <xml-schema-id> is not "*N", obtain the name of the XML schema containing the identified schema data type by issuing the following query using <xml-schema-id>:
sqlcode: -20305 sqlstate: 23525 |
|
SQL20306N |
An index on an XML column cannot be created because of an error detected when inserting the XML values into the index. Reason code = reason-code. For reason codes related to an XML schema the XML schema identifier = xml-schema-id and XML schema data type = xml-schema-data-type. |
The statement cannot proceed and the table remains unchanged because of one of the following reason codes. The schema data type and schema identifier are not applicable for all reason codes.
|
Determine the XML pattern clause from the index definition. If the <xml-schema-id> is not "*N", obtain the name of the XML schema containing the identified schema data type by issuing the following query using <xml-schema-id>:
sqlcode: -20306 sqlstate: 23526 |
|
SQL20307N |
Table source-tablename cannot be attached to table target-tablename. Reason code = reason-code. |
The characteristics of the target table do not sufficiently match the characteristics of the source table in the ALTER TABLE...ATTACH statement. The reason-code indicates the type of mismatch.
|
Correct the mismatch between the tables by modifying the source table to match the characteristics of the target table, or by modifying the target table to match the characteristics of the source table. For reason codes 4, 5, 6 and 11 the characteristics of neither the source or target table can be easily modified for compatibility. (For reason code 5, source-tablename is partitioned, so it must have exactly one visible (neither attached or detached) data partition.) In cases where it is difficult to modify the characteristics of either the source or target table for compatibility, create a new table that is compatible with the target table, and copy the data from source-tablename to this new table.
sqlcode: -20307 sqlstate: 428GE |
|
SQL20308N |
Parsing with the STRIP WHITESPACE option is not allowed when the input includes a text node string value with only whitespace characters that is more than 1000 bytes long. |
The option to STRIP WHITESPACE during XML parsing will fail if a text node string value is encountered that consists only of whitespace characters and has a length of more than 1000 bytes. The statement cannot be processed. |
Use the PRESERVE WHITESPACE option or modify the input to remove whitespace in excess of 1000 bytes from any text nodes with a string value consisting of only whitespace characters. sqlcode: -20308 sqlstate: 54059 |
|
SQL20309N |
Invalid use of an error tolerant nested-table-expression. |
An error tolerant nested-table-expression (a nested-table-expression that
specifies the RETURN DATA UNTIL clause) cannot be referenced in the following
places:
The statement cannot be processed. |
Remove the RETURN DATA UNTIL clause of the nested-table-expression and resubmit the statement. sqlcode: -20309 sqlstate: 428GG |
|
SQL20316N |
Invalid compilation environment. Reason code = reason-code. |
The compilation environment provided is invalid for the reason specified in the accompanying reason code.
The statement cannot be executed. |
The action is based on the reason codes as follows:
sqlcode: -20316 sqlstate: 51040 |
|
SQL20317N |
The command or statement failed because the operation is only supported when there is at least one storage group defined for the database against which the command or statement was executed. |
Automatic storage simplifies storage management for table spaces. When you create a storage group, you specify the storage paths where the database manager will place your data. After a storage group is created in a database, there is always a default storage group for the database. As you create and populate automatic storage table spaces, the database manager will manage the container and space allocation for those automatic storage table spaces to use the default or specified storage group. This message is returned when an attempt is made to perform an action that require a storage group against a database that has no storage groups defined, such as the following examples:
|
To use automatic storage functionality with this database, create at least one storage group. sqlcode: -20317 sqlstate: 55060 |
|
SQL20318N |
The ALTER TABLESPACE statement failed because the change is not allowed for the type of table space. Table space name: tablespace-name. Table space type: tablespace-type. Incompatible clause: clause. |
The following are operations that are incompatible with a corresponding table space type, as indicated.
|
Rewrite the ALTER TABLESPACE statement to ensure that the operations are compatible with the table space type. sqlcode: -20318 sqlstate: 42858 |
|
SQL20319N |
The SET TABLESPACE CONTAINERS command is not allowed on an automatic storage table space. |
Containers associated with automatic storage table spaces are under the control of the database and cannot be redefined via the SET TABLESPACE CONTAINERS command. |
To specify a new set of paths for all automatic storage table spaces in the database, use the ON option of the RESTORE DATABASE command and specify one or more paths. sqlcode: -20319 sqlstate: 55061 |
|
SQL20320N |
The maximum size specified for the table space is not valid. |
The maximum size specified in the CREATE TABLESPACE or ALTER TABLESPACE statement is not valid. If creating the table space, the maximum size must be greater than or equal to the initial size specified. If altering an existing table space, the maximum size must be greater than or equal to the current size of the table space. |
Specify a larger value for the maximum size as described in this message's Explanation. sqlcode: -20320 sqlstate: 560B0 |
|
SQL20321N |
The command failed because storage paths cannot be provided when there are no storage groups in the database. |
The database in the backup image does not define a storage group but storage paths are being provided in one of the following ways:
Prior to Version 10, a database in the backup image had to be defined to use automatic storage in order to specify storage paths. This message is returned by database servers prior to Version 10 when an attempt is made to perform an action that requires automatic storage in a database backup image that has not been enabled for automatic storage. |
Resolve the problem using the appropriate action:
sqlcode: -20321 sqlstate: 55062 |
|
SQL20322N |
The database name provided does not match server-name, the name of the database that the application is connected to. |
The database name does not match server-name, the name of the database that the application is currently connected to. The database name was either explicitly specified or determined by the specified database alias name. |
If the intention is to alter the database that you are currently connected to, either remove the database name from the statement or specify the correct name. If the intention is to alter the database with the given name, and not the database you are currently connected to, disconnect from the current database and connect to the specified database before resubmitting the statement. If you are backing up or restoring a database, connect to that database and provide the correct database name or database alias name. sqlcode: -20322 sqlstate: 42961 |
|
SQL20323N |
The storage path storage-path already exists for the storage group or is specified more than once. |
Either a storage path being added already exists for the storage group, or there are duplicates within the list being provided. |
Remove the path from the command or statement and resubmit the command or statement. sqlcode: -20323 sqlstate: 42748 |
|
SQL20324N |
The operation operation is already in progress. |
The operation operation has already been issued in this transaction or it has been issued as part of a separate uncommitted transaction. |
Commit the transaction with the outstanding operation and reissue the statement. sqlcode: -20324 sqlstate: 25502 |
|
SQL20325N |
Adding, extending, or setting containers for table space tablespace-name would exceed the maximum size max-size. |
Table space tablespace-name has AUTORESIZE set to YES with a defined maximum size. However, the amount of space being added to the table space by the ALTER TABLESPACE statement or set by the SET TABLESPACE CONTAINERS command is resulting in the size of the table space being greater than this maximum size. |
If executing an ALTER TABLESPACE statement then before resubmitting the statement, increase MAXSIZE for the table space such that it is greater than or equal to the current size of the table space plus the amount of space being added. Alternately, set AUTORESIZE to NO for the table space. Note that disabling auto-resize will result in the current values of MAXSIZE and INCREASESIZE being lost. If executing the SET TABLESPACE CONTAINERS command then specify a set of containers that has a total size less than or equal to the maximum size of the table space. sqlcode: -20325 sqlstate: 54047 |
|
SQL20326N |
An XML element name, attribute name, namespace prefix or URI ending with string exceeds the limit of 1000 bytes. |
The system is processing an element name, attribute name, namespace prefix or a URI to generate an internal identifier for the string. The length of the string exceeds the limit of 1000 bytes for the string when represented in UTF8. The value of string gives the ending characters of the string that exceeded the limit. The statement cannot be processed. |
Try to use shorter element names, attribute names, namespace prefixes or URIs and then try the operation again. sqlcode: -20326 sqlstate: 54057 |
|
SQL20327N |
The internal representation of an XML path exceeds the limit of 125 levels. |
The system is generating an internal representation of an XML path. The path may exist in an XML document that is being parsed or validated or in an XML value that is being constructed. The limit is reached because the document is nested too deep. The statement cannot be processed. |
For a document or constructed XML value, reduce the number of levels of elements and attributes that are used. sqlcode: -20327 sqlstate: 54058 |
|
SQL20328N |
The document with target namespace namespace and schema location location already has been added for the XML schema identified by schema-name. |
This error can occur while invoking the XSR_ADDSCHEMADOC stored procedure. Within an XML schema, there cannot be two documents with the same targetnamespace and schemalocation. The statement cannot be processed. |
Change either the namespace or schemalocation of the document that is being added. sqlcode: -20328 sqlstate: 42749 |
|
SQL20329N |
The completion check for the XML schema failed because one or more XML schema documents is missing. One missing XML schema document is identified by uri-type as uri. |
The XML schema registration completion processing determined that more than one XML schema document is required for a complete XML schema and at least one XML schema document is missing from the XML schema repository. The missing XML schema document is identified by the either targetnamespace or schemalocation uri-type and the value for the namespace or XML schema location uri. The reference to the missing XML schema document may be included in one of the XML schema documents that is defined for the XML schema. The statement cannot be processed. |
Add any missing XML schema documents for the XML schema to the XML schema repository. The document identified by uri-type as uri must be added. sqlcode: -20329 sqlstate: 428GI |
|
SQL20330N |
The xsrobject-type identified by the XML uri-type1 uri1 and XML uri-type2 uri2 is not found in the XML schema repository. |
Processing of the statement or command required the use of an XSROBJECT from the XML schema respository that could not be found. If the xsrobject-type is XMLSCHEMA, then an XML schema is required for validation of an XML value. The uri-type1 is NAMESPACE and the XML schema target namespace uri1 may have been identified explicitly in the statement using the ACCORDING TO XMLSCHEMA URI clause or may be identified in the XML value. If the optional LOCATION clause is also specified, then uri-type2 is LOCATION and uri2 indicates this value, otherwise it is an empty string. If the xsrobject-type is EXTERNAL ENTITY, then an XML external entity is required for parsing or validation of an XML value. The identification of the external entity is based on uri-type1 of SYSTEM ID with the system identifier as uri1 and uri-type2 of PUBLIC ID with the public identifier as uri2. If uri2 is empty, then no public identifier was available. The statement or command cannot be processed. |
Register the XML schema or XML external entity identified by uri1 and uri2 before processing the XML value. sqlcode: -20330 sqlstate: 22532, 4274A |
|
SQL20331N |
The XML comment value string is not valid. |
The XML comment cannot contain two adjacent hyphens and cannot end in a hyphen. |
Ensure the value for the XML comment is valid. sqlcode: -20331 sqlstate: 2200S |
|
SQL20332N |
The XML processing instruction value string is not valid. |
The XML processing instruction must not contain the substring '?>'. |
Ensure the value for the XML processing instruction is valid. sqlcode: -20332 sqlstate: 2200T |
|
SQL20333N |
The operation could not be performed because it violated an integrity constraint at data source data-source. Associated text and tokens are tokens. |
The insert, update, or delete operation violated an integrity constraint defined at a federated data source. The violation could be due to the interaction of a trigger at the data source. The statement could not be executed. The contents of the object table are unchanged. Some data sources do not provide specific information about the constraint that was violated. Other data sources provide more information in the db2diag log file. |
Examine the constraints on the object referenced by the operation to determine the cause of the violation. Look in the db2diag log file for more information about the constraint that was violated. sqlcode: -20333 sqlstate: 23527 |
|
SQL20334N |
A SOAP Fault was received from the web services data source tokens. Associated text and tokens are text-and-tokens. |
The web services data sourcedata-source-name that is using the Simple Object Access Protocol (SOAP) sent a SOAP Fault to the federated server. Further information about this error situation is in tokens. |
Use the information provided intokens to identify and correct the root cause of the SOAP Fault at the data source, data-source-name. sqlcode: -20334 sqlstate: 560CB |
|
SQL20335N |
More than one xsrobject-type exists identified by XML uri-type1 uri1 and uri-type2 uri2 exists in the XML schema repository. |
There is more than one registered XSROBJECT that matches the URI used to identify an XML schema or external entity. If xsrobject-type is XMLSCHEMA, then identification for the XML schema is based on uri-type1 of NAMESPACE with the XML schema target namespace as uri1 and uri-type2 of LOCATION with XML schema location as uri2. If ui2 is empty, then no schema location was specified. If xsrobject-type is EXTERNAL ENTITY, then identification for the external entity is based on uri-type1 of SYSTEM ID with the system identifier as uri1 and uri-type2 of PUBLIC ID with the public identifier as uri2. If uri2 is empty, then no public identifier was specified. The statement cannot be processed. |
If both uri1 and uri2 are indicated, then either drop duplicate XSROBJECTs of type xsrobject-type from the XML schema repository or, for XML schemas, explicitly specify the XMLSCHEMA ID for one of these XML schemas. If the schema location (uri2) is empty, it may also be possible to explictly specify XMLSCHEMA URI and LOCATION to uniquely identify an XML schema. sqlcode: -20335 sqlstate: 22533, 4274B |
|
SQL20336N |
A value with data type source-data-type cannot be XMLCAST to type target-data-type. |
The statement contains a CAST with the first operand having a data type of source-data-type to be cast to the data type target-data-type. This cast is not supported. |
Change the data type of either the source or target so that the cast is supported. For predefined data types these are documented in the SQL Reference. For a cast involving a user-defined distinct type, the cast can be between the base data type and the user-defined distinct type or from a data type that is promotable to the base data type to the user-defined distinct type. sqlcode: -20336 sqlstate: 42846 |
|
SQL20337N |
The BY REF clause is missing or used incorrectly. Reason code=reason-code. |
The following explain the error based on possible values for reason-code.
|
Take the following action based on the reason-code.
sqlcode: -20337 sqlstate: 42636 |
|
SQL20338N |
The data type of either the source or target operand of an XMLCAST specification must be XML. |
The XMLCAST specification must have one operand that has the data type XML. The XMLCAST operation can be from an XML type value to an SQL type value or from an SQL type value to and XML type value. The XMLCAST specification also accepts having both the source and target operands as XML but no actual casting operation is performed in this case. |
If both operands are SQL data types other than XML, use the CAST specification. Otherwise, change the XMLCAST specification so that at least one operand is the XML data type. sqlcode: -20338 sqlstate: 42815 |
|
SQL20339N |
The XML schema xmlschema-name is not in the correct state to perform operation operation. |
The operation specified by operation cannot be performed on the XML schema identified by the XML schema identifier xmlschema-name because it is not in the correct state. For example, the XML schema has already been completed and the operation is attempting to add additional XML schema documents. The statement cannot be processed. |
Check the current state of the XML schema to determine the operations that are valid for the XML schema. If the XML schema is completed, no further XML schema documents can be added. sqlcode: -20339 sqlstate: 55063 |
|
SQL20340N |
The XML schema xmlschema-name includes at least one XML schema document in namespace namespace with component ID component-id that is not connected to the other XML schema documents in the same namespace using an include or redefine. |
The XML schema identified by identifier xmlschema-name includes multiple XML schema documents in the namespace namespace. At least one of these XML schema documents is not connected to the other XML schema documents in the same namespace using an include or redefine. One such XML schema document is identified in the XML schema repository with component identifier component-id. The statement cannot be processed. |
Correct the XML schema documents so that all XML schema documents within a namespace are connected using an include or a redefine. The component-id can be used to query SYSCAT.XSROBJECTCOMPONENTS for further information about the specifically reference XML schema document that is not connected within the namespace. sqlcode: -20340 sqlstate: 22534 |
|
SQL20341W |
Transfer operation ignored since auth-ID is already the owner of the database object. |
The TRANSFER statement specified to transfer the database object to authorization ID auth-ID. The authorization ID is already the owner of the database object. There is no need to transfer the database object. |
No action is required. sqlcode: +20341 sqlstate: 01676 |
|
SQL20342N |
auth-ID does not have one or more required privileges privilege-list on object object-name of type object-type necessary for ownership of the object. |
The TRANSFER statement attempted to transfer ownership of the object to authorization ID auth-ID which does not have the necessary privileges to be the owner of the object. The privileges privilege-list on the object object-name are the privileges that are missing. The statement cannot be processed. |
Grant the authorization ID auth-ID all the privileges necessary, as indicated by privilege-list, on object object-name, for the authorization ID to be the owner of the object being transferred. sqlcode: -20342 sqlstate: 42514 |
|
SQL20344N |
Transferring ownership of object-name1 failed because of a dependency involving object-name2. Reason code: reason-code. |
When an object is created, one authorization ID is assigned ownership of the object. Ownership means the user is authorized to reference the object in any applicable SQL or XQuery statement. You can transfer ownership of a database object by using the TRANSFER OWNERSHIP statement. This message is returned when an attempt to transfer the ownership of an object fails. The reason code indicates the specifics of the failure:
|
Respond to this message according to the reason code:
sqlcode: -20344 sqlstate: 429BT |
|
SQL20345N |
The XML value is not a well-formed document with a single root element. |
The XML value is not a well-formed document. An XML value that is being stored in a table or validated must be a well-formed XML document with a single root element. The document node of the XML value must not have any text node children, although it can have comment node or processing instruction node children. The statement cannot be processed. |
Storing or validating the XML value requires that the XML value be modified so that it is a well-formed document with a single root element. If the document is well-formed, ensure that the document node of the XML value has only a single element node as a child and no text node child. Otherwise, do not attempt store or validate the XML value. sqlcode: -20345 sqlstate: 2200L |
|
SQL20346N |
The XML schema xmlschema-id does not contain a global element named element-local-name in namespace namespace-uri. |
A validation operation specified that an explicit element local name element-local-name in namespace namespace-uri should be the root element of the XML document to be validated. However, the XML schema with SQL identifier xmlschema-id does not have element-local-name declared as a global element in namespace namespace-uri. The statement cannot be processed. |
Check that the element local name element-local-name in namespace namespace-uri is correct for the XML schema and the XML document that is being validated. Change the element local name, namespace or the XML schema and try the validation again. sqlcode: -20346 sqlstate: 22535 |
|
SQL20347N |
The XML value does not contain a root element named element-local-name in namespace namespace-uri. |
The root element of the XML document does not match the required element local name element-local-name in namespace namespace-uri specified for validation. The statement cannot be processed. |
Provide an XML value where the root element matches with the specified element local name and namespace. If the XML value is correct, change the specified element local name or namespace. sqlcode: -20347 sqlstate: 22536 |
|
SQL20349N |
The user mappings from the user mapping repository for plugin plugin-name cannot be accessed. Reason code reason-code. |
The user mapping from the user mapping repository for plugin plugin-name cannot be accessed. The cause of the error is indicated by the reason-code:
|
See the federation documentation for details on user mapping plugins. The action is based on the reason-code as follows:
sqlcode: -20349 sqlstate: 429BU |
|
SQL20350N |
Authentication at the user mapping repository for plugin plugin-name failed. |
The user mapping from the user mapping repository for plugin plugin-name cannot be accessed because authentication at the user mapping repository failed. |
See the federation documentation for details on user mapping plugins. Correct the repository connection credential parameters of the plugin. sqlcode: -20350 sqlstate: 42516 |
|
SQL20351W |
Wrapper options were ignored for servers of wrapper wrapper-name that already have the plugin defined. |
The existing DB2_UM_PLUGIN related options specified for a server are not overwritten when DB2_UM_PLUGIN related options of the corresponding wrapper are created or altered. |
To change the DB2_UM_PLUGIN related options that are already specified for a server, alter the server options directly. sqlcode: +20351 sqlstate: 01677 |
|
SQL20352W |
Changes to the user mapping apply only to the federated catalog table and not to the external user mapping repository. |
The DB2_UM_PLUGIN option has been set for the server. User mappings for this server are read from the external user mapping repository, however CREATE USER MAPPING, ALTER USER MAPPING, and DROP (USER MAPPING) statements only affect user mappings in the federated catalog table. |
Use another interface to the external user mapping repository to create, alter, or drop the user mappings. sqlcode: +20352 sqlstate: 01678 |
|
SQL20353N |
An operation involving comparison cannot use operand name defined as data type type-name. |
The use of the value identified by name defined as data type
type-name is not permitted in operations involving comparisons. An expression
resulting in a type-name data type is not permitted in:
The statement cannot be processed. |
The requested operation on the data type type-name is not supported. You may be able to change the data type of the value to a data type that is supported using a cast or some other function. sqlcode: -20353 sqlstate: 42818 |
|
SQL20354N |
Invalid specification of a row change timestamp column for table table-name. |
The specification of a row change timestamp column is invalid for one of the following reasons. A row change
timestamp column cannot:
The statement cannot be executed. |
Correct the syntax and resubmit the statement. sqlcode: -20354 sqlstate: 429BV |
|
SQL20356N |
The table table-name cannot be truncated because DELETE triggers exist for the table, or the table is the parent in a referential constraint. |
The TRUNCATE statement could not be processed for one of the following reasons:
The statement cannot be processed. |
If the statement failed because of the existence of DELETE triggers, specify the IGNORE DELETE TRIGGERS clause on the TRUNCATE statement. If the statement failed because of referential constraints, use the ALTER TABLE statement to drop the referential constraints, and then re-issue the TRUNCATE statement. sqlcode: -20356 sqlstate: 428GJ |
|
SQL20357N |
One or more federated one-phase commit data source sites have failed commit or rollback processing. As a result, the transaction outcome might not be consistent across all sites. Subsequent SQL statements can be processed. Reason code reason-code. |
A federated server has sent a transaction commit or rollback request and one or more of the federated one-phase commit data source sites cannot complete the request. This may be caused by a server failure, communication link failure, or other failure. The transaction is not completely committed or rolled back. The reason code indicates the specific situation.
|
Check the administration notification log for details. Compensating actions may need to be applied manually at the federated one-phase commit data source sites. It may be necessary to contact the system administrator for assistance. For reason 5, disconnect the application from the federated server, e.g. issue a 'connect reset' clp command and reconnect. sqlcode: -20357 sqlstate: 40003 |
|
SQL20358N |
Commit or rollback processing encountered an error. The transaction at some federated two-phase commit data source sites could be indoubt. Subsequent SQL statements can be processed. Reason code reason-code. |
A federated server has sent a transaction commit or rollback request and one or more of the federated two-phase commit data source sites cannot complete the request. This may be caused by a server failure, communication link failure, or other failure. The transaction might be indoubt at the federated two-phase commit data source site. The reason code indicates the specific situation.
|
Determine the cause of the error. It may be necessary to contact the system administrator for assistance since the most common cause of the error is a federated server failure, federated data source site failure, or connection failure. For a federated server failure, the RESTART DATABASE command will complete the commit or rollback processing for this transaction. For a federated data source site failure, restart the failed data source. For a connection failure, consult with your network administrator and/or communication expert to determine the cause of the problem. For reason 3, check possible indoubt transactions on the federated data source site, and manually resolve them if existing. For reason 4, disconnect the application from the federated server, e.g. issue a 'connect reset' clp command and reconnect. sqlcode: -20358 sqlstate: 08007 |
|
SQL20360W |
A trusted connection cannot be established for the specified authorization ID. |
A trusted connection cannot be established for the specified authorization ID. A matching trusted context is not currently defined or the server does not support trusted context. The attempt to create a trusted connection was not successful and a normal connection was created. Federated system users: If this message is returned during a federated request, then the attempt to create a trusted connection between the federated database and the remote server was not successful, and a normal connection was created instead. |
Ensure that the server supports trusted contexts and that the trusted context has been correctly defined, and try to re-establish a trusted connection. Federated system users: Ensure that the remote server supports trusted contexts and that the trusted context has been correctly defined on the remote server. sqlcode: +20360 sqlstate: 01679 |
|
SQL20361N |
The switch user request using authorization ID authorization-name within trusted context context-name failed with reason code reason-code. |
The switch user request within the trusted context context-name failed. The trusted connection is in an unconnected state. |
Use the authorization ID authorization-name and the following explanations
for reason code reason-code to determine what action to take.
sqlcode: -20361 sqlstate: 42517 |
|
SQL20362N |
Attribute attribute-name with value value cannot be dropped or altered because it is not part of the definition of trusted context context-name. |
Attribute attribute-name was specified for a trusted context, but the trusted context is not defined with an attribute with this name. The statement could not be processed. |
Remove the name of the unsupported attribute and re-issue the statement. sqlcode: -20362 sqlstate: 4274C |
|
SQL20363N |
Attribute attribute-name with value value is not unique for trusted context context-name. |
During the create or alter of trusted context context-name, a duplicate value value was specified for the attribute-name attribute. Each pair of attribute name and value must be unique for a trusted context. The statement cannot be processed. |
Remove the non-unique specification of attribute-name and and re-issue the statement. sqlcode: -20363 sqlstate: 4274D |
|
SQL20364N |
The identifier with the name name at ordinal position number in the statement is too long. |
At least one identifier in the described statement is too long to fit in the destination buffer. The first name that is too long is identified by the name name and ordinal position number. If performing a describe output of a prepared query, the ordinal position is relative to the select list column of the query. If performing a describe output of a CALL statement, the ordinal position is relative to the OUT or INOUT parameters of the procedure to which the CALL resolved. If performing a describe input of a CALL statement, the ordinal position is relative to the IN or INOUT parameters of the procedure to which the CALL resolved. The column name, parameter name, user defined type name or user defined type schema name was either too long, or became too long after code page conversion. Note that the lengths of the column name, parameter name, user defined type name, and user defined type schema name are limited when using the SQLDA structure. |
Do one of the following:
sqlcode: -20364 sqlstate: 42622 |
|
SQL20365W |
A signaling NaN was encountered in an arithmetic operation or function involving DECFLOAT |
A signaling NaN (sNaN) was encountered in an expression, arithmetic operation, or function involving a DECFLOAT column or value. The result is NaN |
To stop the warning from being returned, find the tuple or tuples containing a signaling NaN and exclude them from the query. sqlcode: +20365 sqlstate: 01565 |
|
SQL20371W |
The ability to use trusted context context-name was removed from some, but not all authorization IDs specified in the statement. |
An ALTER TRUSTED CONTEXT statement for context-name contained a DROP USE FOR clause with multiple authorization IDs or PUBLIC, but one or more authorization IDs were not defined to use the trusted context. One or more users were removed from the definition of the trusted context, but one or more other users were not previously allowed to use the trusted context. The statement was processed. |
Verify that the ability to use the trusted context was removed from all of the authorization IDs that was intended. sqlcode: +20371 sqlstate: 01682 |
|
SQL20372N |
The trusted context context-name specified authorization ID authorization-name which is already specified for another trusted context. |
A CREATE TRUSTED CONTEXT or ALTER TRUSTED CONTEXT statement for context-name specified SYSTEM AUTHID authorization-name, but this authorization ID is already defined to use a different trusted context. A system authorization ID that is defined as the SYSTEM AUTHID for a trusted context cannot be associated with any other trusted context as the SYSTEM AUTHID. Use the following query to determine which trusted context is already using the authorization ID:
The statement could not be processed. |
Change the authorization ID to be the system authorization ID for the trusted context and reissue the CREATE or ALTER statement. sqlcode: -20372 sqlstate: 428GL |
|
SQL20373N |
A CREATE TRUSTED CONTEXT or ALTER TRUSTED CONTEXT statement specified authorization-name more than once or the trusted context is already defined to be used by this authorization ID or PUBLIC. |
The statement specified that authorization-name be allowed to use the trusted context, but the specified authorization ID or PUBLIC is already defined to use the trusted context, or the authorization ID was specified more than once in the statement. The authorization ID or PUBLIC must not already be allowed to use the trusted context, and it can only be specified once within a statement for a trusted context. The statement could not be processed. |
If the authorization ID or PUBLIC was specified more than once, remove the extra specifications of authorization-name, and re-issue the statement. If an ALTER TRUSTED CONTEXT statement contained an ADD USE FOR clause, and the trusted context already was defined for use by that authorization ID or PUBLIC, use the REPLACE USE FOR clause instead to redefine the usage characteristics for the specified users to use the trusted context. sqlcode: -20373 sqlstate: 428GM |
|
SQL20374N |
An ALTER TRUSTED CONTEXT statement for context-name specified authorization-name but the trusted context is not currently defined to be used by this authorization ID or PUBLIC. |
An ALTER TRUSTED CONTEXT statement for context-name attempted to replace or remove the ability for authorization-name to use the trusted context, but the specified authorization ID or PUBLIC is not currently defined to use the trusted context. The statement could not be processed. |
If an ALTER TRUSTED CONTEXT statement contained a REPLACE USE FOR clause, and the trusted context was not already defined for use by that authorization ID or PUBLIC, use the ADD USE FOR clause instead to define the trusted context to be used by the specified users. If the ALTER TRUSTED CONTEXT statement contained the DROP USE FOR clause, none of the specified authorization IDs or PUBLIC were currently defined to use the trusted context. sqlcode: -20374 sqlstate: 428GN |
|
SQL20377N |
An illegal XML character hex-char was found in an SQL/XML expression or function argument that begins with string start-string. |
An SQL/XML expression or function attempted to convert an SQL string value from one of the arguments to an XML string, but the string included a character at Unicode code point hex-char that is not a legal XML 1.0 character. The character is included in a string that begins with the string start-string. The value for hex-char represents the illegal character as a Unicode code point in the form "#xH", where H is one or more hexadecimal characters. The following set of Unicode characters (defined using a regular expression) are allowed: #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]. Examples of the SQL/XML expression or function that may encounter this error are XMLCAST, XMLELEMENT, XMLFOREST, XMLAGG, XMLDOCUMENT, XMLTEXT, XMLATTRIBUTES, XMLQUERY, or XMLTABLE. The statement cannot be processed. |
Remove the illegal character hex-char or replace it with a character that is allowed. sqlcode: -20377 sqlstate: 0N002 |
|
SQL20379N |
An authorization ID cannot use its SECADM authority to transfer the ownership of an object to itself. |
An authorization ID that has the SECADM authority cannot transfer the ownership of an object it does not already own to itself. It can, however, transfer the ownership of the object to another authorization ID. The statement cannot be processed. |
Choose a different authorization ID as the new owner of the object. sqlcode: -20379 sqlstate: 42502 |
|
SQL20383W |
Errors were encountered and tolerated as specified by the RETURN DATA UNTIL clause. |
At least one error as specified by the RETURN DATA UNTIL clause was encountered and tolerated, with execution continuing for the query. The results of the query might not be the same as they would be if the error had not occurred. |
Be aware that the query results might not be complete. If appropriate, check the source of the tolerated error and correct the situation. sqlcode: +20383 sqlstate: 02506 |
|
SQL20384W |
The specified locale is not supported. The message was returned in the English locale. |
The specified locale is not supported by the database manager. |
Refer to the Administration Guide: Planning for the "Supported code pages and territories" or refer to the DB2 infocenter for the supported server languages and the corresponding locale values. sqlcode: +20384 sqlstate: 01684 |
|
SQL20386N |
An XQuery expression cannot be specified in a DECLARE CURSOR statement. |
The DECLARE CURSOR statement does not allow an XQuery expression to be specified directly following the FOR keyword. An XQuery expression can only be associated with a cursor using a prepared statement name. |
Remove the XQuery expression from the DECLARE CURSOR statement and replace it with a statement name. Prepare the XQuery expression by issuing a PREPARE statement using the same statement name. sqlcode: -20386 sqlstate: 42637 |
|
SQL20387N |
Two or more elements are specified for the security label component component-name. |
A security label cannot have multiple elements for a component of type ARRAY. |
Specify only one element for the security label component component-name. sqlcode: -20387 sqlstate: 428GP |
|
SQL20388N |
Too many elements are specified for the security label component component-name. |
A security label component of type SET or TREE can have no more than 64 elements. More than this number are specified for security label component component-name. For a security label component of type ARRAY, the maximum number of elements is 65 535. If elements are added via the ALTER SECURITY LABEL COMPONENT statement, the actual limit may be lower than this maximum due to the way DB2 assigns an encoded value to each new element. |
For TREE and SET security label components, remove elements so that there are no more than 64. For ARRAY security components, if the maximum has not been reached, drop and create the component again with all the desired elements specified. sqlcode: -20388 sqlstate: 54061 |
|
SQL20389N |
The component element element is not defined in the security label component component-name. |
The component element element does not exist in the definition of security label component component-name. |
Provide a valid element for the component. You can submit the following query to list the valid elements for the security label components:
If you get this error when executing the scalar function SECLABEL, then also check the security label string to make sure that the values are listed in the same order that their components are listed in the security policy. sqlcode: -20389 sqlstate: 4274F |
|
SQL20390N |
The security label component component-name is not defined in the security policy security-policy so that component cannot be used in the security label security-label. |
Security labels can only contain values for those components that are defined in the security policy that the label is part of. The security label component component-name is not part of the security policy security-policy. The security label security-label is part of that security policy so the component component-name cannot be used in that security label. |
Provide a security label component that is part of the security policy security-policy. You can execute the following query to list the security label components that are part of the security policy:
sqlcode: -20390 sqlstate: 4274G |
|
SQL20391N |
Label-based access control cannot be applied to the column column-name because there is no security policy associated with the table. |
In order to use the SECURED WITH clause with column column-name or to define it with a data type of DB2SECURITYLABEL, a security policy must be associated with the table. |
Add a security policy to the table using the SECURITY POLICY clause of the CREATE TABLE statement or the ADD SECURITY POLICY clause of the ALTER TABLE statement. sqlcode: -20391 sqlstate: 55064 |
|
SQL20392N |
The table table already has a security policy. |
A table can have at most one security policy. Once associated, a security policy cannot be changed for a table. |
Do not try to assign another security policy to the table. sqlcode: -20392 sqlstate: 55065 |
|
SQL20393N |
The maximum number of components in security policy security-policy has been exceeded. |
A security policy can have maximum of 16 components. |
Reduce the number of components specified for the security policy security-policy. sqlcode: -20393 sqlstate: 54062 |
|
SQL20394N |
The access rule access-rule does not exist in the rule set used by the security policy policy-name. |
The access rule access-rule specified in the GRANT EXEMPTION or REVOKE EXEMPTION statement is not part of the LBAC rule set that is used by the security policy policy-name. |
The specified access rule does not exists for in the rule set used by the specified security policy. sqlcode: -20394 sqlstate: 4274H |
|
SQL20395N |
The GRANT of security label security-label1 conflicts with security label security-label2 that is also granted to authorization ID authorization-name. |
If the user, group, or role is granted two distinct labels, one for WRITE access and another for READ access, they must satisfy the following rules:
|
Grant a different security label or make one of these modifications to the security label that is being granted:
sqlcode: -20395 sqlstate: 428GQ |
|
SQL20396N |
The security label named security-label-name cannot be found for the security policy policy-name. |
The security label named security-label-name cannot be found for the security policy policy-name. This caused execution of the built-in function SECLABEL_BY_NAME to fail. |
Check the spelling of security-label-name. Make sure you are using the correct security policy name. sqlcode: -20396 sqlstate: 4274I |
|
SQL20397W |
Routine routine-name execution has completed, but at least one error, error-code, was encountered during the execution. More information is available. |
Routine routine-name execution has completed. At least one error was encountered during the internal execution of the requested function. The last error encountered was error-code. More detailed information on the errors encountered is available. For the ADMIN_CMD routine, its output parameter and result set, if any, have been populated. For the LOGICAL_RESTORE stored procedure, more information can be found in the trace log that is generated by the LOGICAL_RESTORE stored procedure. |
Retrieve the output parameter and result set, if any, for more information on the errors encountered. If message files were generated during the execution, examine their content and resolve the error situations. If appropriate, reinvoke the routine again. sqlcode: +20397 sqlstate: 01H52 |
|
SQL20401N |
The table cannot be protected by a security policy because an MQT or staging table named object-name depends on the table. |
The table cannot be protected with LBAC because, a materialized query table (MQT) or staging table depends on the table. |
If appropriate, drop the MQT or staging table object-name and resubmit the statement. sqlcode: -20401 sqlstate: 55067 |
|
SQL20402N |
Authorization ID auth-id does not have the LBAC credentials to perform the operation-name operation on table table-name. |
The authorization ID auth-id is not allowed to perform operation operation-name on the table table-name. A user is not allowed to insert, update or delete a row in a protected table or alter the table to become a protected table if they do not have appropriate security label and/or exemption credentials. |
Ask your database security administrator to grant the authorization ID auth-id the proper security label or exemptions required to perform the insert, update or delete operation. To alter the table to become a protected table, a grant of a security label for WRITE access is required. sqlcode: -20402 sqlstate: 42519 |
|
SQL20403N |
The authorization ID auth-id already has a security label (security-label) for access-type access. |
Each authorization ID can have at most one security label for WRITE access and at most one for READ access. The security label security-label has already been granted to the authorization ID auth-id for access-type access. |
If you want to change the security label used for access-type access you must first use the REVOKE SECURITY LABEL statement to revoke the security label security-label from authorization ID auth-id. sqlcode: -20403 sqlstate: 428GR |
|
SQL20404N |
The security label object policy-name.object-name cannot be dropped because it is currently in use. Reason code reason-code. |
The security label object object-name could not be dropped. The reason it could not be dropped is specified by the reason code reason-code:
|
The user response corresponding to the reason code is:
sqlcode: -20404 sqlstate: 42893 |
|
SQL20405N |
The security policy object object-name cannot be dropped because it is currently in use. Reason code reason-code. |
The security object object-name could not be dropped. The reason it could not be dropped is specified by the reason code reason-code:
|
The user response corresponding to the reason code is:
sqlcode: -20405 sqlstate: 42893 |
|
SQL20406N |
The security label component object object-name cannot be dropped because it is part of a security policy. |
The security label component object object-name cannot be dropped because one or more security policies refer to it. |
Drop all the security policies that refer to this security component. The following query can be used find all the security policies that refer to this security component:
sqlcode: -20406 sqlstate: 42893 |
|
SQL20408N |
Table source-tablename cannot be attached to table target-tablename because column source-columnname of the source table and its associated column target-columnname of the target table do not match. Reason code = reason-code. |
An attribute of the target table column does not match the attribute of the corresponding column (aligned by ordinal position) in the source table in the ALTER TABLE ... ATTACH PARTITION statement. The reason-code indicates the type of mismatch and in which column of the SYSCAT.COLUMNS view to find the table attribute. In cases where it is difficult or impossible to modify the characteristics of either the source or target table for compatibility, you can create a new table that is compatible with the target table, and copy the data from source-tablename to this new table.
|
Correct the mismatch in the tables.
sqlcode: -20408 sqlstate: 428GE |
|
SQL20409N |
An XML document or constructed XML value contains a combination of XML nodes that causes an internal identifier limit to be exceeded. |
An internal identifier that must be associated with each XML node of an XML value cannot be generated because the combination of the number of levels of XML nodes and the number of children nodes within these levels causes the identifier to overflow. |
For a document or constructed XML value, reduce the number of levels of XML nodes or the number of children nodes especially at the deeper levels of XML nodes. sqlcode: -20409 sqlstate: 560CG |
|
SQL20410N |
The number of children nodes of an XML node in an XML value has exceeded the limit of limit-number children nodes. |
An expression generated an XML value with an XML node that has a number of children nodes which exceeds the limit of limit-number children nodes. |
Rewrite the expression generating the XML value such that the number of children nodes does not exceed the limit. sqlcode: -20410 sqlstate: 560CH |
|
SQL20412N |
Serialization of an XML value resulted in characters that could not be represented in the target encoding. |
Serialization of XML data may require conversion to an encoding different from the source UTF-8 encoding. If characters exist in the source encoding that cannot be represented in the target encoding, code page conversion produces substitution characters which are not allowed in the result of XML serialization. |
Choose a target encoding that can represent all characters in the XML value. Unicode encodings are recommended as they can represent all characters. sqlcode: -20412 sqlstate: 2200W |
|
SQL20413N |
The built-in function SECLABEL_TO_CHAR could not be executed because authorization ID auth-id has had its security label for READ access revoked. |
To execute the built-in function SECLABEL_TO_CHAR, the authorization ID must have a security label for READ access. The security label for READ access has been revoked from authorization ID auth-id. |
Contact the database security administrator or a user with SECADM authority and ask that the security label be granted again. sqlcode: -20413 sqlstate: 42520 |
|
SQL20414N |
The authority-or-privilege authority or privilege cannot be granted to authorization ID authorization-ID. |
The GRANT statement attempted to grant an authority or privilege to an authorization name that is not allowed to receive that authority or privilege. The statement cannot be processed |
Grant a different authority or privilege or grant it to an authorization ID that can receive the authority or privilege. sqlcode: -20414 sqlstate: 42521 |
|
SQL20415N |
Update, delete, or Insert into a UNION ALL view failed because one of the underlying tables is protected. |
Updates, deletes, and Inserts are not allowed into a UNION ALL view if that view is created on one or more protected tables. The statement cannot be processed |
Do not update, delete, or insert into the UNION ALL view. sqlcode: -20415 sqlstate: 429BZ |
|
SQL20416N |
The value provided (seclabel) could not be converted to a security label. Labels for the security policy with a policy ID of policy-id should be correct-length characters long. The value is value-length characters long. |
An INSERT or UPDATE statement specified a value for a column of type DB2SECURITYLABEL. The value cannot be converted to a valid security label because it is not the correct length for security labels that are part of the security policy that is protecting the table. If the seclabel value is *N, then the actual value has been written in the db2diag log file. |
Check the INSERT or UPDATE statement and make sure that the value being set in the security label column is valid for the security policy protecting the table. Sometimes an invalid value can be generated as a result of a SELECT done from a table that is not protected with the same security policy as the target table. You should only copy security labels between tables protected by the same security policy. To get the security policy name for the given policy ID use this SQL query. Replace policy-id with the policy ID number given in the error message.
sqlcode: -20416 sqlstate: 23523 |
|
SQL20417W |
The SQL compilation completed without connecting to the data source data-source-name. Connection error error-text was encountered. |
The federated server could not connect to the data source data-source-name during SQL compilation to determine which features the data source supports. The SQL query has been compiled using default settings. At run time an error may be received because the remote server's capabilities were not correctly determined at compilation time. The error-text contains information about what connection error was encountered. |
Recompile the statement or bind the package again when the data source is available, or if an error tolerant nested table expression is used in the SQL statement, execute the package immediately after the compilation to reduce the chance of the connection state changing between compilation and run time. Use the information in error-text to resolve the error connecting to the data source, if necessary. sqlcode: +20417 sqlstate: 01689 |
|
SQL20418N |
The database partition group is already assigned to the buffer pool. |
The database partition group that you are attempting to add has already been assigned to the buffer pool. |
Choose another database partition group and try again. sqlcode: -20418 sqlstate: 4274J |
|
SQL20419N |
For table table-name, authorization ID auth-id does not have LBAC credentials that allow using the security label security-label-name to protect column column-name. |
A user cannot use a security label to protect a column unless that user has LBAC credentials that allow writing to a column protected by the security label. Authorization ID auth-id does not have LBAC credentials that allow write access to data protected by the security label security-label-name and therefore cannot use it to protect column column-name in table table-name. |
Ask a database security adminstrator to grant the authorization ID authid LBAC credentials that allow write access to a column protected by security label security-label-name. sqlcode: -20419 sqlstate: 42522 |
|
SQL20420N |
For table table-name, authorization ID auth-id does not have LBAC credentials that allow removing the security label security-label-name from column column-name. |
To be able to drop or replace a security label that is protecting a column, an authorization ID must have LBAC credentials that allow both reading from and writing to a column. The authorization ID auth-id does not have LBAC credentials that allow both reading from and writing to a column protected by the security label security-label-name and therefore cannot drop or replace that security label. |
Ask a database security adminstrator to grant the authorization ID authid LBAC credentials that allow both read and write access to a column protected by security label security-label-name. sqlcode: -20420 sqlstate: 42522 |
|
SQL20421N |
The table table-name is not protected with a security policy. |
A security policy cannot be dropped from a table that is not protected with a security policy. |
Specify a table that is protected with a security policy. sqlcode: -20421 sqlstate: 428GT |
|
SQL20422N |
The statement failed because the table table-name would only contain hidden columns. |
A CREATE TABLE or ALTER TABLE statement attempted to create or alter table table-name in which all the columns are considered implicitly hidden. This can occur when:
Change the column definition ensuring it includes at least one column that is defined as not hidden. |
Ensure that the table definition includes at least one column that is not defined as implicitly hidden. sqlcode: -20422 sqlstate: 428GU |
|
SQL20423N |
Error occurred during text search processing on server server-name using index index-name. The error message is text-search-error-msg. |
An error described by text-search-error-msg occurred during the processing of a text search function that used the text search index index-name. |
Use text-search-error-msg to determine the cause of the error. If the error message is truncated, you can see the complete message in the db2diag log file. The first word in text-search-error-msg is an error identifier. If the error identifier starts with 'CIE', use the db2ts command to obtain more details, for example, db2ts help error-identifier. If the error identifier does not start with 'CIE', use the DB2 Text Search documentation to obtain more details about text-search-error-msg. sqlcode: -20423 sqlstate: 38H10 |
|
SQL20424N |
Text search support is not available. Reason code = reason-code. |
An error occurred while attempting to use text search. The reason code provides more information about the error:
|
Restart the text search instance service and try the operation again. If the error reoccurs, contact your system administrator to ensure that support for text searching has been installed, properly configured, and has been started on your system. sqlcode: -20424 sqlstate: 38H11 |
|
SQL20425N |
The statement failed because the column named column-name in the table named table-name was specified as an argument to a text search function, but an active text search index does not exist for the specified column. |
Text search processing cannot be performed for the specified column. |
sqlcode: -20425 sqlstate: 38H12 |
|
SQL20426N |
Conflicting text search administration procedures or commands running on the same index. |
Two or more conflicting administration procedures or commands are running on the same index. |
Invoke the administration procedure or command after the currently running procedure or command completes. If the operation attempted is DISABLE, retry this operation later or use the FORCE option of the command. To fix this conflict, the text search administrator needs to clear the lock: db2ts clear command locks for text connect to database-name sqlcode: -20426 sqlstate: 38H13 |
|
SQL20427N |
An error occurred during a text search administration procedure or command. The error message is text-search-error-msg. |
A text search administration operation failed with an error message text-search-error-msg. |
Use the error message text-search-error-msg to determine the cause of the error. If the message is truncated, you can see the db2diag log file. The first word in text-search-error-msg is an error identifier. If the error identifier starts with 'CIE', use the db2ts command to obtain more details, for example, db2ts help error-identifier. If the error identifier does not start with 'CIE', use the DB2 Text Search documentation to obtain more details about text-search-error-msg. sqlcode: -20427 sqlstate: 38H14 |
|
SQL20428N |
URI specified in the the ACCORDING TO XMLSCHEMA clause is an empty string. |
The target namespace URI specified following the URI keyword or the schema location URI specified following the LOCATION keyword is an empty string. |
Ensure that every target namespace URIs and every schema location URI in the ACCORDING TO XMLSCHEMA clause is a valid URI that is not an empty string. sqlcode: -20428 sqlstate: 428GV |
|
SQL20429N |
The XML operation operation-name is not allowed on strings that are not FOR BIT DATA on this database. |
The specified operation could not be performed on the string because it is not FOR BIT DATA. operation-name is either XMLPARSE or another prohibited operation. |
The database configuration parameter ENABLE_XMLCHAR is set to NO. To allow XMLPARSE on strings that are not FOR BIT DATA, set ENABLE_XMLCHAR to YES. Note that character substitution may occur if the database is not Unicode and the XML value being parsed contains characters that are not present in the database code page. Alternatively, rework the statement to use a host variable, expression or parameter marker of type XML. sqlcode: -20429 sqlstate: 428GW |
|
SQL20430N |
Global variable variable-name cannot be set or referenced in this context. |
In some contexts a global variable cannot be set and in other contexts it cannot be referenced. This message can be returned in the following situations:
The statement cannot be processed. |
Remove the unsupported setting or reference of the global variable. sqlcode: -20430 sqlstate: 428GX |
|
SQL20431N |
ROW CHANGE TIMESTAMP FOR table-designator cannot be returned for the table designator. |
A ROW CHANGE TIMESTAMP FOR table-designator expression is not valid for a table which does not have a column defined as a row change timestamp column. The statement cannot be processed. |
Remove the ROW CHANGE TIMESTAMP FOR expression from the statement or alter the table and add the row change timestamp column. sqlcode: -20431 sqlstate: 55068 |
|
SQL20432N |
The original XML schema contains schema-component that is enclosed within or referenced by enclosing-schema-component which is not compatible with the updated XML schema. The reason for the incompatibility is: reason-code (reason-string). |
The XML schema specified to update another existing XML schema does not meet the criteria for a compatible XML schema update. The original XML schema contains an element, attribute, or type schema-component that is enclosed within or referenced by the element or attribute enclosing-schema-component which is not compatible with the updated XML schema. The specific reason for the incompatibility is given by reason-code (reason-string).
|
Compare the explanations provided with reason-code (reason-string) and identify the cause of the incompatibility. Next, correct the problem and then resubmit the command to update the XML schema. sqlcode: -20432 sqlstate: 22538 |
|
SQL20435N |
The SELECT clause includes an ARRAY_AGG function and all invocations of ARRAY_AGG, LISTAGG, XMLAGG, and XMLGROUP functions in the same SELECT clause do not have the same order. |
The SELECT clause includes an ARRAY_AGG and one of the following conditions exists:
|
Change the sort-keys to make them identical, or remove the specification of sort-key in all but one of the function invocations. sqlcode: -20435 sqlstate: 428GZ |
|
SQL20436N |
The data type specified for an array is not valid. |
The data type specified for an array in the CREATE TYPE statement, CREATE HADOOP TABLE statement with columns of type array, array constructor, argument to UNNEST, argument to ARRAY_AGG, or target of ARRAY_AGG is not valid. The following restrictions apply when specifying a data type.
|
Ensure that the data type specified in a CREATE TYPE (array) statement, a CREATE HADOOP TABLE statement with columns of type array, an array constructor, the argument to UNNEST, the argument to ARRAY_AGG, or as the target of ARRAY_AGG is supported. sqlcode: -20436 sqlstate: 429C2 |
|
SQL20437N |
The array index operation cannot be applied to an object of a data type that is not ARRAY. |
The array index operation of the form object[array index] cannot be applied to an object whose type is not ARRAY. |
Change the variable or parameter to be of type ARRAY. sqlcode: -20437 sqlstate: 428H0 |
|
SQL20438N |
The data type of an array index expression is not assignable to the array index type. |
The type of an array index expression in an expression of the form object[array_index] must be assignable to INTEGER if the object is an ordinary array. If the object is an associative array, then the type of the array index expression must be assignable to the data type of the array index (INTEGER or VARCHAR). |
Change the data type of the array index expression to be one that is supported. sqlcode: -20438 sqlstate: 428H1 |
|
SQL20439N |
Array index with value value is out of range or does not exist. |
The value of an array index for an array element specification or the second argument to TRIM_ARRAY is out of range or the null value. If the array index is specified in an array element specification for an associative array and is valid for the array index data type, the element with array index value value does not exist in the array. |
For an associative array:
For an ordinary array:
sqlcode: -20439 sqlstate: 2202E |
|
SQL20440N |
Array value with cardinality cardinality is too long. The maximum cardinality allowed is max-cardinality. |
The array value required truncation from its cardinality of cardinality to a maximum cardinality of max-cardinality. A system (built-in) cast or adjustment function was called to transform the value in some way. The truncation is not allowed where the value is used. The array value being transformed is one of the following:
|
Examine the SQL statement to determine where the transformation is taking place. Either the input to the transformation is too long, or the target is too short. Explicitly reduce the cardinality of the input, or increase the cardinality that the target can support. sqlcode: -20440 sqlstate: 2202F |
|
SQL20441N |
A type-name data type is not supported in the context where it is being used. |
The data type can be specified in multiple contexts, including the following.
The following is a list of some invalid contexts:
|
Refer to the documentation for the most up to date list of supported contexts and for restrictions on the use of this data type. Remove any data types used in unsupported contexts. If referencing the data type in a routine reference from a command interface, invoke the routine from within an SQL PL context or provide a global variable of the specified data type as the routine argument. sqlcode: -20441 sqlstate: 428H2 |
|
SQL20442N |
There is not enough storage to represent the array value. |
The amount of memory required to represent an array value is larger than the maximum allowed for the system. |
Possible solutions may include:
sqlcode: -20442 sqlstate: 57011 |
|
SQL20443N |
The value for attribute attribute-name cannot exceed length. |
An attribute specified for a trusted context or workload definition is too long. Attribute attribute-name was specified, but the value exceeds the maximum length of length. |
Specify a valid value with a length no longer than length. sqlcode: -20443 sqlstate: 42907 |
|
SQL20445N |
The security label name name is not valid as specified. |
In the context where it is specified, the security label name must be explicitly qualified with an existing security policy name. |
Provide a security label name that is explicitly qualified with an existing security policy name. sqlcode: -20445 sqlstate: 42704 |
|
SQL20447N |
Format string format-string is not valid for the function-name function. |
The given format string format-string is invalid for the function named function-name. The function identified as function-name could be VARCHAR_FORMAT or TIMESTAMP_FORMAT, even if the name used to invoke the function was TO_CHAR, TO_DATE, or TO_TIMESTAMP. This message is returned when there is one of the following problems with the format-string argument:
The statement cannot be processed. |
Change the format string argument and call the function-name function again. sqlcode: -20447 sqlstate: 22007 |
|
SQL20448N |
string-expression cannot be interpreted using format string format-string for the TIMESTAMP_FORMAT function. |
The TIMESTAMP_FORMAT function was invoked with string-expression and format-string.
The name used to invoke the function could also be TO_DATE or TO_TIMESTAMP. The value string-expression cannot be interpreted
with the format string format-string to produce a timestamp value. This error can occur for any of the following reasons:
The statement cannot be processed. |
Change the format string argument of the TIMESTAMP_FORMAT function. For more information, see the TIMESTAMP_FORMAT function in the SQL Reference. sqlcode: -20448 sqlstate: 22007 |
|
SQL20449N |
Tree element element-value is not valid where specified. |
The tree element element-value is an existing element in the tree, but is not valid where it is specified in the statement. The tree structure of the tree component must be maintained. For example, in an ALTER SECURITY LABEL COMPONENT statement, the element-name specified in the OVER clause of the ADD ELEMENT clause is not an immediate child element of the tree element specified immediately after the UNDER keyword. |
Specify a valid tree element that would maintain the tree structure. For example, only specify existing tree elements that are immediate children elements of the tree element specified immediately after the UNDER keyword. sqlcode: -20449 sqlstate: 428H3 |
|
SQL20450N |
Recursion limit exceeded within a hierarchical query. |
Hierarchical queries using the CONNECT BY clause are limited to a recursive depth of 64 levels. The query has exceeded this level. |
Validate the correctness of the START WITH and CONNECT BY clauses. If recursions deeper than 64 levels are expected, rewrite the query using a recursive common table expression. Recursive common table expressions support arbitrary recursive depth. sqlcode: -20450 sqlstate: 54066 |
|
SQL20451N |
Cycle detected in a hierarchical query. |
The hierarchical query using the CONNECT BY clause has found a row which is a direct or indirect parent to itself, given the CONNECT BY search condition. The statement cannot be processed. |
Validate the correctness of the CONNECT BY clause, paying particular attention to the
PRIOR operator.
sqlcode: -20451 sqlstate: 560CO |
|
SQL20452N |
Hierarchical query construct name is used out of context. |
One of the following constructs has been found outside of the context of a hierarchical query:
The reason can be one of the following:
The statement cannot be processed. |
sqlcode: -20452 sqlstate: 428H4 |
|
SQL20453N |
The task task-name cannot be removed because it is currently executing. |
An attempt to remove task task-name failed because it is currently executing. |
Wait until the task completes and then use the SYSPROC.ADMIN_TASK_REMOVE procedure to remove the task. The SYSTOOLS.ADMIN_TASK_STATUS view can be used to check the execution status of the task. sqlcode: -20453 sqlstate: 5UA01 |
|
SQL20454N |
Invalid use of an outer join operator. Reason code = reason-code. |
The outer join operator (specified as "(+)") was used incorrectly in an SQL statement.
The meaning of the invalid use is given by the reason code reason-code.
The statement cannot be processed. |
Replace the use of the outer join operator with explicit OUTER JOIN syntax in the FROM clause. Alternatively, correct or remove the invalid use of the outer join operator based on the reason code. sqlcode: -20454 sqlstate: 428H5 |
|
SQL20456N |
An insert or update operation of multiple rows failed because both DEFAULT and explicit values cannot be specified for a column defined as ROW CHANGE TIMESTAMP and GENERATED BY DEFAULT. |
An insert or update operation on multiple rows of data attempted to insert or update rows specifying DEFAULT for some rows and explicit values for some rows for a column that is defined with both the ROW CHANGE TIMESTAMP attribute and GENERATED BY DEFAULT attribute. |
Modify the statement so that only DEFAULT is specified for the column for all of the rows, or explicit values are provided for the column for all of the rows. Alternatively, use two statements for this operation, one to set the column values to DEFAULT, and the other to set the column values to the explicitly provided values. sqlcode: -20456 sqlstate: 560CP |
|
SQL20457N |
The procedure procedure-name has encountered an unsupported version, version, for parameter number. |
The version, version, specified for the parameter in ordinal position number is not supported by the procedure procedure-name. |
Call the procedure and specify a supported version number for the parameter. The highest supported version number for the parameter can be obtained by calling the procedure and specifying NULL for the value of this parameter. sqlcode: -20457 sqlstate: 38554 |
|
SQL20458W |
The procedure procedure-name has encountered an internal parameter processing error in parameter number1. The value for parameter number2 contains further information about the error. |
The format or content of the parameter in ordinal position number1 in the call to the procedure procedure-name is invalid. The output parameter specified in ordinal position number2 contains information on how to respond to the error. |
Use the information in the output parameter specified in ordinal position number2 to correct the format or content of the parameter value and call the procedure again. sqlcode: +20458 sqlstate: 01H54 |
|
SQL20459W |
The procedure procedure-name has encountered an internal processing error. The value for parameter number contains further information about the error. |
An error occurred when the procedure procedure-name was processing a request. The output parameter specified in ordinal position number contains information on how to respond to the error. |
Use the information in the output parameter specified in ordinal position number to correct the error and call the procedure again. sqlcode: +20459 sqlstate: 01H55 |
|
SQL20460W |
The procedure procedure-name supports a higher version, version1, than the specified version, version2, for parameter number. |
A higher version, version1, for the parameter in ordinal position number is supported by the procedure procedure-name. The specified version, version2, is supported for the parameter. |
Check the documentation for the procedure to understand the additional features supported by the newer version of the parameter. Upgrade to the current version to take advantage of these additional features. sqlcode: +20460 sqlstate: 01H56 |
|
SQL20461W |
The procedure procedure-name returned output in the alternate locale, locale1, instead of the locale, locale2, specified in parameter number. |
The locale, locale2, specified in the parameter in ordinal position number was not available for the output of the procedure procedure-name. The output is returned using locale locale1. |
Install the message file support on the server for the specified locale, locale2, or specify a supported locale. sqlcode: +20461 sqlstate: 01H57 |
|
SQL20462W |
Unable to return distinct row change columns. Reason code = reason-code. |
WITH ROW CHANGE COLUMNS ALWAYS DISTINCT was specified as a prepare attribute, but the database manager is unable to return distinct row change columns. The statement was prepared successfully. |
If distinct row change columns are desired, use the following reason-code values to determine what to do.
sqlcode: +20462 sqlstate: 0168T |
|
SQL20464N |
An attempt to revoke the SECADM authority from authorization-ID was denied because it is the only external authorization ID of type user with SECADM authority. |
The SECADM authority must be held by at least one external authorization ID of type user, and the REVOKE statement is attempting to revoke the authority from the last authorization ID of type user that holds this authority. The statement cannot be executed. The SECADM authority is not revoked. |
Grant the SECADM authority to another external authorization ID of type user to allow the SECADM authority to be revoked from authorization-ID. sqlcode: -20464 sqlstate: 42523 |
|
SQL20465N |
The binary XML value is incomplete or contains unrecognized data at location position starting with the hex data text. Reason code = reason-code. |
An error occurred when processing a binary XML value. The first eight bytes of XML data in hexadecimal at position bytes is text. If the unrecognized data is located within the last eight bytes of the binary XML data, only the data starting at location position up to the end of the binary XML data is displayed. The reason code indicates the specific problem:
The statement cannot be processed. |
Fix the problem in your XML data or change your application to use textual XML format for data transfer. sqlcode: -20465 sqlstate: 22541 |
|
SQL20467N |
The statement was not executed because an expression cannot be computed as a single value for the query. The invalid expression is in the statement near the syntax element text. |
The expression in the statement near the syntax element text must result in a single value and must consist of one of the following elements:
The expression cannot include any of the following elements:
|
Run the statement again, after changing the expression to remove any elements that cannot be included. sqlcode: -20467 sqlstate: 428H7 |
|
SQL20469N |
Row or column access control activation for table table-name has failed due to reason code reason-code. |
Row access control cannot be activated explicitly or implicitly, or column access control cannot be activated explicitly for table table-name. The reason code indicates more specifically why the activation failed:
|
Correct the error and retry the activation of the row or column access control for the table. sqlcode: -20469 sqlstate: 55019 |
|
SQL20470N |
The CREATE or ALTER statement failed because object-type1 object-name1 was not defined as secure and object-type2 object-name2 is dependent on it. |
object-type1 object-name1 must be defined as secure because object-type2 objectname2 depends on it for row or column access control. The statement cannot be processed. |
The object needs to remain secure as long as a row permission or a mask depends on it, or a materialized query table that references tables with row or column access control activated depends on it. To complete the CREATE or ALTER statement, drop the dependent object after ensuring that it is not needed. sqlcode: -20470 sqlstate: 428H8 |
|
SQL20471N |
The INSERT or UPDATE statement failed because a resulting row did not satisfy row permissions. |
Row access control is enforced for the object of the INSERT or UPDATE operation. All attempts to INSERT or UPDATE rows in the table are checked to ensure that the resulting rows conform to the row permissions defined for that table. The statement cannot be processed. No INSERT or UPDATE operation was performed, and the contents of the table remain unchanged. |
Examine the definitions of the row permissions to determine why the requested INSERT or UPDATE operation failed. This may be a data-dependent condition. sqlcode: -20471 sqlstate: 22542 |
|
SQL20472N |
The ALTER statement on the permission or mask object-name failed due to reason code reason-code. |
The ALTER MASK or ALTER PERMISSION statement cannot be processed for one of the following reasons:
The statement cannot be processed. |
sqlcode: -20472 sqlstate: 428H9 |
|
SQL20473N |
The function function-name, created with the NOT SECURE option failed. The function referenced column column-name which has a column mask with column access control activated for the table. |
The input argument of an insecure function must not reference a column which has a column mask defined with column access control activated for the table. The statement cannot be processed. |
sqlcode: -20473 sqlstate: 428HA |
|
SQL20474N |
The CREATE PERMISSION or CREATE MASK statement failed on the database object object-name of object type object-type due to reason code reason-code. |
The CREATE PERMISSION or CREATE MASK statement could not be processed because the definition in the CREATE PERMISSION or CREATE MASK statement references an unsupported object. The reason code indicates what is unsupported:
The statement cannot be processed. |
Correct the error and run the CREATE statement again. sqlcode: -20474 sqlstate: 428HB |
|
SQL20475N |
The CREATE MASK statement failed because a column mask is already defined for the specified column. Column name: column-name. Table name: table-name. Existing mask name: mask-name. |
Only a single mask can be defined for a column. The statement cannot be processed. |
sqlcode: -20475 sqlstate: 428HC |
|
SQL20476N |
The function-name function was invoked with an invalid format string format-string. |
An invalid format string was specified for the function-name function. The value for function-name could be VARCHAR_FORMAT or DECFLOAT_FORMAT, even if the name used to invoke the function was TO_CHAR or TO_NUMBER. A valid format string for the VARCHAR_FORMAT function must:
A valid format string for the DECFLOAT_FORMAT function must:
The statement cannot be processed. |
Change the format string argument of the function-name function. For more information, see the corresponding description of the function in the SQL Reference. sqlcode: -20476 sqlstate: 22018 |
|
SQL20477N |
The function-name function is not able to use format string format-string to interpret the argument string-expression. |
The function-name function was invoked with format-string and string-expression. The value for function-name would be DECFLOAT_FORMAT, even if the name used to invoke the function was TO_NUMBER. The value of the argument string-expression cannot be interpreted with the format string format-string to produce a DECFLOAT(34) value. This error can occur for any of the following reasons:
The statement cannot be processed. |
Change the arguments of the function-name function to valid values. For more information, see the corresponding description of the function in the SQL Reference. sqlcode: -20477 sqlstate: 22018 |
|
SQL20478N |
The statement failed because the column mask mask-name defined for column column-name exists and the column mask cannot be applied or the column mask conflicts with the failed statement. Reason code reason-code |
A reference to a column mask is not supported. The cause of the error is described by the following reason codes:
The statement cannot be processed. |
sqlcode: -20478 sqlstate: 428HD |
|
SQL20479N |
The ALTER or RENAME statement failed on the table table-name because the table is part of row or column access control definitions. Reason code reason-code. |
The table table-name in an ALTER or RENAME statement cannot be altered as specified for one of the following reasons:
The statement cannot be processed. |
sqlcode: -20479 sqlstate: 42917 |
|
SQL20480W |
The newly defined object object-name is marked as invalid because it references an object object-name2 which is not defined or is invalid, or the definer does not have privilege to access it. |
The object object-name was successfully defined, but has been marked as invalid. Objects such as views, triggers, SQL procedures, and SQL functions, can be defined successfully even though they reference an object, such as object-name2, that is either not defined at the application server, or is in the invalid state, or the definer does not have privilege to access it. Invalid objects can be automatically revalidated implicitly the next time they are accessed or explicitly by using the procedure SYSPROC.ADMIN_REVALIDATE_DB_OBJECTS. |
If object-name2 was expected to be defined or valid, then create or revalidate the object and then redefine object-name. Ensure that all objects referenced by object-name are valid and the definer has the privilege to access them before the first access to the object, so it will be revalidated successfully. sqlcode: +20480 sqlstate: 0168Y |
|
SQL20481N |
The creation or revalidation of object object-name would result in an invalid direct or indirect self-reference. |
The definition of the object being created or replaced contains a direct or indirect reference to itself. This self-reference can either be explicit in the definition, or implicit by a reference to another object that explicitly or implicitly references the object. An object definition can only contain a valid reference to itself when it is created using the CREATE SCHEMA statement. Such an object can only be replaced or revalidated if the new definition does not contain the self-reference. |
Remove the self-reference or use the CREATE SCHEMA statement to create the object that has a valid reference to itself. sqlcode: -20481 sqlstate: 429C3 |
|
SQL20482N |
Revalidation failed for all objects that were specified to be revalidated. One object, object-name1, could not be revalidated because it references object object-name2. |
All of the objects specified to be revalidated by the SYSPROC.ADMIN_REVALIDATE_DB_OBJECTS procedure were not able to be revalidated successfully because at least one object that they reference does not exist or continues to be invalid. One of the objects, object-name1, could not be revalidated because it references object object-name2 which either does not exist or continues to be invalid. |
Create any objects that should exist and correct any objects that continue to be invalid that are referenced by the objects to be revalidated. The SYSCAT.INVALIDOBJECTS catalog view contains information on invalid objects. sqlcode: -20482 sqlstate: 429C4 |
|
SQL20483N |
Invalid use of named argument parameter-name when invoking routine routine-name. Reason code: reason_code. |
This error can occur for the following reasons:
The statement cannot be processed. |
Correct the routine invocation in the SQL statement. sqlcode: -20483 sqlstate: 4274K |
|
SQL20484N |
The invocation of routine routine-name omits a parameter parameter-name which is not defined with a DEFAULT. |
A parameter value is omitted from a procedure invocation. This is invalid unless the parameter is defined to have a DEFAULT value. The statement cannot be processed. |
Correct the procedure invocation to provide a parameter value for the omitted parameter. sqlcode: -20484 sqlstate: 428HF |
|
SQL20485N |
The CREATE statement for routine routine-name defines a parameter without a DEFAULT after a parameter that has been defined with a DEFAULT. |
During the creation of procedure routine-name, a parameter is specified without a defined DEFAULT value after the specification of a parameter with a defined DEFAULT value. All parameters without a defined DEFAULT must be specified before those which have a defined DEFAULT value. The statement cannot be processed. |
Provide a DEFAULT value for all parameters that follow the first parameter that is defined with a DEFAULT value or re-order the parameter list such that all parameters defined with a DEFAULT value are after all parameters defined without a DEFAULT value. sqlcode: -20485 sqlstate: 428HG |
|
SQL20490N |
The statement failed because a VERSIONING clause was specified for table table-name, but the table cannot be used as a system-period temporal table. Reason code reason-code. |
The CREATE or ALTER TABLE statement attempted to make the table into a system-period temporal table, but the table definition is invalid for reason code indicated:
The statement cannot be processed. |
Correct the syntax and resubmit the statement. sqlcode: -20490 sqlstate: 428HM |
|
SQL20491N |
The statement failed because the specification of a period period-name is not valid. Reason code reason-code. |
The specification of a period attribute in a CREATE or ALTER statement is invalid for the reason code indicated:
The statement cannot be processed. |
Correct the syntax and resubmit the statement. sqlcode: -20491 sqlstate: 428HN |
|
SQL20494N |
A public alias name, name, can be qualified only with SYSPUBLIC and not the schema name schema-name. |
A qualified name was specified for a public alias but the qualifier was not SYSPUBLIC. |
Change the two-part name to a one-part name or specify the qualifier SYSPUBLIC. If a public alias was not intended and PUBLIC was specified in the statement, remove the keyword PUBLIC. sqlcode: -20494 sqlstate: 428EK |
|
SQL20495N |
The definition of the module initialization procedure SYS_INIT is not valid. Reason code rc. |
Initialization procedure definitions can be invalid for the following reasons:
|
Modify the initialization procedure definition so that it conforms to the valid syntax. sqlcode: -20495 sqlstate: 428HP |
|
SQL20496N |
The routine name cannot be invoked because it is only a routine prototype. |
Routine name is defined as a prototype in a module, but is not fully implemented. A routine prototype with the specified routine name was found in the module, but without a routine body. The routine definition is incomplete and therefore cannot be invoked. |
Alter the module and add a full routine definition. Try again. sqlcode: -20496 sqlstate: 55019 |
|
SQL20498N |
The data type that was specified for the following field is not supported: field-name Specified data type type-name. |
The data type specified for a row in the CREATE TYPE statement or CREATE HADOOP TABLE statement with columns of type array is not valid. The following restrictions apply when specifying a data type.
|
Ensure that the data types specified for fields in the CREATE TYPE (row) statement, CREATE HADOOP TABLE statement with columns of type array, fields defined by the columns of the anchor table, or anchor view are supported sqlcode: -20498 sqlstate: 429C5 |
|
SQL20499N |
The data type typename is not valid for the operand of the keywords predicate. |
The predicate indicated by keywords does not support the data type typename as the operand of the predicate. |
Change the operand to have a data type that is supported by the predicate or remove the predicate with the invalid operand data type. sqlcode: -20499 sqlstate: 428HQ |
|
SQL20500N |
Invalid use of row data type value in a list of values. |
The use of a row type in a list is invalid. Invalid uses of a row variable in a list include:
The statement cannot be executed. |
Rewrite the statement so that the list contains no row variable or replace the list with a single row variable value. sqlcode: -20500 sqlstate: 428HR |
|
SQL20501N |
The specified section could not be found. Reason code = reason-code. |
The specified section could not be found. The reason codes are as follows:
|
The user response corresponding to the reason code is:
sqlcode: -20501 sqlstate: 4274L |
|
SQL20502N |
The explain facility failed because the specified activity event monitor evmon_name is not a write-to-table event monitor. |
The Explain facility has been invoked to provide access plan information from a section captured by an activity event monitor. The event monitor must be a write-to-table event monitor type. The activity event monitor specified as the section source location is not a write-to-table event monitor. |
Provide the name of a write-to-table activity event monitor. The CREATE EVENT MONITOR ...WRITE TO TABLE statement can be used to create a write-to-table event monitor. sqlcode: -20502 sqlstate: 55074 |
|
SQL20503N |
The explain facility is not supported for the specified section. Reason code: reason-code. |
The explain facility has been invoked to provide access plan information from a section but the section does not support this action. The reason codes indicates the reason for the failure:
|
Respond according to the reason code:
sqlcode: -20503 sqlstate: 55075 |
|
SQL20504N |
The statement failed because the target object of the anchored data type is unsupported or is being used in an unsupported context. |
An anchored data type is a data type that is defined to be the same as that of another object. If the underlying object data type changes, the anchored data type also changes. An anchored data type can reference a variety of objects, but certain objects cannot be referenced. This message is returned when an attempt is made to reference an unsupported target in an anchored data type, or to reference a target in an anchored data type in an unsupported context. |
Remove any anchored data type references that are unsupported or that are used in unsupported contexts and then reissue the statement. sqlcode: -20504 sqlstate: 428HS |
|
SQL20505N |
The WITH ORDINALITY clause is not valid with UNNEST of an associative array. |
The WITH ORDINALITY clause must not be specified when the argument of the UNNEST table function is an associative array. An associative array is not organized according to ordinal position. |
Remove the WITH ORDINALITY clause or change the argument of the UNNEST function to an ordinary array. Try the statement again. sqlcode: -20505 sqlstate: 428HT |
|
SQL20506N |
The cursor variable could not be used in an OPEN statement in the current scope because the cursor constructor value was assigned in a different scope. |
A cursor variable cannot be used in an OPEN statement that is outside the scope in which the cursor constructor value is assigned to the cursor variable. |
Use the cursor variable in an OPEN statement that is in the same scope as the assignment of the cursor constructor to the cursor variable. sqlcode: -20506 sqlstate: 51044 |
|
SQL20507N |
The query associated with the cursor variable used in an OPEN or FETCH statement recursively invokes another cursor operation using the same cursor. |
The query associated with a cursor variable used in an OPEN or FETCH statement includes an invocation of a function that is passed a cursor variable as an argument and that cursor argument is used to perform some cursor operation within the function. If the query specifies the same variable name as specified in the cursor operation, or specifies a cursor variable that references the same cursor, then the function would be recursively operating on the same cursor. Such recursive cursor operations are not supported. The statement cannot be processed. |
Change the query associated with the cursor variable used in the OPEN or FETCH statement so that the function which is passed a cursor variable argument is using a different cursor variable that does not reference the same cursor as the OPEN or FETCH statement. Try the statement again. sqlcode: -20507 sqlstate: 24525 |
|
SQL20508N |
An error occurred during the revalidation of object object-name. Operation operation failed with SQLCODE sqlcode, SQLSTATE sqlstate, and message tokens token-list. |
The processing of statement operation by the SYSPROC.ADMIN_REVALIDATE_DB_OBJECTS procedure failed. During this processing an error was encountered. The SQLCODE, SQLSTATE and message token list (each token is separated by the vertical bar character) are provided. The message tokens might be truncated. See the corresponding message for the sqlcode for further explanation of the error. |
Check the message associated with the SQLCODE of the SQL statement that failed. Follow the action suggested by that message. sqlcode: -20508 sqlstate: 5UA03 |
|
SQL20509N |
The statement was not processed because the specified alias cannot be used as the target of the statement. Specified alias: alias-name. |
When you create a new database object, you specify a name for the new object with the CREATE statement. After the object is created, you can also define one or more aliases for that object. This message is returned when an alias is specified as the target of a statement when the name of the object must be specified instead of an alias. |
Resubmit the SQL statement, specifying the name of the object to which the alias alias-name refers instead of specifying the alias. sqlcode: -20509 sqlstate: 560CT |
|
SQL20510N |
Invalid context of use for a compound SQL (compiled) statement. |
Compound SQL (compiled) statements can be used in contexts including the following:
|
Do one of the following and try the request again:
sqlcode: -20510 sqlstate: 429C6 |
|
SQL20511N |
The attempt to put data into the message buffer failed because there is not enough available space in the message buffer. Message buffer name: buffer-name. |
The attempt to put data into the message buffer failed because the available free space in the buffer is not large enough for the data. |
Respond to this message in one of the following ways:
sqlcode: -20511 sqlstate: 5UA0P |
|
SQL20512N |
No alert has been registered previously with the DBMS_ALERT.REGISTER procedure. |
No alert has been registered previously with the DBMS_ALERT.REGISTER procedure for the current session. |
Call the DBMS_ALERT.REGISTER procedure to register an alert. sqlcode: -20512 sqlstate: 5UA04 |
|
SQL20513N |
The UTL_FILE procedure procedure-name failed to delete or rename the file file-name. Operating system error = error-text. |
The procedure procedure-name in module UTL_FILE failed to either delete or rename the specified file, file-name, and received the error error-text from the operating system. |
The system error error-text provides more details on the error situation and an appropriate response might be: Verify that the arguments of the procedure are valid. Verify that the file file-name exists and has the appropriate attributes. If renaming the file file-name, verify that the target file does not exist or set the OVERRIDE parameter to TRUE. sqlcode: -20513 sqlstate: 5UA0C, 5UA0D |
|
SQL20514N |
A UTL_SMTP module routine encountered an SMTP server error. SMTP error code = error-code. |
A UTL_SMTP module routine encountered either a transient or permanent SMTP server error. |
The error code error-code provides more details on the specific SMTP error encountered. If the error code value is in the range 400 to 499, the error is a transient error and the same request may be successful at a later time. If the error code value is in the range 500 to 599, the error is a permanent error and the exact error code can help to determine how to resolve the error situation. You might need to contact the person responsible for the SMTP server to have them fix the error with the SMTP server or you might choose a different SMTP server. sqlcode: -20514 sqlstate: 5UA0E, 5UA0F |
|
SQL20515N |
A dynamic statement name cannot be used in the cursor value constructor. |
A dynamic statement name is specified in a cursor value constructor that:
The statement cannot be processed. |
Do one of the following and try the request again:
sqlcode: -20515 sqlstate: 428HU |
|
SQL20516W |
The statement compilation was successful but the access plan for this statement could not be preserved. Reason code = reason-code. |
The statement was compiled successfully during a BIND, REBIND, or PRECOMPILE, but the previous access plan could not be preserved. The reason codes are as follows:
|
In most situations, you can choose to ignore this warning because the failure to preserve the previous access plan can be the result of normal and expected database object changes or database configuration changes. In some circumstances, you might want to monitor the performance of the queries or use the explain facility to examine the access plans and compare them to the access plans generated in the past for the same query. You can then follow accepted query performance tuning and monitoring procedures to verify that the query performs well, or if necessary, improve the performance. To avoid having this warning returned, take one of the following actions based on the reason code:
sqlcode: +20516 sqlstate: 01602 |
|
SQL20518N |
The operation is invalid because the UTL_SMTP module routine routine_name is called out of sequence. |
The SMTP protocol requires that the operations be performed in a particular order. The routine routine-name was called but the SMTP protocol requires that another operation be performed before the operation this routine was attempting to perform can complete successfully. For example, the UTL_SMTP.WRITE_DATA routine must be called after the UTL_SMTP.OPEN_DATA routine completes successfully, and the UTL_SMTP.RCPT routine must be called after the UTL_SMTP.MAIL routine completes successfully. |
Refer to the SMTP protocol and ensure that the UTL_SMTP module routines are called in the correct order. sqlcode: -20518 sqlstate: 5UA0N |
|
SQL20519N |
There is no data in the local message buffer to unpack. |
You can call one of the DBMS_PIPE.UNPACK_MESSAGE procedures to receive the next data item from the local message buffer and assign that data to a variable. This message is returned when there is no more data in the local message buffer to receive. |
Change the application logic to check if DBMS_PIPE.NEXT_TYPE() returns a non-zero value before calling one of the DBMS_PIPE.UNPACK_MESSAGE procedures. sqlcode: -20519 sqlstate: 55019 |
|
SQL20521N |
Error occurred processing a conditional compilation directive near string. Reason code=rc. |
The SQL compiler was processing a statement that included conditional compilation directives. An error occurred at or near the statement text given in the token string. Possible reasons are given by the reason code.
|
Correct the error based on the reason code.
sqlcode: -20521 sqlstate: 428HV |
|
SQL20522N |
The statement failed because of an invalid specification of the WITHOUT OVERLAPS clause. Reason code reason-code. |
The specification of the WITHOUT OVERLAPS clause is invalid for one of the following reasons:
The statement cannot be processed. |
Correct the syntax and resubmit the statement. sqlcode: -20522 sqlstate: 428HW |
|
SQL20523N |
Table table-name was specified as a history table, but the table definition is not valid for a history table. Reason code reason-code. |
For a table specified as a history table in a CREATE or ALTER statement, the table definition is invalid for the reason code indicated:
The statement cannot be processed. |
Correct the syntax and resubmit the statement. sqlcode: -20523 sqlstate: 428HX |
|
SQL20524N |
The statement failed because of an invalid period specification or period clause for period period-name. Reason code reason-code. |
A period specification or period clause is invalid for the reason code indicated:
The statement cannot be processed. |
Correct the syntax and resubmit the statement. sqlcode: -20524 sqlstate: 428HY |
|
SQL20525N |
The requested action is not valid for table table-name because the table is of the wrong type. Reason code reason-code. |
The table cannot be used as specified for the reason code indicated:
|
Change the statement to specify the name of table for which the action is valid, or specify a different action for the table. sqlcode: -20525 sqlstate: 428HZ |
|
SQL20526N |
The variable variable-name is the target of two or more assignments with no defined order of assignment. |
A variable is the target of two or more assignments with no defined order of assignment. Multiple assignments of a variable can occur when a variable on the left hand side of a SET variable statement is also used as an output parameter to a function on the right hand side of the SET variable statement. In the following example, assume that the function my_function was declared with one OUT parameter. The variable called my_variable is the target of two assignments in the example: CREATE VARIABLE my_variable INTEGER; SET my_variable = my_function( my_variable ); |
Change one or more of the variable references to a different variable. sqlcode: -20526 sqlstate: 42810 |
|
SQL20527N |
The statement failed because referenced period period-name is not a period in table table-name |
No period with the specified period-name occurs in the table table-name. The statement cannot be processed. |
Verify that the period and table names are specified correctly (including any required qualifiers) in the SQL statement. Resubmit the statement. sqlcode: -20527 sqlstate: 4274M |
|
SQL20528N |
The target of the data change operation is a table table-name, which includes a period period-name. The data change operation failed because a row that it attempted to modify was also modified by another transaction. |
Table table-name is a system-period temporal table. The table includes a period period-name. The requested data change operation attempted to change a row that has been modified by another transaction, and would result in a situation where the row-begin column value of the associated row in the history table is greater than the end column value. This can occur for one of the following reasons:
The requested operation cannot be performed. |
Retry the statement. The systime_period_adj configuration parameter can be set to allow the affected values to be adjusted so that they are unique. Contact the system administrator. sqlcode: -20528 sqlstate: 57062 |
|
SQL20529N |
The argument to the WRAP function or to the CREATE_WRAPPED procedure is not valid. |
The argument to the WRAP function or to the CREATE_WRAPPED procedure is not a valid SQL PL or PL/SQL statement. |
Ensure that the argument to the WRAP function or to the CREATE_WRAPPED procedure is valid. If the statement is already wrapped by an unsupported application server, it cannot be processed using this version of DB2. sqlcode: -20529 sqlstate: 5UA0O |
|
SQL20530N |
An obfuscated statement is not valid. Reason code= rc. |
An error occurred processing a data definition statement that includes the WRAPPED clause. Possible reasons are:
|
Ensure that the statement was wrapped on a supported platform, and that the statement is not corrupted. sqlcode: -20530 sqlstate: 42638 |
|
SQL20531N |
The version number flowed-version specified in a binary XML value is not supported. The highest supported version is highest-version. |
The version specified does not support binary XML format. A value of 0 (zero) for the highest supported version indicates that the platform does not support binary XML format. A value of *N for the version number specified indicates that the version cannot be determined, because the server could not read binary XML format. |
Use a server that supports binary XML format. sqlcode: -20531 sqlstate: 22544 |
|
SQL20532N |
The command, SQL statement, or API function call failed because the command, SQL statement or API function is discontinued. Command, SQL statement, or API function name: command-SQL-or-function-name. |
This message is returned when an attempt is made to run a command, SQL statement, or call to an API function that has been discontinued. |
Use other commands, SQL statements, or API functions to accomplish the same task. Update automated scripts and applications to use different commands, SQL statements, or API functions to accomplish the same task. sqlcode: -20532 sqlstate: 560CZ |
|
SQL20533N |
The SELECT statement failed because an unsupported data type was specified in the typed-correlation clause. Column with unsupported data type: column-name. |
The typed-correlation clause in the sub-select of a SELECT statement is used to define the appearance and contents of the table generated by a generic table function. This message is returned when the data type specified in the typed-correlation clause is not supported. |
Execute the SELECT statement again, specifying only supported data types in the typed-correlation clause. sqlcode: -20533 sqlstate: 429BB |
|
SQL20534W |
The schema schema-name includes one or more tables with the attribute data-capture-option1 which is different from the schema attribute data-capture-option2. |
The DATA CAPTURE setting for one or more tables in the schema are different from the schema-level setting. You can set different DATA CAPTURE attribute at the table and schema levels because the setting of the DATA CAPTURE attribute for a table is independent of the setting at the schema level. After the DATA CAPTURE attribute is set at the schema level, newly created tables inherit the schema-level setting if one is not specified at the table level. |
To find the list of tables that have DATA CAPTURE attribute set to CHANGES, issue the following query:
To find the list of tables that have DATA CAPTURE attribute set to NONE, issue the following query:
sqlcode: +20534 sqlstate: 01696 |
|
SQL20535N |
The data change operation operation is not supported for the target object object-name because of an implicit or explicit period specification involving period-name. Reason code: reason-code. |
The data change operation is not supported because the target of the operation references a temporal table and a period specification was specified. The period specification was either implicitly specified by using a special register, or explicitly specified in the fullselect specified as the target. More information is provided by the reason code indicated:
The statement cannot be processed. |
Take an appropriate action for the reason-code:
sqlcode: -20535 sqlstate: 51046 |
|
SQL20536N |
The operation cannot be processed because it involves a text index. Reason code = reason-code. |
The operation either targets a text index directly or has a text index that depends on the result of the operation. The operation cannot proceed because of the text index. The specific reason is indicated by the reason code.
|
|
|
SQL20537W |
The precompiler detected a combination of arrays with different cardinalities in the same SQL statement. The application was compiled to populate all arrays in the applicable statement with the minimum cardinality: minimum_cardinality |
The COMPATIBILITY_MODE ORA precompiler option allows the use of host variable arrays, indicator arrays, or a structure array in an embedded SQL statement. When multiple arrays that are declared with different cardinalities are used in the same SQL statement, all the arrays are precompiled with the same cardinality. This warning message is returned when the COMPATIBILITY_MODE ORA precompile option is specified and there are arrays in an SQL statement that are declared with different cardinalities. The statement was successfully compiled, but all the arrays were precompiled with the same cardinality. |
To avoid this warning during the precompile process, use the same cardinality for all arrays that are used in the same SQL statement. sqlcode: +20537 sqlstate: 01697 |
|
SQL20538W |
A permission or mask was changed for the table named table-name. This change might require a change to the permissions or masks of a materialized query table (MQT) based on this table to maintain the security of the data. |
A permission or mask was created, altered, or dropped for table table-name. At least one MQT is based on this table that has access controlled using masks or permissions, other than the default permission. The MQT includes data from the base table table-name. In order to maintain data security, the access control change made to the base table of the MQT must be reflected in the permissions and masks of the MQT. |
Verify the permissions and masks of each MQT that is based on table table-name is consistent with the access control on the base table table-name. sqlcode: +20538 sqlstate: 01698 |
|
SQL20539N |
The query failed because a negative value or the null value is used in the clause keywords. |
A query can include a FETCH FIRST clause or a LIMIT clause to control the number of rows that are returned from a query. A query can also include an OFFSET clause to begin fetching rows starting at a specified row number. The row count value for these clauses can be specified as an expression that is evaluated at query open time and must result in a positive numeric constant value for the query. The expression specified for the indicated clause returns a negative value or the null value. |
Change the expression so that it returns a positive number and reissue the query. sqlcode: -20539 sqlstate: 2201W, 2201X |
|
SQL20540N |
An autonomous transaction executing a procedure has been terminated abnormally. Routine name: routine-name. Specific name: specific-name. Reason code: reason-code. |
A procedure can be defined as AUTONOMOUS, to make its execution occur within a separate autonomous transaction. The execution of the procedure may encounter an error that required the procedure to terminate and the autonomous transaction to be rolled back without rolling back the parent or calling transaction. This message is returned when the autonomous procedure terminated with an error that normally causes a transaction to roll back. In this case, the autonomous transaction for the autonomous procedure is rolled back but without affecting the calling transaction. Possible reason codes for this message are the SQLCODEs that terminated the autonomous procedure. |
Check the message associated with the SQLCODE in the reason code and use the information there to determine the reason that the autonomous procedure was terminated. Correct any problems in the autonomous procedure or the calling application and run the procedure again. sqlcode: -20540 sqlstate: 560D2 |
|
SQL20541N |
An error code was received from an in-database analytics provider. Error code: error-code. Provider name: provider-name. Associated text and tokens: tokens. |
You can perform in-database analytics using an embedded analytics provider. While referencing an in-database analytics provider, an unexpected error code was received from the specified provider. |
Respond to this error by performing the following troubleshooting steps:
sqlcode: -20541 sqlstate: 560D4 |
|
SQL20542N |
The statement was not executed because the connection to the database server was dropped, and the automatic client reroute (ACR) feature failed to successfully re-execute the statement. |
The ACR feature attempts to reconnect to the database when a connection to a database server is dropped. This message is returned when the ACR feature is unable to seamlessly re-execute the statement after a successful reconnect. When this message is returned, the database connection is in an open state. |
Execute the statement again. If the error persists, perform the following troubleshooting steps:
sqlcode: -20542 sqlstate: 54068 |
|
SQL20544N |
The statement failed because an error was encountered while the ANALYZE_TABLE expression was being processed. Analytics provider name: provider-name. Reason code: reason-code. |
You can use the ANALYZE_TABLE expression to invoke an analytics routine from the provider. The routine performs analytics processing based on the input table and returns a set of rows as output. Details about routine implementation, such as information about the analytics provider, the name of the routine to use, and the table in which the routine source is located, are specified in an implementation string. The IMPLEMENTATION parameter passes the implementation string to the ANALYZE_TABLE expression. This message is returned when the specified routine cannot be found or loaded for the ANALYZE_TABLE expression. In general, this message is returned when there is a problem with the routine source table or with the routine source. The reason code indicates the cause of the problem more specifically:
|
Respond to this message according to the reason code:
sqlcode: -20544 sqlstate: 5507A |
|
SQL20545N |
The statement failed because a connection to the in-database analytics provider could not be established or maintained. Analytics provider name: provider-name. Reason code: reason-code. |
You can perform in-database analytics using an embedded analytics provider. To successfully perform analytics using an embedded provider, the database manager must establish and maintain a connection with the provider. This message is returned when the database manager encounters an error while attempting to communicate with an embedded provider. The reason code indicates the source of the problem:
|
In general, respond to this message by taking the following actions:
More specifically, when the provider name is 'SAS', respond to this message according to the reason code:
sqlcode: -20545 sqlstate: 57065 |
|
SQL20546N |
The statement cannot be processed because it violates one of the restrictions for using the ANALYZE_TABLE expression. |
You can use the ANALYZE_TABLE expression to invoke an analytics routine from the provider. The routine performs analytics processing based on the input table and returns a set of rows as output. Details about routine implementation, such as information about the analytics provider, the name of the routine to use, and the table in which the routine source is located, are specified in an implementation string. The IMPLEMENTATION parameter passes the implementation string to the ANALYZE_TABLE expression. This message is returned when an attempt is made to run a statement that uses the ANALYZE_TABLE expression in a way that is not supported. |
Rewrite the application so that none of the ANALYZE_TABLE expression restrictions is violated. sqlcode: -20546 sqlstate: 429CA |
|
SQL20547N |
The statement failed because the target of an assignment is a read-only variable. Variable name: variable-name. |
Global variables can generally be used as the target of an assignment in various SQL statement with the appropriate write access. However, the definition of some global variables makes them read only. This applies to some built-in global variables and also to user-defined variables that are defined using the CONSTANT clause, A variable that is read only cannot be used in an SQL statement as the target of an assignment. |
Change the name of the target variable so that it does not refer to a read-only variable. sqlcode: -20547 sqlstate: 428I3 |
|
SQL20548N |
The statement failed because a column of the input table of an ANALYZE_TABLE expression has an unsupported data type. Unsupported type: type-name. |
You can use the ANALYZE_TABLE expression to invoke an analytics routine from the provider. The routine performs analytics processing based on the input table and returns a set of rows as output. Details about routine implementation, such as information about the analytics provider, the name of the routine to use, and the table in which the routine source is located, are specified in an implementation string. The IMPLEMENTATION parameter passes the implementation string to the ANALYZE_TABLE expression. The input table of an ANALYZE_TABLE expression can be specified using a table name, a view name or the name of a common table expression specified at the beginning of the query. This message is returned when a column of the specified input table is of a type that is not supported. |
Respond to this error in one of the following ways:
sqlcode: -20548 sqlstate: 428H2 |
|
SQL20549N |
The statement cannot be precompiled because an indicator variable array contains fewer elements than its the corresponding host variable array. Indicator variable array name: var_name1. Required array size: cardinality_of_array2. |
An indicator variable contains a small integer value that indicates some information about an associated host variable. For example you can use an indicator variable to indicate that the associated host variable contains a null value. In embedded SQL applications, when parameters of type array are passed to CALL statements, information about the contents of those arrays can be stored in corresponding indicator variable arrays. When an indicator variable array is specified for an array parameter, the size of the indicator variable array must be greater than or equal to the size of the corresponding host variable array. |
|
|
SQL20551N |
Constructing an associative array failed because the input data includes at least one duplicate array index value. Duplicated index value: value. |
In an associative array, each element is associated with a unique index value. When constructing an array using an ARRAY_AGG aggregate function, if more than one element is associated with the same array index value, only one of the element values can be included in the array. This potential loss of element data is the reason that index values must be unique within the input data used to construct an associative array. |
Change the input data so that there are no duplicate array index values. When using an ARRAY_AGG aggregate function, this might require adding predicates to the query that produces the aggregation grouping sets to ensure that none of the rows include duplicate values for the array index expression argument of the ARRAY_AGG. sqlcode: -20551 sqlstate: 22545 |
|
SQL20552N |
The cast or assignment failed because the value does not conform to the data type constraint of the user-defined type. User-defined type: type-name. Value: value. |
A user-defined distinct type can include a NOT NULL constraint and a CHECK constraint that limit the valid values for the data type. These data type constraints can be violated when a value is cast to the user-defined type or a value is assigned to a variable, parameter, or column defined with that user-defined type. An assignment can also happen implicitly using the default for the variable, parameter, or column. |
Ensure that the values being assigned or cast are valid for the data type constraints of the user-defined type by taking actions such as the following actions:
sqlcode: -20552 sqlstate: 23528 |
|
SQL20556N |
The operation failed because multiple result values cannot be returned from a scalar function function-name. |
A scalar function was invoked with arguments that disallow the return of multiple result values for a single invocation. The processing of the scalar function determined a result that consisted of multiple values. |
One of the following options can be used to avoid the error:
sqlcode: -20556 sqlstate: 22547 |
|
SQL20557N |
The statement failed because of an error in the Hive metastore. Log entry identifier: log-entry-identifier. Reason code: reason-code. |
In IBM Big SQL, you can use standard DDL and SQL to create and query tables for which data is stored in a Hadoop Distributed File System (HDFS). The DDL and SQL processing is handled by both a processing engine in Big SQL as well as the Hive metastore. The reason code indicates the type of problem:
The log identifier in the token log-entry-identifier is composed of three parts:
|
sqlcode: -20557 sqlstate: 58039 |
|
SQL20558N |
The statement failed because the regular expression string is not valid. Reason code: reason-code. Function name: function-name. Position in regular expression string: position. Regular expression string: string. |
This message is returned when the regular expression string specified as the argument of a regular expression function is not a valid regular expression. The position in the string provides and indication of where the regular expression is not correct. If the position could not be determined, a value of 0 is returned. The reason code provides additional information about the error in the pattern.
|
Determine what is incorrect about the regular expression argument of the regular expression function using the position and the reason code. Invoke the function again with a valid regular expression. sqlcode: -20558 sqlstate: 2201S |
|
SQL20559W |
The analytics operation succeeded with a warning. Routine name: routine-name. Analytics message identifier: message-ID. Diagnostic details: runtime-details. |
You can perform analytics on data stored in databases by calling IBM in-database analytics routines:
This message is returned when an IBM in-database analytics routine has completed successfully, but encountered a minor error or warning at run time. The runtime tokens provide more information about the problem:
|
sqlcode: +20559 sqlstate: 01H58 |
|
SQL20560N |
The routine did not run because the formatting or content of the specified string argument is invalid. Routine name: routine-name. Reason code: reason-code. Sub-string: sub-string. Analytics message identifier: message-ID. Diagnostic details: runtime-details. |
The IBM in-database analytics routines take one argument: a string containing a list of parameter-value pairs, separated by a comma. This message is returned when an analytics routine is unable to successfully process a given string argument. The runtime tokens provide more information about the problem:
The runtime token reason-code indicates more specifically the type of the problem:
|
Call the routine again, specifying a valid parameter string. sqlcode: -20560 sqlstate: 22548 |
|
SQL20561N |
The analytics operation could not be performed because of a problem with a table. Routine name: routine-name. Table name: table-name. Analytics message identifier: message-ID. Diagnostic details: runtime-details. |
When you call IBM in-database analytics routines, you specify input tables such as:
This message is returned when there is a problem with an input table that has been specified with an analytics routine. The runtime tokens provide more information about the problem:
|
sqlcode: -20561 sqlstate: 22549 |
|
SQL20562N |
The analytics operation could not be performed because the specified options are not valid. Routine name: routine-name. Analytics message identifier: message-ID. Diagnostic details: runtime-details. |
You can perform analytics on data stored in databases by calling IBM in-database analytics routines. To perform analytics, you must specify options that control the behavior of the analytics, such as the following examples:
This message is returned when a collection of options that is unsupported, inconsistent, or otherwise invalid has been specified with an IBM in-database analytics routine. The runtime tokens provide more information about the problem:
|
sqlcode: -20562 sqlstate: 22550 |
|
SQL20563N |
The analytics operation failed. Routine name: routine-name. Analytics message identifier: message-ID. Diagnostic details: runtime-details. |
You can perform analytics on data stored in databases by calling IBM in-database analytics routines:
This message is returned when an IBM in-database analytics routine fails because of a runtime error. The runtime tokens provide more information about the problem:
|
sqlcode: -20563 sqlstate: 560DA |
|
SQL20564N |
The analytics operation could not be performed because the authorization ID authorization-ID does not have the required privilege to perform the operation. Operation: operation. Analytics message identifier: message-ID. Diagnostic details: runtime-details. |
To call IBM in-database analytics routines requires appropriate privileges. This message is returned when a user attempts to call a routine (such as LIST_PRIVILEGES or DROP_MODEL, for example) and the authorization ID does not have the required privilege to call that routine. |
Call the routine as an authorization ID with the required privilege. sqlcode: -20564 sqlstate: 42526 |
|
SQL20566N |
The CREATE FUNCTION or ALTER MODULE statement used to define routine-name failed because the identified component routine is not valid. Component routine clause: component-routine-clause. Specific name: specific-name. Reason code: reason-code. |
The identified component routine for the clause component-routine-clause with specific name specific-name when creating an aggregate interface function is not valid for the reason specified by the reason code as follows:
|
Determine what is incorrect about the identified component routine and either correct the definition of that routine or specify a different routine for that component routine that does have the valid characteristics based on the reason by the reason-code as follows.
sqlcode: -20566 sqlstate: 428IA |
|
SQL20568W |
The table was successfully created with random distribution. However, since the distribution key that was chosen by the database manager may not guarantee unique values, the data distribution of this table might be sub-optimal. Columns in the distribution key: column-name-list. |
When a random distribution table is created with multiple unique or primary keys, the database manager uses the set of overlapping columns from all unique and primary keys as the distribution key. If the distribution key contains duplicate values, this could end up skewing data to a subset of the members. |
The distribution key that was selected by the database manager was column-name-list. If the values for these columns contain duplicate values you may experience skew with data in the table. To avoid this, recreate the table and explicitly set a different distribution key. The distribution key can be explicitly set using the DISTRIBUTE BY HASH clause. sqlcode: +20568 sqlstate: 0169C |
|
SQL20569N |
The external table operation failed due to a problem with the corresponding data file or diagnostic files. File name: file-name. Reason code: reason-code. |
The data for an external table is stored in a file that can be located locally or remotely. This message is returned when a statement attempts to create, insert into, or select from an external table, but the corresponding operation failed due to a problem with the corresponding data file or log/bad files. The reason code identifies the specific problem:
|
Take action that corresponds to the reason code:
sqlcode: -20569 sqlstate: 428IB |
|
SQL20570N |
The statement failed because the number of rejected rows exceeds the limit set in the MaxErrors option value. Log file name: log-file-name. |
The data for an external table is stored in a file that can be located locally or remotely. The data in the file might not perfectly match the column definitions of the external table. When you select data from an external table, the database manager might need to alter or convert the data to enable the SELECT statement to return a result set. However, sometimes the data from a particular row of data cannot be altered or converted successfully. When that happens, the row is rejected and is not included in the result set. You can use the MaxErrors external table option to specify a threshold for the number of rejected rows. When that threshold is exceeded, the attempt to process the SELECT statement is canceled. This message is returned when a SELECT statement is issued for data in an external table and the attempt to process the statement fails because more rows have been rejected than the threshold set by the MaxErrors option. |
Address this error in one or more of the following ways:
sqlcode: -20570 sqlstate: 22551 |
|
SQL20573N |
Operation not allowed on object object-name of type type-name because schema schema-name is not accessible. Reason code = reason-code. |
Access to schema <schema-name> is restricted as indicated by the reason code: The specific reason this message was returned is indicated by reason-code:
|
Respond to this message according to the reason code:
sqlcode: -20573 sqlstate: 57007 |
|
SQL20574W |
The update completed successfully. The new SORTHEAP value will not be used for query optimization because the value provided by OPT_SORTHEAP overrides it. |
OPT_SORTHEAP has a non-zero value, which will be used for query optimization. OPT_SORTHEAP may have been set manually or by AUTOCONFIGURE |
Consider whether OPT_SORTHEAP should be cleared, so that the current SORTHEAP setting is used for query optimization. In a DPF environment, OPT_SORTHEAP is typically to the smallest SORTHEAP setting across all members. sqlcode: +20574 sqlstate: 0169I |
|
SQL20575N |
The statement conflicts with another statement that has already been issued in the current transaction. Reason code = reason-code. |
The statement cannot be executed because it conflicts with another statement that has already been issued in the current transaction. The transaction must be committed or rolled back before the statement can be issued. The reason codes are:
|
COMMIT or ROLLBACK before reissuing the failing statement. sqlcode: -20575 sqlstate: 560DF |
|
SQL20576N |
The command or operation failed because a TLS connection could not be established with reason reason-code and additional information additional info. |
The client in this context is the application or Db2 CLP and the server is the Db2 database server.
|
sqlcode: -20576 sqlstate: 08001 |
|
SQL20581N |
Failed to wait for incremental updates. Reason: reason. Library: library-name. Function: function-name. |
This message is returned when the database manager is unable to wait for incremental updates from an external replication server. |
Respond to this message according to the reason:
sqlcode: -20581 sqlstate: 57019 |
|
SQL20582N |
CREATE/ALTER TRUSTED CONTEXT statement failed because the procedure specified for the TRUST PROCEDURE attribute, procedure-name, is not valid due to reason code reason-code. |
The procedure specified for the TRUST PROCEDURE attribute is not valid. The possible reason codes are as follows:
|
sqlcode: -20582 sqlstate: 42639 |
|
SQL20583N |
The audit exception on object name of type type to be created for object name2 of type type2 is identical to an existing audit exception. |
The AUDIT ADD EXCEPTION FOR statement tried to add an audit exception on object name of type type when an audit exception for object name2 of type type2 already exists on the application server or in the same statement. If name2 is empty and type2 is GLOBAL, the audit exception applies to all audit associations. The statement cannot be processed. No new audit exception is created, and the existing audit exception is not altered or modified. |
Ensure that the target of the audit exception is correct. If the exception is not correct, correct the statement. sqlcode: -20583 sqlstate: 428IF |
|
SQL20584N |
The audit exception on object name of type type for object name2 of type type2 does not exist. |
The audit exception on object name of type type for object name2 of type type2 is not defined in the database. If name2 is empty and type2 is GLOBAL, the audit exception applies to all audit associations. The statement cannot be processed. |
Ensure that the object names are correctly specified in the SQL statement and that the audit exception exists. sqlcode: -20584 sqlstate: 428IG |
|
SQL20585N |
The procedure procedure-name is being used by a trusted connection. operation-type operation is not allowed. |
Operations are restricted on any procedure with the same name as the trust procedure defined for a trusted context attribute. The trust procedure cannot be altered or dropped, either directly or as a result of the CREATE OR REPLACE operation. A new procedure with the same name cannot be created, even if it has a different procedure signature. |
If you are creating a new procedure, use a different name for the procedure name or a different schema. If the trust procedure that is currently in use needs to be altered or dropped, the trusted context must be dropped or altered to drop the trust procedure. sqlcode: -20585 sqlstate: 42858 |
|
SQL20586N |
A view cannot be defined on a transient external table |
The SQL statement attempts to create a view on a transient external table, which is not permitted. |
Ensure that the view is created on a named external table instead of a transient external table. sqlcode: -20586 sqlstate: 428IE |
|
SQL20587N |
A model operation did not complete on the target object. Object name: object-name. Object type: object-type. Reason code: reason-code. |
A model operation did not complete successfully on the target object. The reason code indicates the cause of the failure:
|
Respond according to the reason code provided:
sqlcode: -20587 sqlstate: 42809 |
|
SQL20589W |
The database is created with the Unicode Collation Algorithm (UCA); If an object of type object-type uses character data, the object might be impacted when Db2 refreshes the ICU level. |
This warning is pertinent to Unicode Collation Algorithm (UCA) collated databases. This warning is returned in the following situations:
|
sqlcode: +20589 sqlstate: 0169K |
|
SQL20591N |
Altering the column column-name of column-organized table table-name is not allowed. Reason code: reason-code. |
Altering the column "<column-name>" of column-organized table "<table-name>" is not allowed. The possible reason codes are as follows:
|
sqlcode: -20591 sqlstate: 428FR |
|
SQL20592N |
The statement was not processed because an AI API from provider provider-name returned an error: error-msg. Please see db2diag.log for more details. |
This message is returned when the external AI API generates an error. "<provider-name>" indicates the provider of the API and "<error-msg>" is a snippet of the error message returned from the API. The entire error message is logged in db2diag.log. |
Determine what is incorrect by reviewing the error message snippet or detailed error message in the db2diag.log. Ensure that the following prerequisites are met:
sqlcode: -20592 sqlstate: 38555 |
|
SQL20593N |
The statement was not processed because the connection to an AI API with provider provider-name was unsuccessful. |
This message can be returned when Db2 could not make a connection to an AI API. "<provider-name>" indicates the provider of the API. |
Determine what is incorrect about the external model:
sqlcode: -20593 sqlstate: 38556 |
|
SQL20595N |
The external model model-name that is specified for built-in function function-name is defined with an incompatible model type. |
The built-in function requires an external model that is defined with a compatible model type:
|
Specify an external model with a compatible model type. sqlcode: -20595 sqlstate: 42858 |