SQL Reference

Appendix E. Catalog Views For Use With Structured Types

When using extended indexes, additional catalog views provide useful information complementing the SYSCAT catalog views. These views are not created automatically. The views are created in the OBJCAT schema and SELECT privilege on all views is granted to PUBLIC by default.
WARNING:This set of views is for temporary use only until the next version that supports catalog migration. Applications should not presume that these views exist in every database and should consider that these catalog views may not be provided in future versions. The information from these views will be supported through the SYSCAT views in a future version.

The views can be created by following these steps:

The views created by objcat.db2 can be removed by following these steps:

Note:If the database already includes a schema called OBJCAT, you may need to make your own copy of the file objcat.db2 and change the schema names in the second and third CREATE SCHEMA statements to suitable names.

The statements in the OBJCAT.DB2 file will create all additional OBJCAT catalog views.

This appendix contains a description of each of the OBJCAT catalog views. For the associated SYSCAT views, see Appendix D, Catalog Views.

The catalog views are updated during normal operation, in response to SQL data definition statements, environment routines, and certain utilities. Data in the catalog views is available through normal SQL query facilities. Columns have consistent names based on the type of objects that they describe:

Described Object
Column Names

 
 

Table
TABSCHEMA, TABNAME

Index
INDSCHEMA, INDNAME

View
VIEWSCHEMA, VIEWNAME

Constraint
CONSTSCHEMA, CONSTNAME

Trigger
TRIGSCHEMA, TRIGNAME

Package
PKGSCHEMA, PKGNAME

Type
TYPESCHEMA, TYPENAME, TYPEID

Function
FUNCSCHEMA, FUNCNAME, FUNCID

Column
COLNAME

Attribute
ATTR_NAME

Schema
SCHEMANAME

Table Space
TBSPACE

Nodegroup
NGNAME

Buffer pool
BPNAME

Event Monitor
EVMONNAME

Creation Timestamp
CREATE_TIME


[ Top of Page | Previous Page | Next Page ]