`

Oracle IMP数据时报20001错误

阅读更多
MP-00017: 由于 ORACLE 的 20001 错误,以下的语句失败
"BEGIN DBMS_STATS.SET_TABLE_STATS(NULL,'"BB_ATTACH_VAR"',NULL,NULL,NULL,3,5"
",11,6); END;"
IMP-00003: 遇到 ORACLE 错误 20001
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4046
ORA-06512: at line 1
IMP-00017: 由于 ORACLE 的 20001 错误,以下的语句失败
"DECLARE SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := 'C104'; SREC.MAXVAL "
":= 'C104'; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.N"
"UMARRAY(3,3); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_"
"STATS.SET_COLUMN_STATS(NULL,'"BB_ATTACH_VAR"','"BB_ID"', NULL ,NULL,NULL,1,"
"1,0,srec,3,6); END;"
IMP-00003: 遇到 ORACLE 错误 20001
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 3490
ORA-06512: at line 1
IMP-00017: 由于 ORACLE 的 20001 错误,以下的语句失败
"DECLARE SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := 'C102'; SREC.MAXVAL "
":= 'C104'; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.N"
"UMARRAY(1,3); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_"
"STATS.SET_COLUMN_STATS(NULL,'"BB_ATTACH_VAR"','"VAR_ID"', NULL ,NULL,NULL,3"
",.333333333333333,0,srec,3,6); END;"
IMP-00003: 遇到 ORACLE 错误 20001
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 3490
ORA-06512: at line 1
IMP-00017: 由于 ORACLE 的 20001 错误,以下的语句失败
"DECLARE SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := 'C102'; SREC.MAXVAL "
":= 'C104'; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.N"
"UMARRAY(1,3); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_"
"STATS.SET_COLUMN_STATS(NULL,'"BB_ATTACH_VAR"','"VAR_NO"', NULL ,NULL,NULL,3"
",.333333333333333,0,srec,3,6); END;"
IMP-00003: 遇到 ORACLE 错误 20001
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 3490
ORA-06512: at line 1
IMP-00017: 由于 ORACLE 的 20001 错误,以下的语句失败
"DECLARE SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := NULL; SREC.MAXVAL :="
" NULL; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
"RAY(0,0); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STAT"
"S.SET_COLUMN_STATS(NULL,'"BB_ATTACH_VAR"','"VAR_TYPE"', NULL ,NULL,NULL,0,0"
",3,srec,0,6); END;"
IMP-00003: 遇到 ORACLE 错误 20001
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 3490
ORA-06512: at line 1
IMP-00017: 由于 ORACLE 的 20001 错误,以下的语句失败
"DECLARE SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := '5B342C345D'; SREC.M"
"AXVAL := '5B342C345D'; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := "
"DBMS_STATS.NUMARRAY(473557201670860000000000000000000000,473557201670860000"
"000000000000000000); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2"
"; DBMS_STATS.SET_COLUMN_STATS(NULL,'"BB_ATTACH_VAR"','"VAR_DEF"', NULL ,NUL"
"L,NULL,1,1,2,srec,3,6); END;"
IMP-00003: 遇到 ORACLE 错误 20001
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 3490
ORA-06512: at line 1


查了些资料,加了statistics=none

imp user/user file=file.dmp full=y statistics=none
解决
参数说明

exp userid=user_name/user_pwd@net_service_name owner=user_name file=exp_user_name.dmp log=exp_user_name.log buffer=67108864 statistics=none grants=n consistent=y


buffer缓冲区大小,64M,再往上也没有明显的性能提升
statistics:表示不导出分析数据
grants:相关对象的授权
consistent:确保在imp的时候,不会出现fk不能enable的情况

exp help=y可以查看所有选项和说明,imp也一样
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics