在线等 一个IMP问题

[复制链接]
查看11 | 回复3 | 2004-2-23 14:01:00 | 显示全部楼层 |阅读模式
从一个数据库导入到另一个数据库 在不同的hp小型机上
oracle9201hpunix11。11
要导入的数据库字符集是导出的超集
我数据导出是without warning的
导入的时候 有几个表却出现插入值过大的错误
说明一下 结构和数据是一起导出的
也是一起导入的
那位大哥遇到过这种情况 请指教一下
谢谢
error log
Export file created by EXPORT:V09.02.00 via conventional path
import done in ZHS16CGB231280 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
. importing STOCK's objects into STOCK
. . importing table "DOCINFO"
IMP-00019: row rejected due to ORACLE error 1401
IMP-00003: ORACLE error 1401 encountered
ORA-01401: inserted value too large for column
Column 1 1
Column 2 2002-LB-001
Column 3 04-FEB-2002:00:00:00
Column 4 05-FEB-2002:00:00:00
Column 5 06-FEB-2002:00:00:00
Column 6 M-NM-^
Column 7
Column 8 M-3M-LM-NM-D
Column 9 M-AM-YM-JM-1M-1M-(M-8M-f
Column 10 M-JM-PM-3M-!M-<M-`M-9M-\M-2M-?
Column 11 M-4M-+M-UM-f
Column 12
Column 13
Column 14 M-VM-$M-HM-/M-;M-yM-=M-pM-!M-"M-WM-TM-SM-*M-;M-zM-9M-9M-BM-r ...
Column 15 06-FEB-2002:00:00:00
IMP-00019: row rejected due to ORACLE error 1401
IMP-00003: ORACLE error 1401 encountered
ORA-01401: inserted value too large for column
Column 1 2
Column 2 2002-SX-001
Column 3 03-FEB-2002:00:00:00
回复

使用道具 举报

千问 | 2004-2-23 14:01:00 | 显示全部楼层
Export file created by EXPORT:V09.02.00 via conventional path
import done in ZHS16CGB231280 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
. importing STOCK's objects into STOCK
. . importing table
"DOCINFO"
IMP-00019: row rejected due to ORACLE error 1401
IMP-00003: ORACLE error 1401 encountered
ORA-01401: inserted value too large for column
Column 1 1
Column 2 2002-LB-001
Column 3 04-FEB-2002:00:00:00
Column 4 05-FEB-2002:00:00:00
Column 5 06-FEB-2002:00:00:00
Column 6 M-NM-^
Column 7
Column 8 M-3M-LM-NM-D
Column 9 M-AM-YM-JM-1M-1M-(M-8M-f
Column 10 M-JM-PM-3M-!M-<M-`M-9M-\M-2M-?
Column 11 M-4M-+M-UM-f
Column 12
Column 13
Column 14 M-VM-$M-HM-/M-;M-yM-=M-pM-!M-"M-WM-TM-SM-*M-;M-zM-9M-9M-BM-r
...
Column 15 06-FEB-2002:00:00:00
IMP-00019: row rejected due to ORACLE error 1401
IMP-00003: ORACLE error 1401 encountered
ORA-01401: inserted value too large for column
Column 1 2
Column 2 2002-SX-001
Column 3 03-FEB-2002:00:00:00
回复

使用道具 举报

千问 | 2004-2-23 14:01:00 | 显示全部楼层
之前我已经把这些表删除了
不知道你是否也遇到过这样的问题
大多数表已经导进去了
就是有几个出现这种情况
怀疑可能是字符集不相同的原因
我把这几个表单独的exp出来还是不行 报上面那个错误
先自己顶着
哪位兄弟也帮忙顶一顶啊
回复

使用道具 举报

千问 | 2004-2-23 14:01:00 | 显示全部楼层
发现这几个表有共同的特点
字段中有很多char型的数据 怀疑是导致出现上述问题的原因
后来否决其他表中也有这种类型的 字段
最后终于解决了 原来是有写字段里面的值是中文在
不同的字符集之间出现了一些长度上的错误
在imp的日志里可以找出来
然后 在结构已经导进去的情况下
修改那些长度出错的字段 然后用
ignore=y参数进行再次导入
解决问题了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行