Oracle GoldenGate discovery
Summarize
Summary of Oracle GoldenGate discovery
The ServiceNow Discovery and Service Mapping applications use the Oracle Golden Gate pattern to identify and map Oracle GoldenGate version 12c components across supported platforms such as AIX, Linux, Hewlett Packard, and Solaris. Discovery performs horizontal data collection into report files, while Service Mapping conducts top-down discovery to find outgoing Oracle GoldenGate connections. This pattern is compatible with the ServiceNow AI Platform versions Kingston, London, and Madrid.
Show less
Key Features
- Discovery Pattern: Utilizes Oracle Golden Gate pattern to collect configuration data and relationships.
- Supported Platforms: AIX, Linux, Hewlett Packard, Solaris.
- CMDB Integration: Introduces new CI classes extending existing CMDB application classes to represent Oracle Golden Gate instances, replicat, and extract processes.
- Credential Configuration: Requires SSH credentials and UNIX OS user permissions to read Oracle Golden Gate report files (.rpt) and run necessary OS commands with sudo privileges.
- EVAL Closure Functions: Provided for data deduplication, counting processes, retrieving privileged commands, and extracting version details.
- Applicative Credentials: Configure within ServiceNow Discovery to enable authentication for discovery processes.
- Top-Down Discovery: Uses TCP entry points specifying Oracle Golden Gate IP and port for Service Mapping.
Key Outcomes
- Comprehensive Discovery: Automatically detects Oracle Golden Gate installations, including replicat and extract processes, their configuration files, report files, versions, and operational statuses.
- Enhanced CMDB Accuracy: Populates detailed CI records such as Oracle Golden Gate instances and related processes with clear relationships to hardware and each other, improving service visibility.
- Dependency Mapping: Provides Dependency Views showing discovered Oracle Golden Gate CIs and their relationships, aiding in impact analysis and service mapping.
- Security and Permissions: Ensures discovery operates securely by requiring appropriate UNIX user permissions and credential management within ServiceNow.
- Pattern Updates: Some discovery capabilities require updating the Discovery and Service Mapping Patterns application from the ServiceNow Store to the latest version.
The ServiceNow Discovery and Service Mapping applications find Oracle GoldenGate version 12c components using the Oracle Golden Gate pattern. Discovering some of these resources may require updating to the latest version of the Discovery and Service Mapping Patterns application from the ServiceNow Store.
Discovery uses the Oracle Golden Gate pattern to perform horizontal discovery to collect data into the $report_file file. Service Mapping performs top-down discovery on the $report_file file to find outgoing Oracle Golden Gate connections.
The Oracle Golden Gate pattern supports the following platforms: AIX, Linux Hewlett Packard, and Solaris.
You can use this pattern on the ServiceNow AI Platform using Kingston, London, or Madrid.
Request apps on the Store
Visit the ServiceNow Store website to view all the available apps and for information about submitting requests to the store. For cumulative release notes information for all released apps, see the ServiceNow Store version history release notes.
Oracle Golden Gate data model
The Oracle Golden Gate pattern introduces the following CI classes that extend an existing CMDB class.
| CI class | Extends from |
|---|---|
| Oracle Golden Gate [cmdb_ci_appl_oracle_golden_gate] | Application [cmdb_ci_appl] |
| Oracle Golden Gate Replicat Process [cmdb_ci_appl_ora_gg_replicat] | Application [cmdb_ci_appl] |
| Oracle Golden Gate Extract Process [cmdb_ci_appl_ora_gg_extract] | Application [cmdb_ci_appl] |
Prerequisites
- Credentials
- Configure the SSH credentials, for the operating system of the server that hosts the Oracle Golden Gate Server.
- User access
- Give the UNIX OS user permissions to read the
$report_file. The$report_fileis the report file that is extracted from the Oracle Golden Gatemanager/replicat/extractprocess, with the extension.rpt. For example:Configuration file:
Report file:/base/ggs_beta/oracle/bt01pims/ggs/dirprm/mgr.prm REPORTFILE/base/ggs_beta/oracle/bt01pims/ggs/dirrpt/MGR.rpt PROCESSID MGR - Permissions to run commands
- The OS user must have permissions to run the relevant OS commands for each supported platform.
- Retrieve data
-
Retrieve data by parsing:
- The Oracle Golden Gate manager report file (report_file) to retrieve related configuration item (CI) names and counter information.
- Variables in the process command line to retrieve the install folder, manager process name, configuration file, and parameters file.
- Variables in the Oracle Golden Gate installation folder to retrieve a list of parameter and configuration files.
- EVAL closure functions
-
Use the following EVAL closure functions to remove duplicate entries from the extract process and the replicat process.
- var tableWithoutDuplicates = '';tableWithoutDuplicates = DuplicateRemover.removeDuplicates(${extracts},["name"]);CTX.setAttribute("extracts", tableWithoutDuplicates);
- var tableWithoutDuplicates = '';tableWithoutDuplicates = DuplicateRemover.removeDuplicates(${replicats},["name"]);CTX.setAttribute("replicats", tableWithoutDuplicates);
Use the following EVAL closure functions to count the number of extract processes and replicat processes.return ${cmdb_ci_appl_ora_gg_replicat[*].config_file}.size() return ${cmdb_ci_appl_ora_gg_extract[*].config_file}.size()Use the following EVAL closure function to return the privileged command.return ${ctx}.getDiscoveryProvider(com.snc.sw.dto.ProviderType.SSH).getPrivilegedCommand();Use the following EVAL closure function to return the discovery type.ctx.getWork().getDiscoveryType();Use the following EVAL closure function to extract the version from the installation directory path if it is empty.inst_dir = ${install_directory}if(inst_dir.isEmpty()){return ${version}}if(inst_dir.startsWith('/')){return inst_dir.replaceAll('/.*/','')}if(!inst_dir.startsWith('/') && !inst_dir.isEmpty()){return inst_dir.replaceAll('.*\\\\','')}
- Applicative credentials
-
- Navigate to .
- Click New.
- Click Applicative Credentials.
- On the form, fill in the fields.
Table 2. Applicative Credentials form Field Description Name Credential name. An example is oracle_db_user. Active Option for enabling this credential for discovery. Select this check box to enable discovery. Applies to Credentials that you may or may not want to apply to All MID servers in your network, or to one or more Specific MID servers. Select Specific MID servers. MID Servers MID Servers that the credentials apply to. Select the required MID Server. This field appears when Specific MID servers is selected from the Applies to field. Order Order in which the platform tries this credential as it attempts to log on to devices. A smaller number indicates that the credential appears higher in the list. Establish the credential order when using large numbers of credentials or when security locks out users after three failed login attempts. If all the credentials have the same order number, or none, the instance tries the credentials in a random order. The default value is 100. User name Name of the user of this applicative credential. An example is oracle_db_user. You can use any user for the credential for this pattern, because the information is extracted from a local cache. Password Not required. You can leave this field blank or enter any value. CI type CI type for which this credential is used: Storage Server [cmdb_ci_storage_server]. Note:ServiceNow applications refer to devices and applications that comprise a service instance as configuration items (CIs). - Click Submit.
- Entry point
-
For top-down discovery, use the Oracle Golden Gate IP address and specify the MID Server.
Data collected by Discovery during horizontal discovery
Discovery uses the Oracle Golden Gate pattern to collect the data described in the following tables.
| Field | Description |
|---|---|
| Name [name] | Name of the CI in the CMDB (<process name>@<source db>). |
| Version [version] | Version of the Oracle Golden Gate installation. |
| Source DB SID [source_db] | Manager process source database system identifier (SID). |
| Counter for replicat processes [count_replicat] | Counter of replicat processes that are managed by the Oracle Golden Gate manager instance. |
| Counter for extract processes [count_extract] | Counter of extract processes that are managed by the Oracle Golden Gate manager instance. |
| Configuration file [config_file] | Parameter file of the Oracle Golden Gate process. Specify the path to the configuration file and the file name, <name>.prm |
| Replicat File [report_file] | Report file of the Oracle Golden Gate process. Specify the path to the report file and the file name, <name>.rpt |
| Type [type] | Type of the Oracle Golden Gate installation. Specify the Oracle Golden Gate for Oracle technologies. |
| Installation directory [install_directory] | Folder that contains all the Oracle Golden Gate setup, configuration, libraries, and executable files. |
| Field | Description |
|---|---|
| Name [name] | Name of the CI in the CMDB (<process name>@<source db>). |
| Replicat File [report_file] | Replicat process report file. Specify the path to the report file and the file name <name>.rpt |
| Configuration file [config_file] | Parameter file of the replicat process. Specify the path to the configuration file and the file name <name>.prm |
| Installation directory [install_directory] | Folder that contains all the Oracle Golden Gate setup, configuration, libraries, and executable files. |
| Version [version] | Version of the Oracle Golden Gate installation. |
| Source DB SID [source_db] | Manager process source database SID. |
| Operational status [operational_status] | Operational status of the CI. Select Operational. |
| Field | Description |
|---|---|
| Name [name] | Name of the CI in the CMDB (<process name>@<source db>). |
| Replicat File [report_file] | Report file of the extract process. Specify the path to the report file and the file name <name>.rpt |
| Configuration file [config_file] | Parameter file of the extract process. |
| Version [version] | Version of the Oracle Golden Gate installation. |
| Installation directory [install_directory] | Folder that contains all the Oracle Golden Gate setup, configuration, libraries, and executable files. |
| Source DB SID [source_db] | Manager process source database SID. |
| Operational status [operational_status] | Operational status of the CI. Select Operational. |
CI relationships
The Oracle Golden Gate pattern creates the following relationships to support Oracle Golden Gate discovery.
| CI | Relationship | CI |
|---|---|---|
| Oracle Golden Gate [cmdb_ci_appl_oracle_golden_gate] | Managed by::Manages | Oracle Golden Gate Replicat Process [cmdb_ci_appl_ora_gg_replicat] |
| Oracle Golden Gate [cmdb_ci_appl_oracle_golden_gate] | Managed by::Manages | Oracle Golden Gate Extract Process [cmdb_ci_appl_ora_gg_extract] |
| Oracle Golden Gate [cmdb_ci_appl_oracle_golden_gate] | Runs on::Runs | Hardware [cmdb_ci_hardware] |
| Oracle Golden Gate Replicat Process [cmdb_ci_appl_ora_gg_replicat] | Runs on::Runs | Hardware [cmdb_ci_hardware] |
| Oracle Golden Gate Extract Process [cmdb_ci_appl_ora_gg_extract] | Runs on::Runs | Hardware [cmdb_ci_hardware] |
Data collected by Service Mapping during top-down discovery
To discover the Oracle Golden Gate process, use the TCP entry point with the proper host and port of the Oracle Golden Gate process.
| Field | Description |
|---|---|
| Name [name] | Name of the CI in the CMDB (<process name>@<source db>). |
| Version [version] | Version of the Oracle Golden Gate installation. |
| Installation directory [install_directory] | Folder that contains all the Oracle Golden Gate setup, configuration, libraries, and executable files. |
| Configuration file [config_file] | Parameter file of the Oracle Golden Gate process. |
| Replicat File [report_file] | Report file of the Oracle Golden Gate replicat process. |
| Source DB SID [source_db] | Manager process source database SID. |
| Counter for extract processes [count_extract] | Counter of extract processes that are managed by the Oracle Golden Gate manager instance. |
| Counter for replicat processes [count_replicat] | Counter of replicat processes that are managed by the Oracle Golden Gate manager instance. |