install golden gate 1

Upload: pradeep-siriwardana

Post on 06-Apr-2018

226 views

Category:

Documents


1 download

TRANSCRIPT

  • 8/3/2019 Install Golden Gate 1

    1/16

    AuthorA.Kishore

    http://www.appsdba.info

    GoldenGate Tutorial 2 Installation

    (Oracle 11g on Linux)

    GoldenGate software is also available on OTN but for our platform weneed to download the required software from theOracle E-Deliveryweb site.

    Select the Product Pack Oracle Fusion Middleware and the platformLinux X86.

    Then select Oracle GoldenGate on Oracle Media Pack for Linux x86and since we are installing this for an Oracle 11g database, wedownload Oracle GoldenGate V10.4.0.x for Oracle 11g 32bit on RedHat5.0

    http://edelivery.oracle.com

    http://edelivery.oracle.com/http://edelivery.oracle.com/http://edelivery.oracle.com/http://edelivery.oracle.com/http://edelivery.oracle.com/http://edelivery.oracle.com/
  • 8/3/2019 Install Golden Gate 1

    2/16

    AuthorA.Kishore

    http://www.appsdba.info

    Software Required

    linux_11gR2_database_1of2.ziplinux_11gR2_database_2of2.zipggs_Linux_x86_ora11g_32bit_v11_1_1_0_0_078.tar

    Source (hostname)

    > VMWARE 1.0.9

    > OEL 4.5

    > Oracle 11g R2

    > Golden Gate

  • 8/3/2019 Install Golden Gate 1

    3/16

    AuthorA.Kishore

    http://www.appsdba.info

    Install OEL 4 update 5 using VMWARE

    How to install VMWARE ?

    http://www.appsdba.info/docs/RAC/install/1_Install_VMWARE.pdf

  • 8/3/2019 Install Golden Gate 1

    4/16

    AuthorA.Kishore

    http://www.appsdba.info

  • 8/3/2019 Install Golden Gate 1

    5/16

    AuthorA.Kishore

    http://www.appsdba.info

  • 8/3/2019 Install Golden Gate 1

    6/16

    AuthorA.Kishore

    http://www.appsdba.info

  • 8/3/2019 Install Golden Gate 1

    7/16

    AuthorA.Kishore

    http://www.appsdba.info

  • 8/3/2019 Install Golden Gate 1

    8/16

    AuthorA.Kishore

    http://www.appsdba.info

    Install Operating System OEL4 udpate 5

    How to download OEL4 update 5

    http://www.appsdba.info/docs/oracle_apps/redhat/oel4.pdf

  • 8/3/2019 Install Golden Gate 1

    9/16

    AuthorA.Kishore

    http://www.appsdba.info

  • 8/3/2019 Install Golden Gate 1

    10/16

    AuthorA.Kishore

    http://www.appsdba.info

    Install the missing packages

    rpm -Uvh elfutils-libelf-devel-0.97.1-4.i386.rpm

    rpm -Uvh elfutils-devel-0.97.1-4.i386.rpm

    rpm -Uvh unixODBC-2.2.11-1.RHEL4.1.i386.rpm

    rpm -Uvh unixODBC-devel-2.2.11-1.RHEL4.1.i386.rpm

    rpm -Uvh libaio-0.3.105-2.i386.rpm

  • 8/3/2019 Install Golden Gate 1

    11/16

    AuthorA.Kishore

    http://www.appsdba.info

    Create 11g database

    Extract Golden Gate software

    su

    oragate

    tar -xvf ggs_Linux_x86_ora11g_32bit_v11_1_1_0_0_078.tar

    Make the below entries in .bash_profile

  • 8/3/2019 Install Golden Gate 1

    12/16

    AuthorA.Kishore

    http://www.appsdba.info

    Run ggsci

    ggsci

  • 8/3/2019 Install Golden Gate 1

    13/16

    AuthorA.Kishore

    http://www.appsdba.info

    We then need to create a database user which will be used by the GoldenGate Manager, Extract and

    Replicat processes. We can create individual users for each process or configure just a common user in

    our case we will create the one user GGS_OWNER and grant it the required privileges.

    SQL> create tablespace ggs_data datafile

    '/home/oragate/app/oragate/oradata/source/ggs_data01.dbf' size 200m;

    SQL> create user ggs_owner identified by ggs_owner default tablespace ggs_data temporary tablespace

    temp;

    User created.

    SQL> grant connect,resource to ggs_owner;

    Grant succeeded.

    SQL> grant select any dictionary, select any table to ggs_owner;

    Grant succeeded.

    SQL> grant create table to ggs_owner;

    Grant succeeded.

    SQL> grant flashback any table to ggs_owner;

    Grant succeeded.

    SQL> grant execute on dbms_flashback to ggs_owner;

    Grant succeeded.

    SQL> grant execute on utl_file to ggs_owner;

    Grant succeeded.

    We can then confirm that the GoldenGate user we have just created is able to connect to the Oracle

    database

    Convert the database to archive log

  • 8/3/2019 Install Golden Gate 1

    14/16

    AuthorA.Kishore

    http://www.appsdba.info

    We can then confirm that the GoldenGate user we have just created is

    able to connect to the Oracle database

    $ ggsci

  • 8/3/2019 Install Golden Gate 1

    15/16

    AuthorA.Kishore

    http://www.appsdba.info

  • 8/3/2019 Install Golden Gate 1

    16/16

    AuthorA.Kishore

    http://www.appsdba.info

    How to use help ?

    We also need to enable supplemental logging at the database levelotherwise we will get this error when we try to start the Extract process

    -SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;

    SQL> SELECT SUPPLEMENTAL_LOG_DATA_MIN FROM V$DATABASE;

    SUPPLEME

    YES