1

当我尝试使用dbexport -c <mydbname> <myDbspace> 已导出的命令导入 informix 数据库时。我得到这个错误: 23103 - Code-set conversion function failed due to illegal sequence or invalid value.

我想知道这是否与我尝试导入的文本编码不兼容或类似的东西有关。

这是完整的日志:

{ TABLE "informix".XXX row size = 134 number of columns = 19 index size = 8 }

{ unload file name = XXX__00103.unl number of rows = 7 }

create table "informix".XXX
  (
    XXX_id char(3) not null ,
    XXX_name char(50) not null ,
    XXX_dec_nb decimal(1,0) not null ,
    XXX_rounded decimal(4,3) not null ,
    XXX_symbol char(3) not null ,
    XXX_location decimal(1,0)
        default 0 not null ,
    XXX_negative decimal(2,0) not null ,
    XXX_dec_char char(1) not null ,
    XXX_group_char char(1) not null ,
    XXX_euro decimal(16,8) not null ,
    XXX_active decimal(1,0)
        default 1 not null ,
    XXX_coef decimal(7,3),
    XXX_rnd_0 decimal(7,2) not null ,
    XXX_rnd_1 decimal(7,2),
    XXX_rnd_2 decimal(7,2),
    XXX_rnd_3 decimal(7,2),
    XXX_rnd_4 decimal(7,2),
    XXX_rnd_5 decimal(7,2),
    XXX_cts_desc char(20),

    check (((XXX_active >= 0. ) AND (XXX_active <= 1. ) ) AND (XXX_active IN (0.
              ,1. )) ) constraint "informix".ckc_XXX_acti_XXX,

    check (((XXX_location >= 0. ) AND (XXX_location <= 3. ) ) AND (XXX_location IN (0.
              ,1. ,2. ,3. )) ) constraint "informix".ckc_XXX_loca_XXX,
    primary key (XXX_id)  constraint "informix".pk_XXX
  );

revoke all on "informix".XXX from "public" as "informix";
*** put loadXXX
23103 - Code-set conversion function failed due to illegal sequence or invalid value.

编辑:

固定的:

通过设置更改了我在 C:\Program Files\IBM Informix Software Bundle 中的 'servername'.cmd 文件:

  • 设置 CLIENT_LOCALE=EN_US.8859-1
  • 设置 DB_LOCALE=EN_US.8859-1
4

1 回答 1

0

固定的:

通过设置更改了我在 C:\Program Files\IBM Informix Software Bundle 中的 'servername'.cmd 文件:

  • 设置 CLIENT_LOCALE=EN_US.8859-1
  • 设置 DB_LOCALE=EN_US.8859-1
于 2020-01-23T11:05:13.637 回答