Installing Oracle GoldenGate Veridata and/or Monitor 12c (version 12.1.3)


Options



Before You Begin

Purpose

This document walks through the installation process used for creating the Oracle GoldenGate (OGG) Veridata and Monitor Fusion Middleware (FMW)12.1.3 demo VM. First, we start with some public resources that includes where to download what. Then we show the four commands used to install everything for this release (not including the pre-installed OS and the databases.) Next we show the screen shots of all of the Oracle Universal Installer (OUI) steps. Finally, in the last section, there is a more detailed view of which files need to be edited, what settings to use, and how to start everything.

Time to Complete

Approximately 1 hour

Background

Scenario

For proof-of-concept, you will install everything on one host. In real life, it would likely be three or four separate hosts: source database, target database, and the repository database with WebLogic Server installed.

Context

After completing this OBE, you might want to take more GoldenGate training and/or more WebLogic training.

What Do You Need?

  • Linux
  • Oracle Database 12c (for the repository)
  • Java 1.7 or higher, located here and/or here
  • Documentation, located here
  • OGG Software, located here

Install and Configure the Back End

It is just four things (plus JDK 1.7 and preferably an Oracle Database). After this you move to a few small steps in configuring the agents and optionally a couple of things for Monitor Server.

  1. WebLogic Server + Infrastructure file needed for OGG. Yes, this includes WebLogic Server 12.1.3. Or you can use it to install just the infrastructure (formerly known as JRF) files on top of an existing 12.1.3 WLS install. Invoke this by using the command:
    java -jar fmw_12.1.3.0.0_infrastructure.jar

  2. OGG Veridata Server + Veridata Agent + Monitor Server + Monitor Agent. It is one big jar file, and works on all supported platforms except NonStop. Choose any combination you want. For this tutorial, the choice was "complete" to get everything installed in one pass. Invoke this by using the command:
    java -jar fmw_12.1.3.0.0_ogg.jar

  3. Run the Repository Creation Utility (RCU). It gets installed as part of the WLS+JRF install above. You can run it once for all products (WLS, Veridata, and Monitor.) The location in this demo (and the sample VM) is:
    /u01/app/oracle/product/wls/oracle_common/bin/rcu

  4. Configure WLS, Veridata, and Monitor domains. You can run this once for all products. Invoke this by using the command:
    /u01/app/oracle/product/wls/oracle_common/common/bin/config.sh

  5. When everything is all completed and all servers have been started, you should see this:

    About
    Description of this image

    There may be a later patch version by the time you run this tutorial.

Installing FMW Infrastructure

Notice that this installs both WebLogic Server (WLS) and the Oracle Fusion Middleware (FMW) Infrastructure.

  1. Open a terminal session. Invoke the installer by entering:
    java –jar fmw_12.1.3.0.0_infrastructure.jar

    FMW Step 1 of 7
    Description of this image

    Click to continue.

  2. Enter a location for Oracle Home to store the binary files.

    FMW Step 2 of 7
    Description of this image

    Click to continue.

  3. Select either installation type, with or without examples. Notice at the bottom that WLS is going to be installed.

    FMW Step 3 of 8
    Description of this image

    Click to continue.

  4. Wait for the progress bar to reach 100%. The minimum Java version that it is looking for is greater than 1.7.

    FMW Step 4 of 8
    Description of this image

    Click to continue.

  5. If you want to enter your email, you may. Otherwise, accept the warning that it is blank.

    FMW Step 5 of 8
    Description of this image

    Click to close the warning. Click to continue.

  6. There is nothing to do on this panel, just accept the defaults.

    FMW Step 6 of 8
    Description of this image

    Click to continue.

  7. Wait for the progress bar to reach 100%. You can optionally view the logs.

    FMW Step 7 of 8
    Description of this image

    Click to continue.

  8. There is nothing to do on this panel, just accept the defaults.

    FMW Step 8 of 8
    Description of this image

    Click to continue.

Installing Veridata and Monitor

Notice that this Installer has the option to install either Oracle GoldenGate Veridata and/or the Oracle GoldenGate Monitor. This tutorial will choose to install both.

  1. Open a terminal session. Invoke the installer by entering:
    java -jar fmw_12.1.3.0.0_ogg.jar

    Splash
    Description of this image

    The splash screen will go away by itself when the progress bar reaches 100%.

  2. There is a patch available for at least version 12.1.3.0.3. See My Oracle Support for information on how to download and install the patch after installing this base code.

    OGG Step 1 of 7
    Description of this image

    Click to continue.

  3. Enter the same Oracle Home you entered in the previous section, step 2.

    OGG Step 2 of 7
    Description of this image

    Click to continue.

  4. Select which pieces of Oracle GoldenGate you would like to install, or select Complete install to get them all.

    OGG Step 3 of 7
    Description of this image

    Click to continue.

  5. Wait for the progress bar to reach 100%. The minimum Java version that it is looking for is greater than 1.7.

    OGG Step 4 of 7
    Description of this image

    Click to continue.

  6. There is nothing to do on this panel, just accept the defaults.

    OGG Step 5 of 7
    Description of this image

    Click to continue.

  7. Wait for the progress bar to reach 100%. You can optionally view the logs.

    OGG Step 6 of 7
    Description of this image

    Click to continue.

  8. There is nothing to do on this panel, just accept the defaults.

    OGG Step 7 of 7
    Description of this image

    Notice it tells you that the next steps are to run RCU and then to run Configuration Wizard. Click to continue.

