16
Author A.Kishore http://www.appsdba.info GoldenGate Tutorial 2 Installation (Oracle 11g on Linux) GoldenGate software is also available on OTN but for our platform we need to download the required software from the Oracle E-Delivery web site. Select the Product Pack “Oracle Fusion Middleware” and the platform Linux X86. Then select “Oracle GoldenGate on Oracle Media Pack for Linux x86and since we are installing this for an Oracle 11g database, we download “Oracle GoldenGate V10.4.0.x for Oracle 11g 32bit on RedHat 5.0″ http://edelivery.oracle.com

Author A.Kishore GoldenGate Tutorial 2 Installation ... – A.Kishore GoldenGate Tutorial 2 – Installation (Oracle 11g on Linux) GoldenGate software is also available on OTN but

  • Upload
    lamdieu

  • View
    234

  • Download
    5

Embed Size (px)

Citation preview

Page 1: Author A.Kishore GoldenGate Tutorial 2 Installation ... – A.Kishore GoldenGate Tutorial 2 – Installation (Oracle 11g on Linux) GoldenGate software is also available on OTN but

Author – A.Kishore

http://www.appsdba.info

GoldenGate Tutorial 2 – Installation (Oracle 11g on Linux)

GoldenGate software is also available on OTN but for our platform we need to download the required software from the Oracle E-Delivery web site.

Select the Product Pack “Oracle Fusion Middleware” and the platform Linux X86.

Then select “Oracle GoldenGate on Oracle Media Pack for Linux x86″ and since we are installing this for an Oracle 11g database, we download “Oracle GoldenGate V10.4.0.x for Oracle 11g 32bit on RedHat 5.0″

http://edelivery.oracle.com

Page 2: Author A.Kishore GoldenGate Tutorial 2 Installation ... – A.Kishore GoldenGate Tutorial 2 – Installation (Oracle 11g on Linux) GoldenGate software is also available on OTN but

Author – A.Kishore

http://www.appsdba.info

Software Required

linux_11gR2_database_1of2.zip linux_11gR2_database_2of2.zip

ggs_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

Page 3: Author A.Kishore GoldenGate Tutorial 2 Installation ... – A.Kishore GoldenGate Tutorial 2 – Installation (Oracle 11g on Linux) GoldenGate software is also available on OTN but

Author – A.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

Page 4: Author A.Kishore GoldenGate Tutorial 2 Installation ... – A.Kishore GoldenGate Tutorial 2 – Installation (Oracle 11g on Linux) GoldenGate software is also available on OTN but

Author – A.Kishore

http://www.appsdba.info

Page 5: Author A.Kishore GoldenGate Tutorial 2 Installation ... – A.Kishore GoldenGate Tutorial 2 – Installation (Oracle 11g on Linux) GoldenGate software is also available on OTN but

Author – A.Kishore

http://www.appsdba.info

Page 6: Author A.Kishore GoldenGate Tutorial 2 Installation ... – A.Kishore GoldenGate Tutorial 2 – Installation (Oracle 11g on Linux) GoldenGate software is also available on OTN but

Author – A.Kishore

http://www.appsdba.info

Page 7: Author A.Kishore GoldenGate Tutorial 2 Installation ... – A.Kishore GoldenGate Tutorial 2 – Installation (Oracle 11g on Linux) GoldenGate software is also available on OTN but

Author – A.Kishore

http://www.appsdba.info

Page 8: Author A.Kishore GoldenGate Tutorial 2 Installation ... – A.Kishore GoldenGate Tutorial 2 – Installation (Oracle 11g on Linux) GoldenGate software is also available on OTN but

Author – A.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

Page 9: Author A.Kishore GoldenGate Tutorial 2 Installation ... – A.Kishore GoldenGate Tutorial 2 – Installation (Oracle 11g on Linux) GoldenGate software is also available on OTN but

Author – A.Kishore

http://www.appsdba.info

Page 10: Author A.Kishore GoldenGate Tutorial 2 Installation ... – A.Kishore GoldenGate Tutorial 2 – Installation (Oracle 11g on Linux) GoldenGate software is also available on OTN but

Author – A.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

Page 11: Author A.Kishore GoldenGate Tutorial 2 Installation ... – A.Kishore GoldenGate Tutorial 2 – Installation (Oracle 11g on Linux) GoldenGate software is also available on OTN but

Author – A.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

Page 12: Author A.Kishore GoldenGate Tutorial 2 Installation ... – A.Kishore GoldenGate Tutorial 2 – Installation (Oracle 11g on Linux) GoldenGate software is also available on OTN but

Author – A.Kishore

http://www.appsdba.info

Run ggsci

ggsci

Page 13: Author A.Kishore GoldenGate Tutorial 2 Installation ... – A.Kishore GoldenGate Tutorial 2 – Installation (Oracle 11g on Linux) GoldenGate software is also available on OTN but

Author – A.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

Page 14: Author A.Kishore GoldenGate Tutorial 2 Installation ... – A.Kishore GoldenGate Tutorial 2 – Installation (Oracle 11g on Linux) GoldenGate software is also available on OTN but

Author – A.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

Page 15: Author A.Kishore GoldenGate Tutorial 2 Installation ... – A.Kishore GoldenGate Tutorial 2 – Installation (Oracle 11g on Linux) GoldenGate software is also available on OTN but

Author – A.Kishore

http://www.appsdba.info

Page 16: Author A.Kishore GoldenGate Tutorial 2 Installation ... – A.Kishore GoldenGate Tutorial 2 – Installation (Oracle 11g on Linux) GoldenGate software is also available on OTN but

Author – A.Kishore

http://www.appsdba.info

How to use help ?

We also need to enable supplemental logging at the database level otherwise 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