Boost PC performance: How more available memory can improve productivity
Oracle goldengate and RAC12c
1. Presented by
Siraj Ahmed – Database Expert Team Lead
Sejel Technology
Date 29-Sep-2016
Time 9:00am – 4:00pm
City Jeddah
Venue Intercontinental Hotel
2. • RAC (Real Application Cluster)
• Integration of RAC with GG 12cIntegration of RAC with GG 12c
• ASM Cluster File System (ACFS)ASM Cluster File System (ACFS)
• Install and Configure ACFSInstall and Configure ACFS
• Install Oracle Golden GateInstall Oracle Golden Gate
• Application VIPApplication VIP
• Install the Oracle Grid Infrastructure
Bundled Agent
• Register Goldengate with the bundled
agents
• Stop/start Goldengate on one Node
• Testing RAC node down
3. • Oracle Real Application Clusters (Oracle RAC) enables multiple
instances that are linked by an interconnect to share access to an
Oracle database.
• In an Oracle RAC environment, Oracle Database runs on two or
more systems in a cluster while concurrently accessing a single
shared database.
• Oracle Clusterware enables servers to communicate with each
other, so that they appear to function as a collective unit.
RAC (Real Application Cluster)
4. • ASM Cluster File System (ACFS).
• OGG Installation
• Create the Application VIP.
• Download and install the Oracle Grid Infrastructure Bundled
Agent.
• Register Goldengate with the bundled agents using agctl utility.
• GoldenGate on RAC References
• Conclusion
Integration of RAC with GG 12c
4
5. ASM Cluster File System (ACFS)
5
CREATING ORACLE ASM CLUSTER FILE SYSTEMS (ACFS) ON RAC/EXADATA.
Oracle ASM Cluster File System (ACFS) is a general purpose cluster file system
implemented as part of ASM. It can be used to store almost anything, including the
database executables.
OGG v12 installation in an RAC environment requires a shared file system. It is
mandatory to have a shared filesystem. The preferred way of configuring/creating a
shared file system is, using the DBFS, NFS or ACFS.
Lets process proceed with the ACFS option.
Create and configure Oracle ACFS precisely the same on Exadata and non-Exadata
environments.
Launch the (./asmca) ASMCA tool from one of the nodes to create a volume group
(VG) and subsequently ACFS.
6. Install and Configure ACFS
There are typically three disk groups are already created and mounted after the basic
configuration on Exadata, shown in the following screen shot:
(1) DATAC1 (2) RECOC1 (3) DBFS_DG.
Use the DBFS_DG disk group to create the Volume and ACFS.
Click the Create button to create a new Volume
7. Install and Configure ACFS
Input the required
values: Name, Disk
group, Size and click
on OK button to
complete.
8. Install and Configure ACFS
Once the Volume is created, create an ACFS. The subsequent screenshots demonstrates the method to create the ACFS:
Go to the ASM Cluster File Systems tab and click on Create button.
10. Click ok to complete the installation
Install and Configure ACFS
Input the appropriate values: FS type, user, group, Auto Mount enable etc.
11. Install Oracle GoldenGate
11
Downloaded the Oracle Golden Gate v12.1.2.0.0 from Oracle’s eDelivery site and start
over the installation procedure. Installation procedure demonstrated in the below
screen shots:
Choose the appropriate Oracle Database version for this Golden Gate installation.
12. Install Oracle GoldenGate
12
• Input the Software Location (must be a shared location, otherwise, your installation
you will not start).
• Port 7809 is the default port OGG manager process.
• When Start Manager option is enabled, the manager process will be automatically
started.
Click the Next button, review the Installation Summary.
15. Create an application VIP.
The VIP will be used to access Oracle GoldenGate.
Run the appvipcfg command to create the Application VIP as below.
$GRID_HOME/bin/appvipcfg create -network=1 -ip= 192.168.66.20
-vipname=gg_vip_source -user=root
Assign an IP address to the Application VIP.
Run following command to identify the value we use for the network parameter as
well as the subnet for the VIP.
$ crsctl stat res -p |grep -ie .network -ie subnet |grep -ie name -ie subnet
NAME=ora.net1.network
USR_ORA_SUBNET=192.168.66.0
Application VIP
15
16. Now allow the oracle clusterware owner to run the script to start the VIP.
$GRID_HOME/bin/crsctl setperm resource gg_vip_source -u user:oracle:r-x
As the Oracle database software owner start the VIP
$GRID_HOME/bin/crsctl start resource gg_vip_source
Verify the status of the Application VIP
$GRID_HOME/bin/crsctl status resource gg_vip_source
$ ping 192.168.66.20
PING 192.168.66.20 (192.168.66.20) 56(84) bytes of data.
64 bytes from 192.168.66.20: icmp_seq=1 ttl=64 time=2.29 ms
64 bytes from 192.168.66.20: icmp_seq=2 ttl=64 time=0.389 ms
Application VIP
16
17. •The bundled agent for Goldengate provides integration between Oracle Goldengate and
dependent resources like the database, filesystem and the network.
•The AGCTL agent command line utility can be used to start and stop Goldengate.
•There is an xag/bin directory with the agctl executable already existing in the $GRID_HOME
root directory.
•Need to install the new bundled agent in a separate directory.
Download bundle agent>> http://www.oracle.com/technetwork/database/database-
technologies/clusterware/downloads/index.html
Install the Oracle Grid Infrastructure Bundled Agent
17
18. Register Goldengate with the bundled agents
18
•Register Goldengate with the bundled agents using agctl utility
•Ensure that running agctl from the downloaded bundled agent directory and not from the
$GRID_HOME/xag/bin directory or ensure that the $PATH variable has been amended as
described earlier.
•/home/oracle/xagent/bin/agctl add goldengate gg_source --gg_home
/u01/app/oracle/goldengate
19. Register Goldengate with the bundled agents
19
Use ‘agctl’ to start and stop Goldengate processes.
The agctl command will start the Manager process with other processes like Extract, Data
Pump and Replicat.
Check the Status –currently on node rac2
$ pwd
/home/oracle/xagent/bin
$ ./agctl status goldengate gg_source
Goldengate instance 'gg_source' is running on rac2
20. Stop the Goldengate environment
$ ./agctl stop goldengate gg_source
$ ./agctl status goldengate gg_source
Goldengate instance ' gg_source ' is not running
GGSCI (rac2.localdomain) 1> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER STOPPED
EXTRACT STOPPED EXT1 00:00:03 00:01:19
EXTRACT STOPPED EXTDP1 00:00:00 00:01:18
Start the Goldengate environment – note the resource has relocated to node rac1 from rac2
and the Goldengate processes on rac2 have been stopped and started on node rac1.
Stop/start Goldengate on one Node
20
21. $ ./agctl start goldengate gg_source
$ ./agctl status goldengate gg_source
Goldengate instance 'gg_source' is running on rac1
GGSCI (rac2.localdomain) 2> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER STOPPED
GGSCI (rac1.localdomain) 1> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
EXTRACT RUNNING EXT1 00:00:09 00:00:06
EXTRACT RUNNING EXTDP1 00:00:00 00:05:22
Stop/start Goldengate on one Node
21
22. Testing RAC node down
22
[root@rac1 ~]# shutdown -h now
Broadcast message from oracle@rac1.localdomain
[root@rac1 ~]# (/dev/pts/0) at 15:25 ...
The system is going down for halt NOW!
Connect to the surviving node rac2 and check ……
[oracle@rac2 bin]$ ./agctl status goldengate gg_source
Goldengate instance 'gg_source' is running on rac2
GGSCI (rac2.localdomain) 1> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
EXTRACT RUNNING EXT1 00:00:07 00:00:02
EXTRACT RUNNING EXTDP1 00:00:00 00:00:08