Monitor your Oracle Database performance with comprehensive metrics collected by the NRDOT Collector. By default, New Relic collects the metrics and query-level events referenced in the Default metrics and events section. You can enhance your monitoring by enabling your desired metrics listed in the Full-feature metrics section.
Default metrics and events
Metric | Description |
|---|---|
| Cumulative CPU time, in seconds. This metric has the following available attribute: |
| Total number of calls (user and recursive) that executed SQL statements. This metric has the following available attribute: |
| Number of hard parses. This metric has the following available attribute: |
| Number of logical reads. This metric has the following available attribute: |
| Total number of parse calls. This metric has the following available attribute: |
| Session PGA (Program Global Area) memory. This metric has the following available attribute: |
| Number of physical reads. This metric has the following available attribute: |
| Count of active sessions. This metric has the following available attributes: |
| Used tablespace in bytes. This metric has the following available attributes: |
| Number of user commits. When a user commits a transaction, the redo generated that reflects the changes made to database blocks must be written to disk. This metric has the following available attribute: |
| Number of times users manually issue the ROLLBACK statement or an error occurs during a user's transactions. This metric has the following available attribute: |
| Number of times a consistent read was requested for a block from the buffer cache. This metric has the following available attribute: |
| Number of times a current block was requested from the buffer cache. This metric has the following available attribute: |
| Number of logon operations. This metric has the following available attribute: |
| Number of physical I/O requests issued to storage. Sourced from v$sysstat names physical read/write total IO requests and physical read/write total multi block requests. This metric has the following available attributes: |
| Number of physical writes. This metric has the following available attribute: |
| Size in bytes of each component of the System Global Area (SGA) as reported by |
| Bytes transferred via SQLNet between Oracle and clients/dblinks. Sourced from |
| Total number of deadlocks between table or row locks in different sessions. This metric has the following available attribute: |
| Current count of active processes. |
| Fraction of the shared pool that is currently free, as computed by Oracle |
| Average SQL service response time in seconds, converted from centiseconds as reported by Oracle |
| Rate of parse operations per second broken down by result, as computed by Oracle |
| Fraction of executions that did not require a parse, as computed by Oracle |
| Fraction of host CPU time in use, as computed by Oracle |
| Fraction of library cache pin requests that found the object already cached, as computed by Oracle |
| Fraction of total database time spent on CPU, as computed by Oracle |
| Fraction of total database time spent waiting on I/O, locks, or latches, as computed by Oracle |
| Current count of active transactions. |
| Fraction of logical reads served from the buffer cache without physical I/O, as computed by Oracle |
Query events
The following events are collected as OpenTelemetry log records and are enabled by default. They provide query-level visibility.
Per-session active query samples. Captures the current execution state of active Oracle sessions at collection time. This event is enabled by default.
These attributes can be found by querying the DbServerQuerySample event.
Use the query_sample_collection block to tune its behavior:
query_sample_collection: max_rows_per_query: 100 allowed_comment_keys: - nr_service_guidAvailable parameters
Parameter | Description |
|---|---|
| The maximum number of samples to be reported. The default value is set to |
| Keys to extract from leading SQL comments |
Attributes collected
Attribute | Description |
|---|---|
| The text of the database query being executed |
| The database management system (DBMS) product as identified by the client instrumentation |
| Database user name under which a session is connected to |
| The database name |
| The Oracle service name associated with the database connection |
| Hostname or address of the client |
| TCP port used by the client |
| IP address of the peer client |
| TCP port used by the peer client |
| Binary hash value calculated on the query execution plan, reported in HEX format |
| The SQL ID of the query |
| The child number of the query |
| Address of the child cursor |
| ID of the Oracle Server session |
| Serial number associated with a session |
| The operating system process ID (PID) associated with a session |
| Oracle schema under which SQL statements are being executed |
| Name of the client program or tool that initiated the Oracle database session |
| Logical module name of the client application that initiated a query or session |
| Execution state or result of a database query or session |
| Current state of the query or the session executing it |
| The category of wait events a query or session is currently experiencing in Oracle Database |
| The specific wait event that a query or session is currently experiencing |
| The wait time in seconds. Returns 0 if the session is not currently waiting |
| The identifier of the stored procedure or function being executed by the query |
| Name of the database object that a query is accessing |
| Type of the database object that a query is accessing |
| Name of the operating system user that initiated or is running the Oracle database session |
| Total time taken by a database query to execute |
| Filtered SQL query comments extracted from leading block comments. Contains comma-separated key=value pairs for correlation with APM traces |
| New Relic service GUID extracted from db.query.comment_tags. Used for correlation with APM traces |
| The timestamp when the SQL statement started execution, in ISO 8601 format (UTC) |
| The timestamp when the session logged on, in ISO 8601 format (UTC) |
| The total time in seconds that the session has been connected |
| The session ID (SID) of the immediate blocker of this session. Empty when not blocked |
| The session ID (SID) of the root/head blocker at the top of the blocking chain |
| The status of the blocking session relationship (e.g. VALID, NOT IN WAIT, GLOBAL, NO HOLDER, UNKNOWN) |
| Estimated UTC timestamp of when the blocking wait began. RFC3339 format |
| The number of seconds this session has been waiting for the current wait event |
| The lock mode being requested by the blocked session (e.g., ROW SHARE, ROW EXCLUSIVE, SHARE, EXCLUSIVE) |
| The type of enqueue lock the session is waiting on (e.g., TX for row lock, TM for table lock) |
| The owner (schema) of the database object the session is waiting to lock |
| The name of the database object the session is waiting to lock |
| MD5 hash of normalized SQL query |
Per-session wait event statistics. Captures wait duration counts and durations per session. This event is enabled by default.
These attributes can be found by querying the DbServerSessionWaitSample event.
Use the session_wait_event_collection block to tune its behavior:
session_wait_event_collection: max_rows_per_query: 100Available parameters
Parameter | Description |
|---|---|
| The maximum number of session wait event rows to be reported. The default value is set to |
Attributes collected
Attribute | Description |
|---|---|
| The database management system (DBMS) product as identified by the client instrumentation |
| ID of the Oracle Server session |
| Serial number associated with a session |
| The specific wait event that a query or session is currently experiencing |
| The category of wait events a query or session is currently experiencing in Oracle Database |
| Total number of waits for the wait event across all sessions |
| Total time waited in seconds for the wait event |
Collection of event metrics for top N queries, filtered based on the highest elapsed time consumed in the collection interval. This event is enabled by default.
These attributes can be found by querying the DbServerTopQuery event.
Use the top_query_collection block to tune its behavior:
top_query_collection: max_query_sample_count: 1000 top_query_count: 200 collection_interval: 60s allowed_comment_keys: - nr_service_guidAvailable parameters
Parameter | Description |
|---|---|
| The maximum number of samples collected from the database to filter the top N. The default value is set to |
| The maximum number of queries (N) for which metrics are reported. The default value is set to |
| The collection interval specific to top query collection. The default value is set to |
| Keys to extract from leading SQL comments |
Attributes collected
Attribute | Description |
|---|---|
| The database management system (DBMS) product as identified by the client instrumentation |
| The name of the server hosting the database |
| The database name |
| The Oracle service name associated with the database connection |
| The text of the database query being executed |
| The query execution plan used by Oracle Database |
| The SQL ID of the query |
| The child number of the query |
| Address of the child cursor |
| Total time (in seconds) a query spent waiting on the application before it could proceed |
| Number of logical reads (buffer cache accesses) performed by a query |
| Total time (in seconds) that a query waited due to Oracle RAC coordination |
| Command type of the query |
| Total time (in seconds) a query spent waiting on concurrency-related events |
| Total time (in seconds) that the CPU spent actively processing a query, excluding wait time |
| Number of direct path reads performed by a query: data blocks read directly from disk into session memory |
| Number of direct path write operations, where data is written directly to disk from user memory |
| Number of physical reads a query performs: data blocks read from disk |
| Total time (in seconds) taken by a query from start to finish, including CPU time and all types of waits |
| Number of times a specific SQL query has been executed |
| Total number of bytes read from disk by a query |
| Number of physical I/O read operations performed by a query |
| Total number of bytes written to disk by a query |
| Number of times a query requested to write data to disk |
| Total number of rows that a query has read, returned, or affected during execution |
| Total time (in seconds) a query spent waiting for user I/O operations |
| Number of times the stored procedure has been executed (reporting delta, best effort) |
| The identifier of the stored procedure or function being executed by the query |
| Name of the database object that a query is accessing |
| Type of the database object that a query is accessing |
| Filtered SQL query comments extracted from leading block comments. Contains comma-separated key=value pairs for correlation with APM traces |
| New Relic service GUID extracted from db.query.comment_tags. Used for correlation with APM traces |
| Binary hash value calculated on the query execution plan, reported in HEX format |
| Time at which the plan was first loaded into the library cache, in server's local timezone. Format: YYYY-MM-DD/HH:MM:SS |
| Plan load time in server's local timezone. Format: YYYY-MM-DD/HH:MM:SS |
| MD5 hash of normalized SQL query following New Relic Java agent normalization logic. Used for correlation with APM slow query traces |
Aggregated performance metrics for the top stored procedures by elapsed time, derived from V$SQL grouped by PROGRAM_ID and joined to DBA_PROCEDURES, with delta computation on cumulative counters. Correlates with db.server.top_query and db.server.query_sample via oracledb.procedure_id. This event is enabled by default.
These attributes can be found by querying the DbServerTopProcedure event.
Use the top_procedure_collection block to tune its behavior:
top_procedure_collection: max_procedure_sample_count: 1000 top_procedure_count: 250 collection_interval: 60sAvailable parameters
Parameter | Description |
|---|---|
| The maximum number of rows fetched from the database to rank the top N by delta. The default value is set to |
| The maximum number of procedures (N) for which metrics are reported. The default value is set to |
| The collection interval specific to procedure metrics collection. The default value is set to |
Attributes collected
Attribute | Description |
|---|---|
| The database management system (DBMS) product as identified by the client instrumentation |
| The database name |
| The name of the server hosting the database |
| The Oracle service name associated with the database connection |
| The identifier of the stored procedure or function being executed by the query |
| Name of the database object that a query is accessing |
| Type of the database object that a query is accessing |
| The schema (owner) of the stored procedure or function |
| Number of times the stored procedure has been executed (reporting delta, best effort) |
| Total time (in seconds) that the CPU spent actively processing a query, excluding wait time |
| Total time (in seconds) taken by a query from start to finish, including CPU time and all types of waits |
| Number of logical reads (buffer cache accesses) performed by a query |
| Number of physical reads a query performs: data blocks read from disk |
| Number of direct path write operations, where data is written directly to disk from user memory |
| Total number of rows that a query has read, returned, or affected during execution |
| Total number of bytes read from disk by a query |
| Total number of bytes written to disk by a query |
| Earliest load time across the procedure's cached statements, in ISO 8601 format (UTC) |
| Most recent time any of the procedure's cached statements were active, in ISO 8601 format (UTC) |
The execution plan for a query. This event is enabled by default.
These attributes can be found by querying the DbServerQueryPlan event.
Attribute | Description |
|---|---|
| The database management system (DBMS) product as identified by the client instrumentation |
| The database name |
| The SQL ID of the query |
| The child number of the query |
| Address of the child cursor |
| Binary hash value calculated on the query execution plan, reported in HEX format |
| The query execution plan used by Oracle Database |
Full-feature metrics
The full-feature configuration collects every default metric plus the following additional metrics. You can set any of these metrics to true in the metrics section of your configuration to enable them.
Metric | Description |
|---|---|
| Number of times that a process detected a potential deadlock when exchanging two buffers and raised an internal, restartable error. This metric has the following available attribute: |
| Maximum size of tablespace in bytes, -1 if unlimited. This metric has the following available attributes: |
| Data dictionary cache hit ratio from v$rowcache |
| Number of DDL statements that were executed in parallel. This metric has the following available attribute: |
| Number of DML statements that were executed in parallel. This metric has the following available attribute: |
| Number of times parallel execution was requested and the degree of parallelism was reduced down to 1-25% because of insufficient parallel execution servers. This metric has the following available attribute: |
| Number of times parallel execution was requested and the degree of parallelism was reduced down to 25-50% because of insufficient parallel execution servers. This metric has the following available attribute: |
| Number of times parallel execution was requested and the degree of parallelism was reduced down to 50-75% because of insufficient parallel execution servers. This metric has the following available attribute: |
| Number of times parallel execution was requested and the degree of parallelism was reduced down to 75-99% because of insufficient parallel execution servers. This metric has the following available attribute: |
| Number of times parallel execution was requested but execution was serial because of insufficient parallel execution servers. This metric has the following available attribute: |
| Number of times parallel execution was executed at the requested degree of parallelism. This metric has the following available attribute: |
| Number of physical writes from the buffer cache to disk by DBWR. Sourced from v$sysstat name physical writes from cache. This metric has the following available attribute: |
| Total physical I/O bytes transferred between Oracle and storage. Sums across all data files. Sourced from v$sysstat names physical read/write bytes and physical read/write total bytes. This metric has the following available attributes: |
| Number of read requests for application activity. This metric has the following available attribute: |
| Number of reads directly from disk, bypassing the buffer cache. This metric has the following available attribute: |
| Number of write requests for application activity. This metric has the following available attribute: |
| Number of writes directly to disk, bypassing the buffer cache. This metric has the following available attribute: |
| Number of SELECT statements executed in parallel. This metric has the following available attribute: |
| Total size of the recycle bin |
| Maximum size of the System Global Area (SGA) in bytes as reported by |
| Used database storage size from dba_data_files and dba_free_space |
| Fraction of allocated database storage that is used |
| Maximum limit of active DML (Data Manipulation Language) locks, -1 if unlimited |
| Current count of active DML (Data Manipulation Language) locks |
| Maximum limit of active enqueue locks, -1 if unlimited |
| Current count of active enqueue locks |
| Maximum limit of active enqueue resources, -1 if unlimited |
| Current count of active enqueue resources |
| Maximum limit of active processes, -1 if unlimited |
| Maximum limit of active sessions, -1 if unlimited |
| Fraction of sorts performed in memory vs disk, as computed by Oracle |
| Fraction of redo allocations that succeeded without space contention, as computed by Oracle |
| Fraction of parse calls that were soft parses, as computed by Oracle |
| Maximum limit of active transactions, -1 if unlimited |
| Free space in an ASM diskgroup. Requires the |
| Total space in an ASM diskgroup. Requires the |
| Free space that can safely be used for files after accounting for ASM redundancy and required mirror recovery capacity. Requires the |
| Count of disks currently offline within an ASM diskgroup. Requires the |
| Count of I/O errors on an ASM disk. Requires the |
| Number of buffers inspected from the end of the LRU queue while a process searched for a reusable buffer, grouped by buffer state. This metric has the following available attribute: |
| Number of times a reusable or free buffer was requested to create or load a block. |
| Number of changes that were part of an update or delete operation made to blocks in the buffer cache. |
| Rate of changes applied to blocks in the buffer cache. This metric has the following available attribute: |
| Number of current-mode block gets satisfied from the buffer cache. Distinct from |
| Total count of calls issued to the database. This metric has the following available attribute: |
| Total CPU time spent on recursive (internal) calls. |
| Number of buffers written by the Database Writer (DBWR) for checkpoints. |
| Number of checkpoints completed by the Database Writer (DBWR). |
| CPU consumption rate, in CPU-seconds used per second. This metric has the following available attribute: |
| Total count of session cursor cache hits, where an existing cached cursor is reused to avoid a soft parse. |
| Number of cursors currently held in the session cursor cache. |
| Percentage of cursor executions that reused a cursor in the session cursor cache. This metric has the following available attribute: |
| Number of currently open cursors in the Oracle instance. |
| Rate of cursors opened. This metric has the following available attribute: |
| Total wall-clock time spent in database calls. This metric has the following available attribute: |
| Rate of enqueue deadlocks. This metric has the following available attribute: |
| Total count of enqueue (lock) operations. This metric has the following available attribute: |
| Rate of enqueue timeouts. This metric has the following available attribute: |
| Rate of SQL statement executions. This metric has the following available attribute: |
| Cumulative time spent transferring current blocks between instances over RAC cache fusion. This metric has the following available attribute: |
| Rate of hard parses. This metric has the following available attribute: |
| Host CPU consumption rate across all cores, in CPU-seconds used per second. |
| Rate of I/O requests issued by the database. |
| Average latency of a synchronous single-block read. |
| Rate of I/O bytes transferred by the database. |
| Committed (total) size of Oracle's in-database JVM (OJVM) call heap. |
| Size of live objects in Oracle's in-database JVM (OJVM) call heap. |
| Used size of Oracle's in-database JVM (OJVM) call heap. |
| Total count of LOB (large object) I/O operations. This metric has the following available attribute: |
| Cumulative time spent on transaction lock activity. This metric has the following available attributes: |
| Rate of logical reads performed by the database. This metric has the following available attribute: |
| Rate of logon operations. This metric has the following available attribute: |
| Number of OS swap operations. |
| Total CPU time spent on SQL parsing. |
| Total wall-clock time spent on SQL parsing. |
| Percentage of PGA work-area memory requests satisfied without spilling to temporary disk. |
| Rate of physical I/O requests issued to storage. This metric has the following available attributes: |
| Rate of physical I/O bytes transferred between Oracle and storage. This metric has the following available attributes: |
| Rate of physical read and write operations performed by the database. This metric has the following available attributes: |
| Number of blocks read during instance or media recovery. |
| Number of redo blocks moved between the redo log and storage. This metric has the following available attribute: |
| Number of redo I/O operations. This metric has the following available attribute: |
| Number of times a process requested space in the redo log buffer and had to wait. This metric has the following available attribute: |
| Number of times a process waited and retried to allocate space in the redo buffer. This metric has the following available attribute: |
| Amount of redo generated. |
| Rate of redo bytes generated by the database. This metric has the following available attribute: |
| Time spent in each phase of the redo pipeline. This metric has the following available attribute: |
| Total count of scan operations. This metric has the following available attributes: |
| Total number of rows returned by full-table scans. |
| Average number of sessions over the metric interval. This metric has the following available attributes: |
| Memory currently allocated for stored procedures in the session. This metric has the following available attribute: |
| Cumulative time sessions spent in waits. This metric has the following available attributes: |
| Cumulative number of waits across sessions. This metric has the following available attributes: |
| Number of times SMON was posted to perform recovery. This metric has the following available attribute: |
| Total count of sort operations. This metric has the following available attribute: |
| Total number of rows sorted across all sort operations. |
| Number of CPUs or processors available to the Oracle server, as reported by the operating system. |
| Total number of bytes of physical memory on the host running the Oracle server. |
| Current number of processes that are either running or in the ready state, waiting to be selected by the operating-system scheduler to run. |
| Maximum autoextend size of tablespace in bytes. Returns 0 for temporary tablespaces and tablespaces without autoextend enabled. This metric has the following available attributes: |
| Current status of tablespaces, broken down by state. A timeseries is produced for every possible value of |
| Fraction of tablespace currently in use, expressed as a value between 0 and 1. This metric has the following available attributes: |
| Average response time per transaction. This metric has the following available attribute: |
| Total number of transactions rolled back. This metric has the following available attribute: |
| Rate of user transactions. This metric has the following available attributes: |
Attribute glossary
The following table describes every attribute referenced in the metric descriptions above.
Attribute | Description | Values |
|---|---|---|
| Type of the SQL*Net destination endpoint (client application or remote database link) |
|
| Multi-block vs single-block (all) I/O request grouping |
|
| Direction of the storage I/O operation |
|
| Whether the I/O bytes are buffered (cache-mediated) or total (raw transfer count) |
|
| Direction of the network transfer |
|
| The name of the pluggable database (PDB) the data point belongs to. New Relic emits one data point per PDB on CDB-root connections and one per direct-PDB connection; empty otherwise. When disabled, per-PDB collection is skipped and each metric emits a single instance-wide data point | Any string |
| The name of the ASM disk | Any string |
| The name of the ASM diskgroup | Any string |
| The state of a buffer encountered while inspecting the LRU queue for a reusable buffer ( |
|
| Type of call reported by Oracle |
|
| Type of enqueue (lock) operation reported by Oracle |
|
| Result of a parse operation |
|
| Type of parse operation |
|
| The type of redo log buffer space request |
|
| The type of redo buffer allocation retry |
|
| The phase of the redo pipeline that a redo time measurement is attributed to |
|
| Execution mode of the scan reported by Oracle |
|
| Type of scan operation reported by Oracle |
|
| Class of session the activity is attributed to |
|
| Whether the session wait time or count is for idle or non-idle wait events |
|
| Name of the SGA component |
|
| Type of recovery SMON was posted to perform |
|
| Type of sort operation |
|
| Tablespace state as reported by Oracle |
|
| The type of user transaction |
|
| Session status | Any string |
| Session type | Any string |
| Tablespace name | Any string |