syscat.tables


  SELECT TRIM(TABSCHEMA) || '.' || TABNAME
    FROM SYSCAT.TABLES
    WHERE TABSCHEMA = 'WH' AND TYPE = 'T'

AND ( TABNAME like '%DIM' or TABNAME like '%MAP' or TABNAME like '%FACT' or TABNAME like '%SDIM' )

    and CARD <30000000 order by 1



SYSCAT.TABLES catalog view

Each row represents a table, view, alias, or nickname. Each table or view hierarchy has one additional row representing the hierarchy table or hierarchy view that implements the hierarchy. Catalog tables and views are included.

Table 1. SYSCAT.TABLES Catalog View
Column NameData TypeNullableDescription
TABSCHEMAVARCHAR (128) Schema name of the object.
TABNAMEVARCHAR (128) Unqualified name of the object.
OWNERVARCHAR (128) Authorization ID of the owner of the table, view, alias, or nickname.
OWNERTYPECHAR (1) 
  • S = The owner is the system
  • U = The owner is an individual user
TYPECHAR (1) Type of object.
  • A = Alias
  • G = Created temporary table
  • H = Hierarchy table
  • L = Detached table
  • N = Nickname
  • S = Materialized query table
  • T = Table (untyped)
  • U = Typed table
  • V = View (untyped)
  • W = Typed view
STATUSCHAR (1) Status of the object.
  • C = Set integrity pending
  • N = Normal
  • X = Inoperative
BASE_TABSCHEMAVARCHAR (128)YIf TYPE = 'A', contains the schema name of the table, view, alias, or nickname that is referenced by this alias; null value otherwise.
BASE_TABNAMEVARCHAR (128)YIf TYPE = 'A', contains the unqualified name of the table, view, alias, or nickname that is referenced by this alias; null value otherwise.
ROWTYPESCHEMAVARCHAR (128)YSchema name of the row type for this table, if applicable; null value otherwise.
ROWTYPENAMEVARCHAR (128)YUnqualified name of the row type for this table, if applicable; null value otherwise.
CREATE_TIMETIMESTAMP Time at which the object was created.
ALTER_TIMETIMESTAMP Time at which the object was last altered.
INVALIDATE_TIMETIMESTAMP Time at which the object was last invalidated.
STATS_TIMETIMESTAMPYTime at which any change was last made to recorded statistics for this object. The null value if statistics are not collected.
COLCOUNTSMALLINT Number of columns, including inherited columns (if any).
TABLEIDSMALLINT Internal logical object identifier.
TBSPACEIDSMALLINT Internal logical identifier for the primary table space for this object.
CARDBIGINT Total numberof rows in the table; -1 if statistics are not collected.
NPAGESBIGINT Total number of pages on which the rows of the table exist; -1 for a view or alias, or if statistics are not collected; -2 for a subtable or hierarchy table.
FPAGESBIGINT Total number of pages; -1 for a view or alias, or if statistics are not collected; -2 for a subtable or hierarchy table.
OVERFLOWBIGINT Total number of overflow records in the table; -1 for a view or alias, or if statistics are not collected; -2 for a subtable or hierarchy table.
TBSPACEVARCHAR (128)YName of the primary table space for the table. If no other table space is specified, all parts of the table are stored in this table space. The null value for aliases, views, and partitioned tables.
INDEX_TBSPACEVARCHAR (128)YName of the table space that holds all indexes created on this table. The null value for aliases, views, and partitioned tables, or if the INDEX IN clause was omitted or specified with the same value as the IN clause of the CREATE TABLE statement.
LONG_TBSPACEVARCHAR (128)YName of the table space that holds all long data (LONG or LOB column types) for this table. The null value for aliases, views, and partitioned tables, or if the LONG IN clause was omitted or specified with the same value as the IN clause of the CREATE TABLE statement.
PARENTSSMALLINTYNumber of parent tables for this object; that is, the number of referential constraints in which this object is a dependent.
CHILDRENSMALLINTYNumber of dependent tables for this object; that is, the number of referential constraints in which this object is a parent.
SELFREFSSMALLINTYNumber of self-referencing referential constraints for this object; that is, the number of referential constraints in which this object is both a parent and a dependent.
KEYCOLUMNSSMALLINTYNumber of columns in the primary key.
KEYINDEXIDSMALLINTYIndex identifier for the primary key index; 0 or the null value if there is no primary key.
KEYUNIQUESMALLINT Number of unique key constraints (other than the primary key constraint) defined on this object.
CHECKCOUNTSMALLINT Number of check constraints defined on this object.
DATACAPTURECHAR (1) 
  • L = Table participates in data replication, including replication of LONG VARCHAR and LONG VARGRAPHIC columns
  • N = Table does not participate in data replication
  • Y = Table participates in data replication, excluding replication of LONG VARCHAR and LONG VARGRAPHIC columns
