8. Installing Oracle GoldenGate 19c on Linux 7

 

Installing Oracle GoldenGate 19c on Linux 7

Introduction

Oracle GoldenGate is a comprehensive software package for real-time data integration and replication in heterogeneous IT environments. It enables high availability, real-time data integration, transactional change data capture, data replication, transformations, and verification between operational and analytical enterprise systems.

This article provides a step-by-step guide to installing Oracle GoldenGate 19c on a Linux 7 server. The installation is performed using the Oracle Universal Installer (OUI) wizard, which provides a graphical interface for the installation process.


Overview of the Installation Process

#StepDescription
1Create DirectoryCreate a directory for the GoldenGate software
2Set EnvironmentAdd the GoldenGate home to the environment
3Extract SoftwareUnzip the GoldenGate installation media
4Run InstallerStart the Oracle Universal Installer
5Choose Database VersionSelect the database version for GoldenGate
6Select GoldenGate HomeSpecify the installation location
7Review and InstallConfirm settings and begin installation
8Installation ProgressMonitor the installation
9CompletionVerify successful installation
10Verify ManagerConfirm the Manager process is running

Prerequisites

Before you begin, ensure the following:

  • A Linux 7 server with Oracle Database 19c installed

  • The oracle user account with appropriate permissions

  • Sufficient disk space for the GoldenGate software

  • The GoldenGate installation media downloaded

Download the Software

Download Oracle GoldenGate 19c from the Oracle website:

text
191004_fbo_ggs_Linux_x64_shiphome.zip

Note: You may need an Oracle Support account to download the software, depending on your support status.


Step 1: Create the Directory for the Software

Create a directory where the GoldenGate software will be installed:

bash
[oracle@dev19c ~]$ mkdir /u01/app/oracle/product/gg

Tip: Choose a directory path that follows your organization's standards. In this example, the GoldenGate home is /u01/app/oracle/product/gg.


Step 2: Set the Environment Variables

Add the GoldenGate home to the Oracle user's environment file.

  1. Edit the setEnv.sh script:

bash
[oracle@dev19c ~]$ cd /home/oracle/scripts/
[oracle@dev19c scripts]$ vi setEnv.sh
  1. Verify the contents of setEnv.sh:

bash
[oracle@dev19c scripts]$ cat setEnv.sh
# Oracle Settings
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=`hostname -s`
export ORACLE_UNQNAME=ORCL
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/19.3.0/db_1
export ORA_INVENTORY=/u01/app/oraInventory
export ORACLE_SID=ORCL
export PATH=/usr/sbin:/usr/local/bin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

export GGATE=/u01/app/oracle/product/gg

Important: The GGATE variable points to the GoldenGate home directory. Make sure this matches the directory you created in Step 1.

  1. Source the .bash_profile and verify the GoldenGate home:

bash
[oracle@dev19c scripts]$ cd $GGATE
[oracle@dev19c ~]$ . .bash_profile
[oracle@dev19c ~]$ cd $GGATE
[oracle@dev19c gg]$ pwd
/u01/app/oracle/product/gg

Result: The GGATE environment variable is now set and points to the correct directory.


Step 3: Move and Unzip the GoldenGate Software

  1. Navigate to the GoldenGate home:

bash
[oracle@dev19c Desktop]$ cd /u01/app/oracle/product/gg
[oracle@dev19c gg]$ ls -lrt
total 543208
-rwxr--r--. 1 oracle oinstall 556240981 Nov 24 17:56 191004_fbo_ggs_Linux_x64_shiphome.zip
  1. Unzip the software:

bash
[oracle@dev19c gg]$ unzip 191004_fbo_ggs_Linux_x64_shiphome.zip
Archive:  191004_fbo_ggs_Linux_x64_shiphome.zip
   creating: fbo_ggs_Linux_x64_shiphome/
   creating: fbo_ggs_Linux_x64_shiphome/Disk1/
   creating: fbo_ggs_Linux_x64_shiphome/Disk1/install/
  inflating: fbo_ggs_Linux_x64_shiphome/Disk1/install/.oui
  inflating: fbo_ggs_Linux_x64_shiphome/Disk1/install/attachHome.sh
  inflating: fbo_ggs_Linux_x64_shiphome/Disk1/install/clusterparam.ini
  inflating: fbo_ggs_Linux_x64_shiphome/Disk1/install/detachHome.sh
  1. Verify the extracted files:

