Overview
- Prior to ALTIBASE HDB 5.5.1, only ALLOC of undo tablespace could be checked, but USED could not be checked.
- This chapter describes how to check the actual usage tablespaces using V$DISK_UNDO_USAGE added from ALTIBASE HDB version 5.5.1.
ALLOC and USED of undo tablespace
- The undo tablespace is made up of segments, and segments are made up of smaller units called extents.
- When a change transaction occurs in a disk table, it is allocated in units of extents. Whenever an extent is newly allocated, the size of the undo tablespace ALLOC increases.
- When the transaction ends, the extent becomes reusable.
- However, if any of the extents within a segment are in use, even if there are reusable extents, all of the extents within that segment become unusable. (UNSTEALABLE EXTENT)
- Either the extent is used because a change transaction is executing, or the UNSTEALABLE extent is counted as USED for the undo tablespace.
Version
This monitoring query is available in the version below.
- Altibase 5.5.1
- Altibase 6.1.1
- Altibase 6.3.1
- Altibase 6.5.1
- Altibase 7.1.1
- Altibase 7.3.1
Undo tablespace usage
- ALLOC and USED may increase while a change transaction is being performed on the disk table.
- If the transaction is committed, the USED that is increased during the execution of the transaction is reduced.
- If the transaction is rolled back, the ALLOC and USED that have increased during the execution of the transaction will be reduced.
| Column Name | Description |
|---|---|
| TBS_NAME | Tablespace Name |
| MAX(M) | Maximum Size of Undo Tablespace |
| TOTAL(M) | Total Allocated Size for Undo Tablespace |
| ALLOC(M) | Total Used Pages (excluding free pages) among Allocated Pages |
| USED(M) | Size of Extents Used or Unusable Due to Active Transactions |
| USAGE(%) | Usage (USED vs. MAX) |
| STATE | Tablespace Status |
| AUTOEXTEND | Auto Extend Enabled up to Maximum Size |
V$DISK_UNDO_USAGE performance view
Column name | Data type | Description |
|---|---|---|
TX_EXT_CNT | BIGINT | Number of extents for a segment (Transaction Status Segment, TSS) that stores transaction status information. |
USED_EXT_CNT | BIGINT | Number of extents in the undo segment being used in the transaction. |
UNSTEALABLE_EXT_CNT | BIGINT | Number of extents that cannot be taken from other undo segments. |
REUSABLE_EXT_CNT | BIGINT | Number of reusable extents |
TOTAL_EXT_CNT | BIGINT | The total number of extents allocated from the undo tablespace. |
Related bug
Bug Description
- Improved an issue where undo areas that cannot be reused were incorrectly counted as available space. (Extents corresponding to the UNSTEALABLE_EXT_CNT column were mistakenly calculated as usable extents.) (BUG-39985)
Applied Versions
- Altibase 6.1.1.4.9 or later
- Altibase 6.3.1.3.3 or later
- Altibase 6.5.1 or later