Windows 系统下OGG 自动启动配置

Windows 系统下OGG 自动启动配置,第1张

一、注册源端和目标端MGR服务到Windows 服务里边

      1、手动指定mgr服务名

          >ggsci

           用edit params ./GLOBALS命令(注意./GLOBALS为大写),进入编辑文件,输入下面内容。

            MGRSERVNAME GGMGR

       2、在OGG安装目录下使用“以管理员身份运行”模式打开cmd提示符,执行命令,激活服务。

          install addservice

       3、在Windows服务管理里找到GGMGR,右键选择启动

二、编写bat脚本启动OGG 进程

   1、建立oggmon.par文件

         info all

         start mgr

         start ex*

          start pm*

          info all

2、建立启动的bat文件,内容如下:

     d:\ggs\ggsci paramfile d:\ggs\oggmon.par >d:\ggs\oggmon.log

     pause

三、将bat脚本加到定时任务里边

最麻烦的配置是这样:

tableexclude ua.ta*

gettruncates

table ua.tb1

table ua.tb2

ignoretruncates

table ua.tb3

table ua.tc1

table ua.tc2

table ua.tc3


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/bake/11584233.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-17
下一篇 2023-05-17

发表评论

登录后才能评论

评论列表(0条)

保存