CONST_CHECKEDCHAR (32) 
  • Byte 1 represents foreign key constraint.
  • Byte 2 represents check constraint.
  • Byte 5 represents materialized query table.
  • Byte 6 represents generated column.
  • Byte 7 represents staging table.
  • Byte 8 represents data partitioning constraint.
  • Other bytes are reserved for future use.
Possible values are:
  • F = In byte 5, the materialized query table cannot be refreshed incrementally. In byte 7, the content of the staging table is incomplete and cannot be used for incremental refresh of the associated materialized query table.
  • N = Not checked
  • U = Checked by user
  • W = Was in 'U' state when the table was placed in set integrity pending state
  • Y = Checked by system
PMAP_IDSMALLINTYIdentifier for the distribution map that is currently in use by this table (the null value for aliases or views).
PARTITION_MODECHAR (1) Indicates how data is distributed among database partitions in a partitioned database system.
  • H = Hashing
  • R = Replicated across database partitions
  • Blank = No database partitioning
LOG_ATTRIBUTECHAR (1) 
  • Always 0. This column is no longer used.
PCTFREESMALLINT Percentage of each page to be reserved for future inserts.
APPEND_MODECHAR (1) Controls how rows are inserted into pages.
  • N = New rows are inserted into existing spaces, if available
  • Y = New rows are appended to the end of the data
REFRESHCHAR (1) Refresh mode.
  • D = Deferred
  • I = Immediate
  • O = Once
  • Blank = Not a materialized query table
REFRESH_TIMETIMESTAMPYFor REFRESH = 'D' or 'O', time at which the data was last refreshed (REFRESH TABLE statement); null value otherwise.
LOCKSIZECHAR (1) Indicates the preferred lock granularity for tables that are accessed by data manipulation language (DML) statements. Applies to tables only. Possible values are:
  • I = Block insert
  • R = Row
  • T = Table
  • Blank = Not applicable
VOLATILECHAR (1) 
  • C = Cardinality of the table is volatile
  • Blank = Not applicable
ROW_FORMATCHAR (1) Not used.
PROPERTYVARCHAR (32) Properties for a table. A single blank indicates that the table has no properties. The following is position within string, value, and meaning:
  • 1, Y = User maintained materialized query table
  • 2, Y = Staging table
  • 3, Y = Propagate immediate
  • 11, Y = Nickname that will not be cached
  • 13, Y = Statistical view
STATISTICS_PROFILECLOB (10M)YRUNSTATS command used to register a statistical profile for the object.
COMPRESSIONCHAR (1) 
  • B = Both value and row compression are activated
  • N = No compression is activated; a row format that does not support compression is used
  • R = Row compression is activated if licensed; a row format that supports compression might be used
  • V = Value compression is activated; a row format that supports compression is used
  • Blank = Not applicable
ACCESS_MODECHAR (1) Access restriction state of the object. These states only apply to objects that are in set integrity pending state or to objects that were processed by a SET INTEGRITY statement. Possible values are:
  • D = No data movement
  • F = Full access
  • N = No access
  • R = Read-only access
