SQL - SYSIBM.SYSTABLES - www.cadcobol.com.br


Volta ao Menu das SYSIBM

Volta ao Menu Principal


Desenvolvido por DORNELLES, Carlos Alberto - Analista de Sistemas - Brasília DF. - cad_cobol@hotmail.com

SYSIBM.SYSTABLES

Contém uma linha para cada tabela (table), visão (view) ou pseudônimo (alias).

Nome da coluna Tipo de dados Descrição Uso
 NAME  VARCHAR(8) NOT NULL  Nome da tabela (table), visão (view) ou pseudônimo (alias). G
 CREATOR  CHAR(8) NOT NULL  Identificação do autor da tabela (table), visão (view) ou pseudônimo  (alias). G
 TYPE  CHAR(1) NOT NULL  Tipo do objeto:

 A      Pseudônimo (alias)
 G      Tabela temporária (temporary table)
 T      Tabela (table)
 V      Visão (view)
G
 DBNAME  CHAR(8) NOT NULL  Para uma tabela (table) ou visão (view), o nome do banco de dados que  contém o TABLE SPACE está nomeado no TSNAME.
 Para um tabela temporária, um pseudônimo (alias) ou uma visão (view)  de uma visão, o valor é DSNDB06.
G
 TSNAME  CHAR(8) NOT NULL  Para uma tabela ou visão, o nome da TABLE SPACE que contém a  tabela. Para visão de mais de uma tabela, o nome da TABLE SPACE  que contém uma das tabelas. Para uma tabela temporária, o valor é  SYSPKAGE. Para a visão de uma visão, o valor é SYSVIEWS. Para um  pseudônimo (alias), o mesmo é SYSDBAUT. G
 DBID  SMALLINT NOT NULL  Identificação interna do banco de dados;
 0 (zero) se a linha descreve uma visão (view). um pseudônimo (alias)  ou uma tabela temporária.
S
 OBID  SMALLINT NOT NULL  Identificação interna de uma tabela;
 0 (zero) se a linha descreve uma visão (view), um pseudônimo (alias) ou  uma tabela temporária.
G
 COLCOUNT  SMALLINT NOT NULL  Número de colunas de uma tabela ou visão. O valor é 0 (zero) se uma  linha descreve um pseudônimo (alias) G
 EDPROC  CHAR(8) NOT NULL  Nome do editor de procedimento (edit procedure);
 branco se a linha descreve uma visão, pseudônimo (alias) ou uma  tabela sem um editor de procedimento (edit procedure).
G
 VALPROC  CHAR(8) NOT NULL  Nome do procedimento de validação (validation procedure);
 branco se a linha descreve uma visão, pseudônimo (alias) ou uma  tabela sem um procedimento de validação(validation procedure).
G
 CLUSTERTYPE  CHAR(1) NOT NULL  Caso RESTRICT ON DROP seja aplicado:

 blank      No
 Y             Sim. Nem a tabela nem qualquer TABLE SPACE ou banco de                 dados que contém a tabela pode ser deletada (dropped).
G
   INTEGER NOT NULL  Não usado N
   INTEGER NOT NULL  Não usado N
 NPAGES  INTEGER NOT NULL  Número total de páginas nas quais linhas de uma tabela aparecem. O  valor é -1 se não foram juntadas estatísticas ou a linhas que descrevem  uma visão, um pseudônimo ou uma table temporária. Esta é uma coluna  alterável. S
 PCTPAGES  SMALLINT NOT NULL  Porcentagem de atividade da TABLE SPACE que contêm linhas da  tabela. Uma página é terminantemente ativa se estiver formatada para  linhas. Se o TABLE SPACE é segmentado, a porcentagem está baseado  no número de páginas ativas no jogo de segmentos nomeado para a  tabela. O valor é -1 se não foram juntadas estatísticas ou linhas que  descrevem uma visão, um pseudônimo ou uma tabela temporária. Esta  é uma coluna de alteravel. S
 IBMREQD  CHAR(1) NOT NULL  Whether the row came from the basic machine-readable material (MRM) tape:

 N      No
 Y      Yes
 B      V1R3 dependency indicator; not from MRM tape
 C      V1R3 dependency indicator; not from MRM tape
 D      V1R3 dependency indicator; not from MRM tape
 E      V1R3 dependency indicator; not from MRM tape
 F      V1R3 dependency indicator; not from MRM tape
 G      V1R3 dependency indicator; not from MRM tape
 H      V1R3 dependency indicator; not from MRM tape
G
 REMARKS  VARCHAR(254) NOT NULL  A character string provided by the user with the COMMENT ON statement G
 PARENTS  SMALLINT NOT NULL  O número de relações nas quais a tabela é uma dependente. O valor é 0  (zero) se a linha descrever uma visão, um pseudônimo, ou uma mesa  temporária. G
 CHILDREN  SMALLINT NOT NULL  O número de relações nas quais a tabela é uma dependente. O valor é 0  (zero) se a linha descrever uma visão, um pseudônimo, ou uma mesa  temporária. G
 KEYCOLUMNS  SMALLINT NOT NULL  O número de colunas na chave primária da tabela. O valor é 0 (zero) se  a linha descrever uma visão, um pseudônimo, ou uma tabela  temporária. G
 RECLENGTH  SMALLINT NOT NULL  For user tables, the maximum length of any record in the table. Length  is 8+N+L, where:

 ° The number 8 accounts for the header (6 bytes) and the id map entry
   (2 bytes).
 ° N is 10 if the table has an edit procedure, or 0 (zero) otherwise.
 ° L is the sum of the maximum column lengths. In determining a    column's maximum length, add a byte for the null indicator if the    column allows nulls. Add 2 bytes for its length indicator if the column    has a varying-length data type (for example, VARCHAR).
   The value is 0 if the row describes a view or alias.