bash
[oracle@dev19c gg]$ ls -lrt
total 543548
-rw-r--r--. 1 oracle oinstall      1413 May 29 16:49 OGG-19.1.0.0-README.txt
drwxr-xr-x. 3 oracle oinstall      4096 Oct 18 18:50 fbo_ggs_Linux_x64_shiphome
-rw-r--r--. 1 oracle oinstall    332523 Oct 21 11:01 OGG_WinUnix_Rel_Notes_19.1.0.0.4.pdf
-rwxr--r--. 1 oracle oinstall 556240981 Nov 24 17:56 191004_fbo_ggs_Linux_x64_shiphome.zip

Result: The GoldenGate installation files are now extracted. The fbo_ggs_Linux_x64_shiphome directory contains the Disk1 directory with the installer.


Step 4: Run the Oracle GoldenGate 19c Installer

  1. Navigate to the Disk1 directory:

bash
[oracle@dev19c gg]$ cd fbo_ggs_Linux_x64_shiphome/
[oracle@dev19c fbo_ggs_Linux_x64_shiphome]$ ls
Disk1
[oracle@dev19c fbo_ggs_Linux_x64_shiphome]$ cd Disk1/
  1. Run the installer:

bash
[oracle@dev19c Disk1]$ ./runInstaller

Note: The installer requires a graphical display (X11). If you are working on a headless server, you will need to use X11 forwarding or a VNC session.

Tip: If the installer doesn't start, verify that the DISPLAY environment variable is set correctly.


Step 5: Choose Your Database Version

The first screen of the installer asks you to choose your database version.

  • Select the appropriate database version for your environment (e.g., Oracle Database 19c)

  • Click Next to proceed

Note: GoldenGate 19c supports multiple database versions, including Oracle Database 11g, 12c, 18c, and 19c. Choose the version that matches your source or target database.


Step 6: Select the GoldenGate Home

The next screen asks you to select the GoldenGate Home (the installation location).

  • Specify the GoldenGate Home directory (e.g., /u01/app/oracle/product/gg)

  • Click Next to proceed

Important: The GoldenGate Home should be an empty directory. If you created the directory in Step 1, it should already be empty.


Step 7: Double-Check and Start the Installation

The Summary screen displays all the settings you have chosen.

  • Review the settings carefully

  • Click Install to begin the installation

Tip: This is your last chance to go back and change any settings before the installation begins.


Step 8: Installation in Progress

The installer displays a progress screen as it installs Oracle GoldenGate 19c.

  • The progress bar shows the installation status

  • Wait for the installation to complete

Note: The installation typically takes a few minutes, depending on your system's performance.


Step 9: Installation Completed Successfully

Once the installation is complete, the installer displays a success message.

  • Click Finish to close the installer

Result: Oracle GoldenGate 19c is now installed in the specified GoldenGate Home directory.


Step 10: Verify the Manager is Running

After the installation, you should verify that the GoldenGate Manager process is up and running.

  1. Log in to a new terminal session (e.g., via PuTTY)

  2. Navigate to the GoldenGate home:

bash
cd $GGATE
  1. Start the GoldenGate command interface (GGSCI):

bash
./ggsci
  1. Check the Manager status:

bash
GGSCI> info all
  1. Start the Manager if it is not running:

bash
GGSCI> start manager

Result: The Manager process is now up and running, and GoldenGate is ready for configuration.


The Complete Installation Flow

text
┌─────────────────────────────────────────────────────────────────┐
│  1. CREATE DIRECTORY                                            │
│     mkdir /u01/app/oracle/product/gg                            │
└──────────────────────────┬──────────────────────────────────────┘
                           │
                           ▼
┌─────────────────────────────────────────────────────────────────┐
│  2. SET ENVIRONMENT                                             │
│     Add GGATE=/u01/app/oracle/product/gg to setEnv.sh           │
│     Source .bash_profile                                        │
└──────────────────────────┬──────────────────────────────────────┘
                           │
                           ▼
┌─────────────────────────────────────────────────────────────────┐
│  3. EXTRACT SOFTWARE                                            │
│     unzip 191004_fbo_ggs_Linux_x64_shiphome.zip                 │
└──────────────────────────┬──────────────────────────────────────┘
                           │
                           ▼
┌─────────────────────────────────────────────────────────────────┐
│  4. RUN INSTALLER                                               │
│     cd fbo_ggs_Linux_x64_shiphome/Disk1                         │
│     ./runInstaller                                              │
└──────────────────────────┬──────────────────────────────────────┘
                           │
                           ▼
┌─────────────────────────────────────────────────────────────────┐
│  5. CHOOSE DATABASE VERSION                                     │
│     Select Oracle Database 19c                                  │
└──────────────────────────┬──────────────────────────────────────┘
                           │
                           ▼
