Snapshot Log(s) rows count


Job details

Name: Snapshot Log(s) rows count
Platform: Oracle
Category: Cluster and Replication
Description: Checks row count on all snapshot logs for given schema.
Long description: Task checks the row count of all snapshot logs for a given schema.
Version: 1.3
Default schedule: 30 6,12,18 * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘oracle’]/.[hasengine=‘YES’ & (version like ‘9%’ version like ‘10%’ version like ‘11%’) & _priv_read_dba_segments = ‘1′]

Parameters

Name Default value Description
schemas (owners of snapshot logs) null Names of schemas for which the snapshot-logs are checked.
warning threshold 100000 The maximum rows count for all snapshot-logs for a selected schema.
alarm threshold 1000000 The maximum rows count for all snapshot-logs for a selected schema.
history threshold 1000 Snapshot logs with rows count higher than the parameter value is send to history table.

Job Summary

select owner, segment_name, count(*) from dba_segments where owner = [schema name] and segment_name like 'MLOG$_%' group by owner, segment_name;

Job Configuration

Job Behavior

Dependencies

Implementation Details

Reports

Table. Snapshot log details

Owner Snapshot name Rows Count Date
Owner1 SNAPSHOT_ABC 450000 2023-01-15
Owner2 SNAPSHOT_DEF 1050000 2023-01-15

Additional Scripts and Automated Workflows

Conclusion

This dbWatch Control Center task is crucial for maintaining an efficient, performance-optimized Oracle database environment by actively managing and auditing the size and growth of snapshot logs.