ORA-12899: value too large for column LabelName (actual: 36, maximum: 32)

1)导入时报错,如图

ORA-02374: conversion error loading table "ITMUSER"."K17DOSINF1"
ORA-12899: value too large for column LabelName (actual: 36, maximum: 32)
ORA-02372: data for row: LabelName : 0X'CFB5CDB3B1A3C1F42020202020202020202020202020202020'


2)通过查两边库发现字符集不一样


导出库:

SQL> select userenv('language') from dual;
USERENV('LANGUAGE')
----------------------------------------------------

AMERICAN_AMERICA.ZHS16GBK


导入库:
SQL> select userenv('language') from dual;
USERENV('LANGUAGE')
----------------------------------------------------

AMERICAN_AMERICA.AL32UTF8



3)修改导入库的字符集


SQL>STARTUP MOUNT;


SQL>ALTER SYSTEM ENABLE RESTRICTED SESSION;


SQL>ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;


SQL>ALTER SYSTEM SET AQ_TM_PROCESSES=0;


SQL>ALTER DATABASE OPEN;


SQL>ALTER DATABASE CHARACTER SET INTERNAL_USE ZHS16GBK; //跳过超子集检测


SQL>shutdown immediate;



SQL>STARTUP;




4)重新导入成功

你可能感兴趣的:(ORACLE错误)