┌─────────────────────────────────────────────────────────────────┐
│  6. SELECT GOLDENGATE HOME                                      │
│     Specify /u01/app/oracle/product/gg                          │
└──────────────────────────┬──────────────────────────────────────┘
                           │
                           ▼
┌─────────────────────────────────────────────────────────────────┐
│  7. REVIEW AND INSTALL                                          │
│     Confirm settings and click Install                          │
└──────────────────────────┬──────────────────────────────────────┘
                           │
                           ▼
┌─────────────────────────────────────────────────────────────────┐
│  8. INSTALLATION PROGRESS                                       │
│     Wait for the progress bar to complete                       │
└──────────────────────────┬──────────────────────────────────────┘
                           │
                           ▼
┌─────────────────────────────────────────────────────────────────┐
│  9. COMPLETION                                                  │
│     Click Finish to close the installer                         │
└──────────────────────────┬──────────────────────────────────────┘
                           │
                           ▼
┌─────────────────────────────────────────────────────────────────┐
│  10. VERIFY MANAGER                                             │
│      ./ggsci                                                    │
│      GGSCI> info all                                            │
│      GGSCI> start manager                                       │
└─────────────────────────────────────────────────────────────────┘

Key Paths and Configuration

ItemPath / Value
GoldenGate Home/u01/app/oracle/product/gg
GGATE Environment Variable/u01/app/oracle/product/gg
Installer Locationfbo_ggs_Linux_x64_shiphome/Disk1/runInstaller
GGSCI Command$GGATE/ggsci
Manager ProcessStarted via GGSCI> start manager

Best Practices

PracticeDescription
Use a Dedicated DirectoryInstall GoldenGate in a dedicated directory separate from the database
Set Environment VariablesAdd GGATE to the environment for easy access
Verify Manager StatusAlways verify the Manager is running after installation
Secure the InstallationRestrict access to the GoldenGate home directory
Document the InstallationKeep a record of the installation path and version
Back Up ConfigurationBack up GoldenGate configuration files regularly
Monitor Disk SpaceEnsure sufficient disk space for trail files and logs
Apply PatchesKeep GoldenGate updated with the latest patches

Troubleshooting Common Issues

IssuePossible CauseSolution
Installer won't startDISPLAY not setSet the DISPLAY variable or use X11 forwarding
Installation failsInsufficient disk spaceFree up disk space and retry
Manager won't startWrong environmentVerify GGATE and source .bash_profile
GGSCI command not foundWrong directoryNavigate to $GGATE before running ./ggsci
Permission deniedWrong userRun the installer as the oracle user
Unzip failsCorrupted downloadRe-download the software
GoldenGate Home not emptyExisting filesUse an empty directory or clean it first

Summary

Installing Oracle GoldenGate 19c on Linux 7 involves the following key steps:

  1. Create Directory: Create a directory for the GoldenGate software

  2. Set Environment: Add GGATE to the environment and source .bash_profile

  3. Extract Software: Unzip the GoldenGate installation media

  4. Run Installer: Start the Oracle Universal Installer from the Disk1 directory

  5. Choose Database Version: Select the appropriate database version

  6. Select GoldenGate Home: Specify the installation location

  7. Review and Install: Confirm settings and begin installation

  8. Wait for Completion: Monitor the installation progress

  9. Finish: Close the installer upon successful completion

  10. Verify Manager: Confirm the Manager process is running

Key Points to Remember

  • The GoldenGate Home is a dedicated directory for the software

  • The GGATE environment variable provides easy access to the GoldenGate home

  • The Oracle Universal Installer provides a graphical interface for the installation

  • The Manager process is the heart of GoldenGate and must be running

  • The GGSCI command interface is used to manage GoldenGate

  • X11 forwarding is required for the graphical installer

  • The installation is straightforward and takes only a few minutes

Why This Matters

Oracle GoldenGate is essential for:

  • Real-Time Data Integration: Enables real-time data movement between systems

  • High Availability: Supports active-active and active-passive configurations

  • Disaster Recovery: Provides data replication for business continuity

  • Data Warehousing: Enables real-time data feeds to analytical systems

  • Zero Downtime Migrations: Supports migrations with minimal downtime

  • Heterogeneous Replication: Works across different database platforms

By mastering Oracle GoldenGate installation, you can build robust data integration and replication solutions that meet the most demanding business requirements.


References

  • Oracle GoldenGate Documentation: Installation and Setup Guide

  • Oracle GoldenGate Documentation: Administrator's Guide

  • Oracle Database Documentation: Database Installation Guide for Linux

  • My Oracle Support: Oracle GoldenGate 19c Certification Matrix

  • Related Articles: Oracle Database 19c Installation, Oracle GoldenGate Configuration

No comments:

Post a Comment