Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Oracle database discovery

Oracle database discovery

Discovery can identify an Oracle database instance that is running on UNIX or Windows operating systems.

Patterns perform the discovery of Oracle installations. These patterns replace several probes for new instances. If you want to continue to use probes, you can deactivate the Horizontal discovery probe, which launches the pattern, and then activate the necessary probes.

Discovery does not discover the Oracle databases themselves, which are referred to as database catalogs.
Warning: DO NOT switch from probes to patterns if you are already running Discovery with probes, and your CMDB is already populated. If you do so, it is possible that the pattern Discovery process does not synchronize on the same values that the probe Discovery process does. This could result in duplicate CIs in your CMDB.

Requirements for Oracle database discovery

Discovery identifies a running instance of an Oracle database on UNIX from the process that starts with ora_pmon_. Ensure this process is running in the IP range you designate for Discovery. Discovery identifies a running instance of an Oracle database on Windows from the oracle.exe process. Ensure this process is running in the IP range you designate.

Credentials

Configure these credentials:
Credential type Additional information

[mandatory]

Applicative credentials
You must add the database user you configured during Oracle database installation. Specify Oracle instance [cmdb_ci_db_ora_instance] as the CI type.
The user must have access to these Oracle tables:
  • V$option
  • GV$PARAMETER
  • dba_hist_active_sess_history
  • dba_users

The user must also have access to the tnsnames.ora parameters file.

Windows credentials You can also use Windows and SSH credentials in addition to applicative credentials. For Windows credentials, the user must have read permissions to the tnsnames.ora file. SSH credentials, must allow read permission to the oratab file and read permission to the System Parameter file.
SSH credentials

For both Discovery and Service Mapping, see Service Mapping commands requiring a privileged user for a list of the commands that require elevated rights to discover and map Unix-based hosts in your organization.

Classifiers, patterns, and probes

Discovery uses these classifiers, probes, and patterns for Oracle database discovery:
Classifier Trigger probes Pattern
Oracle Instance
  • Horizontal discovery probe: launches patterns
  • Powershell-Oracle - Instance PFile (for Windows)*
  • Powershell-Oracle - Instance Version (for Windows)*
  • SSHCommand-Oracle - Instance Details (for Linux)*
  • Oracle DB On Windows Pattern
  • Oracle DB on UNIX Pattern
Oracle Listener
  • SSHCommand-Oracle - Listener Details
none
*Probes inactive for new instances.

To use patterns, verify that the correct pattern is specified in the horizontal pattern probe on the classifier. See Add the Horizontal Pattern probe to a classifier for instructions.

Data collected

The following data is collected on the Oracle Instances [cmdb_ci_db_ora_instance] table for both UNIX and Windows:
Table 1. Data discovered on UNIX machines
Label Field name Additional information
SID sid Obtained from the name of the process that starts with ora_pmon_
Install directory install_directory Obtained from the path of ORA_HOME
Version version Obtained in this order:
  • From the output of the ORA_HOME/bin/sqlplus /NOLOG command
  • From the output of the ORA_HOME/bin/lsnrctl status command
  • From the path of ORA_HOME
Parameter file pfile The following locations are explored for the location of the System Parameter File. If this file does not exist in one of the explored locations, Discovery does not find the file and reports an error.
  • oracle_home/dbs/spfileSID.ora
  • oracle_home/dbs/spfile.ora
  • oracle_home/dbs/initSID.ora
Oracle Home oracle_home Obtained from the ORATAB file.
Edition edition
Table 2. Data discovered on Windows machines
Label Field name Additional information
SID sid Obtained from the process parameter that is passed to the oracle.exe process.
Install directory install_directory
Version version Obtained from the output of the ORA_HOME/bin/sqlplus.exe -V command.
Parameter file pfile The following locations are explored for the location of the System Parameter File. If this file does not exist in one of the explored locations, Discovery does not find the file and reports an error.
  • oracle_home\database\spfileSID.ora
  • oracle_home\database\spfile.ora
  • oracle_home\database\initSID.ora
Oracle Home oracle_home Parsed from the path of oracle.exe
Edition edition

Oracle options

Discovery can also find the Oracle options that you enable on the instance. Discovery saves these to the Oracle Options [samp_oracle_options] table.
Label Field name
Instance instance
Option option

Oracle instances on virtual machines

When Oracle instances are hosted on virtual machines, the system creates relationships between CIs.
CI Relationship CI
Oracle instance Hosted on Computer [cmdb_ci_computer] or Server [cmdb_ci_server]
Note: This is a virtual machine. The Is virtual field is true.
Computer [cmdb_ci_computer] or Server [cmdb_ci_server]
Note: This is a virtual machine. The Is virtual field is true.
Virtualized by Computer [cmdb_ci_computer] or Server [cmdb_ci_server]
Note: This is not a virtual machine.

Oracle instances on virtual machines that are hosted on AWS or Azure clouds

Table 3.
Base class Relationship Dependent class
Oracle instance Hosted on Computer [cmdb_ci_computer]
Note: This is a virtual machine. The Is virtual field is true.
Computer [cmdb_ci_computer]
Note: This is a virtual machine. The Is virtual field is true.
Virtualized by Computer [cmdb_ci_computer]
Note: This is not a virtual machine.
Computer [cmdb_ci_computer]
Note: This is a virtual machine. The Is virtual field is true.
Virtualized by Virtual Machine Instance [cmdb_ci_vm_instance]
Note: The vCPU count is populated in this table.
Virtual Machine Instance [cmdb_ci_vm_instance] Hosted on AWS Datacenter [cmdb_ci_aws_datacenter] or Azure Datacenter [cmdb_ci_azure_datacenter]