2 Installing Oracle GoldenGate

This chapter describes installing Oracle GoldenGate for the first time and contains the following sections:

2.1 Installation Overview

These instructions are for installing Oracle GoldenGate for the first time. Additionally, they are for downloading the base release of a new version of Oracle GoldenGate.

To download and install subsequent patches to the base release, go to the Patches and Updates tab of My Oracle Support at:

http://support.oracle.com

To upgrade Oracle GoldenGate from one version to another, follow the upgrade instructions at:

http://docs.oracle.com/goldengate/c1221/gg-winux/index.html

Oracle GoldenGate operates on a replication server, which is a Linux, UNIX, or Windows server that is separate from the servers that contain the Teradata databases. See Section 1.3, "Supported Platforms for a Replication Server" for additional information.

2.2 Understanding and Obtaining the Oracle GoldenGate Distribution

For complete information about how to obtain Oracle Fusion Middleware software, see "Understanding and Obtaining Product Distributions" in Planning an Installation of Oracle Fusion Middleware.

To download the Oracle WebLogic Server and Coherence software for development or evaluation, see the following location on the Oracle Technology Network (OTN):

http://www.oracle.com/technetwork/middleware/fusion-middleware/downloads/index.html">>http://www.oracle.com/technetwork/middleware/fusion-middleware/downloads/index.html

For more information about locating and downloading Oracle Fusion Middleware products, see the Oracle Fusion Middleware Download, Installation, and Configuration Readme Files on OTN.

To obtain Oracle GoldenGate follow these steps:

  1. Go to Oracle Technology Network.

  2. Find the Oracle GoldenGate 12c (12.2.0.1) release and download the ZIP file onto your system.

2.3 Setting Library Paths for Dynamic Builds on UNIX

Oracle GoldenGate uses shared libraries. When you install Oracle GoldenGate on a UNIX system, and you will be running the GGSCI program outside the Oracle GoldenGate installation directory, the following must be done before you run GGSCI or any other Oracle GoldenGate process:

  • (Optional) Add the Oracle GoldenGate installation directory to the PATH environment variable.

  • (Required) Add the Oracle GoldenGate installation directory to the shared-libraries environment variable.

For example, given an Oracle GoldenGate installation directory of /users/ogg, the second command in the following example requires these variables to be set:

Table 2-1 Command Requiring Library Variable

Command Requires GG libraries in environment variable?

$ users/ogg > ./ggsci

No

$ users > ./ogg/ggsci

Yes


To set the variables in Korn shell:

PATH=installation_directory:$PATH
export PATH
shared_libraries_variable=absolute_path_of_installation_directory:$shared_libraries_variable
export shared_libraries_variable

To set the variables in Bourne shell:

export PATH=installation_directory:$PATH
export shared_libraries_variable=absolute_path_of_installation_directory:$shared_libraries_variable

To set the variables in C shell:

setenv PATH installation_directory:$PATH
setenv shared_libraries_variable absolute_path_of_installation_directory:$shared_libraries_variable

Where: shared libraries variable is one of the variables shown in Table 2-2:

Table 2-2 UNIX/Linux Library Path Variables Per Platform

PlatformFoot 1  Environment variable

IBM AIX

IBM z/OS

LIBPATH

HP-UX

SHLIB_PATH

Sun Solaris

HP Tru64 (OSF/1)

LINUX

LD_LIBRARY_PATHFoot 2 


Footnote 1 A specific platform may or may not be supported by Oracle GoldenGate for your database.

Footnote 2 In 64-bit environments with 32-bit Oracle databases, Oracle GoldenGate requires the LD_LIBRARY_PATH to include the 32-bit Oracle libraries.

Example

export LD_LIBRARY_PATH=/ggs/10.0:$LD_LIBRARY_PATH

Note:

To view the libraries that are required by an Oracle GoldenGate process, use the ldd goldengate_process shell command before starting the process. This command also shows an error message for any that are missing.

2.4 Preparing to Install Oracle GoldenGate within a Cluster

This topic covers the installation requirements that apply when Oracle GoldenGate will be installed in a cluster environment. Oracle GoldenGate can be used with any cluster-management solution that has the ability to automate failover.

2.4.1 Deciding Where to Install Oracle GoldenGate Binaries and Files in the Cluster

You will need to install at least some Oracle GoldenGate objects on shared storage. Select cluster-aware shared storage that is independent of, but available to, all nodes of the cluster. The best practice is the install Oracle GoldenGate entirely on shared storage. This allows you to start the Oracle GoldenGate processes from any of the nodes without having to make changes to the parameter files. If the active node fails, the processes can be started quickly on another node, using the processing checkpoints that are preserved in the installation directory.

