SQL - SYSIBM.SYSKEYTARGETSTATS - 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.SYSKEYTARGETSTATS
Db2 for z/OS 12.0.0

A tabela SYSKEYTARGETSTATS contém estatísticas de partição para alvos-chave selecionados. Para cada alvo-chave, existe uma linha para cada partição na tabela.

As linhas são inseridas quando RUNSTATS coleta estatísticas de chave indexadas ou estatísticas de chave não indexadas para um espaço de tabela particionado.
Nenhuma linha será inserida se o espaço de tabela não for particionado.
As linhas nesta tabela podem ser inseridas, atualizadas e excluídas.

Importante:
Tenha cuidado ao emitir instruções SQL ou usar ferramentas para atualizar os valores das estatísticas nas tabelas do catálogo.
Se essas atualizações introduzirem dados inválidos, resultados imprevisíveis podem ocorrer, incluindo abends para RUNSTATS e outros utilitários.
Se esses problemas ocorrerem, você pode executar o utilitário RUNSTATS e coletar estatísticas no nível do espaço de tabela para resolver os problemas, na maioria dos casos.

The SYSKEYTARGETSTATS table contains partition statistics for selected key-targets. For each key-target, a row exists for each partition in the table.

Rows are inserted when RUNSTATS collects indexed key statistics or non-indexed key statistics for a partitioned table space.
No row is inserted if the table space is nonpartitioned.
Rows in this table can be inserted, updated, and deleted.

Important:
Use care when issuing SQL statements or using tools to update statistics values in catalog tables.
If such updates introduce invalid data, unpredictable results can occur, including abends for RUNSTATS and other utilities.
If such problems occur, you can run the RUNSTATS utility and collect statistics at the table space level to resolve the problems, in most cases.

Column name Data type Description Use
IXSCHEMA VARCHAR(128)
NOT NULL
The qualifier of the index. G
IXNAME VARCHAR(128)
NOT NULL
The name of the index. G
KEYSEQ SMALLINT
NOT NULL
Numeric position of the key-target in the index. G
HIGHKEY VARCHAR(2000)
NOT NULL
WITH DEFAULT
FOR BIT DATA
The highest key value. S
HIGH2KEY VARCHAR(2000)
NOT NULL
WITH DEFAULT
FOR BIT DATA
The second highest key-value. S
LOWKEY VARCHAR(2000)
NOT NULL
WITH DEFAULT
FOR BIT DATA
The lowest key value. S
LOW2KEY VARCHAR(2000)
NOT NULL
WITH DEFAULT
FOR BIT DATA
The second lowest key-value. S
PARTITION SMALLINT
NOT NULL
The partition number of the table space. G
VARCHAR(1000)
NOT NULL
WITH DEFAULT
FOR BIT DATA
Internal use only. I
STATSTIME TIMESTAMP
NOT NULL
WITH DEFAULT

If RUNSTATS or another utility with inline statistics updated the statistics, the date and time when the last utility invocation updated the statistics.
The default value is '0001-01-01-00.00.00.000000'.
The default value indicates that statistics were not collected.
This is an updatable column.

G
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.

G
STATS_FORMAT CHAR(1)
NOT NULL
WITH DEFAULT
The type of statistics that are gathered:
N
VARCHAR column statistical values are not padded
blank
Statistics have not been collects or VARCHAR column statistical values are padded
G
CARDF FLOAT
NOT NULL
WITH DEFAULT -1
Number of distinct values for the key target. S


© Copyright IBM Corp.