RAC环境下配置OGG同步


在本文中,介绍了rac环境下配置ogg的单向同步;在配置过程中,2节点的rac数据库做为source端,单实例的数据库作为target端,下面是具体的环境介绍!
source端:
操作系统版本:rhel5.4 64bit
数据库版本:11.2.0.3 64bit
ogg版本:fbo_ggs_Linux_x64_ora10g_64bit.tar
rac数据库名:rac.yang.com
public ip:192.168.1.41/24,192.168.1.42/24
private ip:192.168.122.41/24,192.168.122.42/24
vip:192.168.1.141/24,192.168.1.142/24
scan名:rac-scan.yang.com
scan-ip:192.168.1.144/24,192.168.1.145/24,192.168.1.146/24

target端:
操作系统版本:rhel5.4 64bit
数据库版本:11.2.0.3 64bit
ogg版本:fbo_ggs_Linux_x64_ora10g_64bit.tar
数据库名:dg3.yang.com
ip:192.168.1.63/24

一:首先在两个rac节点上配置ASM动态注册,11g的监听器引入了endpoints_listener.ora文件管理

  1. [grid@rac1 rac1]$ srvctl status listener  
  2. Listener LISTENER is enabled  
  3. Listener LISTENER is running on node(s): rac2,rac1  
  4.  
  5. [grid@rac1 rac1]$ lsnrctl services  
  6. LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 11-JUL-2012 21:09:20  
  7. Copyright (c) 1991, 2011, Oracle.  All rights reserved.  
  8.  
  9. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))  
  10. Services Summary...  
  11. Service "+ASM" has 1 instance(s).  
  12.   Instance "+ASM1", status READY, has 1 handler(s) for this service...  
  13.     Handler(s):  
  14.       "DEDICATED" established:0 refused:0 state:ready  
  15.          LOCAL SERVER  
  16. Service "rac.yang.com" has 1 instance(s).  
  17.   Instance "rac1", status READY, has 1 handler(s) for this service...  
  18.     Handler(s):  
  19.       "DEDICATED" established:0 refused:0 state:ready  
  20.          LOCAL SERVER  
  21. Service "racXDB.yang.com" has 1 instance(s).  
  22.   Instance "rac1", status READY, has 1 handler(s) for this service...  
  23.     Handler(s):  
  24.       "D000" established:0 refused:0 current:0 max:1022 state:ready  
  25.          DISPATCHER <machine: rac1.yang.com, pid: 5183> 
  26.          (ADDRESS=(PROTOCOL=tcp)(HOST=rac1.yang.com)(PORT=63054))  
  27. The command completed successfully  
  28.  
  29. [grid@rac1 rac1]$ cat $TNS_ADMIN/listener.ora  
  30. LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))))            # line added by Agent  
  31. LISTENER_SCAN3=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3))))  # line added by Agent  
  32. LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2))))  # line added by Agent  
  33. LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1))))  # line added by Agent  
  34. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON                # line added by Agent  
  35. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON                # line added by Agent  
  36. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN3=ON                # line added by Agent  
  37. ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON              # line added by Agent  
  38.  
  39. [grid@rac1 rac1]$ cat /u01/app/11.2.0/grid/network/admin/endpoints_listener.ora   
  40. LISTENER_RAC1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)  (HOST=192.168.1.41)(PORT=1521)(IP=FIRST))))              # line added by Agent  
  41.  
  42. [grid@rac1 rac1]$ tail -8  $TNS_ADMIN/listener.ora  
  43. SID_LIST_LISTENER =  
  44. (SID_LIST =  
  45.  (SID_DESC =  
  46.   (GLOBAL_DBNAME = +ASM)  
  47.   (ORACLE_HOME=/u01/app/11.2.0/grid)  
  48.   (SID_NAME = +ASM1)  
  49.  )  
  50. )  
  51.  
  52. [grid@rac2 ~]$ tail -8  $TNS_ADMIN/listener.ora  
  53. SID_LIST_LISTENER =  
  54. (SID_LIST =  
  55.  (SID_DESC =  
  56.   (GLOBAL_DBNAME = +ASM)  
  57.   (ORACLE_HOME=/u01/app/11.2.0/grid)  
  58.   (SID_NAME = +ASM2)  
  59.  )  
  60. )  
  61.  
  62. [oracle@rac1 ~]$ sqlplus sys/123456@192.168.1.41:1521/+ASM as sysdba  
  63. SQL*Plus: Release 11.2.0.3.0 Production on Wed Jul 11 21:31:30 2012  
  64. Copyright (c) 1982, 2011, Oracle.  All rights reserved.  
  65.  
  66. Connected to:  
  67. Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production  
  68. With the Real Application Clusters and Automatic Storage Management options  
  69.  
  70. SQL> show parameter name;  
  71.  
  72. NAME                                 TYPE        VALUE  
  73. ------------------------------------ ----------- ------------------------------  
  74. db_unique_name                       string      +ASM  
  75. instance_name                        string      +ASM1  
  76. lock_name_space                      string  
  77. service_names                        string      +ASM  
  78. SQL> conn sys/123456@192.168.1.42:1521/+ASM as sysdba  
  79. Connected.  
  80. SQL> show parameter name;  
  81.  
  82. NAME                                 TYPE        VALUE  
  83. ------------------------------------ ----------- ------------------------------  
  84. db_unique_name                       string      +ASM  
  85. instance_name                        string      +ASM2  
  86. lock_name_space                      string  
  87. service_names                        string      +ASM  
  88.  
  89. [oracle@rac1 admin]$ cat tnsnames.ora //节点2的tnsnames.ora文件做相应的配置  
  90. RAC =  
  91.   (DESCRIPTION =  
  92.     (ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 1521))  
  93.     (CONNECT_DATA =  
  94.       (SERVER = DEDICATED)  
  95.       (SERVICE_NAME = rac.yang.com)  
  96.     )  
  97.   )  
  98.  
  99. ASM =  
  100.  (DESCRIPTION =  
  101.     (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.41)(PORT = 1521))  
  102.     (CONNECT_DATA =  
  103.       (SERVER = DEDICATED)  
  104.       (SERVICE_NAME = +ASM)  
  105.       (SID_NAME = +ASM1)  
  106.     )  
  107.   ) 
  • 1
  • 2
  • 3
  • 4
  • 下一页

相关内容