Temporary tablespace free space check


Job details

Name: Temporary tablespace free space check
Platform: Oracle
Category: Capacity
Description: Checks level of free space for temporary tablespaces.
Long description: Task checks the level of free space for temporary tablespaces.
Version: 0.5
Default schedule: 45 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘oracle’]/.[hasengine=‘YES’ & _priv_read_dba_tablespace_usage_metrics = ‘1′ & _priv_read_dba_free_space = ‘1′ & _priv_read_dba_tablespaces = ‘1′ & _priv_read_dba_temp_files = ‘1′ & _priv_read_dba_temp_free_space=‘1′]

Parameters

Name Default value Description
warning threshold (percent) 10 Warning threshold for the minimum value of the free space in the tablespace (in percentage). If the amount of free space falls below this parameter value, and at the same time the amount of free space in MB falls below the “warning threshold (MB)” parameter value, the check will return a WARNING.
exclude tablespaces Name of the tablespace(s) which should be excluded from free-space checking (separated by comma).
warning threshold (MB) 5000 Minimum of the free space (in MB) for the tablespace. If the amount of free space falls below this parameter value, and at the same time the amount of free space in percent falls below the “warning threshold (percent)” parameter value, the check will return a WARNING.
alarm threshold (percent) 5 Alarm threshold for the minimum value of free space in the tablespace (in percentage). If the amount of free space falls below this parameter value, and at the same time the amount of free space in MB falls below the “alarm threshold free space MB” parameter value, the check will return an ALARM.
alarm threshold (MB) 2000 Minimum of free space (in MB) for the tablespace. If the amount of free space falls below this parameter value, and at the same time the amount of free space in percent falls below the “alarm threshold (percent)” parameter value, the check will return an ALARM.
ignore AUTOEXTENSIBLE NO If “YES“, the procedure does not check tablespaces with AUTOEXTENSIBLE data-files (AUTOEXTENSIBLE=”YES“). Possible values are “YES“ and “NO”.
include unallocated free space NO If set to “YES“, the procedure will compute the free space in each tablespace based on available space in the data file plus all unallocated space this file could autoextend to (maxsize – current size).

Job Summary

SELECT tablespace_name, file_name, BYTES, MAXBYTES FROM dba_temp_files;

Monitoring Metrics

Metric Description
Category Capacity-related checks to monitor space utilization.
Object tmp_free_space – Focuses on free space within temporary tablespaces.
Default Schedule Every 45 minutes (indicated by the cron expression “45 * * *”).

Thresholds and Alerts

Configuration and Compatibility

Report Details

This job’s implementation assures that the temporary tablespaces maintain enough free space efficiently, by providing both on-the-spot checks and historical data trends for capacity planning and operational reliability. These factors are quintessential for maintaining a database environment that is both stable and scalable.