zoukankan      html  css  js  c++  java
  • 在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 来实现。


  • 相关阅读:
    codevs 1450 xth 的旅行
    Loj #6287 诗歌
    Codeforces 323C Two permutations
    Spoj MKTHNUM
    [TJOI2015]弦论
    Spoj SUBLEX
    bzoj 4338: BJOI2015 糖果
    bzoj 3462: DZY Loves Math II
    bzoj 2843: 极地旅行社
    清北学堂模拟赛d4t5 b
  • 原文地址:https://www.cnblogs.com/mthoutai/p/6814975.html
Copyright © 2011-2022 走看看