Tablespace free space


Job details

Name: Tablespace free space
Platform: Oracle
Category: Capacity
Description: Checks the maximum number of processes.
Long description:
Version: 1.6
Default schedule: 2h
Requires engine install: No
Compatibility tag: .[type=‘instance’ & databasetype=‘oracle’]

Parameters

Name Default value Description
warning_free_mb 5000 MB space left in tablespace when issuing a warning
alarm_free_mb 2000 MB space left in tablespace when issuing an alarm
warning_free_pct 10 Percent space left in tablespace when issuing a warning
alarm_free_pct 5 Percent space left in tablespace when issuing an alarm
include_unallocated_free_space NO Include unallocated free space, this will add possible autoextensible space to free space and requires you to have monitoring of actual diskspace. Values are YES or NO
exclude_tablespace Tablespaces to exclude, comma separated
query_timeout 60 Specifies the maximum duration in seconds that the SELECT query against the dba_free_space and dba_data_files views can run. If the query takes longer than this limit, it will be terminated to conserve resources.

Job Summary

SELECT nvl(b.tablespace_name, nvl(a.tablespace_name,'UNKNOWN')) t_name, round(nvl(mbytes_free,0),1) free_MB, 100 - round(((mbytes_alloc-nvl(mbytes_free,0))/mbytes_alloc)*100,1) pct_free, round(nvl(mbytes_max,mbytes_alloc)) - round(mbytes_alloc-nvl(mbytes_free,0),1) free_MB_MAX, round(((round(nvl(mbytes_max,mbytes_alloc)) - round(mbytes_alloc-nvl(mbytes_free,0),1))/mbytes_max)*100,1) pct_free_MAX FROM ( SELECT sum(bytes)/1048576 mbytes_free, max(bytes)/1048576 largest,tablespace_name FROM sys.dba_free_space GROUP BY tablespace_name ) a, ( SELECT sum(bytes)/1048576 mbytes_alloc, sum(decode(maxbytes,0,bytes ,maxbytes))/1048576 mbytes_max,tablespace_name FROM sys.dba_data_files GROUP BY tablespace_name) b WHERE a.tablespace_name (+) = b.tablespace_name ORDER BY 3 ASC;

Details and Logic

The job performs the following comprehensive checks:

Reporting

Report generated via dbWatch uses SQL and JavaScript for dynamic response based on the live database data.