Tablespace Size
Tablespace Size is a screen for monitoring and managing the usage of database tablespaces. You can quickly check the size change trend of each tablespace using a line chart, and detect space shortages in advance through daily changes and Remaining Day.
-
Tablespace Size Trend: Use the line chart to track the capacity change trend of major tablespaces.
-
Disk Usage: View disk usage and remaining days per mount point. Available when the XOS agent is installed.
-
Tablespace Size Detail: Analyze the latest usage, daily changes, and remaining days for individual tablespaces.
Prerequisites
To display data on the Tablespace Size screen, DB Configuration and Agent Configuration are required.
DB Configuration
Grant permissions to the monitoring account so the agent can query tablespace and segment information.
GRANT SELECT ANY DICTIONARY TO whatap;
Or grant permissions to individual views.
GRANT SELECT ON dba_segments TO whatap;
Agent Configuration
This configuration is for collecting segment size (TOP 50) data. Based on the conditions below, the agent collects segment size data once a day at the configured time. Data may not be collected due to conditions such as segments_min_size. Without this configuration, segment size information will not be available.
| Option | Type | Default | Description |
|---|---|---|---|
segments | boolean | true | Enable/disable segment information collection |
segments_hour | int | 5 | Time to collect segment information. Default is 5, which starts collection at 5 AM. |
segments_min_size | int | 10 | Minimum segment size (MB) for collection |
segments_exclude_sys | int | 1 | Exclude sys account segments (1: exclude, 0: include) |
segments_max_count | int | 50 | Number of segments to collect per tablespace |
Tablespace size collection options
Depending on the DB environment, performance issues may occur during tablespace size collection. Use the following options to adjust the collection method and interval.
| Option | Type | Default | Description |
|---|---|---|---|
tablespace | int | 1 | Select the tablespace size collection method. 0: Disable collection, 1: Query based on dba_free_space (most common), 2: Query based on free_blocks for LMT (Locally Managed Tablespace), 3: Query based on tablespace_usage_metrics view (per-datafile query not available, no Auto Ext info) |
tablespace_split | boolean | false | Applied only when the tablespace option is 1. If set to true, first retrieves the list of datafiles, then queries free space for each file individually to distribute the load. Use this when collection query load is high in large datafile environments. |
tablespace_interval | int | 60 | Tablespace size collection interval (minutes). Default is 60 minutes (1 hour). |
If collection is not smooth due to large DB size, try setting tablespace=1 with tablespace_split=true to distribute the load, or switch to tablespace=2.
Tablespace Size
Basic Options
In the top filter area of the Tablespace Size screen, you can select the time range and target database to query.
- Time: Select the query time range. Quick selection offers the last 1 day, 1 week, 2 weeks, 31 days, 180 days, and 365 days, and you can query up to 366 days.
If the query period exceeds 3 days, tablespace and segment data are queried as daily summaries. A daily summary is the last collected value of the day based on the project time zone. For the most recent 3 days, for which daily summaries have not been generated yet, raw data is appended. If the query range has no daily summaries at all, the raw data of the most recent 3 days is not shown either.
If the query period exceeds 3 days, disk usage and ASM disk usage are also queried as daily summaries. If the server does not generate daily summaries for disks and ASM disks, no data is shown for periods longer than 3 days.
-
Instance: Select the target DB instance to query.
-
Database: Select the target database to query.
-
Data Unit: Select from MiB/GiB/TiB. All table size values are displayed in the selected unit.
Tablespace Size Trend
Displays the size change of each tablespace as a line chart. Each tablespace is color-coded and can be identified in the legend at the bottom.
- Hover over the chart to see detailed values by time period.
| Item | Description |
|---|---|
| Top 5 / 10 / 15 / 20 | Select the number of top tablespaces to display on the chart. |
| Total / Used | Switch between Total (total size) and Used (usage). |
Disk Usage
Available when the XOS agent is installed.
Displays disk usage per mount point. The Latest Data section shows the most recently collected data within the query range selected in the time selector. You can check the size, Usage (%), Increase AVG, and Remaining Day at that point in time.
Latest Data
| Column | Description |
|---|---|
Mount Point | Disk mount path |
Size | Total disk size |
Used | Used size |
Free Size | Remaining free space |
Usage(%) | Usage rate (visualized as a progress bar) |
Increase AVG | Average daily increase over the query period |
Remaining Day | Remaining available days based on the current growth rate |
Daily Columns
Displays Size and daily change (Inc) for each date in the query period. In an ASM environment, both the Disk Usage tab and the ASM Disk Usage tab are displayed together.
-
Search: Filter by name or path.
-
CSV: Export in CSV format
ASM Disk Usage
The daily columns, search, and CSV features are the same as Disk Usage.
| Column | Description |
|---|---|
Disk Group / Disk | Disk group name and the names of its disks. The disk name is the label; if there is no label, the last part of the path is shown |
Path | ASM disk path |
Size | Total disk size |
Used | Used size |
Free Size | Remaining free space |
Usage(%) | Usage rate (visualized as a progress bar) |
Increase AVG | Average daily increase over the query period |
Remaining Day | Remaining available days based on the current growth rate |
The ASM disk usage table shows the disk rows of each disk group below the disk group row. The size and change of a disk group row are the sums of the daily values of its disks, and Remaining Day is also calculated from the summed values. Remaining Day of the TOTAL row is shown as -. Disk rows are collapsed by default and expand when you search. Disks are identified by Path. The chart is also summed per disk group.
When you export to CSV or Excel, the disk group name and disk name are written in separate Disk Group and Disk columns. Rows with an empty Disk column are aggregate rows, such as the TOTAL row or disk group rows. Exclude aggregate rows when summing disk sizes.
Tablespace Size Detail
Displays detailed usage for individual tablespaces. The TOTAL row at the top shows the overall total. The Latest Data section shows the most recently collected data within the query range selected in the time selector. You can check the size, Usage (%), Increase AVG, and Remaining Day at that point in time.
Latest Data
| Column | Description |
|---|---|
Container | Container (PDB) name. Displayed only in CDB environments; hidden in Non-CDB environments. |
Tablespace | Tablespace name |
Auto Ext | Auto extension status (YES/NO). Column visibility can be toggled in settings. |
Inc By | Increment unit for auto extension. Column visibility can be toggled in settings. |
Max Size | Maximum size limit. Column visibility can be toggled in settings. |
Total Size | Total tablespace size |
Used Size | Used size |
Free Size | Remaining free space (Total Size − Used Size). Can differ from the remaining capacity used to calculate Remaining Day |
Usage(%) | Usage rate (visualized as a progress bar) |
Increase AVG | Average daily increase over the query period |
Remaining Day | Remaining days based on the current growth rate. See the calculation basis below |
Usage(%) and Remaining Day are calculated with the same reference capacity. The reference capacity is the available capacity sent by the agent. If the agent does not send the available capacity, the larger of Max Size and Total Size is used for tablespaces with auto extension (Auto Ext is YES), and Total Size is used for other tablespaces.
Usage(%):Used Size ÷ reference capacity × 100Remaining Day:(reference capacity − Used Size) ÷ Increase AVG, rounded down- TOTAL row: Calculated from the sum of the reference capacities of the tablespaces below it
A tablespace with usage of 90% or higher and remaining capacity of 50 MB or less is judged as full, and its Remaining Day is shown as 0.
Daily Columns
Displays Size and daily change (Inc) for each date in the query period. Increases are shown as positive values and decreases as negative values, color-coded for distinction.
Additional Features
-
Magnifier icon: Displays a popup of the top 50 segments by space usage in the tablespace.
-
▼ Expand: Expand the list of data files belonging to the tablespace.
-
Search: Filter by container or tablespace.
-
Download: Click the button, then select CSV or Excel to export. Selecting Excel downloads an Excel file in the tablespace report format.
Excel report
Click the Download button of the Tablespace Size Detail table and select Excel to download an Excel file in the tablespace report format. The values in the file are the same as in the table on the screen, and the text is in English.
| Sheet | Description |
|---|---|
Tablespace Report | Report title, meta information, table per tablespace, TOTAL row, footnotes, and usage charts |
Chart Data | Data referenced by the charts |
Column Guide | Descriptions of the table columns |
The meta information in the Tablespace Report sheet records the instance name, query period, reference date, data unit, free space basis, and creation time. The table adds the Max, FULL Date, and Status columns, which are not on the screen. Unlike Free Size on the screen, the Free column is calculated as Max − Used. Below the table, the sheet includes a stacked area chart of the daily usage of the top 10 tablespaces, and a chart with a solid line for the total and a dotted line for the projected increase.
CSV files and the Excel files of the disk usage and ASM disk usage tables export the table content as is.
Table Settings
Click the Settings button in the top right to configure table display options.
| Item | Description |
|---|---|
| Column: Auto Ext / Inc By / Max Size | Toggle the display of Auto Ext, Inc By, and Max Size columns. |
| Warning(%) | Usage rate (%) for warning level; displayed in orange when exceeded. - Default: 80 |
| Critical(%) | Usage rate (%) for critical level; displayed in red when exceeded. - Default: 100 |
| Reset Settings | Reset all settings to default values. |
Segment Size (TOP 50)
Click the magnifier icon in the tablespace row to display a popup showing the top 50 segments occupying the most space in that tablespace.
Click the Download button at the top right of the popup to export the list shown in the popup to a CSV file. The column configuration and display format visible on the screen are reflected in the file as they are, and the saved file name is table_size_top50.csv.
The segments option must be enabled in the Agent configuration. The agent collects segment size data once a day, and without this configuration, data will not be available.
| Column | Description |
|---|---|
Tablespace Name | Tablespace the segment belongs to |
Owner | Schema that owns the segment |
Segment Name | Segment name. Click to view object details in the Object Detail popup. |
Segment Type | Segment type (TABLE, INDEX, LOBSEGMENT, etc.) |
Partition Name | Partition name (if a partitioned table) |
Size | Segment size. Size changes can be tracked via date columns. |
Object Detail
Click a segment name in the Segment Size (TOP 50) popup to send a real-time query request to the agent and display detailed information about that object.
-
Object Basic Info: owner, table_name, num_rows, blocks, avg_row_len, tablespace_name, partitioned, last_analyzed, compression, status, etc.
-
Column/Index: Column list (column_id, column_name, nullable, data_type, data_default, num_distinct, num_buckets) and index information.
Data Interpretation Guide
Key Checkpoints
-
Tablespace with high
Usage(%)Risk of space shortage → Consider cleaning up unnecessary data or expanding the tablespace.
-
Tablespace with high
Increase AVGRapidly growing → Check
Remaining Dayand take proactive action. -
Short
Remaining DayAvailable space will be exhausted soon based on current growth rate → Immediate action required.
-
Tablespace with
Auto Extset to NOAuto extension is disabled; errors may occur when space is exhausted → If usage is high, consider manual expansion or enabling Auto Ext.
-
Sudden change in daily
IncvalueLarge-scale data load or deletion occurred on a specific date → Investigate the cause.
Practical Use Scenarios
Scenario 1. Proactive Space Shortage Detection
-
Sort by
Usage(%)in descending order in Tablespace Size Detail -
Check
Remaining Dayfor tablespaces with high usage -
If remaining days are few, expand the tablespace or clean up unnecessary data
Scenario 2. Capacity Surge Root Cause Analysis
-
Check for rapidly increasing tablespaces in the Tablespace Size Trend chart
-
Identify the date when the increase occurred in the daily
Inccolumn of that tablespace -
Click the
magnifier icon for that tablespace to analyze segments occupying the most space
-
Review segment details for unnecessary indexes or ways to reduce data size; if none found, consider disk expansion
Scenario 3. Auto Extension Configuration Check
-
Enable Auto Ext / Inc By / Max Size columns in settings
-
Among tablespaces with
Auto Extset to NO, check those with highUsage(%) -
If necessary, enable auto extension or manually expand the tablespace