代码之家  ›  专栏  ›  技术社区  ›  fredley

尝试使用informix设置复制时出现未知用户错误

  •  1
  • fredley  · 技术社区  · 14 年前

    我在linux系统上,以informix用户身份登录。我设置了以下环境变量:

    INFORMIXDIR=/opt/IBM/informix
    INFORMIXSQLHOSTS=/opt/IBM/informix/etc/sqlhosts.mydb
    INFORMIXSERVER=rep_0
    

    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\u rep\u 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.
    
    1 回复  |  直到 14 年前
        1
  •  0
  •   fredley    14 年前

    这个问题原来是由于一个损坏的数据库。我通过运行 onmode -ky , oninit -ivyw ,现在看来很好。