4 Getting Started with Oracle GoldenGate Microservices
After deploying Oracle GoldenGate Microservices on the Oracle Cloud Marketplace, you can access the latest release of Oracle GoldenGate.
Connecting to the Oracle GoldenGate Compute Node
To access your new Oracle GoldenGate deployment, log in to the compute node using the following steps. For this, you need to identify the public IP address of the compute node where Oracle GoldenGate is running.
- Log in to your Oracle Cloud Console.
- Select Compute -> Instances.
- Select the hyperlink name of the compute node. The public IP Address is listed under Instance Access.
- To access the compute node where Oracle GoldenGate is running, connect as the
opc
account using SSH. For more information on how to access a node using theopc
account, see Connecting to an Instance.
ssh -i private-key-filename opc@public-id-address
Next you need the Administrator Password for the Administration Server before you connect to the Service Manager. For more information, see:
Setting up Oracle GoldenGate Microservices for Oracle and non-Oracle Databases
Before you can start using Oracle GoldenGate Microservices, there are a few tasks that you must perform, depending on your database platform, to ensure that your environment is complete and ready to replicate your data.
Setting up for SQL Server
The required SQL Server client drivers are not pre-installed in the Oracle GoldenGate on Microservices for Non-Oracle (SQL Server) compute node. Before you are able to use your Microservices installation of Oracle GoldenGate for SQL Server, you must install the required client drivers.
For more information, see Installing Microsoft ODBC Drivers for Linux in Installing Oracle GoldenGate.
Setting up for DB2 z/OS
- IBM Data Server Driver for ODBC and CLI v10.5 or later
- IBM Data Server Runtime Client v10.5 or later
- IBM Data Server Client v10.5 or later
- DB2 Connect v10.5 or later
For more information on these drivers, see Choosing an Installation Operating System DB2 z/OS in Installing Oracle GoldenGate.
Setting up Environment Variables
After provisioning the Oracle GoldenGate Microservices instance and installing the connection drivers, follow these instructions to edit the deployment's environment variables restart the services.
To set the environment variables:Topic:
Setting up for Oracle
The Oracle GoldenGate image on Oracle Cloud Marketplace contains the latest Oracle GoldenGate release along with Oracle Database Client software for all supported versions of the Oracle database.
For supported Oracle Database platforms for Oracle GoldenGate, see the latest certification matrix.
To decide on which type of capture to use in Oracle database, see Deciding Which Capture Method to Use section of Using Oracle GoldenGate for Oracle Database Guide.
For more information about setting up the environment variables, such as
LD_LIBRARY_PATH
and
ORACLE_HOME
to the instant client
directories, see Setting Environment
Variables in Step by Step Data
Replication Using Oracle GoldenGate Microservices
Architecture guide.
Setting up for MySQL
Before you can begin replicating data, for a MySQL database, review the instance, database and user requirements available in Installing Oracle GoldenGate for MySQL in Installing Oracle GoldenGate Guide and Understanding What's Supported for MySQL in Using Oracle GoldenGate for Heterogeneous Databases.
Starting the Administration Service
For some installations of Oracle GoldenGate Microservices, such as for DB2 and SQL Server, you were instructed in previous steps to install the client drivers for the database on the compute node. After they are installed, you must then manually start the Administration service for your instance.
To start the Administration service:
- Navigate to the Service Manager login page. You can reach the
Service Manager page by using the public IP address that you obtained when you
performed a look up of the compute node information for the environment:
https://public_ip_address
- Under Services, use the Action drop-down for the Administration service, and select Start.
Setting up for PostgreSQL
The required PostgreSQL client libraries are not pre-installed in the Oracle GoldenGate Microservices for Non-Oracle (PostgreSQL) compute node and will need to be manually installed and configured before using the Microservices installation of Oracle GoldenGate for PostgreSQL on OCI Marketplace.
Required packages are available at https://www.postgresql.org/download/. Select the Linux
operating system family and Red Hat/Rocky/CentOS distribution, then follow the
instructions to integrate with the PostgreSQL Yum Repository. When selecting a
PostgreSQL version, choose the version based on the version of the source or
target PostgreSQL database. For platform, choose Red Hat
Enterprise
, CentOS
, Scientific or Oracle version
7
, and select x86_64
for the architecture.
Install the postgresqlversion#-libs
module of the Linux installation
package.
For example:
# Install the repository RPM: sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm # Install PostgreSQL: sudo yum install -y postgresql13-libs
Changing Default Administrator Password
Changing passwords for critical accounts, such as oggadmin, is the first priority in securing your Oracle GoldenGate Microservices deployment. To change the password for oggadmin, you must first change it in the Service Manager and then in Administration Service.
This topic describes the following:
Changing the Administrator Password for the Service Manager
To change the Administrator password for the Service Manager:
- Navigate to the Service Manager login page. You can reach the Service
Manager page by using the public IP address that you
obtained when you performed a look up of the compute node
information for the
environment.
https://public_ip_address
- Log in using the oggadmin user and password credentials located in the
/home/opc/ogg-credentials.json
file. - Select the menu icon present on the top left corner to open the menu.
- Select Administrator option from the menu.
- From the Users screen, select the Pencil icon under Action option.
- Update the essential details for password and info sections for the oggadmin
user and click Submit.
Upon successful reset, the current user is logged out.
- Log in again to the Service Manager by using the new password.
Note:
Passwords must be 8 to 30 characters long and must contain at least 1 uppercase, 1 lowercase, 1 numeric, and 1 special character. Special characters such as ‘$’, ‘^’, or ‘?’ are not allowed.Changing the Administrator Password for the Administration Service
After changing the Oracle GoldenGate Microservices Service Manager security role user password, you should change the password of the security role user in the underlying deployments.
To change the Administrator password for the Administration Service:
- From the Service Manager page, select the port number for the Administration Service in the deployment. This navigates you to the login page for that deployment.
- Log in using the oggadmin user credentials
available in the following
location:
/home/opc/ogg_credentials.json
- Select the menu icon present on the top left corner to open the menu.
- Select Administrator option from the menu.
- From the Users screen, select the Pencil icon under Action option.
- Update the essential details for password and info
sections for the oggadmin user and click
Submit.
Upon successful reset, the current user is logged out.
- Log in again to the Administration Service by using the new password.
Note:
Passwords must be 8 to 30 characters long and contain at least 1 uppercase, 1 lowercase, 1 numeric, and 1 special character. Special characters such as ‘$’, ‘^’, or ‘?’ are not allowed.Changing the Default GGSCHEMA Value
By default, Oracle GoldenGate Microservices deployments on OCI
Marketplace creates a default GGSCHEMA
of
oggadmin
.
When connecting deployments to source and target databases, for some
databases, such as SQL Server, Oracle GoldenGate needs to create
objects in the database. These are created objects using the
oggadmin
schema, unless otherwise
specified.
This means that in the source or target databases, that a
schema called oggadmin
needs to be created in
advance of adding supplemental logging
(TRANDATA
), creating heartbeat
tables, and creating checkpoint tables.
If you prefer to use a different schema than the default
oggadmin
schema, then you can
manually modify the value, following the steps listed in the
How to
Access the Parameter Files in Using Oracle
GoldenGate Microservices Architecture guide.
After you have modified the GGSCHEMA
value,
for these processes to recognize the new schema, you need to
restart the Administration service and any existing Extracts and
Replicats.
Creating User Accounts
To secure your Oracle GoldenGate Microservices deployment, you should consider creating new user accounts for your Oracle GoldenGate users and assign each account to the functional role that they are expected to perform. These roles are as follows:
- Security
- Administrator
- Operator
- User
Oracle GoldenGate users only have access permissions according to their defined access levels. For more information on how Oracle GoldenGate Security Framework is used, refer to Securing Oracle GoldenGate guide.
Topics:
Creating Users in the Service Manager
After logging into the Oracle GoldenGate Microservices Service Manager as the administrator for the deployments, you can create new users with the role of Administrator, Operator, or User to administer the architecture. Users with the security role can administer the entire architecture.
- Navigate to the Service Manager login page. You can reach the
Service Manager page by using the public IP address that you obtained when you
looked up the compute node information for the environment:
https://public_ip_address
. - Log in using the oggadmin user and the password credentials
located in the
/home/opc/ogg_credentials.json
file. - Click the menu icon present on the top left corner to open the menu section.
- Select the Administrator option from the menu.
- On the Users screen, select the plus (+) icon to add a new user.
- Fill in all the required fields.
- Click Submit to create the new user.
Creating Users in the Administration Server
After logging into the Oracle GoldenGate Microservices Administration Server as the Administrator, for the specified deployment, you can create a new user with the role of Administrator, Operator, or User to administer the deployment.
- Log in to the Administration Service using the Security Role User (oggadmin) credentials.
- Click the menu icon present in the top left corner to open the menu.
- From the menu, select the Administrator option.
- From the Users screen, select the plus (+) icon, to create a new user.
- Fill in the details for all the required fields and click Submit.
Note:
Passwords must be 8 to 30 characters long and contain at least 1 uppercase, 1 lowercase, 1 numeric, and 1 special character. Special characters such as ‘$’, ‘^’, or ‘?’are not allowed.