在impdp导入的时候报错,错误在comment
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
ORA-39126: Worker unexpected fatal error in KUPW$WORKER.PUT_DDLS [COMMENT]
ORA-06502: PL/SQL: numeric or value error
LPX-00230: invalid character 60 (U+003C) found in a Name or Nmtoken
ORA-06512: at “SYS.DBMS_SYS_ERROR”, line 95
ORA-06512: at “SYS.KUPW$WORKER”, line 9715
----- PL/SQL Call Stack -----
object line object
handle number name
0xb1bad570 21979 package body SYS.KUPW
W
O
R
K
E
R
0
x
b
1
b
a
d
5709742
p
a
c
k
a
g
e
b
o
d
y
S
Y
S
.
K
U
P
W
WORKER 0xb1bad570 9742 package body SYS.KUPW
WORKER0xb1bad5709742packagebodySYS.KUPWWORKER
0xb1bad570 17950 package body SYS.KUPW
W
O
R
K
E
R
0
x
b
1
b
a
d
5704058
p
a
c
k
a
g
e
b
o
d
y
S
Y
S
.
K
U
P
W
WORKER 0xb1bad570 4058 package body SYS.KUPW
WORKER0xb1bad5704058packagebodySYS.KUPWWORKER
0xb1bad570 10450 package body SYS.KUPW
W
O
R
K
E
R
0
x
b
1
b
a
d
5701824
p
a
c
k
a
g
e
b
o
d
y
S
Y
S
.
K
U
P
W
WORKER 0xb1bad570 1824 package body SYS.KUPW
WORKER0xb1bad5701824packagebodySYS.KUPWWORKER
0x11e3b76b8 2 anonymous block
解决方法
导入的时候不导入comment。使用如下命令即可导入成功
impdp directory=TUNE_SCRIPTS dumpfile=full47200.dmp logfile=full47200.log schemas=CISPRO,GAPRO,RIS,VCSIT,RISDATA,DOUREC,VCUAT,LIS_YJW,VCDEV,AMLMV,POCSIT,B2B,ICMS,HCIMAGE,LISUAT,RISCDE
exclude=comment table_exists_action=truncate
解决思路
导入的时候报错了,一般就是看在导入什么东西的时候报的错,报错信息的提示是在
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
那么我在导入的时候直接排除comment就好了,comment在导入完成后想其他办法重新生成。
备注:如果是重新导入的记得table_exists_action=truncate或者把之前的数据先删除掉,在导入也可以