If you decide to install the Oracle GoldenGate binaries and files on each node, rather than on shared storage, the following must be true:

  • The Oracle GoldenGate installation must have the same location path on every node.

  • At minimum, install the following directories on the shared storage to support Oracle GoldenGate recovery requirements. On UNIX or Linux, you can create symbolic links to them from the installation directory on each node.

    • dirchk

    • dirdat

These directories are among those created when you issue CREATE SUBDIRS during installation.

  • The parameter files in the dirprm directory, if not placed on the shared drive, must be identical on all nodes. To resolve environment settings that must be different from one node to the other, you can set environment settings so they are inherited from the local Manager process or reference a node-specific Oracle GoldenGate macro file. Because this scenario can be difficult to enforce, the inherent concerns can be avoided by storing the parameter files on the shared drive.

See also Section 2.7, "Integrating Oracle GoldenGate into a Cluster" after you install Oracle GoldenGate.

2.5 Installing Oracle GoldenGate on Linux and UNIX

Follow these steps to install Oracle GoldenGate for Oracle on a Linux or UNIX system or in the appropriate location in a cluster. See Section 2.4, "Preparing to Install Oracle GoldenGate within a Cluster" for more information.

  1. Extract the Oracle GoldenGate installation file to the system and directory where you want Oracle GoldenGate to be installed.

  2. Run the command shell.

  3. Change directories to the new Oracle GoldenGate directory.

  4. From the Oracle GoldenGate directory, run the GGSCI program.

    GGSCI
    
  5. In GGSCI, issue the following command to create the Oracle GoldenGate working directories.

    CREATE SUBDIRS
    
  6. Issue the following command to exit GGSCI.

    EXIT
    

2.6 Installing Oracle GoldenGate on Windows

Follow these steps to install Oracle GoldenGate for Oracle on a Windows system or in the appropriate location in a cluster. See Section 2.4, "Preparing to Install Oracle GoldenGate within a Cluster" for more information.

Section 2.6.1, "Installing Oracle GoldenGate into a Windows Cluster"

Section 2.6.2, "Installing the Oracle GoldenGate Files"

Section 2.6.3, "Specifying a custom Manager name"

Section 2.6.4, "Installing Manager as a Windows Service"

2.6.1 Installing Oracle GoldenGate into a Windows Cluster

To install Oracle GoldenGate into a Windows cluster:

  1. Log into one of the nodes in the Windows cluster.

  2. Choose a drive for the Oracle GoldenGate installation location. This drive must be a resource within the same Windows cluster group that contains the database instance.

  3. Ensure that this Windows cluster group is owned by the cluster node that you are logging into.

  4. Install Oracle GoldenGate according to the following instructions.

2.6.2 Installing the Oracle GoldenGate Files

To install the Oracle GoldenGate files:

  1. Unzip the downloaded file(s) by using WinZip or an equivalent compression product.

  2. Move the files in binary mode to a folder on the drive where you want to install Oracle GoldenGate. Do not install Oracle GoldenGate into a folder that contains spaces in its name, even if the path is in quotes. For example:

    C:\"Oracle GoldenGate " is not valid.

    C:\Oracle_GoldenGate is valid.

  3. From the Oracle GoldenGate folder, run the GGSCI program.

  4. In GGSCI, issue the following command to create the Oracle GoldenGate working directories.

    CREATE SUBDIRS
    
  5. Issue the following command to exit GGSCI.

    EXIT
    
  6. Install the TAM library into the root Oracle GoldenGate directory on the replication server. The TAM communicates with an Oracle GoldenGate API that is known as a Vendor Access Module, or VAM. The VAM passes transactional data changes to the Replicat process. For instructions on pairing the correct TAM version with your Teradata version, and for configuring the TAM for use with the Teradata database and Oracle GoldenGate, see the Teradata Replication Services Using Oracle GoldenGate documentation at http://www.info.teradata.com. In general, the TAM version should match the database version.

2.6.3 Specifying a custom Manager name

You must specify a custom name for the Manager process if either of the following is true:

  • You want to use a name for Manager other than the default of GGSMGR.

  • There will be multiple Manager processes running as Windows services on this system. Each Manager on a system must have a unique name. Before proceeding further, note the names of any local Manager services.

To specify a custom Manager name:

  1. From the directory that contains the Manager program, run GGSCI.

  2. Issue the following command.

    EDIT PARAMS ./GLOBALS
    

    Note:

    The ./ portion of this command must be used, because the GLOBALS file must reside at the root of the Oracle GoldenGate installation file.
  3. In the file, add the following line, where name is a one-word name for the Manager service.

    MGRSERVNAME name
    
  4. Save the file. The file is saved automatically with the name GLOBALS, without a file extension. Do not move this file. It is used during installation of the Windows service and during data processing.

