Está en la página 1de 3

7/4/2014

IBM Knowledge Center - SYSIBM.SYSVIEWS table

SYSIBM.SYSVIEWS table
The SYSIBM.SYSVIEWS table contains one or more rows for each view, materialized query table, or user-defined
SQL function.
Column name
NAME

CREATOR

Data type
VARCHAR(128)
NOT NULL

VARCHAR(128)
NOT NULL

SMALLINT
NOT NULL
CHECK

CHAR(1)
NOT NULL

Description

Use

Name of the object.

The schema of the object.

Not used

Whether the WITH CHECK OPTION clause was


specified in the CREATE VIEW statement:

N
No
C
Yes with the cascaded semantic
Y
Yes with the local semantic
The value is N if the view has no WHERE clause, or the
object is not a view.
IBMREQD

CHAR(1)
NOT NULL

A value of Y indicates that the row came from the basic


machine-readable material (MRM) tape. For all other
values, see Release dependency indicators.

The value in this field is not a reliable indicator of release


dependencies. RELCREATED should be used instead.

VARCHAR(1500)
NOT NULL
PATHSCHEMAS

RELCREATED

TYPE

VARCHAR(2048)
NOT NULL WITH
DEFAULT

CHAR(1)
NOT NULL

CHAR(1)
NOT NULL

Not used

SQL path at the time the object was defined. The path is G
used to resolve unqualified data type and function names
used in the object definition.

The release of DB2 that is used to create the object.


Blank if created prior to Version 9. See Release
dependency indicators for all other values.

Type of table:

F
SQL function
M
Materialized query table
V
View

http://www-01.ibm.com/support/knowledgecenter/SSEPEK_10.0.0/com.ibm.db2z10.doc.sqlref/src/tpc/db2z_sysibmsysviewstable.dita?cp=SSEPEK_10.0.0%2

1/3

7/4/2014

REFRESH

IBM Knowledge Center - SYSIBM.SYSVIEWS table

CHAR(1)
NOT NULL WITH
DEFAULT

Refresh mode:

D
A materialized query table with a deferred refresh
mode
blank
Not a materialized query table

ENABLE

CHAR(1)
NOT NULL WITH
DEFAULT

Indicates whether query optimization is enabled:

Y
Enabled
N
Disabled
blank
Not a materialized query table

MAINTENANCE

CHAR(1)
NOT NULL WITH
DEFAULT

Maintenance mode:

S
For a REFRESH = 'D', a materialized query table
that is maintained by the system.
U
For a REFRESH = 'D', a materialized query table
that is maintained by the user.
blank
Not a materialized query table.

REFRESH_TIME

ISOLATION

TIMESTAMP
NOT NULL WITH
DEFAULT

CHAR(1)
NOT NULL WITH
DEFAULT

For REFRESH = 'D' and MAINTENANCE = 'S', the


timestamp of the REFRESH TABLE statement that last
refreshed the data. Otherwise, this is the default
timestamp ('0001-01-01.00.00.00.000000').

Isolation level when the materialized query table is


created or altered from a base table:

R
RR (repeatable read)
S
CS (cursor stability)
T
RS (read stability)
U
UR (uncommitted read)
blank
Not a materialized query table

SIGNATURE

APP_ENCODING_
CCSID

VARCHAR(1024)
NOT NULL WITH
DEFAULT
FOR BIT DATA

INTEGER
NOT NULL WITH
DEFAULT

Contains an internal description. Used for materialized


query tables.

CCSID of the current application encoding scheme at the G


time the object was created. For objects created prior to
Version 8 of DB2, the value is 0.

http://www-01.ibm.com/support/knowledgecenter/SSEPEK_10.0.0/com.ibm.db2z10.doc.sqlref/src/tpc/db2z_sysibmsysviewstable.dita?cp=SSEPEK_10.0.0%2

2/3

7/4/2014

OWNER

OWNERTYPE

IBM Knowledge Center - SYSIBM.SYSVIEWS table

VARCHAR(128)
NOT NULL WITH
DEFAULT

CHAR(1)
NOT NULL WITH
DEFAULT

Authorization ID of the owner of the view, blank for views


that were created in a DB2 release prior to Version 9.

Indicates the type of owner:

blank
Authorization ID
L
Role

ENVID

ROWID

STATEMENT

INTEGER
NOT NULL
WITH DEFAULT

ROWID
NULL
GENERATED
ALWAYS

CLOB(2M)
NOT NULL
WITH DEFAULT

BLOB(1G)
NOT NULL
WITH DEFAULT

Internal environment identifier.

ROWID column, created for the lob columns in this table G

The text of the entire CREATE VIEW statement that was G


used to create the object.

Internal use only.

Parent topic: DB2 catalog tables

http://www-01.ibm.com/support/knowledgecenter/SSEPEK_10.0.0/com.ibm.db2z10.doc.sqlref/src/tpc/db2z_sysibmsysviewstable.dita?cp=SSEPEK_10.0.0%2

3/3

También podría gustarte