Configuring RCU

The Repository Creation Utility (RCU) presumes that you have already installed a compatible database to house the repository. This example will assume that it is an Oracle 12c Database.

  1. Open a terminal session. Invoke the RCU by entering:
    /u01/app/oracle/product/wls/oracle_common/bin/rcu

    RCU Step 0 of 7
    Description of this image

    Click to continue.

  2. The default is Create Repository with System Load and Product Load.

    RCU Step 1 of 7
    Description of this image

    Click to continue.

  3. Enter the appropriate information to log in to your database with full privileges.

    RCU Step 2 of 7
    Description of this image

    Click to dismiss Checking Prerequisites. Click to continue.

  4. If this is the first time you have run RCU, then the only option is to create a new prefix. If you have run RCU in the past, then it will increment the new prefix to be one more than the last existing one, for example, DEV2 or DEV3. You can override the suggestion.

    Select Oracle GoldenGate, Veridata Repository.

    RCU Step 3 of 7
    Description of this image

    Click to dismiss Checking Prerequisites. Click to continue.

  5. Enter the same password twice. Many of the sample VM databases use oracle (all lower case) as the default password for all schemas.

    RCU Step 4 of 7
    Description of this image

    Click to continue.

  6. Accept the default tablespace allocations.

    RCU Step 5a of 7
    Description of this image

    Click on the Confirmation.

  7. (same screen)

    RCU Step 5b of 7
    Description of this image

    Click to dismiss Creating Tablespaces. Click to continue.

  8. There is nothing to do on this panel, just accept the defaults.

    RCU Step 6 of 7
    Description of this image

    Click to continue.

  9. There is nothing to do on this panel, just accept the defaults. You can optionally view the logs.

    RCU Step 7 of 7
    Description of this image

    Click to continue.

Creating the Domain

The Configuration Wizard can either create a new domain or extend an existing domain. This example will assume you are creating a new domain.

  1. Open a terminal session. Invoke the Configuration wizard by entering
    /u01/app/oracle/product/wls/oracle_common/common/bin/config.sh

    WLS Page 2 of 8
    Description of this image

    Stay on this screen. Notice that Basic WebLogic Server Domain is pre-selected.

  2. Select Veridata Standard Server Domain and optionally OGG Monitor Server. This will cause additional options to be selected automatically. If Oracle JRF is not auto-selected, then you did not install the Infrastructure correctly.

    WLS Page 2 of 11
    Description of this image

    Notice the title bar "page x of 8" has changed to "page x of 11." It may change again! Click to continue.

  3. Enter the same password twice. Complexity rules require a number or special character in the password. The sample VM uses weblogic1. Note the difference between the lowercase L in the middle and the numeral one at the end.

    WLS Page 3 of 13
    Description of this image

    Click to continue.

  4. If you plan to use localhost/127.0.0.1 as the host name/address, you must select Development. In production you would not use localhost, but would use the real host name/address.

    WLS Page 4 of 13
    Description of this image

    Click to continue.

  5. Fill in the Service, Host Name, Port, Schema, and Password. Click to continue.

    WLS Page 5 of 13
    Description of this image

    Click to continue.

  6. Verify that the host names and passwords are all filled in.

    WLS Page 6 of 13
    Description of this image

    Click to continue.

  7. The "Test Select Connection" happens automatically. Looking in the result log, make sure all six are successful.

    WLS Page 7 of 13
    Description of this image

    Click to continue.

  8. This is only for OGG Monitor, not Veridata. Only passwords matter here. These are the passwords stored in the Monitor Server Oracle Wallet. Do not use pw_server.sh to reset. Use the wlst utility instead. These user names will be overridden in the monitor.properties file.

    WLS Page 8 of 13
    Description of this image

    Click to continue.

  9. Enter the password.

    WLS Page 9 of 13
    Description of this image

    Click to continue.

  10. Do not select any of the advanced options. (This is where you might configure clusters of servers if you needed to guarantee high availability using multiple hosts.)

    WLS Page 10 of 13
    Description of this image

    Click to continue.

  11. There is nothing to do on this page. (It may be of interest to see where the Veridata server application is deployed. If you used clusters, you would deploy the application to the cluster, not to any one server.)

    WLS Page 11 of 13
    Description of this image

    Click to continue.

  12. When the progress bar reaches 100%, it should say, "Domain Created Successfully!"

    WLS Page 12 of 13
    Description of this image

    Click to continue.

  13. Note the URLs to use from a web browser to reach the WebLogic Administration Console. Often there are two: an http URL which is insecure, and an https URL which uses SSL for increased security.

    WLS Page 13 of 13
    Description of this image

    Click to continue.

Deploy Agents

