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文件没有正常删除。
+关注继续查看

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!

 

目录
相关文章
|
5天前
|
Oracle 关系型数据库 Java
java处理oracle的Clob字段类型的坑和2种解决办法
java处理oracle的Clob字段类型的坑和2种解决办法
|
4月前
|
运维 Oracle 关系型数据库
登录Oracle数据库遇到ORA-01017密码错误的解决办法
我们在登录Oracle数据库时可能会遇到ORA-01017错误,这里分析原因并提供解决办法。 点击试看博主的专著《MySQL 8.0运维与优化》(清华大学出版社)
221 0
|
8月前
|
Oracle 关系型数据库 数据库
Oracle生产数据库insert插入较慢分析过程和解决办法
Oracle生产数据库insert插入较慢分析过程和解决办法
126 0
|
12月前
|
Oracle 关系型数据库
Oracle报 ORA-00054资源正忙的解决办法
Oracle报 ORA-00054资源正忙的解决办法
|
Oracle 关系型数据库
Oracle没有WM_CONCAT函数的解决办法
Oracle没有WM_CONCAT函数的解决办法
|
SQL Oracle 关系型数据库
Mac Oracle SQL Developer “欢迎使用“页卡死,解决办法
Mac Oracle SQL Developer “欢迎使用“页卡死,解决办法
391 0
Mac Oracle SQL Developer “欢迎使用“页卡死,解决办法
|
Oracle 关系型数据库 数据库
oracle 数据库问题:“ORA-01922: 必须指定 CASCADE 以删除...“,原因及解决办法
oracle 数据库问题:“ORA-01922: 必须指定 CASCADE 以删除...“,原因及解决办法
421 0
oracle 数据库问题:“ORA-01922: 必须指定 CASCADE 以删除...“,原因及解决办法
|
SQL Oracle 关系型数据库
Oracle 数据库利用sql语句杀掉用户session进程,“ORA-01940: 无法删除当前连接的用户“问题解决办法
Oracle 数据库利用sql语句杀掉用户session进程,“ORA-01940: 无法删除当前连接的用户“问题解决办法
255 0
Oracle 数据库利用sql语句杀掉用户session进程,“ORA-01940: 无法删除当前连接的用户“问题解决办法
|
Oracle 安全 关系型数据库
小编教你Oracle数据库ORA-28002错误原因及解决办法
  近期小编在开发api接口时,调试中接口返回ORA-28002错误,看前缀知道是Oracle返回的错误信息,随查了下Oracle相关文档。在此把解决方案分享给有需要的朋友。在oracle database 11g中,默认在default概要文件中设置了“PASSWORD_LIFE_TIME=180天”所导致。密码过期后,业务进程连接数据库异常,影响业务使用。数据库密码过期后,业务进程一旦重启会提示连接失败。注:Oracle 11g启动参数resource_limit无论设置为false还是true,密码有效期都是生效的,所以必须通过以下方式进行修改:
422 0
推荐文章
更多