The ANALYZE_LOG_SPACE procedure returns the log space analysis results for each of the database partitions of the given database partition group.
>>-ANALYZE_LOG_SPACE--(--inDBPGroup--,--inMainTbSchema--,-------> >--inMainTable--,--analysisType--,--inStmgTime -,---------------> >--addDropOption -,--addDropList -,--pNumber -,--pWeight -)----><
The schema is SYSPROC.
CALL SYSPROC.ANALYZE_LOG_SPACE('IBMDEFAULTGROUP', 'TEST',
'EMP', 2, ' ', 'A', '40,50,60', '10,20,30,40,50,60',
'1,2,1,2,1,2')
CALL SYSPROC.ANALYZE_LOG_SPACE('IBMDEFAULTGROUP', 'TEST',
'EMP', 2, ' ', 'D', '30', '10,20','1,1')
"-1" is used as an output value for parameters when their values cannot be obtained.
The redistribute stored procedures and functions work only in partitioned database environments, where a distribution key has been defined for each table.
The ANALYZE_LOG_SPACE procedure returns a result set (an open cursor) of the log space analysis results, containing the following fields for each of the database partitions of the given database partition group.
Column name | Column type | Description |
---|---|---|
PARTITION_NUM | SMALLINT | The database partition number of the log space analysis. |
TOTAL_LOG_SIZE | BIGINT | Total log space allocated in bytes, -1 indicates unlimited size. |
AVAIL_LOG_SPACE | BIGINT | The amount of log space in bytes that is free and can be used by the redistribute process. |
DATA_SKEW | BIGINT | The absolute value in bytes of the size of data which is deviated from the target level. |
REQ_LOG_SPACE | BIGINT | The amount of space in bytes required to reach the required data distribution. |
NUM_OF_STEPS | SMALLINT | The number of steps needed to reduce the data skew to zero. |
MAX_STEP_SIZE | BIGINT | The maximum amount of data in bytes that can be moved at a time, without causing a log full error. |