Average Number of Users Waiting on a Class of Wait Events
Count of sessions
1000
BACKGROUND_CKPT_SEC
?
Number of Checkpoints
2033
BLOCKED_USERS
Number of Users blocked by some Session
Number of Users
4000
BRANCH_NODE_SPLITS_SEC
Branch Node Splits
Splits / sec
2085
BRANCH_NODE_SPLITS_TXN
Branch Node Splits
Splits / tx
2086
BUFFER_CACHE_HIT
Buffer Cache Hit
% of cache accesses
2000
CONSISTENT_CHANGES_SEC
Consistent Changes
Changes / sec
2073
CONSISTENT_CHANGES_TXN
Consistent Changes
Changes / tx
2074
CONSISTENT_GETS_SEC
Consistent Gets
Gets / sec
2069
CONSISTENT_GETS_TXN
Consistent Gets
Gets / tx
2070
CPU_TIME_PER_CALL
CPU time per user
call per service
Microseconds per call
6001
CR_BLOCKS_CREATED_SEC
CR Blocks Created
Blocks / sec
2077
CR_BLOCKS_CREATED_TXN
CR Blocks Created
Blocks / tx
2078
CR_RECORDS_APPLIED_SEC
CR Undo Records Applied
Records / sec
2079
CR_RECORDS_APPLIED_TXN
CR Undo Records Applied
Records / tx
2080
CURSOR_CACHE_HIT
Cursor Cache Hit
% of soft parses
2050
DATABASE_CPU_TIME
Database CPU Time
% of all database time
2108
DATABASE_WAIT_TIME
Database Wait Time
% of all database time
2107
DB_BLKCHANGES_SEC
DB Block Changes
Changes / sec
2071
DB_BLKCHANGES_TXN
DB Block Changes
Changes / tx
2072
DB_BLKGETS_SEC
DB Block Gets
Gets / sec
2067
DB_BLKGETS_TXN
DB Block Gets
Gets / tx
2068
DB_TIME_PER_SEC
?
?
2123
DB_TIME_WAITING
Percent of Database Time Spent Waiting on a Class of Wait Events
% of Database time
1001
DBWR_CKPT_SEC
DBWR Checkpoints
Checkpoints per sec
2032
DISK_SORT_SEC
Sorts to Disk
Sorts / sec
2051
DISK_SORT_TXN
Sorts to Disk
Sorts / tx
2052
ELAPSED_TIME_PER_CALL
User call elapsed time for each service
Microseconds / call
6000
ENQUEUE_DEADLOCKS_SEC
Enqueue Deadlocks
Deadlocks / sec
2063
ENQUEUE_DEADLOCKS_TXN
Enqueue Deadlocks
Deadlocks / tx
2064
ENQUEUE_REQUESTS_SEC
Enqueue Requests
Requests / sec
2065
ENQUEUE_REQUESTS_TXN
Enqueue Requests
Requests / tx
2066
ENQUEUE_TIMEOUTS_SEC
Enqueue Timeouts
Timeouts / sec
2059
ENQUEUE_TIMEOUTS_TXN
Enqueue Timeouts
Timeouts / tx
2060
ENQUEUE_WAITS_SEC
Enqueue Waits
Waits / sec
2061
ENQUEUE_WAITS_TXN
Enqueue Waits
Waits / tx
2062
EXECUTE_WITHOUT_PARSE
Executes Performed Without Parsing
% of all executes
2054
EXECUTIONS_PER_SEC
Executions
Executions / sec
2121
FULL_INDEX_SCANS_SEC
Fast Full Index Scans per second
Scans / sec
2040
FULL_INDEX_SCANS_TXN
Fast Full Index Scans per transaction
Scans / tx
2041
GC_AVG_CR_GET_TIME
Global Cache CR Request
Milliseconds
2098
GC_AVG_CUR_GET_TIME
Global Cache Current Request
Milliseconds
2099
GC_BLOCKS_CORRUPT
Global Cache Blocks Corrupt
Blocks
2101
GC_BLOCKS_LOST
Global Cache Blocks Lost
Blocks
2102
HARD_PARSES_SEC
Hard Parses
Parses / sec
2046
HARD_PARSES_TXN
Hard Parses
Parse / tx
2047
LEAF_NODE_SPLITS_SEC
Leaf Node Splits
Splits / sec
2083
LEAF_NODE_SPLITS_TXN
Leaf Node Splits
Splits / tx
2084
LIBRARY_CACHE_HIT
Library Cache Hit
% of cache accesses
2112
LIBRARY_CACHE_MISS
Library Cache Miss
% of cache accesses
2113
LOGONS_CURRENT
Current Number of Logons
Number of Logons
2103
LOGONS_SEC
Cumulative Logons
Logons / sec
2018
LOGONS_TXN
Cumulative Logons
Logons / tx
2019
LONG_TABLE_SCANS_SEC
Scans on Long Tables
Scans / sec
2036
LONG_TABLE_SCANS_TXN
Scans on Long Tables
Scans / tx
2037
MEMORY_SORTS_PCT
Sorts in Memory
% of sorts
2001
NETWORK_BYTES_SEC
Network Bytes
Bytes / sec
2058
OPEN_CURSORS_CURRENT
Current Number of Cursors
Number of Cursors
2104
OPEN_CURSORS_SEC
Cumulative Open Cursors
Cursors sec
2020
OPEN_CURSORS_TXN
Cumulative Open Cursors
Cursors / tx
2021
PARSE_FAILURES_SEC
Parse Failures
Parses / sec
2048
PARSE_FAILURES_TXN
Parse Failures
Parses / tx
2049
PGA_CACHE_HIT
PGA Cache Hit Bytes
% processed (PGA)
2115
PHYSICAL_READS_DIR_SEC
Direct Physical Reads
Reads / sec
2008
PHYSICAL_READS_DIR_TXN
Direct Physical Reads
Reads / tx
2009
PHYSICAL_READS_LOB_SEC
Direct LOB Physical Reads
Reads / sec
2012
PHYSICAL_READS_LOB_TXN
Direct LOB Physical Reads
Reads / tx
2013
PHYSICAL_READS_SEC
Physical Reads
Reads / sec
2004
PHYSICAL_READS_TXN
Physical Reads
Reads / tx
2005
PHYSICAL_WRITES_DIR_SEC
Direct Physical Writes
Writes / sec
2010
PHYSICAL_WRITES_DIR_TXN
Direct Physical Writes
Writes / tx
2011
PHYSICAL_WRITES_LOB_SEC
Direct LOB Physical Writes
Writes / sec
2014
PHYSICAL_WRITES_LOB_TXN
Direct LOB Physical Writes
Writes / tx
2015
PHYSICAL_WRITES_SEC
Physical Writes
Writes / sec
2006
PHYSICAL_WRITES_TXN
Physical Writes
Writes / tx
2007
PROCESS_LIMIT_PCT
Process Limit Usage
% of maximum value
2118
PX_DOWNGRADED_SEC
Downgraded Parallel Operations
(also 2093?)
Operations / sec
2090
PX_DOWNGRADED_25_SEC
Downgraded to 25% and more
Operations / sec
2087
PX_DOWNGRADED_50_SEC
Downgraded to 50% and more
Operations / sec
2088
PX_DOWNGRADED_75_SEC
Downgraded to 75% and more
Operations / sec
2089
PX_DOWNGRADED_SER_SEC
Downgraded to serial
(also 2095?)
Operations / sec
2091
RB_RECORDS_APPLIED_SEC
Rollback Undo Records Applied
Records / sec
2081
RB_RECORDS_APPLIED_TXN
Rollback Undo Records Applied
Records / tx
2082
RECURSIVE_CALLS_SEC
Recursive Calls
Calls / sec
2028
RECURSIVE_CALLS_TXN
Recursive Calls
Calls / tx
2029
REDO_ALLOCATION_HIT
Redo Log Allocation
Hit
% of redo allocations
2002
REDO_GENERATED_SEC
Redo Generated
Bytes / sec
2016
REDO_GENERATED_TXN
Redo Generated
Bytes / tx
2017
REDO_WRITES_SEC
Redo Writes
Writes/sec
2034
REDO_WRITES_TXN
Redo Writes
Writes / tx
2035
RESPONSE_TXN
Response
Secs / tx
2109
ROWS_CACHE_HIT
?
?
2110
ROWS_CACHE_MISS
?
?
2111
ROWS_PER_SORT
Rows Processed for
each Sort
Rows / Sort
2053
SESS_LOGICAL_READS_SEC
Session Logical Reads
Reads / sec
2030
SESS_LOGICAL_READS_TXN
Session Logical Reads
Reads / tx
2031
SESSION_CPU_SEC
Database CPU
Microseconds / sec
2075
SESSION_CPU_TXN
Database CPU
Microseconds / tx
2076
SESSION_LIMIT_PCT
Session Limit Usage
% of maximum value
2119
SHARED_POOL_FREE_PCT
Shared Pool Free
% of shared pool
2114
SOFT_PARSE_PCT
Soft Parse
% of all parses
2055
SQL_SRV_RESPONSE_TIME
Service Response per
execution
Seconds
2106
STREAMS_POOL_USED_PCT
Percent of the streams
pool used
2136
TABLESPACE_BYT_FREE
Tablespace bytes free
KB Free
9001
TABLESPACE_PCT_FULL
Tablespace space
usage
% Full
9000
TOTAL_INDEX_SCANS_SEC
Total Index Scans
Scans / sec
2042
TOTAL_INDEX_SCANS_TXN
Total Index Scans
Scans / tx
2043
TOTAL_PARSES_SEC
Total Parses
Parses / sec
2044
TOTAL_PARSES_TXN
Total Parses
Parses / tx
2045
TOTAL_TABLE_SCANS_SEC
Total Table Scans
Scans / sec
2038
TOTAL_TABLE_SCANS_TXN
Total Table Scans
Scans / tx
2039
USER_CALLS_PCT
User Calls
% of all calls
2056
USER_CALLS_SEC
User Calls
Calls / sec
2026
USER_CALLS_TXN
User Calls
Calls / tx
2027
USER_COMMITS_SEC
User Commits
Commits / sec
2022
USER_COMMITS_TXN
User Commits
Transactions / sec
2023
USER_LIMIT_PCT
User Limit Usage
% of maximum value
2105
USER_ROLLBACKS_SEC
User Rollbacks
Rollbacks / sec
2024
USER_ROLLBACKS_TXN
User Rollbacks
Rollbacks / tx
2025
USER_TRANSACTIONS_SEC
User transactions per second
?
2003
Constants: Object Types
Name
Value
Description
OBJECT_TYPE_EVENT_CLASS
4
Metrics collected on wait event class level. Currently supported metrics are AVG_USERS_WAITING and DB_TIME_WAITING
OBJECT_TYPE_FILE
2
Metrics collected on the file level. These are used for AVERAGE_FILE_READ_TIME and AVERAGE_FILE_WRITE_TIME metrics
OBJECT_TYPE_SERVICE
3
Metrics collected on the service level. Currently ELAPSED_TIME_PER_CALL and CPU_TIME_PER_CALL are collected
OBJECT_TYPE_SESSION
9
Metrics collected on the session level. Currently only BLOCKED_USERS is collected. The
threshold can only be set at the instance level, which means that no object name should be specified when setting the
threshold for this type of metric
OBJECT_TYPE_SYSTEM
1
Metrics collected on the system level for each instance
OBJECT_TYPE_TABLESPACE
5
Metrics collected on the tablespace level. Currently only TABLESPACE_PCT_FULL is collected
Constants: Relational Operator Types
Name
Value
Description
OPERATOR_CONTAINS
5
Value contained in a list of threshold values is considered a violation
OPERATOR_DO_NOT_CHECK
7
Don't apply default threshold to OBJECT_TYPE_TABLESPACE
OPERATOR_EQ
1
Value equal to the threshold one is a violation
OPERATOR_GE
4
Value greater or equal to the threshold is a violation
OPERATOR_GT
0
Value greater than the threshold is a violation
OPERATOR_LE
3
Value less or equal than the threshold is a violation
OPERATOR_LT
2
Value less than the threshold is a violation
OPERATOR_NE
6
Value not equal to the threshold one is a violation
-- The following code is run by the catalrt.sql script during database installation
BEGIN
dbms_server_alert.set_threshold(9000, NULL, NULL, NULL, NULL,
1, 1, '', 5, '');
EXCEPTION
WHEN OTHERS THEN
IF sqlcode = -00001 THEN
NULL; -- unique constraint error
ELSE
RAISE;
END IF;
END;
/
-- to set the default database thresholds
Dependencies
BSLN_INTERNAL
DBMS_SVRALRT_LIB
DBA_ALERT_HISTORY
DBMS_SYS_ERROR
DBA_OUTSTANDING_ALERTS
GV$ALERT_TYPES
DBA_THRESHOLDS
GV$DBFILE
DBMS_BACKUP_RESTORE
THRESHOLD_TYPE
DBMS_HA_ALERTS_PRVT
THRESHOLD_TYPE_SET
DBMS_PRVTAQIP
UTL_LMS
DBMS_SERVER_ALERT_PRVT
WRI$_ALERT_THRESHOLD
Value explanation
For the parameters warning_value and critical_value integers between
0 and 100 are treated as percentages. Values larger than 100 are treated as bytes
Warnings Enabled by Default
Recovery area low on free resources
Resumable session suspended
Snapshot too old
Tablespace Usage: warning = 85%, critical = 97%
Security Model
execute is granted to the dba and
imp_full_database roles
EXPAND_MESSAGE
Expand Alert Message
dbms_server_alert.expand_message(
user_language IN VARCHAR2,
message_id IN NUMBER,
argument_1 IN VARCHAR2,
argument_2 IN VARCHAR2,
argument_3 IN VARCHAR2,
argument_4 IN VARCHAR2,
argument_5 IN VARCHAR2)
RETURN VARCHAR2;
-- create an queue agent
exec dbms_aqadm.create_aq_agent(agent_name => 'ALERT_AGT');
dbms_server_alert.get_threshold(
metrics_id IN BINARY_INTEGER,
warning_operator OUT BINARY_INTEGER,
warning_value OUT VARCHAR2,
critical_operator OUT BINARY_INTEGER,
critical_value OUT VARCHAR2,
observation_period OUT BINARY_INTEGER, -- default 10 min.
consecutive_occurrences OUT BINARY_INTEGER,
instance_name IN VARCHAR2,
-- NULL for db-wide alerts
object_type IN BINARY_INTEGER,
object_name IN VARCHAR2);
dbms_server_alert.set_threshold(
metrics_id IN BINARY_INTEGER,
warning_operator IN BINARY_INTEGER,
warning_value IN VARCHAR2,
critical_operator IN BINARY_INTEGER,
critical_value IN VARCHAR2,
observation_period IN BINARY_INTEGER, -- default 10 min.
consecutive_occurrences IN BINARY_INTEGER,
instance_name IN VARCHAR2, -- NULL for db-wide alerts
object_type IN BINARY_INTEGER,
object_name IN VARCHAR2);