在linux oracle 10g/11g x64bit环境中,goldengate随os启动而自己主动启动的脚本

在linux。oracle 10g/11g x64bit环境中,goldengate随os启动而自己主动启动的脚本

背景描写叙述:

goldengate安装于/u01/ggs文件夹下

rhel5.5 oracle 10g/11g x64bit

Oracle GoldenGate Command Interpreter for Oracle
Version 11.1.1.0.0 Build 078
Linux, x64, 64bit (optimized), Oracle 11 on Jul 28 2010 13:13:42

实现goldengate 自己主动启动的步骤:

1.用oracle用户建立/u01/info.txt。文件内容例如以下:
sh date
start mgr

2.chmod +x info.txt

3.用oracle用户建立/u01/startmgr.sh,文件内例如以下:
/u01/ggs/ggsci paramfile /u01/info.txt >> /u01/ggstartoutput.txt

4.chmod +x startmgr.sh

4.用root用户编辑 /etc/rc.local ,加入例如以下信息:
su - oracle -c "/u01/startmgr.sh"

注意:这4步完毕的是自己主动启动mgr进程,至于goldengate的抽取,传输,还有复制进程的自己主动启动,能够用mgr的參数autostart 来实现。


原文地址:https://www.cnblogs.com/mthoutai/p/6814975.html