CLUSTEREDCHAR (1)Y
  • Y = Table is multidimensionally clustered (even if only by one dimension)
  • Null value = Table is not multidimensionally clustered
ACTIVE_BLOCKSBIGINT Total number of active blocks in the table, or -1. Applies to multidimensional clustering (MDC) tables only.
DROPRULECHAR (1) 
  • N = No rule
  • R = Restrict rule applies on drop
MAXFREESPACESEARCHSMALLINT Reserved for future use.
AVGCOMPRESSEDROWSIZESMALLINT Average length (in bytes) of compressed rows in this table; -1 if statistics are not collected.
AVGROWCOMPRESSIONRATIOREAL For compressed rows in the table, this is the average compression ratio by row; that is, the average uncompressed row length divided by the average compressed row length; -1 if statistics are not collected.
AVGROWSIZESMALLINT Average length (in bytes) of both compressed and uncompressed rows in this table; -1 if statistics are not collected.
PCTROWSCOMPRESSEDREAL Compressed rows as a percentage of the total number of rows in the table; -1 if statistics are not collected.
LOGINDEXBUILDVARCHAR (3)YLevel of logging that is to be performed during create, recreate, or reorganize index operations on the table.
  • OFF = Index build operations on the table will be logged minimally
  • ON = Index build operations on the table will be logged completely
  • Null value = Value of the logindexbuild database configuration parameter will be used to determine whether or not index build operations are to be completely logged
CODEPAGESMALLINT Code page of the object. This is the default code page used for all character columns, triggers, check constraints, and expression-generated columns.
COLLATIONSCHEMAVARCHAR (128) Schema name of the collation for the table.
COLLATIONNAMEVARCHAR (128) Unqualified name of the collation for the table.
COLLATIONSCHEMA_ORDERBYVARCHAR (128) Schema name of the collation for ORDER BY clauses in the table.
COLLATIONNAME_ORDERBYVARCHAR (128) Unqualified name of the collation for ORDER BY clauses in the table.
ENCODING_SCHEMECHAR (1) 
  • A = CCSID ASCII was specified
  • U = CCSID UNICODE was specified
  • Blank = CCSID clause was not specified
PCTPAGESSAVEDSMALLINT Approximate percentage of pages saved in the table as a result of row compression. This value includes overhead bytes for each user data row in the table, but does not include the space that is consumed by dictionary overhead; -1 if statistics are not collected.
LAST_REGEN_TIMETIMESTAMPYTime at which any views or check constraints on the table were last regenerated.
SECPOLICYIDINTEGER Identifier for the security policy protecting the table; 0 for non-protected tables.
PROTECTIONGRANULARITYCHAR (1) 
  • B = Both column- and row-level granularity
  • C = Column-level granularity
  • R = Row-level granularity
  • Blank = Non-protected table
AUDITPOLICYIDINTEGERYIdentifier for the audit policy.
AUDITPOLICYNAMEVARCHAR (128)YName of the audit policy.
DEFINER1VARCHAR (128) Authorization ID of the owner of the table, view, alias, or nickname.
ONCOMMITCHAR (1) Specifies the action taken on the created temporary table when a COMMIT operation is performed.
  • D = Delete rows
  • P = Preserve rows
  • Blank = Table is not a created temporary table
LOGGEDCHAR (1) Specifies whether the created temporary table is logged.
  • N = Not logged
  • Y = Logged
  • Blank = Table is not a created temporary table
ONROLLBACKCHAR (1) Specifies the action taken on the created temporary table when a ROLLBACK operation is performed.
  • D = Delete rows
  • P = Preserve rows
  • Blank = Table is not a created temporary table
LASTUSEDDATE Date when the table was last used by any DML statement or the LOAD command. This column is not updated for an alias, created temporary table, nickname, or view. This column is not updated when the table is used on an HADR standby database. The default value is '0001-01-01'. This value is updated asynchronously not more than once within a 24 hour period and might not reflect usage within the last 15 minutes.
REMARKSVARCHAR (254)YUser-provided comments, or the null value.

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值