Configuring Nginx on RedHat Linux 7.9 for Oracle GoldenGate 21c
When installed, Oracle GoldenGat (Microservices) will set up “services” that require a port number for access. For the first run of the Oracle GoldenGate Configuration Assistant (OGGCA), the assistant will create the ServiceManager (1 port) and the first deployment (5 ports). That means six ports would need to be opened on a firewall to run a single Oracle GoldenGate (Microservices) deployment. This only increases by five ports for each deployment built under a single ServiceManager.
To address this, an open-source solution called NGINX allows all the ports within the deployment to be consolidated to a single port. The single port that can be used with NGINX is either 80 (HTTP) or 443 (HTTPS); which will enable Oracle GoldenGate (Microservices) to be used over a standard firewall port
Downloading Binaries
The NGINX binaries need to be downloaded regardless of where you install Oracle GoldenGate (Microservices). For Oracle Enterprise Linux, I documented the process here. When you start to expand the installation base for Microservices, the installation of NGINX becomes similar yet different.
To install NGINX on an RedHat Linux 7.2 , the following steps should be followed.
1. SSH into the RedHat instance
$ ssh <user>@<public-ip-address>
2. Sudo to Root
$ sudo su –
3. Install and Confirm installation
$ yum -y install nginx && yum list install nginx
After installing the NGINX the next thing that must be done is to configure it against the Oracle GoldenGate (Microservices) environment.
Configure NGINX
Oracle has made it easy for Oracle GoldenGate administrators to configure the NGINX interface after the installation. They provided a script called “ReverseProxySettings” in the $OGG_HOME/lib/utl directory. This script is used to build the Nginx configuration file based on the deployments running on the AWS EC2 node.
The steps to configure the reverse proxy are as follows:
1. Change to the Reverse Proxy directory under $OGG_HOME
$ cd $OGG_HOME/lib/utl/reverseproxy
2. Run ReverseProxySettings with options (unsecure access)
$ ./ReverseProxySettings -u oggadmin -P <password> -o ogg.conf http://localhost:<servicemanager_port>
3. Copy the config file to the NGINX directory
$ sudo cp ogg.conf /etc/nginx/conf.d/nginx.conf
4. Create a dummy cert
$ sudo sh /etc/ssl/certs/make-dummy-cert /etc/nginx/ogg.pem
5. Start NGINX
$ sudo nginx &
6. Test/validate NGINX config
$ sudo nginx -t
7. Reload NGINX
$ sudo nginx -s reload
8. Access the ServiceManager and other services without port numbers
Note: The ogg.pem must be downloaded and uploaded to your local cert wallet to access via a web browser.
End Result
Once everything with the NGINX is configured, Oracle GoldenGate (Microservices) can be accessed by URL using the standard port of 80 (HTTP) or 443 (HTTPS). This enables Oracle GoldenGate (Microservices) environments to be accessed over standard firewall rules.
Current Oracle Certs
Bobby Curtis
I’m Bobby Curtis and I’m just your normal average guy who has been working in the technology field for awhile (started when I was 18 with the US Army). The goal of this blog has changed a bit over the years. Initially, it was a general blog where I wrote thoughts down. Then it changed to focus on the Oracle Database, Oracle Enterprise Manager, and eventually Oracle GoldenGate.
If you want to follow me on a more timely manner, I can be followed on twitter at @dbasolved or on LinkedIn under “Bobby Curtis MBA”.
Heya i am for the first time here. I came across this board and I find It really
useful & it helped me out much. I hope to give something back
and help others like you aided me.
Good day I am so glad I found your weblog, I really found you by error, while I
was looking on Yahoo for something else, Anyways I am here now and would just like to
say kudos for a remarkable post and a all round exciting blog (I also love
the theme/design), I don’t have time to read through it all at the moment but I have bookmarked it and
also added in your RSS feeds, so when I have time I will be back to read
a great deal more, Please do keep up the awesome jo.
I do not even know how I ended up here, but I thought this post was great.
I do not know who you are but certainly you are going to a famous blogger
if you are not already 😉 Cheers!
This is my first time go to see at here and i am actually pleassant to read all at one
place.
Hello, I enjoy reading all of your article post.
I like to write a little comment to support you.
I read this article completely about the resemblance of most up-to-date and earlier technologies, it’s
amazing article.
It’s hard to find educated people in this particular topic, however,
you seem like you know what you’re talking about!
Thanks
I read this paragraph fully concerning the
resemblance of most recent and preceding technologies, it’s amazing article.
Woah! I’m really digging the template/theme of this site.
It’s simple, yet effective. A lot of times it’s tough to get
that “perfect balance” between superb usability and visual appeal.
I must say that you’ve done a superb job with this. Additionally, the blog loads super
fast for me on Firefox. Excellent Blog!
Hey there! Do you know if they make any plugins to help with Search Engine Optimization? I’m trying to get my blog to rank for some
targeted keywords but I’m not seeing very good success.
If you know of any please share. Cheers!
Good day! This is my first visit to your blog! We are a group of volunteers and starting a new project
in a community in the same niche. Your blog provided us beneficial information to work on. You have done a marvellous job!
Hi! Do you know if they make any plugins to assist with
Search Engine Optimization? I’m trying to get my blog to rank for some targeted keywords
but I’m not seeing very good gains. If you know of any please share.
Cheers!
What’s up, I read your blogs regularly. Your story-telling style is witty,
keep it up!
Thank you for sharing your info. I truly appreciate
your efforts and I will be waiting for your further write ups thank you once again.
Heya are using WordPress for your blog platform? I’m new to the
blog world but I’m trying to get started and create my own. Do you require any html coding knowledge to make your own blog?
Any help would be greatly appreciated!
It’s in fact very complicated in this busy life to
listen news on TV, so I simply use world wide web for that purpose,
and take the hottest information.
Undeniably believe that which you stated. Your favorite reason seemed to be
on the internet the simplest thing to be aware of.
I say to you, I definitely get irked while people consider worries that
they just do not know about. You managed to hit the nail upon the top
as well as defined out the whole thing without having side effect , people
could take a signal. Will likely be back to get
more. Thanks