It is presumed that the database is already installed and configured. It is presumed that the software distribution files have been downloaded and unzipped.

  1. This is the script used to Install the FMW software.

    
    ##########################################################
    # Install
    ##########################################################
    # WebLog Server + Infrastructure files needed for OGG.
    java -jar fmw_12.1.3.0.0_infrastructure.jar
    # OGG Veridata + agent + Monitor + agent.
    java -jar fmw_12.1.3.0.0_ogg.jar
    # Repository Creation Utility; can run once for all products.
    /u01/app/oracle/product/wls/oracle_common/bin/rcu
    
  2. This is the script used to configure the FMW software.

    
    ##########################################################
    # Configure
    ##########################################################
    
    ##########
    # All
    ##########
    # Configure WLS, Veridata, and Monitor; can run once for all products.
    /u01/app/oracle/product/wls/oracle_common/common/bin/config.sh
    
    ##########
    # Veridata
    ##########
    # Veridata agents. Can run from anywhere, give destination as argument.
    /u01/app/oracle/product/wls/veridata/agent/agent_config.sh  /u01/ogg/agents/veridata/agent1
    # Should return, "Successfully deployed the agent."
    
  3. These are the changes made to the agent.properties file.

    
    cd /u01/ogg/agents/veridata/agent1
    cp agent.proerties.sample  agent.properties
    gedit agent.properties
    server.port=7850
    database.url=jdbc:oracle:thin:@//localhost:1521:orcl
    server.driversLocation=/u01/app/oracle/product/12.1.0/dbhome_1/jdbc/lib
    server.jdbcDriver=odbc7.jar
    

    No changes are needed to the veridata.cfg file.

  4. These are the changes needed for deploying Monitor, one for each OGG installation.

    
    cd /u01/app/oracle.product/wls/oggmon/ogg_agent
    ./create_ogg_agent_instance.sh
    Please enter absolute path of Oracle GoldenGate home directory: /u01/ogg/replication/oggcore1
    Please enter absolute path of OGG Agent instance: /u01/ogg/agents/oggmon/agent1
    Successfully created OGG Agent instance.
    
    ./create_ogg_agent_instance.sh
    Please enter absolute path of Oracle GoldenGate home directory: /u01/ogg/replication/oggcore2
    Please enter absolute path of OGG Agent instance: /u01/ogg/agents/oggmon/agent2
    Successfully created OGG Agent instance.
    
  5. These are the changes to the Config.properties file for Monitor.

    
    gedit /u01/ogg/agents/oggmon/agent1/cfg/Config.properties
    gedit /u01/ogg/agents/oggmon/agent2/cfg/Config.properties
    diff  /u01/ogg/agents/oggmon/agent1/cfg/Config.properties  /u01/ogg/agents/oggmon/agent2/cfg/Config.properties
    < jagent.host=localhost
    > jagent.host=127.0.0.1
    < jagent.jmx.port=5555
    > jagent.jmx.port=5655
    < jagent.rmi.port=5559
    > jagent.rmi.port=5560
    
  6. Setup Oracle Wallet for Monitor Agents.

    
    /u01/ogg/agents/oggmon/agent1/bin/pw_agent_util.sh -create
    /u01/ogg/agents/oggmon/agent2/bin/pw_agent_util.sh -create
    Please create a password for java Agent: oracle
    Please confirm password for java Agent: oracle
    Please enter Monitor Server JMX password: oracle
    Please confirm Monitor Server JMX password: oracle
    Wallet created successfully.
    
  7. These are the changes to the monitor.properties file for Monitor.

    
    diff  /u01/app/oracle/product/wls/ogg_domain/config/monitorserver/cfg/monitor.properties  /u01/app/oracle/product/wls/ogg_domain/config/monitorserver/cfg/monitor.properties.orig
    < monitor.smtp.from=Oracle GoldenGate Monitor <oracle@localhost>
    > monitor.smtp.from=Oracle GoldenGate Monitor <> 
    < monitor.smtp.host=localhost
    > monitor.smtp.host=
    < monitor.smtp.alerts.enabled=true
    > monitor.smtp.alerts.enabled=false
    < monitor.snmp.alerts.enabled=true
    > monitor.snmp.alerts.enabled=false
    < monitor.cli.alerts.enabled=true
    > monitor.cli.alerts.enabled=false
    
  8. All scripts are cerate in the Desktop/ directory purely for convenience.

    
    # Start WLS
    /u01/app/oracle/product/wls/ogg_domain/startWebLogic.sh
    
    
    # Start Veridata Server + Agent
    # Server only
    /u01/app/oracle/product/wls/ogg_domain/veridata/bin/veridataServer.sh start
    # Agent only
    /u01/ogg/agents/veridata/agent1/agent.sh start
    
    
    # Start Monitor Server
    /u01/app/oracle/product/wls/ogg_domain/startManagedWebLogic.sh MONITORSERVER_server1
    http://localhost:7001
    
    
    # Start Monitor Agents
    ggsci> start jagent
    echo "start jagent" | $OGG_HOME/ggsci
    echo "start jagent" | $OGG_HOME2/ggsci
    

Want to Learn More?

Credits

  • Lead Curriculum Developer: Joe deBuzna

  • Other Contributors: Steve Friedberg