• Oracle Goldengate REPLICAT启动时报正在运行解决办法


    stop replicate时报ERROR: opening port for REPLICAT MYREP (TCP/IP error: Connection refused).

    start replicate时报REPLICAT xxx is already running.

    原因是dirpcs目录下对应的xxx.pcs文件没有正常删除。

    解决办法:删除pcs文件,检查是否有删除权限。

    以下是引用国外的一篇文章:

    We use Oracle Goldengate to replicate data from an Oracle database into a SQL Server. However, I got an alert the other day that replication had stopped, and when I checked the status of replication, all the REPs we had set up were in status "Starting...", but none we actually doing anything.

    Attempting to stop them got the following error:

    GGSCI (GGSERVER) 68> stop rep MYREP

    Sending STOP request to REPLICAT MYREP ...

    ERROR: opening port for REPLICAT MYREP (TCP/IP error: Connection refused).

    OR

    GGSCI (GGSERVER) 68> start replicat REPYL01C

    REPLICAT REPYL01C is already running.

     

    Stopping/Starting the manager service or rebooting the PC didn't help either - they still said "Starting" and were unresponsive. Even stranger, deleting and recreating the REP gave the same result - before I even attempted to start the REP for the first time, it said "Starting", and an attempt to start it gave me "Process is starting up - try again later".

    The cause was the REP process status file, located in the DIRPCS folder under the Goldengate root - there should be a file for each REP that's currently running giving details about the status. When a REP stops, this file is deleted. Since all of the current REPs weren't doing anything (they were all sitting at the end of the previous trail file), they should have been stopped. I deleted the PCR files for the affected REP streams, and then manager reporting "STOPPED" - at that point, I was able to start up each REP without issue.

    I'm not sure how they got that way, but once started again, they all worked without issue. I hope this saves you the troubleshooting time of hunting down these files!

  • 相关阅读:
    常用电子元器件及应用
    局域网传输-LED灯搭建局域网:数据传输可达每秒3Gb
    硬件设计原理图Checklist 参考案例二 【转载】
    基于LiFi可见光通信技术的研究及应用转化调查
    T&F 圆桌:儿童智能玩具离我们还有多远?
    一座金矿:数千亿规模智能玩具市场
    【Java】+ 图片与base64互转 + 字符串与base64互转
    【Java】+ 【wss】 + WebSocketClient
    【IDEA】+SVN
    【杂项】+事件管理之时间4象限
  • 原文地址:https://www.cnblogs.com/jimeper/p/5294127.html
Copyright © 2020-2023  润新知