Oracle Cloud Infrastructure (OCI) GoldenGate is a fully managed service providing a real-time data mesh platform, which uses replication to keep data highly available and enable real-time analysis. Monitoring GoldenGate processes is mandatory for our customers. Although we can use OCI GoldenGate metrics with OCI Monitoring and Notifications, some customers want to consolidate everything in Enterprise Manager (EM).

The Oracle GoldenGate Enterprise Manager Plug-In extends the Oracle Enterprise Manager (EM) Cloud Control to support monitoring and managing Oracle GoldenGate processes.

Configuring Enterprise Manager for OCI GoldenGate

I have minimal experience with Enterprise Manager (EM), and my goal is to demonstrate how to configure it for OCI GoldenGate. In this article, you will find a step-by-step guide for this configuration aimed at helping GoldenGate users with no prior EM experience.

Download OCI GoldenGate Certificate

The first step is to download the OCI GoldenGate certificate. Please launch the console and click the lock icon, then select ‘Connection Secure’.

Note: I’m using Firefox. The steps may differ when using other browsers.

OCI GoldenGate Certificate Download 1

Click on more information, and a new page will open:

OCI GoldenGate Certificate Download 2
Click on “View Certificate”:

OCI GoldenGate Certificate Download 3

A new tab will be open in Firefox. Click on “PEM(Cert)” in the Miscellaneous section to download the certificate.

OCI GoldenGate Certificate Download 4

The certificate will be downloaded to your Downloads folder. Please upload the certificate to the EM machine.

Add OCI GoldenGate Certificate to EM Agent

The second step is to add the SSL certificate to the EM Agent, which is used to discover and monitor OCI GoldenGate processes. Go to:

cd /u01/app/oracle/em/emagent/agent_13.5.0.0.0/bin

Assuming you kept the default name, you can run the following command:
 
[oracle@oms1 bin]$ ./emctl secure add_trust_cert_to_jks -trust_certs_loc deployment-goldengate-eu-frankfurt-1-oci-oraclecloud-com.pem -alias OCI_GG_CERT2
Oracle Enterprise Manager Cloud Control 13c Release 5  
Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved.
Password: <type a simple password>

Message   :   Certificate was added to keystore
ExitStatus: SUCCESS

Note: Adding a certificate with a complex password will result in a failure. To resolve this issue, please use a simple password.

Discover OCI GoldenGate in Enterprise Manager

The third step configures the auto-discovery. Go to Setup -> Add Target -> Configure Auto Discovery.

EM Home Page
Click on “Advanced: Discovery Modules” and “Oracle GoldenGate Microservices”.

EM Discovery 1
Click on ‘+ Add’ button and select your target:

EM Discovery 2

Click on “Edit Parameters” and configure your OCI GoldenGate hostname (without https://), username, password, and the only allowed port (443) for OCI GoldenGate.

EM Discovery 2
Click OK to finalize the configuration.

EM Discovery 3

Click on “Targets on Hosts”, select the target, and click “Discover Now”.

EM Discovery 5

It will open a pop up. Once finished, click OK.

Click on Setup -> Add Target -> Auto Discovery Results:

EM Discovery 6

You should see your OCI GoldenGate deployment listed. Select it and click “Promote”:

EM with OCI GoldenGate

Click Yes and then Promote:

EM with GoldenGate 2

Navigate to Targets and select “GoldenGate”:

EM with GoldenGate Menu
Your GoldenGate processes are listed, and you can start using the multiple features EM has for Goldengate.

Oracle GoldenGate Page in EM

Troubleshooting

You can refer to the following files if you encounter issues during the discovery process or while working with Enterprise Manager in general.:

  • gcagent*.log
  • ogg_so_logs*.log*

Conclusion

In this article, we have provided a comprehensive guide detailing the step-by-step process for configuring the EM plugin for OCI GoldenGate, enabling you to discover and monitor GoldenGate processes within your environment.

References