Metrics install automatically if you have Redgate Monitor installed.
If you are using Redgate’s SQL Server monitoring tool, Redgate Monitor, you can instantly install and run this metric on your servers.
Temporary tablespaces autoextend to satisfy large sorts, hash joins, and global temporary tables. Runaway growth often signals a bad plan or a missing index and can consume the underlying filesystem.
Required permissions:
GRANT SELECT ON CDB_TEMP_FILES TO redgate_monitor_user CONTAINER=ALL;
These are covered by Redgate Monitor’s standard Oracle monitoring user — if it was set up as described in the product documentation, no additional grants are needed.
Metric definition
Name
Temp Tablespace Allocated (MB) – TEMP
Description
Tracks the total allocated size of a temp tablespace's files so you can alert when growth exceeds a size you choose ("X"). Once allocated, temp files do not automatically shrink, so expect the value to stay at its high-water mark until the temp file is resized or recreated. Create one instance of this metric per temporary tablespace (there can be more than one), substituting the tablespace name in the WHERE clause.
Supported database engine
- Oracle
The T-SQL query that will collect data
Instances to collect from
Select all monitored Oracle instances
Databases to collect from
Not applicable - Oracle custom metrics collect once per instance, and values are stored per container (PDB) via the con_id column
Collection frequency
300
seconds (collected every 5 minutes)
Use collected or calculated values
Leave the Use a calculated rate of change between collections check box unchecked
Metric collection
Enabled
Alert definition
Alert name
Temp tablespace growth – TEMP
Description
Raise an alert when the metric value goes
Above the defined threshholds
Default threshold values
| High: | 10240 |
| Medium: | |
| Low: |
Note: These thresholds are intended as guideline values. If they seem too high or too low for your environment, replace them with values more suited to your server performance.
Raise an alert when the threshold is passed for
2 collections
Alert is
Enabled