G
 STATUS  CHAR(1) NOT NULL  I            The definition of the table is incomplete because it lacks a               parent index.
 X          Table has a parent index.
 blank    Table has no parent index, or is a catalog table, or the row               describes a view or alias.
G
 KEYOBID  SMALLINT NOT NULL  Internal DB2 identifier of the index that enforces uniqueness of the  table's primary key; 0 (zero) if not applicable. G
 LABEL  VARCHAR(30) NOT NULL  The label as given by a LABEL ON statement; otherwise an empty string. G
 CHECKFLAG  CHAR(1) NOT NULL
 WITH DEFAULT
 C          The table space containing the table is in a check pending state               and there are rows in the table that can violate referential               constraints, table check constraints, or both.
 blank    The table contains no rows that violate referential constraints,               table check constraints, or both; or the row describes a view,               alias, or temporary table.
G
   CHAR(4) NOT NULL WITH
 DEFAULT FOR BIT DATA
 Not used N
 AUDITING  CHAR(1) NOT NULL
 WITH DEFAULT
 Value of the audit option:

 A          AUDIT ALL
 C          AUDIT CHANGE
 blank    AUDIT NONE, or the row describes a view, an alias, or a              temporary table.
G
 CREATEDBY  CHAR(8) NOT NULL
 WITH DEFAULT
 Primary authorization ID of the user who created the table, view, or  alias. G
 LOCATION  CHAR(16) NOT NULL
 WITH DEFAULT
 The location name of the object of an alias. Blank for a table, a view, or  for an alias that was not defined with a three-part object name. G
 TBCREATOR  CHAR(8) NOT NULL
 WITH DEFAULT
 For an alias, the authorization ID of the owner of the referred to table or  view; blank otherwise. G
 TBNAME  CHAR(18) NOT NULL
 WITH DEFAULT
  For an alias, the name for the referred to table or view; blank otherwise. G
 CREATEDTS  TIMESTAMP NOT NULL
 WITH DEFAULT
 Time when the CREATE statement was executed for the table, view, or  alias G
 ALTEREDTS  TIMESTAMP NOT NULL
 WITH DEFAULT
 For a table, the time when the latest ALTER TABLE statement was  applied. If no ALTER TABLE statement has been applied, or if the row is  for a view or alias, ALTEREDTS has the value of CREATEDTS. G
 DATACAPTURE  CHAR(1) NOT NULL
 WITH DEFAULT
 Records the value of the DATA CAPTURE option for a table.

 blank    No
 Y           Yes

 For a temporary table, DATACAPTURE is always blank.
G
 RBA1  CHAR(6) NOT NULL WITH
 DEFAULT FOR BIT DATA
 The log RBA when the table was created. Otherwise, RBA1 is  X'000000000000', indicating that the log RBA is not known, or that the  object is a view, an alias, or a temporary table. In a data sharing  environment, RBA1 is the LRSN (Log Record Sequence Number) value. S
 RBA2  CHAR(6) NOT NULL WITH
 DEFAULT FOR BIT DATA
 The log RBA when the table was last altered. Otherwise, RBA2 is  X'000000000000' indicating that the log RBA is not known, or that the  object is a view, an alias, or a temporary table. RBA1 will equal RBA2 if  the table has not been altered. In a data sharing environment, RBA2 is  the LRSN (Log Record Sequence Number) value. S
 PCTROWCOMP  SMALLINT NOT NULL
 WITH DEFAULT
 Percentage of rows compressed within the total number of active rows in  the table. This includes any row in a table space that is defined with  COMPRESS YES. The value is -1 if the row describes a view, an alias, or  a temporary table, or statistics have not been gathered. This is an  updatable column. S
 STATSTIME  TIMESTAMP NOT NULL
 WITH DEFAULT
 If RUNSTATS updated the statistics, the date and time when the last  invocation of RUNSTATS updated the statistics. The default value is  '0001-01-01.00.00.00.000000'. For a temporary table, the value of  STATSTIME is always the default value. This is an updatable column. G
 CHECKS  SMALLINT NOT NULL
 WITH DEFAULT
 The number of check constraints defined on the table. The value is 0 if  the row describes a view, an alias, or a temporary table, or if no  constraints are defined on the table. G
 CARDF  FLOAT NOT NULL
 WITH DEFAULT
 Total number of rows in the table. The value is -1 if statistics have not  been gathered or the row describes a view, alias, or temporary table.  This is an updatable column. G
 CHECKRID5B  CHAR(5) NOT NULL
 WITH DEFAULT
 Blank if the table or partition is not in a check pending state  (CHECKFLAG is blank), if the table space is not partitioned, or if the table  is a temporary table. Otherwise, the RID of the first row of the table  space partition that can violate referential constraints, table check  constraints, or both; or the value is X'0000000000', indicating that any row  can violate referential constraints. S
 ENCODING_SCHEME  CHAR(1) NOT NULL
 WITH DEFAULT 'E'
 Default encoding scheme for tables, views, and local aliases:

 E           EBCDIC
 A           ASCII
 blank    For remote aliases

 The value will be 'E' for tables in non work file databases and blank for  tables in work file databases created prior to Version 5 or the default  database, DSNDB04.
G


© Copyright IBM Corp.