Agresso CON$ system table


Job details

Name: Agresso CON$ system table
Platform: Oracle
Category: Agresso
Description: Checks the size of all indexes defined on SYS.CON$ system table.
Long description: Checks the size of all indexes defined on SYS.CON$ system table.
Version: 1.3
Default schedule: 10 8,18 * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘oracle’]/.[hasengine=‘YES’ & maj_version > 11]

Parameters

Name Default value Description
I_CON1 max index size 200 The warning threshold for SYS.I_CON1 system index size (in MB).
min. histr. interval 3 The minimum number of days before the statistics are collected in the history tables.

Job Summary

SELECT segment_name, bytes FROM dba_segments WHERE owner='SYS' AND segment_name IN ('CON$', 'I_CON1', 'I_CON2');

Overview of Detection Methods

The job involves several key operations:

Dependencies and Database Modifications

To support the monitoring process, this job depends on specific database objects:

Schema Object Object Type Description Cleanup On Fail
;;dbw~schema;; proc_con$_check 2 (Procedure) n/a true
;;dbw~schema;; dbw_con$_histr 0 (Table) History table, collects size for SYS.CON$ table and their indexes. true
;;dbw~schema;; dbw_con#_col_histr 0 (Table) n/a true

Additionally, the following SQL table creation and procedure are crucial:

CREATE TABLE dbw_con$_histr (segment_type VARCHAR2(20), segment_name VARCHAR2(90), segment_size NUMBER, histr_date DATE)
CREATE TABLE dbw_con#_col_histr (con#_val NUMBER, con#_val_dif NUMBER, period NUMBER, histr_date DATE)
CREATE OR REPLACE PROCEDURE proc_con$_check(taskid in number) IS ...

Reporting and Visualization

The job also includes reports that visualize the SYS.CON$ table and index sizes:

These reports help in understanding patterns over time, assisting database administrators in proactive database management.