The iSeries™ catalog includes the following views and tables in the QSYS2 schema:
DB2 UDB for iSeries name | Corresponding ANSI/ISO name | Description |
---|---|---|
SYSCATALOGS | CATALOGS | Information about relational databases |
SYSCHKCST | CHECK_CONSTRAINTS | Information about check constraints |
SYSCOLUMNS | COLUMNS | Information about column attributes |
SYSCST | TABLE_CONSTRAINTS | Information about all constraints |
SYSCSTCOL | CONSTRAINT_COLUMN_USAGE | Information about the columns referenced in a constraint |
SYSCSTDEP | CONSTRAINT_TABLE_USAGE | Information about constraint dependencies on tables |
SYSFUNCS | ROUTINES | Information about user-defined functions |
SYSINDEXES | Information about indexes | |
SYSJARCONTENTS | Information about jars for Java™ routines. | |
SYSJAROBJECTS | Information about jars for Java routines. | |
SYSKEYCST | KEY_COLUMN_USAGE | Information about unique, primary, and foreign keys |
SYSKEYS | Information about index keys | |
SYSPACKAGE | Information about packages | |
SYSPARMS | PARAMETERS | Information about routine parameters |
SYSPROCS | ROUTINES | Information about procedures |
SYSREFCST | REFERENTIAL_CONSTRAINTS | Information about referential constraints |
SYSROUTINES | ROUTINES | Information about functions and procedures |
SYSROUTINEDEP | ROUTINE_TABLE_USAGE | Information about function and procedure dependencies |
SYSSEQUENCES | Information about sequences | |
SYSTABLEDEP | Information about materialized query table dependencies | |
SYSTABLES | TABLES | Information about tables and views |
SYSTRIGCOL | TRIGGER_COLUMN_USAGE | Information about columns used in a trigger |
SYSTRIGDEP | TRIGGER_TABLE_USAGE | Information about objects used in a trigger |
SYSTRIGGERS | TRIGGERS | Information about triggers |
SYSTRIGUPD | TRIGGERED_UPDATE_COLUMNS | Information about columns in the WHEN clause of a trigger |
SYSTYPES | USER_DEFINED_TYPES | Information about built-in data types and distinct types |
SYSVIEWDEP | VIEW_TABLE_USAGE | Information about view dependencies on tables |
SYSVIEWS | VIEWS | Information about definition of a view |
The SYSCATALOGS view contains one row for each relational database that a user can connect to. The following table describes the columns in the SYSCATALOGS view.
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
CATALOG_NAME | LOCATION | VARCHAR(18) | Relational database name. |
CATALOG_STATUS | RDBASPSTAT | CHAR(10) | Status of a relational database.
|
CATALOG_TYPE | RDBTYPE | CHAR(7) | Relational database type.
|
CATALOG_ASPGRP | RDBASPGRP | VARCHAR(10)
Nullable |
Independent auxiliary storage pool (IASP)
name.
Contains the null value if the relational database status is UNKNOWN. |
CATALOG_ASPNUM | RDBASPNUM | VARCHAR(10)
Nullable |
Independent auxiliary storage pool (IASP)
number.
Contains the null value if the relational database status is UNKNOWN. |
CATALOG_TEXT | RDBTEXT | CHAR(50) | Relational database text description. |
The SYSCHKCST view contains one row for each check constraint in the SQL schema. The following table describes the columns in the SYSCHKCST view.
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
CONSTRAINT_SCHEMA | DBNAME | VARCHAR(128) | Name of the schema containing the constraint. |
CONSTRAINT_NAME | RELNAME | VARCHAR(128) | Name of the constraint |
CHECK_CLAUSE | CHECK |
VARCHAR(2000)
Nullable |
Text of the check constraint clause
Contains the null value if the check clause cannot be expressed without truncation. |
The SYSCOLUMNS view contains one row for every column of each table and view in the SQL schema (including the columns of the SQL catalog). The following table describes the columns in the SYSCOLUMNS view:
The SYSCST view contains one row for each constraint in the SQL schema. The following table describes the columns in the SYSCST view:
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
CONSTRAINT_SCHEMA | CDBNAME | VARCHAR(128) | Name of the schema containing the constraint. |
CONSTRAINT_NAME | RELNAME | VARCHAR(128) | Name of the constraint. |
CONSTRAINT_TYPE | TYPE | VARCHAR(11) | Constraint Type
|
TABLE_SCHEMA | TDBNAME | VARCHAR(128) | Name of the schema containing the table. |
TABLE_NAME | TBNAME | VARCHAR(128) | Name of the table which the constraint is created over. This will be the SQL table name if it exists; otherwise, it will be the system table name. |
IS_DEFERRABLE | ISDEFER | VARCHAR(3) | Indicates whether the constraint checking can be deferred. Will always be 'NO'. |
INITIALLY_DEFERRED | INITDEFER | VARCHAR(3) | Indicates whether the constraint was defined as initially deferred. Will always be 'NO'. |
SYSTEM_TABLE_NAME | SYS_TNAME | CHAR(10) | System name of the table. |
SYSTEM_TABLE_SCHEMA | SYS_DNAME | CHAR(10) | System name of the schema containing the table. |
CONSTRAINT_KEYS | COLCOUNT | SMALLINT
Nullable |
Specifies the number of key columns if this
is a UNIQUE, PRIMARY KEY, or FOREIGN KEY constraint.
Contains the null value if the constraint is a CHECK constraint. |
IASP_NUMBER | IASPNUMBER | SMALLINT | Specifies the independent auxiliary storage pool (IASP) number. |
CONSTRAINT_STATE | CST_STATE | VARCHAR(11) | Indicates whether the constraint is established
or defined:
|
ENABLED | ENABLED | VARCHAR(3)
Nullable |
Indicates whether the constraint is enabled:
Contains the null value if the constraint is defined or is a unique constraint. |
CHECK_PENDING | CHECKFLAG | VARCHAR(3)
Nullable |
Indicates whether the constraint is in check
pending state:
Contains the null value if the constraint is defined, disabled, or is a unique constraint. |
The SYSCSTCOL view records the columns on which constraints are defined. There is one row for every column in a unique, primary key, and check constraint and the referencing columns of a referential constraint. The following table describes the columns in the SYSCSTCOL view:
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
TABLE_SCHEMA | TDBNAME | VARCHAR(128) | Name of the SQL schema that contains the table the constraint is dependent on. |
TABLE_NAME | TBNAME | VARCHAR(128) | Name of the table the constraint is dependent on. This is the SQL table name if it exists; otherwise, it is the system table name. |
COLUMN_NAME | COLUMN | VARCHAR(128) | Column that the constraint was created over. This is the SQL column name if it exists; otherwise, it is the system column name. |
CONSTRAINT_SCHEMA | CDBNAME | VARCHAR(128) | Name of the schema of the constraint. |
CONSTRAINT_NAME | RELNAME | VARCHAR(128) | Name of the constraint. |
SYSTEM_COLUMN_NAME | SYS_CNAME | CHAR(10) | System name of the column. |
SYSTEM_TABLE_NAME | SYS_TNAME | CHAR(10) | System name of the table. |
SYSTEM_TABLE_SCHEMA | SYS_DNAME | CHAR(10) | System name of the schema containing the table. |
The SYSCSTDEP view records the tables on which constraints are defined. The following table describes the columns in the SYSCSTDEP view:
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
TABLE_SCHEMA | TDBNAME | VARCHAR(128) | Name of the SQL schema that contains the table on which the constraint is dependent |
TABLE_NAME | TBNAME | VARCHAR(128) | Name of the table on which the constraint is dependent. This is the SQL table name if it exists otherwise it is the system table name. |
CONSTRAINT_SCHEMA | CDBNAME | VARCHAR(128) | Name of the schema of the constraint. |
CONSTRAINT_NAME | RELNAME | VARCHAR(128) | Name of the constraint. |
SYSTEM_TABLE_NAME | SYS_TNAME | CHAR(10) | System name of the table. |
SYSTEM_TABLE_SCHEMA | SYS_DNAME | CHAR(10) | System name of the schema containing the table. |
IASP_NUMBER | IASPNUMBER | SMALLINT | Specifies the independent auxiliary storage pool (IASP) number. |
The SYSFUNCS view contains one row for each function created by the CREATE FUNCTION statement. The following table describes the columns in the SYSFUNCS view:
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
SPECIFIC_SCHEMA | SPECSCHEMA | VARCHAR(128) | Schema name of the routine (function) instance. |
SPECIFIC_NAME | SPECNAME | VARCHAR(128) | Specific name of the routine instance. |
ROUTINE_SCHEMA | FUNCSCHEMA | VARCHAR(128) | Name of the SQL schema (schema) that contains the routine. |
ROUTINE_NAME | FUNCNAME | VARCHAR(128) | Name of the routine. |
ROUTINE_CREATED | RTNCREATE | TIMESTAMP | Identifies the timestamp when the routine was created. |
ROUTINE_DEFINER | DEFINER | VARCHAR(128) | Name of the user that defined the routine. |
ROUTINE_BODY | BODY | VARCHAR(8) | The type of the routine body:
|
EXTERNAL_NAME | EXTNAME | VARCHAR(279)
Nullable |
This column identifies the external program
name.
Contains the null value if this is a system-generated function. |
EXTERNAL_LANGUAGE | LANGUAGE | VARCHAR(8)
Nullable |
If this is an external routine, this column
identifies the external program name.
Contains the null value if this is not an external routine. |
PARAMETER_STYLE | PARM_STYLE | VARCHAR(7)
Nullable |
If this is an external routine, this column
identifies the parameter style (calling convention).
Contains the null value if this is not an external routine. |
IS_DETERMINISTIC | DETERMINE | VARCHAR(3) | This column identifies whether the routine
is deterministic. That is, whether a call to the routine with the same arguments
will always return the same result.
|
SQL_DATA_ACCESS | DATAACCESS | VARCHAR(8)
Nullable |
This column identifies whether a routine
contains SQL and whether it reads or modifies data.
|
SQL_PATH | SQL_PATH | VARCHAR(3483)
Nullable |
If this is an SQL routine, this column identifies
the path.
Contains the null value if this is an external routine. |
PARM_SIGNATURE | SIGNATURE | VARCHAR(2048) | This column identifies the routine signature. |
NUMBER_OF_RESULTS | NUMRESULTS | SMALLINT
Nullable |
Identifies the number of results. |
IN_PARMS | IN_PARMS | SMALLINT | Identifies the number of input parameters. 0 indicates that there are no input parameters. |
LONG_COMMENT | REMARKS | VARCHAR(2000)
Nullable |
A character string supplied with the COMMENT
statement.
Contains the null value if there is no long comment. |
ROUTINE_DEFINITION | ROUTINEDEF | VARCHAR(23888)
Nullable |
If this is an SQL routine, this column contains
the SQL routine body.
Contains the null value if this is not an SQL routine or if the routine body cannot be contained in this column without truncation. |
FUNCTION_ORIGIN | ORIGIN | CHAR(1) | Identifies the type of function. If this
is a procedure, this column contains a blank.
|
FUNCTION_TYPE | TYPE | CHAR(1) | Identifies the form of the function. If this
is a procedure, this column contains a blank.
|
EXTERNAL_ACTION | EXT_ACTION | CHAR(1)
Nullable |
Identifies the whether the invocation of
the function has external effects.
|
IS_NULL_CALL | NULL_CALL | VARCHAR(3)
Nullable |
Identifies whether the function needs to
be called if an input parameter is the null value.
|
SCRATCH_PAD | SCRATCHPAD | INTEGER
Nullable |
Identifies whether the address of a static
memory area (scratch pad) is passed to the function.
|
FINAL_CALL | FINAL_CALL | VARCHAR(3)
Nullable |
Indicates whether a final call to the function
should be made to allow the function to clean up its work areas (scratch pads).
|
PARALLELIZABLE | PARALLEL | VARCHAR(3)
Nullable |
Identifies whether the function can be run
in parallel.
|
DBINFO | DBINFO | VARCHAR(3)
Nullable |
Identifies whether information about the
database is passed to the function.
|
SOURCE_ SPECIFIC_SCHEMA | SRCSCHEMA | VARCHAR(128)
Nullable |
If this is sourced function and the source
is user-defined, this column contains the name of the source schema. If this
is a sourced function and the source is built-in, this column contains 'QSYS2'.
Contains the null value if this is not a sourced function. |
SOURCE_SPECIFIC_NAME | SRCNAME | VARCHAR(128)
Nullable |
If this is sourced function and the source
is user-defined, this column contains the specific name of the source function
name.
Contains the null value if this is not a sourced function. |
IS_USER_DEFINED_CAST | CAST_FUNC | VARCHAR(3)
Nullable |
Identifies whether this function is a cast
function created when a distinct type was created.
|
CARDINALITY | CARD | BIGINT
Nullable |
Specifies the cardinality for a table function.
Contains the null value if the function is not a table function or if cardinality was not specified. |
FENCED | FENCED | VARCHAR(3)
Nullable |
Identifies whether the function is fenced.
|
IASP_NUMBER | IASPNUMBER | SMALLINT | Specifies the independent auxiliary storage pool (IASP) number. |
The SYSINDEXES view contains one row for every index in the SQL schema created using the SQL CREATE INDEX statement, including indexes on the SQL catalog. The following table describes the columns in the SYSINDEXES view:
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
INDEX_NAME | NAME | VARCHAR(128) | Name of the index. This will be the SQL index name if one exists; otherwise, it will be the system index name. |
INDEX_OWNER | CREATOR | VARCHAR(128) | Owner of the index |
TABLE_NAME | TBNAME | VARCHAR(128) | Name of the table on which the index is defined. This will be the SQL table name if one exists; otherwise, it will be the system table name. |
TABLE_OWNER | TBCREATOR | VARCHAR(128) | Owner of the table |
TABLE_SCHEMA | TBDBNAME | VARCHAR(128) | Name of the SQL schema that contains the table on which the index is defined |
IS_UNIQUE | UNIQUERULE | CHAR(1) | If the index is unique:
|
COLUMN_COUNT | COLCOUNT | INTEGER | Number of columns in the key |
INDEX_SCHEMA | DBNAME | VARCHAR(128) | Name of the SQL schema that contains the index |
SYSTEM_INDEX_NAME | SYS_IXNAME | CHAR(10) | System index name |
SYSTEM_INDEX_SCHEMA | SYS_IDNAME | CHAR(10) | System index schema name |
SYSTEM_TABLE_NAME | SYS_TNAME | CHAR(10) | System table name |
SYSTEM_TABLE_SCHEMA | SYS_DNAME | CHAR(10) | System table schema name |
LONG_COMMENT | REMARKS |
VARCHAR(2000)
Nullable |
A character string supplied with the COMMENT
statement.
Contains the null value if there is no long comment. |
IASP_NUMBER | IASPNUMBER | SMALLINT | Specifies the independent auxiliary storage pool (IASP) number. |
INDEX_TEXT | LABEL |
CHAR(50) |
A character string supplied with the LABEL statement. |
IS_SPANNING_INDEX | SPANNING |
VARCHAR(3)
Nullable |
Indicates whether the index is partitioned:
Contains the null value if the base table is not a partitioned table. |
INDEX_DEFINER | DEFINER | VARCHAR(128) | Name of the user that defined the index. |
The SYSJARCONTENTS table contains one row for each class defined by a jarid in the SQL schema. The following table describes the columns in the SYSJARCONTENTS table.
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
JARSCHEMA | JARSCHEMA | VARCHAR(128) | Name of the schema containing the jar_id. |
JAR_ID | JAR_ID | VARCHAR(128) | Name of the jar_id. |
CLASS | CLASS | VARCHAR(128) | Name of the class. |
CLASS_SOURCE | CLASSSRC |
DBCLOB(10485760)
Nullable |
Reserved. Contains the null value. |
IASP_NUMBER | IASPNUMBER | SMALLINT | Specifies the independent auxiliary storage pool (IASP) number. |
The SYSJAROBJECTS table contains one row for each jarid in the SQL schema. The following table describes the columns in the SYSJAROBJECTS table.
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
JARSCHEMA | JARSCHEMA | VARCHAR(128) | Name of the schema containing the jar_id. |
JAR_ID | JAR_ID | VARCHAR(128) | Name of the jar_id. |
DEFINER | DEFINER | VARCHAR(128) | Name of the owner of the jarid. |
JAR_DATA | JAR_DATA |
BLOB(104857600)
Nullable |
Byte-codes for the jar. |
IASP_NUMBER | IASPNUMBER | SMALLINT | Specifies the independent auxiliary storage pool (IASP) number. |
JAR_CREATED |
CREATEDTS | TIMESTAMP | Jar created timestamp |
LAST_ALTERED | ALTEREDTS | TIMESTAMP
Nullable |
Reserved. Contains the null value. |
DEBUG_MODE | DEBUG_MODE | CHAR(1) | Identifies whether the routine is debuggable.
|
DEBUG_DATA | DEBUG_DATA |
CLOB(1048576)
Nullable |
Reserved. Contains the null value. |
The SYSKEYCST view contains one or more rows for each UNIQUE KEY, PRIMARY KEY, or FOREIGN KEY in the SQL schema. There is one row for each column in every unique or primary key constraint and the referencing columns of a referential constraint. The following table describes the columns in the SYSKEYCST view:
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
CONSTRAINT_SCHEMA | CDBNAME | VARCHAR(128) | Name of the schema containing the constraint. |
CONSTRAINT_NAME | RELNAME | VARCHAR(128) | Name of the constraint. |
TABLE_SCHEMA | TDBNAME | VARCHAR(128) | Name of the schema containing the table. |
TABLE_NAME | TBNAME | VARCHAR(128) | Name of the table. |
COLUMN_NAME | COLNAME | VARCHAR(128) | Name of the column. |
ORDINAL_POSITION | COLSEQ | INTEGER | The position of the column within the key |
COLUMN_POSITION | COLNO | INTEGER | The position of the column within the row |
TABLE_OWNER | CREATOR | VARCHAR(128) | Owner of the table. |
SYSTEM_COLUMN_NAME | SYS_CNAME | CHAR(10) | System name of the column. |
SYSTEM_TABLE_NAME | SYS_TNAME | CHAR(10) | System name of the table. |
SYSTEM_TABLE_SCHEMA | SYS_DNAME | CHAR(10) | System name of the schema containing the schema table. |
The SYSKEYS view contains one row for every column of an index in the SQL schema, including the keys for the indexes on the SQL catalog. The following table describes the columns in the SYSKEYS view:
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
INDEX_NAME | IXNAME | VARCHAR(128) | Name of the index. This will be the SQL index name if one exists; otherwise, it will be the system index name. |
INDEX_OWNER | IXCREATOR | VARCHAR(128) | Owner of the index |
COLUMN_NAME | COLNAME | VARCHAR(128) | Name of the column of the key. This will be the SQL column name if one exists; otherwise, it will be the system column name. |
COLUMN_POSITION | COLNO | INTEGER | Numeric position of the column in the row |
ORDINAL_POSITION | COLSEQ | INTEGER | Numeric position of the column in the key |
ORDERING | ORDERING | CHAR(1) | Order of the column in the key:
|
INDEX_SCHEMA | IXDBNAME | VARCHAR(128) | Name of the schema containing the index. |
SYSTEM_COLUMN_NAME | SYS_CNAME | CHAR(10) | System name of the column |
SYSTEM_INDEX_NAME | SYS_IXNAME | CHAR(10) | System name of the index |
SYSTEM_INDEX_SCHEMA | SYS_IDNAME | CHAR(10) | System name of the schema containing the index |
The SYSPACKAGE view contains one row for each SQL package in the SQL schema. The following table describes the columns in the SYSPACKAGE view:
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
PACKAGE_CATALOG | LOCATION | VARCHAR(128) | Relational database name (RDBNAME) of the SQL package |
PACKAGE_SCHEMA | COLLID | VARCHAR(128) | Name of the schema |
PACKAGE_NAME | NAME | VARCHAR(128) | Name of the SQL package |
PACKAGE_OWNER | OWNER | VARCHAR(128) | Owner of the SQL package |
PACKAGE_CREATOR | CREATOR | VARCHAR(128) | Creator of the SQL package |
CREATION_TIMESTAMP | TIMESTAMP | CHAR(26) | Timestamp of when the SQL package was created |
DEFAULT_SCHEMA | QUALIFIER | VARCHAR(128) | Implicit name for unqualified tables, views, and indexes |
PROGRAM_NAME | PROGNAME | VARCHAR(128) | Name of program the package was created from |
PROGRAM_SCHEMA | LIBRARY | VARCHAR(128) | Name of schema containing the program |
PROGRAM_CATALOG | RDB | VARCHAR(128) | Name of the relational database where the program resides |
ISOLATION | ISOLATION | CHAR(2) |
Isolation option specification: RR Repeatable Read (*RR) RS Read Stability (*ALL) CS Cursor Stability (*CS) UR Uncommitted Read (*CHG) NO None (*NONE) |
QUOTE | QUOTE | CHAR(1) |
Escape character specification (Y/N): Y = Quotation mark N = Apostrophe |
COMMA | COMMA | CHAR(1) |
Comma option specification (Y/N): Y = Comma N = Period |
PACKAGE_TEXT | LABEL | VARCHAR(50) | A character string you supply with the LABEL statement. |
LONG_COMMENT | REMARKS | VARCHAR(2000) | A character string supplied with the COMMENT
statement.
Contains the null value if there is no long comment. |
CONSISTENCY_TOKEN | CONTOKEN | CHAR(8) FOR BIT DATA | Consistency token of package |
SYSTEM_PACKAGE_NAME | SYS_NAME | CHAR(10) | System name of the package. |
SYSTEM_PACKAGE_SCHEMA | SYS_DNAME | CHAR(10) | System name of the schema containing the package. |
SYSTEM_DEFAULT_SCHEMA | SYS_DDNAME | CHAR(10) | System name of the implicit qualifier for unqualified table, views, indexes, and packages. |
SYSTEM_PROGRAM_NAME | SYS_PNAME | CHAR(10) | System name of the program. |
SYSTEM_PROGRAM_SCHEMA | SYS_PDNAME | CHAR(10) | System name of the schema containing the program |
IASP_NUMBER | IASPNUMBER | SMALLINT | Specifies the independent auxiliary storage pool (IASP) number. |
The SYSPARMS table contains one row for each parameter of a procedure created by the CREATE PROCEDURE statement or function created by the CREATE FUNCTION statement. The following table describes the columns in the SYSPARMS table:
The SYSPROCS view contains one row for each procedure created by the CREATE PROCEDURE statement. The following table describes the columns in the SYSPROCS view:
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
SPECIFIC_SCHEMA | SPECSCHEMA | VARCHAR(128) | Schema name of the routine (procedure) instance. |
SPECIFIC_NAME | SPECNAME | VARCHAR(128) | Specific name of the routine instance. |
ROUTINE_SCHEMA | PROCSCHEMA | VARCHAR(128) | Name of the SQL schema (schema) that contains the routine. |
ROUTINE_NAME | PROCNAME | VARCHAR(128) | Name of the routine. |
ROUTINE_CREATED | RTNCREATE | TIMESTAMP | Identifies the timestamp when the routine was created. |
ROUTINE_DEFINER | DEFINER | VARCHAR(128) | Name of the user that defined the routine. |
ROUTINE_BODY | BODY | VARCHAR(8) | The type of the routine body:
|
EXTERNAL_NAME | EXTNAME | VARCHAR(279)
Nullable |
This column identifies the external program
name.
|
EXTERNAL_LANGUAGE | LANGUAGE | VARCHAR(8)
Nullable |
If this is an external routine, this column
identifies the external program name.
Contains the null value if this is not an external routine. |
PARAMETER_STYLE | PARM_STYLE | VARCHAR(7)
Nullable |
If this is an external routine, this column
identifies the parameter style (calling convention).
Contains the null value if this is not an external routine. |
IS_DETERMINISTIC | DETERMINE | VARCHAR(3) | This column identifies whether the routine
is deterministic. That is, whether a call to the routine with the same arguments
will always return the same result.
|
SQL_DATA_ACCESS | DATAACCESS | VARCHAR(8) | This column identifies whether a routine
contains SQL and whether it reads or modifies data.
|
SQL_PATH | SQL_PATH | VARCHAR(3483)
Nullable |
If this is an SQL routine, this column identifies
the path.
Contains the null value if this is not an SQL routine. |
PARM_SIGNATURE | SIGNATURE | VARCHAR(2048) | This column identifies the routine signature. |
RESULT_SETS | RESULTS | SMALLINT | Identifies the maximum number of result sets returned. 0 indicates that there are no result sets. |
IN_PARMS | IN_PARMS | SMALLINT | Identifies the number of input parameters. 0 indicates that there are no input parameters. |
OUT_PARMS | OUT_PARMS | SMALLINT | Identifies the number of output parameters. 0 indicates that there are no output parameters. |
INOUT_PARMS | INOUT_PARM | SMALLINT | Identifies the number of input/output parameters. 0 indicates that there are no input/output parameters. |
LONG_COMMENT | REMARKS | VARCHAR(2000)
Nullable |
A character string supplied with the COMMENT
statement.
Contains the null value if there is no long comment. |
ROUTINE_DEFINITION | ROUTINEDEF | VARCHAR(24000)
Nullable |
If this is an SQL routine, this column contains
the SQL routine body.
Contains the null value if this is not an SQL routine or if the routine body cannot be contained in this column without truncation. |
DBINFO | DBINFO | VARCHAR(3)
Nullable |
Identifies whether information about the
database is passed to the procedure.
|
COMMIT_ON_RETURN | CMTONRET | VARCHAR(3)
Nullable |
This column identifies whether the procedure
commits on a successful return from the procedure.
|
IASP_NUMBER | IASPNUMBER | SMALLINT | Specifies the independent auxiliary storage pool (IASP) number. |
NEW_SAVEPOINT_LEVEL | NEWSAVEPTL | VARCHAR(3)
Nullable |
This column identifies whether the routine
starts a new savepoint level.
|
The SYSREFCST view contains one row for each foreign key in the SQL schema. The following table describes the columns in the SYSREFCST view:
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
CONSTRAINT_SCHEMA | CDBNAME | VARCHAR(128) | Name of the schema containing the constraint. |
CONSTRAINT_NAME | RELNAME | VARCHAR(128) | Name of the constraint. |
UNIQUE_CONSTRAINT_SCHEMA | UNQDBNAME | VARCHAR(128) | Name of the SQL schema containing the unique constraint referenced by the referential constraint. |
UNIQUE_CONSTRAINT_NAME | UNQNAME | VARCHAR(128) | Name of the unique constraint referenced by the referential constraint. |
MATCH_OPTION | MATCH | VARCHAR(7) | Match option. Will always be NONE. |
UPDATE_RULE | UPDATE | VARCHAR(11) | Update Rule.
|
DELETE_RULE | DELETE | VARCHAR(11) | Delete Rule
|
COLUMN_COUNT | COLCOUNT | INTEGER | Number of columns in the foreign key. |
The SYSROUTINEDEP view records the dependencies of routines. The following table describes the columns in the SYSROUTINEDEP view:
Column name | System Column Name | Data Type | Description |
---|---|---|---|
SPECIFIC_SCHEMA | SPECSCHEMA | VARCHAR(128) | Schema name of the routine instance. |
SPECIFIC_NAME | SPECNAME | VARCHAR(128) | Specific name of the routine instance. |
OBJECT_SCHEMA | BSCHEMA | VARCHAR(128) | Name of the SQL schema that contains the object. |
OBJECT_NAME | BNAME | VARCHAR(128) | Name of the object the routine is dependent on. |
OBJECT_TYPE | BTYPE | CHAR(24) | Indicates the object type of the object referenced
in the routine:
|
PARM_SIGNATURE | SIGNATURE | VARCHAR(10000)
Nullable |
This column identifies the routine signature.
Contains the null value if the object is not a routine. |
IASP_NUMBER | IASPNUMBER | SMALLINT | Specifies the independent auxiliary storage pool (IASP) number of the object. |
NUMBER_OF_PARMS | NUMPARMS | SMALLINT
Nullable |
Identifies the number of parameters.
Contains the null value if the object is not a routine. |
The SYSROUTINES table contains one row for each procedure created by the CREATE PROCEDURE statement and each function created by the CREATE FUNCTION statement. The following table describes the columns in the SYSROUTINES table:
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
SPECIFIC_SCHEMA | SPECSCHEMA | VARCHAR(128) | Schema name of the routine instance. |
SPECIFIC_NAME | SPECNAME | VARCHAR(128) | Specific name of the routine instance. |
ROUTINE_SCHEMA | RTNSCHEMA | VARCHAR(128) | Name of the SQL schema (schema) that contains the routine. |
ROUTINE_NAME | RTNNAME | VARCHAR(128) | Name of the routine. |
ROUTINE_TYPE | RTNTYPE | VARCHAR(9) | Type of the routine.
|
ROUTINE_CREATED | RTNCREATE | TIMESTAMP | Identifies the timestamp when the routine was created. |
ROUTINE_DEFINER | DEFINER | VARCHAR(128) | Name of the user that defined the routine. |
ROUTINE_BODY | BODY | VARCHAR(8) | The type of the routine body:
|
EXTERNAL_NAME | EXTNAME | VARCHAR(279)
Nullable |
This column identifies the external program
name.
Contains the null value if this is a system-generated function. |
EXTERNAL_LANGUAGE | LANGUAGE | VARCHAR(8)
Nullable |
If this is an external routine, this column
identifies the external program name.
Contains the null value if this is not an external routine. |
PARAMETER_STYLE | PARM_STYLE | VARCHAR(7)
Nullable |
If this is an external routine, this column
identifies the parameter style (calling convention).
Contains the null value if this is not an external routine. |
IS_DETERMINISTIC | DETERMINE | VARCHAR(3) | This column identifies whether the routine
is deterministic. That is, whether a call to the routine with the same arguments
will always return the same result.
|
SQL_DATA_ACCESS | DATAACCESS | VARCHAR(8)
Nullable |
This column identifies whether a routine
contains SQL and whether it reads or modifies data.
|
SQL_PATH | SQL_PATH | VARCHAR(3483)
Nullable |
If this is an SQL routine, this column identifies
the path.
Contains the null value if this is not an SQL routine. |
PARM_SIGNATURE | SIGNATURE | VARCHAR(2048) | This column identifies the routine signature. |
NUMBER_OF_RESULTS | NUMRESULTS | SMALLINT | Identifies the number of results. |
MAX_DYNAMIC_RESULT_SETS | RESULTS | SMALLINT | Identifies the maximum number of result sets returned. 0 indicates that there are no result sets. |
IN_PARMS | IN_PARMS | SMALLINT | Identifies the number of input parameters. 0 indicates that there are no input parameters. |
OUT_PARMS | OUT_PARMS | SMALLINT | Identifies the number of output parameters. 0 indicates that there are no output parameters. |
INOUT_PARMS | INOUT_PARM | SMALLINT | Identifies the number of input/output parameters. 0 indicates that there are no input/output parameters. |
PARSE_TREE | PARSE_TREE | VARCHAR(1024) FOR BIT DATA | If this is a routine, this column identifies the parse tree of the CREATE FUNCTION or CREATE PROCEDURE statement. It is only used internally. |
PARM_ARRAY | PARM_ARRAY | BLOB(320000) | If this is an external routine, this column identifies the parameter array built from the CREATE FUNCTION or CREATE PROCEDURE statement. It is only used internally. |
LONG_COMMENT | REMARKS | VARCHAR(2000)
Nullable |
A character string supplied with the COMMENT
statement.
Contains the null value if there is no long comment. |
ROUTINE_DEFINITION | ROUTINEDEF | DBCLOB(2M) CCSID 13488
Nullable |
If this is an SQL routine, this column contains
the SQL routine body.
Contains the null value if this is not an SQL routine or if the routine body cannot be contained in this column without truncation. |
FUNCTION_ORIGIN | ORIGIN | CHAR(1) | Identifies the type of function. If this
is a procedure, this column contains a blank.
|
FUNCTION_TYPE | TYPE | CHAR(1) | Identifies the form of the function. If this
is a procedure, this column contains a blank.
|
EXTERNAL_ACTION | EXTACTION | CHAR(1)
Nullable |
Identifies whether the invocation of the
function has external effects.
Contains the null value if the routine is a procedure. |
IS_NULL_CALL | NULL_CALL | VARCHAR(3)
Nullable |
Identifies whether the function needs to
be called if an input parameter is the null value.
Contains the null value if the routine is a procedure. |
SCRATCH_PAD | SCRATCHPAD | INTEGER
Nullable |
Identifies whether the address of a static
memory area (scratch pad) is passed to the function.
Contains the null value if the routine is a procedure. |
FINAL_CALL | FINAL_CALL | VARCHAR(3)
Nullable |
Indicates whether a final call to the function
should be made to allow the function to clean up its work areas (scratch pads).
Contains the null value if the routine is a procedure. |
PARALLELIZABLE | PARALLEL | VARCHAR(3)
Nullable |
Identifies whether the function can be run
in parallel.
Contains the null value if the routine is a procedure. |
DBINFO | DBINFO | VARCHAR(3)
Nullable |
Identifies whether information about the
database is passed to the routine.
Contains the null value if the routine is a procedure. |
SOURCE_SPECIFIC_SCHEMA | SRCSCHEMA | VARCHAR(128)
Nullable |
If this is sourced function and the source
is user-defined, this column contains the name of the source schema. If this
is a sourced function and the source is built-in, this column contains 'QSYS2'.
Contains the null value if the routine is not a sourced function. |
SOURCE_SPECIFIC_NAME | SRCNAME | VARCHAR(128)
Nullable |
If this is sourced function and the source
is user-defined, this column contains the specific name of the source function
name.
Contains the null value if the routine is not a sourced function. |
IS_USER_ DEFINED_CAST | CAST_FUNC | VARCHAR(3)
Nullable |
Identifies whether the this function is a
cast function created when a distinct type was created.
Contains the null value if the routine is a procedure. |
CARDINALITY | CARD | BIGINT
Nullable |
Specifies the cardinality for a table function.
Contains the null value if the function is not a table function or if cardinality was not specified. |
FENCED | FENCED | VARCHAR(3)
Nullable |
Identifies whether a function is fenced.
Contains the null value if the routine is a procedure. |
COMMIT_ON_RETURN | CMTONRET | VARCHAR(3)
Nullable |
This column identifies whether the procedure
commits on a successful return from the procedure.
Contains the null value if the routine is a function. |
IASP_NUMBER | IASPNUMBER | SMALLINT | Specifies the independent auxiliary storage pool (IASP) number. |
NEW_SAVEPOINT_LEVEL | NEWSAVEPTL | VARCHAR(3)
Nullable |
This column identifies whether the routine
starts a new savepoint level.
Contains the null value if the routine is a function. |
LAST_ALTERED | ALTEREDTS | TIMESTAMP
Nullable |
Routine last changed timestamp.
Contains the null value. |
DEBUG_MODE | DEBUG_MODE | CHAR(1) | Identifies whether the routine is debuggable.
|
DEBUG_DATA | DEBUG_DATA |
CLOB(1048576)
Nullable |
Reserved. Contains the null value. |
The SYSSEQUENCES view contains one row for every sequence object in the SQL schema. The following table describes the columns in the SYSSEQUENCES view:
Column name | System Column Name | Data Type | Description |
---|---|---|---|
SEQUENCE_SCHEMA | SEQSCHEMA | VARCHAR(128) | The name of the SQL schema containing the sequence. |
SEQUENCE_NAME | SEQNAME | VARCHAR(128) | Name of the sequence. |
MAXIMUM_VALUE | MAXVALUE |
DECIMAL(63,0) |
Maximum value of the sequence. |
MINIMUM_VALUE | MINVALUE |
DECIMAL(63,0) |
Minimum value of the sequence. |
INCREMENT | INCREMENT |
INTEGER |
Increment value of the sequence. |
CYCLE_OPTION | CYCLE |
VARCHAR(3) |
Identifies whether the sequence values will
continue to be generated after the minimum or maximum value has been reached.
|
CACHE | CACHE |
INTEGER |
Specifies the number of sequence values that may be preallocated for faster access. Zero indicates that the values will not be preallocated. |
ORDER | ORDER |
VARCHAR(3) |
Specifies whether the sequence values must
be generated in order of the request.
|
DATA_TYPE | DATA_TYPE | VARCHAR(128) | Type of sequence:
|
NUMERIC_PRECISION | PRECISION |
INTEGER |
The precision of all numeric columns. |
USER_DEFINED_TYPE_SCHEMA | TYPESCHEMA |
VARCHAR(128)
Nullable |
The name of the schema if this is a distinct type.
Contains the null value if the sequence is not a distinct type. |
USER_DEFINED_TYPE_NAME | TYPENAME |
VARCHAR(128)
Nullable |
The name of the distinct type.
Contains the null value if the sequence is not a distinct type. |
START | START |
DECIMAL(63,0) |
Starting value of the sequence. |
MAXASSIGNEDVAL | MAXASNVAL |
DECIMAL(63,0)
Nullable |
Last possible assigned sequence value. This
value includes any values that were cached, but not used.
Contains the null value when the sequence is created. Is not null after the first value is assigned. |
SEQUENCE_DEFINER | DEFINER | VARCHAR(128) | The authorization ID under which the sequence was created. |
SEQUENCE_CREATED | CREATEDTS | TIMESTAMP | Timestamp when the sequence was created. |
LAST_ALTERED_TIMESTAMP | ALTEREDTS | TIMESTAMP | Timestamp when the sequence was last altered. |
SEQUENCE_TEXT | LABEL |
VARCHAR(50)
Nullable |
A character string supplied with the LABEL
statement (sequence text).
Contains the null value if the sequence has no sequence text. |
LONG_COMMENT | REMARKS |
VARCHAR(2000)
Nullable |
A character string supplied with the COMMENT
statement.
Contains the null value if there is no long comment. |
SYSTEM_SEQ_SCHEMA | SYSSSCHEMA | CHAR(10) | The system name of the schema |
SYSTEM_SEQ_NAME | SYSSNAME | CHAR(10) | The system name of the sequence |
IASP_NUMBER | IASPNUMBER | SMALLINT | Specifies the independent auxiliary storage pool (IASP) number. |
The SYSTABLEDEP view records the dependencies of materialized query tables. The following table describes the columns in the SYSTABLEDEP view:
Column name | System Column Name | Data Type | Description |
---|---|---|---|
TABLE_SCHEMA | TABSCHEMA | VARCHAR(128) | Name of the SQL schema that contains the table, view or alias |
TABLE_NAME | TABNAME | VARCHAR(128) | Name of the table, view or alias. This is the SQL table, view or alias name if it exists; otherwise, it is the system table, view or alias name. |
OBJECT_SCHEMA | BSCHEMA | VARCHAR(128) | Name of the SQL schema that contains the object. |
OBJECT_NAME | BNAME | VARCHAR(128) | Name of the object the materialized query table is dependent on. |
OBJECT_TYPE | BTYPE | CHAR(24) | Indicates the object type of the object referenced
in the materialized query table:
|
IASP_NUMBER | IASPNUMBER | SMALLINT | Specifies the independent auxiliary storage pool (IASP) number of the object. |
SYSTEM_TABLE_SCHEMA | SYS_DNAME | CHAR(10) | System schema name |
SYSTEM_TABLE_NAME | SYS_TNAME | CHAR(10) | System table name. |
PARM_SIGNATURE | SIGNATURE | VARCHAR(10000)
Nullable |
This column identifies the routine signature.
Contains the null value if the object is not a routine. |
The SYSTABLES view contains one row for every table, view or alias in the SQL schema, including the tables and views of the SQL catalog. The following table describes the columns in the SYSTABLES view:
Column name | System Column Name | Data Type | Description |
---|---|---|---|
TABLE_NAME | NAME | VARCHAR(128) | Name of the table, view or alias. This is the SQL table, view or alias name if it exists; otherwise, it is the system table, view or alias name. |
TABLE_OWNER | CREATOR | VARCHAR(128) | Owner of the table, view or alias |
TABLE_TYPE | TYPE | CHAR(1) | If the row describes a table, view, or alias:
|
COLUMN_COUNT | COLCOUNT | INTEGER | Number of columns in the table or view. Zero for an alias. |
ROW_LENGTH | RECLENGTH 110 | INTEGER | Maximum length of any record in the table. Zero for an alias. |
TABLE_TEXT | LABEL | CHAR(50) | A character string provided with the LABEL statement. |
LONG_COMMENT | REMARKS |
VARCHAR(2000)
Nullable |
A character string supplied with the COMMENT
statement.
Contains the null value if there is no long comment. |
TABLE_SCHEMA | DBNAME | VARCHAR(128) | Name of the SQL schema that contains the table, view or alias |
LAST_ALTERED_TIMESTAMP | ALTEREDTS | TIMESTAMP | Table last changed timestamp |
SYSTEM_TABLE_NAME | SYS_TNAME | CHAR(10) | System table name. |
SYSTEM_TABLE_SCHEMA | SYS_DNAME | CHAR(10) | System schema name |
FILE_TYPE | FILETYPE | CHAR(1) | File type
|
BASE_TABLE_SCHEMA | TBDBNAME |
VARCHAR(128)
Nullable |
For an alias, this is the name of the SQL
schema that contains the table or view the alias is based on.
Contains the null value if the table is not an alias. |
BASE_TABLE_NAME | TBNAME |
VARCHAR(128)
Nullable |
For an alias, this is the name of the table
or view the alias is based on.
Contains the null value if the table is not an alias. |
BASE_TABLE_MEMBER | TBMEMBER |
VARCHAR(10)
Nullable |
For an alias, this is the name of the file
member the alias is based on. Contains *FIRST if this is an alias, but a member
name was not specified.
Contains the null value if the table is not an alias. |
SYSTEM_TABLE | SYSTABLE | CHAR(1) | System table
|
SELECT_OMIT | SELECTOMIT | CHAR(1) | Select/omit logical file
|
IS_INSERTABLE_INTO | INSERTABLE | VARCHAR(3) | Identifies whether an INSERT is allowed on
the table.
|
IASP_NUMBER | IASPNUMBER | SMALLINT | Specifies the independent auxiliary storage pool (IASP) number. |
ENABLED | ENABLED | VARCHAR(3)
Nullable |
Indicates whether the materialized query
table is enabled for optimization:
Contains the null value if the table is not a materialized query table. |
MAINTENANCE | MAINTAIN | VARCHAR(6)
Nullable |
Indicates whether the materialized query
table is user or system maintained:
Contains the null value if the table is not a materialized query table. |
REFRESH | REFRESH | VARCHAR(9)
Nullable |
Indicates the materialized query table REFRESH
option:
Contains the null value if the table is not a materialized query table. |
REFRESH_TIME | REFRESHDTS | TIMESTAMP
Nullable |
Indicates the timestamp of the last materialized
query table REFRESH:
Contains the null value if the table is not a materialized query table or if the table has never been refreshed. |
MQT_DEFINITION | MQTDEF | DBCLOB(2M) CCSID 13488
Nullable |
Indicates the query expression of the materialized
query table:
Contains the null value if the table is not a materialized query table. |
ISOLATION | ISOLATION | CHAR(2)
Nullable |
Indicates the isolation level used for the select-statement when refreshing the materialized query table:
RR Repeatable Read (*RR)
RS Read Stability (*ALL) CS Cursor Stability (*CS) UR Uncommitted Read (*CHG) NO None (*NONE) Contains the null value if the table is not a materialized query table. |
PARTITION_TABLE | PART_TABLE | VARCHAR(3) | Indicates whether the table is a partitioned
table:
|
TABLE_DEFINER | DEFINER | VARCHAR(128) | Name of the user that defined the table. |
The SYSTRIGCOL view contains one row for each column either implicitly or explicitly referenced in the WHEN clause or the triggered SQL statements of a trigger. The following table describes the columns in the SYSTRIGCOL view:
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
TRIGGER_SCHEMA | TRIGSCHEMA | VARCHAR(128) | Name of the schema containing the trigger. |
TRIGGER_NAME | TRIGNAME | VARCHAR(128) | Name of the trigger. |
TABLE_SCHEMA | TABSCHEMA | VARCHAR(128) | Name of the schema containing the table or view that contains the column that is referenced in the trigger. |
TABLE_NAME | TABNAME | VARCHAR(128) | Name of the table or view that contains the column that is referenced in the trigger. |
COLUMN_NAME | TABCOLUMN | VARCHAR(128) | Name of the column that is referenced in the trigger. |
OBJECT_TYPE | BTYPE | CHAR(24) | Indicates the object type of the object that
contains the column referenced in the trigger:
|
The SYSTRIGDEP view contains one row for each object referenced in the WHEN clause or the triggered SQL statements of a trigger. The following table describes the columns in the SYSTRIGDEP view:
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
TRIGGER_SCHEMA | TRIGSCHEMA | VARCHAR(128) | Name of the schema containing the trigger. |
TRIGGER_NAME | TRIGNAME | VARCHAR(128) | Name of the trigger. |
OBJECT_SCHEMA | BSCHEMA | VARCHAR(128) | Name of the schema containing the object referenced in the trigger. |
OBJECT_NAME | BNAME | VARCHAR(128) | Name of the object referenced in the trigger. |
OBJECT_TYPE | BTYPE | CHAR(24) | Indicates the object type of the object referenced
in the trigger:
|
PARM_SIGNATURE | SIGNATURE | VARCHAR(10000)
Nullable |
This column identifies the routine signature.
Contains the null value if the object is not a routine. |
The SYSTRIGGERS view contains one row for each trigger in an SQL schema. The following table describes the columns in the SYSTRIGGERS view:
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
TRIGGER_SCHEMA | TRIGSCHEMA | VARCHAR(128) | Name of the schema containing the trigger. |
TRIGGER_NAME | TRIGNAME | VARCHAR(128) | Name of the trigger. |
EVENT_MANIPULATION | TRIGEVENT | VARCHAR(6) | Indicates the event that causes the trigger
to fire:
|
EVENT_OBJECT_SCHEMA | TABSCHEMA | VARCHAR(128) | Name of the schema containing the subject table or view of the trigger. |
EVENT_OBJECT_TABLE | TABNAME | VARCHAR(128) | Name of the subject table or view of the trigger. |
ACTION_ORDER | ORDERSEQNO | INTEGER | The ordinal position of this trigger in the list of triggers for the table or view. This indicates the order in which the trigger will be fired. |
ACTION_CONDITION | CONDITION | DBCLOB(2097152)
Nullable |
Text of the WHEN clause for the trigger.
Contains the null value if there is no WHEN clause. |
ACTION_STATEMENT | TEXT | DBCLOB(2097152)
Nullable |
Text of the SQL statements in the trigger
action.
Contains the null value if this is a trigger created via the ADDPFTRG command. |
ACTION_ORIENTATION | GRANULAR | VARCHAR(9) | Indicates whether this is a ROW or STATEMENT
trigger:
|
ACTION_TIMING | TRIGTIME | VARCHAR(7) | Indicates whether this is a BEFORE,
AFTER, or INSTEAD OF trigger:
|
TRIGGER_MODE | TRIGMODE | VARCHAR(6) | Indicates the firing mode for the trigger:
|
ACTION_REFERENCE_OLD_ROW | OLD_ROW | VARCHAR(128)
Nullable |
Name of the OLD ROW correlation name.
Contains the null value if an OLD ROW correlation name was not specified. |
ACTION_REFERENCE_NEW_ROW | NEW_ROW | VARCHAR(128)
Nullable |
Name of the NEW ROW correlation name.
Contains the null value if a NEW ROW correlation name was not specified. |
ACTION_REFERENCE_OLD_TABLE | OLD_TABLE | VARCHAR(128)
Nullable |
Name of the OLD TABLE correlation name.
Contains the null value if an OLD TABLE correlation name was not specified. |
ACTION_REFERENCE_NEW_TABLE | NEW_TABLE | VARCHAR(128)
Nullable |
Name of the NEW TABLE correlation name.
Contains the null value if a NEW TABLE correlation name was not specified. |
SQL_PATH | SQL_PATH | VARCHAR(3483)
Nullable |
SQL path used when the trigger was created.
Contains the null value if the trigger was created via the ADDPFTRG command. |
CREATED | CREATE_DTS | TIMESTAMP | Timestamp when the trigger was created. |
TRIGGER_PROGRAM_NAME | TRIGPGM | VARCHAR(128) | Name of the trigger program. |
TRIGGER_PROGRAM_LIBRARY | TRIGPGMLIB | VARCHAR(128) | System name of the schema containing the trigger program. |
OPERATIVE | OPERATIVE | VARCHAR(1) | Indicates whether the trigger is operative.
A table or view that has a trigger that contains a reference to that same table or view in its triggered–action is self-referencing. If a self-referencing trigger is duplicated into another library, restored into another library, moved into another library, or renamed; the trigger is marked inoperative since the table references in the triggered–action are unchanged and still reference the original schema and table name.
|
ENABLED | ENABLED | VARCHAR(1) | Indicates whether the trigger is enabled
(see the CL command CHGPFTRG)
|
THREADSAFE | THDSAFE | VARCHAR(8) | Indicates whether the trigger is thread safe.
|
MULTITHREADED_JOB_ACTION | MLTTHDACN | VARCHAR(8) | Indicates the action to take when the trigger
program is called in a multithreaded job.
|
ALLOW_REPEATED_CHANGE | ALWREPCHG | VARCHAR(8) | Indicates the condition under which an update
event fires the trigger.
|
TRIGGER_UPDATE_CONDITION | TRGUPDCND | CHAR(8)
Nullable |
Indicates whether an UPDATE trigger is always
fired on an update event or only when a column value is actually changed.
Contains the null value if the trigger is not an UPDATE trigger. |
LONG_COMMENT | REMARKS | VARGRAPHIC(2000)
Nullable |
A character string supplied with the COMMENT
statement.
Contains the null value if there is no long comment. |
The SYSTRIGUPD view contains one row for each column identified in the UPDATE column list, if any. The following table describes the columns in the SYSTRIGUPD view:
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
TRIGGER_SCHEMA | TRIGSCHEMA | VARCHAR(128) | Name of the schema containing the trigger. |
TRIGGER_NAME | TRIGNAME | VARCHAR(128) | Name of the trigger. |
EVENT_OBJECT_SCHEMA | TABSCHEMA | VARCHAR(128) | Name of the schema containing the subject table of the trigger. |
EVENT_OBJECT_TABLE | TABNAME | VARCHAR(128) | Name of the subject table of the trigger. |
TRIGGERED_UPDATE_COLUMNS | TABCOLUMN | VARCHAR(128) | Name of a column specified in the UPDATE column list of the trigger. |
The SYSTYPES table contains one row for each built-in data type and each distinct type created by the CREATE DISTINCT TYPE statement. The following table describes the columns in the SYSTYPES table:
The SYSVIEWDEP view records the dependencies of views on tables, including the views of the SQL catalog. The following table describes the columns in the SYSVIEWDEP view:
Column name | System Column Name | Data Type | Description |
---|---|---|---|
VIEW_NAME | DNAME | VARCHAR(128) | Name of the view. This is the SQL view name if it exists; otherwise, it is the system view name. |
VIEW_OWNER | DCREATOR | VARCHAR(128) | Owner of the view |
OBJECT_NAME | ONAME | VARCHAR(128) | Name of the object the view is dependent on. |
OBJECT_SCHEMA | OSCHEMA | VARCHAR(128) | Name of the SQL schema that contains the object the view is dependent on. |
OBJECT_TYPE | OTYPE | CHAR(24) | Type of object the view was based on:
|
VIEW_SCHEMA | DDBNAME | VARCHAR(128) | Name of the schema of the view. |
SYSTEM_VIEW_NAME | SYS_VNAME | CHAR(10) | System View name |
SYSTEM_VIEW_SCHEMA | SYS_VDNAME | CHAR(10) | System View schema |
SYSTEM_TABLE_NAME | SYS_TNAME | CHAR(10)
Nullable |
System Table name.
Contains the null value if the object is a function or distinct type. |
SYSTEM_TABLE_SCHEMA | SYS_DNAME | CHAR(10)
Nullable |
System Table schema.
Contains the null value if the object is a function or distinct type. |
TABLE_NAME | BNAME | VARCHAR(128)
Nullable |
Name of the table or view the view is dependent
on. This is the SQL view name if it exists; otherwise, it is the system view
name.
Contains the null value if the object is a function or distinct type. |
TABLE_OWNER | BCREATOR | VARCHAR(128)
Nullable |
Owner of the table or view the view is dependent
on.
Contains the null value if the object is a function or distinct type. |
TABLE_SCHEMA | BDBNAME | VARCHAR(128)
Nullable |
Name of the SQL schema that contains the
table or view the view is dependent on.
Contains the null value if the object is a function or distinct type. |
TABLE_TYPE | BTYPE | CHAR(1)
Nullable |
Type of object the view was based on:
Contains the null value if the object is a function or distinct type. |
IASP_NUMBER | IASPNUMBER | SMALLINT | Specifies the independent auxiliary storage pool (IASP) number. |
PARM_SIGNATURE | SIGNATURE | VARCHAR(10000)
Nullable |
This column identifies the routine signature.
Contains the null value if the object is not a routine. |
The SYSVIEWS view contains one row for each view in the SQL schema, including the views of the SQL catalog. The following table describes the columns in the SYSVIEWS view:
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
TABLE_NAME | NAME | VARCHAR(128) | Name of the view. This is the SQL view name if it exists; otherwise, it is the system view name. |
VIEW_OWNER | CREATOR | VARCHAR(128) | Owner of the view |
SEQNO | SEQNO | INTEGER | Sequence number of this row; will always be 1. |
CHECK_OPTION | CHECK | CHAR(1) | The check option used on the view
|
VIEW_DEFINITION | TEXT |
VARCHAR(10000)
Nullable |
The query expression portion of the CREATE
VIEW statement.
Contains the null value if the view definition cannot be contained in the column without truncation. |
IS_UPDATABLE | UPDATES | CHAR(1) | Specifies if the view is updatable:
|
TABLE_SCHEMA | DBNAME | VARCHAR(128) | Name of the SQL schema that contains the view. |
SYSTEM_VIEW_NAME | SYS_VNAME | CHAR(10) | System View name |
SYSTEM_VIEW_SCHEMA | SYS_VDNAME | CHAR(10) | System View schema name |
IS_INSERTABLE_INTO | INSERTABLE | VARCHAR(3) | Identifies whether an INSERT is allowed on
the view.
|
IASP_NUMBER | IASPNUMBER | SMALLINT | Specifies the independent auxiliary storage pool (IASP) number. |
IS_DELETABLE | DELETES | CHAR(1)
Nullable |
Specifies if the view is deletable:
|
VIEW_DEFINER | DEFINER | VARCHAR(128) | Name of the user that defined the view. |