Oracle Database π
Description π
The Splunk Distribution of OpenTelemetry Collector provides this integration as the Oracle Database receiver. The receiver connects to an Oracle Database instance and obtains metrics such as physical reads, cpu time, and others.
Benefits π
After you configure the integration, you can access these features:
View metrics. You can create your own custom dashboards, and most monitors provide built-in dashboards as well. For information about dashboards, see View dashboards in Observability Cloud.
View a data-driven visualization of the physical servers, virtual machines, AWS instances, and other resources in your environment that are visible to Infrastructure Monitoring. For information about navigators, see Splunk Infrastructure Monitoring navigators.
Access the Metric Finder and search for metrics sent by the monitor. For information, see Use the Metric Finder.
Installation π
Follow these steps to deploy this integration:
Deploy the Splunk Distribution of OpenTelemetry Collector to your host or container platform:
Configure the monitor, as described in the Configuration section.
Restart the Splunk Distribution of OpenTelemetry Collector.
Create a database user for this monitor π
To create an Oracle Database user for this monitor, run the following commands:
-- Create user and set a password
CREATE USER <username> IDENTIFIED BY <password>;
Depending on which metrics you collect, you might need to assign the following permissions to the database user:
GRANT SELECT ON V_$SESSION TO <username>;
GRANT SELECT ON V_$SYSSTAT TO <username>;
GRANT SELECT ON V_$RESOURCE_LIMIT TO <username>;
GRANT SELECT ON DBA_TABLESPACES TO <username>;
GRANT SELECT ON DBA_DATA_FILES TO <username>;
Configuration π
To activate this monitor type in the Collector, add the following lines to your configuration (YAML) file:
Splunk Distribution of OpenTelemetry Collector π
To activate this monitor in the Splunk Distribution of OpenTelemetry Collector, make sure that the configuration contains the following:
receivers:
oracledb:
# Refer to Oracle Go Driver go_ora documentation for full connection string options
datasource: "oracle://<user>:<password>@<host>:<port>/<database>"
To add more than one instance of Oracle Database, add as many entries of the oracledb
receiver as needed. For example:
receivers:
oracledb/aninstance:
# Refer to Oracle Go Driver go_ora documentation for full connection string options
datasource: "oracle://<user>:<password>@<host>:<port>/<database>"
oracledb/anotherinstance:
# Refer to Oracle Go Driver go_ora documentation for full connection string options
datasource: "oracle://<user>:<password>@<host>:<port>/<database>"
To complete the monitor activation, you must also include the oracledb
receiver item in a metrics
pipeline. To do this, add the receiver item to the service
> pipelines
> metrics
> receivers
section of your configuration file. For example:
service:
pipelines:
metrics:
receivers:
- oracledb
Metrics π
The following metrics are available for this integration:
Name |
Description |
Unit |
Type |
Attributes |
---|---|---|---|---|
|
Cumulative CPU time, in seconds. |
Seconds |
Sum(Double) |
|
|
Maximum limit of active DML (Data Manipulation Language) locks. |
Locks |
Gauge(Int) |
|
|
Current count of active DML (Data Manipulation Language) locks. |
Locks |
Gauge(Int) |
|
|
Total number of deadlocks between table or row locks in different sessions. |
Deadlocks |
Sum(Int) |
|
|
Maximum limit of active enqueue locks. |
Locks |
Gauge(Int) |
|
|
Current count of active enqueue locks. |
Locks |
Gauge(Int) |
|
|
Maximum limit of active enqueue resources. |
Resources |
Gauge(Int) |
|
|
Current count of active enqueue resources. |
Resources |
Gauge(Int) |
|
|
Number of times that a process detected a potential deadlock when exchanging two buffers and raised an internal, restartable error. Index scans are the only operations that run exchanges. |
Locks |
Sum(Int) |
|
|
Total number of calls (user and recursive) that executed SQL statements` |
Executions |
Sum(Int) |
|
|
Number of hard parses. |
Parses |
Sum(Int) |
|
|
Number of logical reads. |
Reads |
Sum(Int) |
|
|
Total number of parse calls. |
Parses |
Sum(Int) |
|
|
Session PGA (Program Global Area) memory` |
Bytes |
Sum(Int) |
|
|
Number of physical reads. |
Reads |
Sum(Int) |
|
|
Maximum limit of active processes. |
Processes |
Gauge(Int) |
|
|
Current count of active processes. |
Processes |
Gauge(Int) |
|
|
Maximum limit of active sessions. |
Sessions |
Gauge(Int) |
|
|
Count of active sessions. |
Sessions |
Gauge(Int) |
|
|
Maximum size of tablespace, in bytes. |
Bytes |
Gauge(Int) |
|
|
Used tablespace, in bytes. |
Bytes |
Gauge(Int) |
|
|
Maximum limit of active transactions. |
Transactions |
Gauge(Int) |
|
|
Current count of active transactions. |
Transactions |
Gauge(Int) |
|
|
Number of user commits. When a user commits a transaction, the redo generated that reflects the changes made to database blocks is written to disk. Commits often represent the closest thing to a user transaction rate. |
Commits |
Sum(Int) |
|
|
Number of times users manually issue the |
1 |
Sum(Int) |
Resource attributes π
Name |
Description |
Type |
---|---|---|
|
Name of the instance from which data is coming. |
String |
Metric attributes π
Name |
Description |
Values |
---|---|---|
|
Session status |
|
|
Session type |
|
|
Tablespace name |
Enable or disable metrics π
You can enable or disable specific metrics by setting the value of the enabled
option to true
or false
.
The following example disables the oracledb.executions
metric and enabled the oracledb.sessions.usage
metric:
receivers:
oracledb:
datasource: "oracle://otel:password@localhost:51521/XE"
metrics:
oracledb.executions:
enabled: false
oracledb.sessions.usage:
enabled: true
Get help π
If you are not able to see your data in Splunk Observability Cloud, try these tips:
Submit a case in the Splunk Support Portal
Available to Splunk Observability Cloud customers
-
Available to Splunk Observability Cloud customers
Ask a question and get answers through community support at Splunk Answers
Available to Splunk Observability Cloud customers and free trial users
Join the Splunk #observability user group Slack channel to communicate with customers, partners, and Splunk employees worldwide
Available to Splunk Observability Cloud customers and free trial users
To learn how to join, see Get Started with Splunk Community - Chat groups
To learn about even more support options, see Splunk Customer Success.