我在一个linux系统上,以informix用户身份登录。我设置了以下环境变量:
INFORMIXDIR=/opt/IBM/informix
INFORMIXSQLHOSTS=/opt/IBM/informix/etc/sqlhosts.mydb
INFORMIXSERVER=rep_0
sqlhosts.mydb 的内容如下:
g_rep_0 group - - i=0
rep_0 onsoctcp svr0 30100 g=g_rep_0
g_rep_1 group - - i=1
rep_1 olsoctcp svr1 30101 g=g_rep_1
我正在尝试运行命令cdr define server --init g_rep_0
将 g_rep_0 设置为复制主机,但出现以下错误:
connect to rep_0 failed
Incorrect password or user rep_0 is not known on the database server.
(-951)
command failed -- unable to connect to server specified (5)
谁能建议我可能做错了什么?
编辑
查看日志我得到一个错误:
10:26:36 CDR GC: operation error reporting severe error message failed (error 62).
10:30:00 SCHAPI: [Save SQL Trace 27-550] Error -206 The specified table (mon_syssqltrace) is not in the database.
10:30:00 SCHAPI: [Save SQL Trace 27-550] Error -111 ISAM error: no record found.