Installing Oracle GoldenGate in a x86_64 Linux-based environment
This recipe will show you how to install Oracle GoldenGate in a x86_64 Linux-based environment.
Getting ready
In order to install Oracle GoldenGate, we must have downloaded the binaries from the Oracle Technology Network website for your Linux platform. We have downloaded Oracle GoldenGate Version 11.2.0.1.0.1 in this recipe. Ensure that you check the checksum of the file once you have downloaded it.
Tip
You can find the Oracle GoldenGate binaries for x86_64 Linux at http://www.oracle.com/technetwork/middleware/GoldenGate/downloads/index.html?ssSourceSiteId=ocomen.
How to do it...
Oracle GoldenGate binaries are installed in a directory called GoldenGate Home
. This directory should be owned by the OS user (ggate
) which will be the owner of GoldenGate binaries. This user must be a member of the dba
group. After you have downloaded the binaries, you need to uncompress the media pack file by using the unzip utility as given in the following steps:
- Log in to the server using the
ggate
account. - Create a directory with this user as shown in the following command:
mkdir installation_directory
- Change the directory to the location where you have copied the media pack file and unzip it. The media pack contains the
readme
files and the GoldenGate binaries file. The GoldenGate binaries file for the 64-bit x86 Linux platform is calledfbs_ggs_Linux_x64_ora11g_64bit.tar
. - Extract the contents of this file into the GoldenGate
Home
directory as shown in the following command:tar –xvf fbs_ggs_Linux_x64_ora11g_64bit.tar –C installation_directory
- Create GoldenGate directories as follows:
cd installation_directory ./ggsci create subdirs exit
Note
You must have Oracle database libraries added to the shared library environment variable,
$LD_LIBRARY_PATH
before you runggsci
. It is also recommended to have$ORACLE_HOME & $ORACLE_SID
set to the correct Oracle instance.
How it works...
Oracle provides GoldenGate binaries in a compressed format. In order to install the binaries you unzip the compressed file, and then expand the archive file into a required directory. This unpacks all the binaries. However, GoldenGate also requires some important subdirectories under GoldenGate Home
which are not created by default. These directories are created using the CREATE SUBDIRS
command. The following is the list of the subdirectories that get created with this command:
Note
Oracle GoldenGate binaries need to be installed on both the source and target systems. The procedure for installing the binaries is the same in both environments.