zcbus_service程序real进程报错:
[INF] 2021-03-09 15:00:39: check repair tables...
[INF] 2021-03-09 15:00:39: extract start pos ...
error at file[db2.c] line[94], ZCBUS-42000: error while allocating the environment handle, cliRC = -1
error at file[db.c] line[90], ZCBUS-42000: error while allocating the environment handle, cliRC = -1
error at file[db2/db2log.c] line[64], ZCBUS-42000: error while allocating the environment handle, cliRC = -1
error at file[db2/db2log.c] line[347], ZCBUS-42000: error while allocating the environment handle, cliRC = -1
[ERR] ZCBUS-42000: error while allocating the environment handle, cliRC = -1
[INF] 2021-03-09 15:00:41: flush data to kafka...
[INF] 2021-03-09 15:00:41: flush data to kafka ok.
[INF] 2021-03-09 15:00:41: extract end pos .
解决:
(1)修改profile文件
export PATH=${PATH}:${ZCBUS_HOME}/bin:${JAVA_HOME}/bin:${ZCBUS_HOME}/scripts:/home/db2inst1/sqllib/bin:/opt/ibm/db2/V9.7/bin
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${ZCBUS_HOME}/lib/zc_lib/:${IQDIR16}/lib64:/home/db2inst1/sqllib/lib
(2)db2客户端添加编目(3月7号之后的版本支持无需添加编目):

添加:

db2 "CATALOG TCPIP NODE db2node REMOTE 10.142.68.121 SERVER 50005"
db2 "catalog database uumdb as uumdb at node db2node"
db2 connect to uumdb user db2inst5 using \"zOne\!110\"

删除:

db2 UNCATALOG NODE db2node
db2 UNCATALOG DB uumdb
文档更新时间: 2021-03-09 00:02   作者:周风磊