Max processes


Job details

Name: Max processes
Platform: Oracle
Category: Capacity
Description: Checks the maximum number of processes.
Long description: Task checks the number of processes and the instance parameter value ‘processes’.
Version: 1.5
Default schedule: 0,4,8,12,16,20,24,28,32,36,40,44,48,52,56 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘oracle’]/.[hasengine=‘YES’]

Parameters

Name Default value Description
keep data for 14 Number of days to provide detailed statistics for process history on the instance.
warning threshold 20 The warning threshold for the remaining number of processes which can be started on the instance.
alarm threshold 10 The alarm threshold for the remaining number of processes which can be started on the instance.

Job Summary

SELECT * FROM v$parameter WHERE name = 'processes';
SELECT count(*) FROM v$session WHERE username IS NULL; -- For background processes
SELECT count(*) FROM v$session WHERE username IS NOT NULL; -- For user processes

Tables and Procedures Definition

Implementation Details and Process Flow

This job includes the execution of several SQL commands to:

Process Flow:

  1. Gather parameters such as retention period (keep data for), warning, and alarm thresholds.
  2. Fetch current configuration of the maximum processes allowed (from v$parameter).
  3. Record current counts of user and background processes (from v$session).
  4. Store the records into historical table dbw_pros_load_histr_#instance~id#.
  5. Clean up historical data beyond the retention period.
  6. Generate daily aggregates (previous day) if not already done.
  7. Insert aggregated data into the table dbw_pros_load_aggr_histr_#instance~id#.
  8. Evaluate current process load against the defined thresholds and update the job status accordingly to reflect potential warnings or alarms.

Dependency Handling

Reporting Capabilities

Each report leverages data visualizations through charts categorized by date and differentiated by process types (user vs. background), providing intuitive insights into the database’s operational status.