2.6.4 Installing Manager as a Windows Service

By default, Manager is not installed as a service and can be run by a local or domain account. However, when run this way, Manager will stop when the user logs out. When you install Manager as a service, you can operate it independently of user connections, and you can configure it to start manually or at system start-up.

Installing Manager as a service is required on a Windows Cluster, but optional otherwise.

To install Manager as a Windows service:

  1. (Recommended) Log on as the system administrator.

  2. Click Start then Run and type cmd in the Run dialog box.

  3. From the directory that contains the Manager program that you are installing as a service, run the INSTALL utility with the following syntax:

    install option [...]
    

    Where: option is one of the following:

    Table 2-3 INSTALL Utility Options

    Option Description

    ADDEVENTS

    Adds Oracle GoldenGate events to the Windows Event Manager.

    ADDSERVICE

    Adds Manager as a service with the name that is specified with the MGRSERVNAME parameter in the GLOBALS file, if one exists, or by the default of GGSMGR. ADDSERVICE configures the service to run as the Local System account, the standard for most Windows applications because the service can be run independently of user logins and password changes. To run Manager as a specific account, use the USER and PASSWORD options.Foot 1 

    The service is installed to start at system boot time (see AUTOSTART ). To start it after installation, either reboot the system or start the service manually from the Services applet of the Control Panel.

    AUTOSTART

    Sets the service that is created with ADDSERVICE to start at system boot time. This is the default unless MANUALSTART is used.

    MANUALSTART

    Sets the service that is created with ADDSERVICE to start manually through GGSCI, a script, or the Services applet of the Control Panel. The default is AUTOSTART .

    USER name

    Specifies a domain user account that executes Manager. For the name, include the domain name, a backward slash, and the user name, for example HEADQT\GGSMGR .

    By default, the Manager service is installed to use the Local System account.

    PASSWORD password

    Specifies the password for the user that is specified with USER .


    Footnote 1 A user account can be changed by selecting the Properties action from the Services applet of the Windows Control Panel.

  4. If Windows User Account Control (UAC) is enabled, you are prompted to allow or deny the program access to the computer. Select Allow to enable the INSTALL utility to run.

    The INSTALL utility installs the Manager service with a local system account running with administrator privileges. No further UAC prompts will be encountered when running Manager if installed as a service.

Note:

If Manager is not installed as a service, Oracle GoldenGate users will receive a UAC prompt to confirm the elevation of privileges for Manager when it is started from the GGSCI command prompt. Running other Oracle GoldenGate programs also triggers a prompt.

2.7 Integrating Oracle GoldenGate into a Cluster

If you installed Oracle GoldenGate in a cluster, take the following steps to integrate Oracle GoldenGate within the cluster solution.

2.7.1 General Requirements in a Cluster

The general requirements for integrating Oracle GoldenGate into a cluster are:

  1. Register the Oracle GoldenGate Manager process (and only Manager) as a cluster-managed resource as you would any other application. Manager must be the only Oracle GoldenGate process that the cluster-management software starts and stops, because it is the parent process that manages all other processes.

  2. If the cluster uses a virtual IP address, you may need to obtain an available fixed IP address for the Manager process. The VIP must be an available IP address on the public subnet and cannot be determined through DHCP. Other Oracle GoldenGate products that access Manager also should use the VIP.

  3. When you configure Manager, add the AUTOSTART and AUTORESTART parameters so that Manager starts the replication processes automatically. You can, when needed, control Replicat, and other Oracle GoldenGate processes from within the Oracle GoldenGate user interfaces. For more information about these parameters, see Reference for Oracle GoldenGate for Windows and UNIX.

  4. Mount the shared drive on one node only. This prevents processes from being started on another node. Use the same mount point on all nodes.

  5. Configure Oracle GoldenGate as directed in this documentation.

2.7.2 Adding Oracle GoldenGate as a Windows Cluster Resource

When installing Oracle GoldenGate in a Windows cluster, follow these instructions to establish Oracle GoldenGate as a cluster resource and configure the Manager service correctly on all nodes.

  • In the cluster administrator, add the Manager process to the group that contains the database to which Oracle GoldenGate will connect.

  • Make sure all nodes on which Oracle GoldenGate will run are selected as possible owners of the resource.

  • Make certain the Manager Windows service has the following dependencies (configurable from the Services control panel):

    • The database resource

    • The disk resource that contains the Oracle GoldenGate directory

    • The disk resource that contains the database transaction log files

    • The disk resource that contains the database transaction log backup files