Home > Database > Mysql Tutorial > body text

RAC环境下管理OGG-HA

WBOY
Release: 2016-06-07 17:40:10
Original
975 people have browsed it

在本文中将介绍在oracle11gr2rac环境下使用gridinfrastructure来管理ogg服务,在开始之前,请先按照前文的步骤配置好rac(source)同单实例(target)数据库之间的

在本文中将介绍在oracle 11g r2 rac环境下使用grid infrastructure来管理ogg服务,在开始之前,请先按照前文的步骤配置好rac(source)同单实例(target)数据库之间的ogg单向同步,同时确保rac数据库各项服务运行正常,同时启动target端的数据库实例和ogg的mgr,replicat进程,美国服务器,source端ogg的mgr,extract,extract dump进程可以关闭!

一:查看rac各服务是否online,这里3个gsd服务offline属于正常情况!

二:在source端添加VIP,并赋权限,检查vip是否能正常启动,网站空间,在本例中运行grid infrastructure的操作系统用户为grid,香港服务器,运行ogg的操作系统用户为oracle

三:配置action脚本,该脚本必须包含start,stop,check,clean,abort几个函数,才能用于后续的grid infrastructure调用,这里把脚本直接放在acfs文件系统上,以便节点间共享

四:使用oracle用户添加oggapp,并授权给oracle用户管理

五:检查target端的数据库是否可以正常连接,ogg进程是否运行正常

六:检查source端的数据库是否可以正常连接,ogg进程未启动

七:使用oracle用户启动oggapp resource,检查source(rac1)上的ogg进程是否成功启动

八:测试failover

九:排错与停止oggapp服务,view report testpump查看日志报错如下

2012-07-18 21:05:59  ERROR   OGG-01031  There is a problem in network communication, a remote file problem, encryption keys for target and source do not match (if using ENCRYPT) or an unknown error.(Reply received is Unable to open file "/vol2/ogg/dirdat/rt000001" (error 11, Resource temporarily unavailable)).

2012-07-18 21:05:59  ERROR   OGG-01668  PROCESS ABENDING.
GGSCI (rac2.yang.com) 15> alter extract testpump etrollover

2012-07-18 21:20:40  INFO    OGG-01520  Rollover performed.  For each affected output trail of Version 10 or higher format, after starting the source extract, issue ALTER EXTSEQNO for that trail's reader (either pump EXTRACT or REPLICAT) to move the reader's scan to the new trail file;  it will not happen automatically.
EXTRACT altered.

GGSCI (rac2.yang.com) 18> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt
MANAGER     RUNNING                                          
EXTRACT     RUNNING     TESTEXT     00:00:00      00:00:00   
EXTRACT     RUNNING     TESTPUMP    00:00:00      00:00:10  

[oracle@rac2 ogg]$ crsctl stop resource oggapp
CRS-2673: Attempting to stop 'oggapp' on 'rac2'
CRS-2677: Stop of 'oggapp' on 'rac2' succeeded

[oracle@rac2 ogg]$ crsctl status resource oggapp
NAME=oggapp
TYPE=cluster_resource
TARGET=OFFLINE
STATE=OFFLINE

如果停止使用grid infrastructure来管理ogg进程,只需要使用crsctl命令删除oggapp和oggvip服务即可!需要值得注意的是,如果使用grid infrastructure来管理ogg,则mgr进程的参数文件中必须要配置autostart和autorestart选项!参考文档:(感谢作者分享)


本文出自 “斩月” 博客,谢绝转载!

Related labels:
rac
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!