oracle导入备份错误

IMP-00017: following statement failed with ORACLE error 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,'"T_BS_LK_GAZK"','"ZZJGBH"', NULL ,NULL,NULL,0,0,45"
"64894,srec,0,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 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,'"T_BS_LK_GAZK"','"ZRQBH"', NULL ,NULL,NULL,0,0,456"
"4894,srec,0,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 20001:
"DECLARE  SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := 'E4B883E6989FE8B7AFE"
"4B8ADE7A791E5AEBFE8888DE59FBAE5BBBAE5B7A52020'; SREC.MAXVAL := 'EE808BE888A"
"8E5AFAE3138E58FB7E4B98BE4BA8C'; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.N"
"OVALS := DBMS_STATS.NUMARRAY(1187586097368370000000000000000000000,12383738"
"85440880000000000000000000000); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SR"
"EC.EPC := 2; DBMS_STATS.SET_COLUMN_STATS(NULL,'"T_BS_LK_GAZK"','"ZZQC"', NU"
"LL ,NULL,NULL,55480,.0000180245133381399,163043,srec,45,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 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,'"T_BS_LK_GAZK"','"XSH"', NULL ,NULL,NULL,0,0,45648"
"94,srec,0,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 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,'"T_BS_LK_GAZK"','"ZXBJ"', NULL ,NULL,NULL,0,0,4564"
"894,srec,0,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 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,'"T_BS_LK_GAZK"','"XQLFMC"', NULL ,NULL,NULL,0,0,45"
"64894,srec,0,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 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,'"T_BS_LK_GAZK"','"ZRQMC"', NULL ,NULL,NULL,0,0,456"
"4894,srec,0,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 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,'"T_BS_LK_GAZK"','"XZZRQ"', NULL ,NULL,NULL,0,0,456"
"4894,srec,0,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 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,'"T_BS_LK_GAZK"','"HJZRQ"', NULL ,NULL,NULL,0,0,456"
"4894,srec,0,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 20001:
"DECLARE  SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := '30'; SREC.MAXVAL :="
" '30'; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.NUMAR"
"RAY(249230249209672000000000000000000000,2492302492096720000000000000000000"
"00); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STATS.SET"
"_COLUMN_STATS(NULL,'"T_BS_LK_GAZK"','"XXMJ"', NULL ,NULL,NULL,1,1,4106790,s"
"rec,2,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 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,'"T_BS_LK_GAZK"','"ZFSJ"', NULL ,NULL,NULL,0,0,4564"
"894,srec,1,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 20001:
"DECLARE  SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := '786D06040F262B'; SR"
"EC.MAXVAL := '786D060B053930'; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NO"
"VALS := DBMS_STATS.NUMARRAY(2454987.60951389,2454994.20609954); SREC.BKVALS"
" := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STATS.SET_COLUMN_STATS(NU"
"LL,'"T_BS_LK_GAZK"','"SXSJ"', NULL ,NULL,NULL,38,.0263157894736842,0,srec,8"
",6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 20001:
"DECLARE  SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := '786D060A0E1418'; SR"
"EC.MAXVAL := '786D060B060702'; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NO"
"VALS := DBMS_STATS.NUMARRAY(2454993.55512731,2454994.21251157); SREC.BKVALS"
" := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STATS.SET_COLUMN_STATS(NU"
"LL,'"T_BS_LK_GAZK"','"RKSJ"', NULL ,NULL,NULL,25818,.0000387326671314587,0,"
"srec,8,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 20001:
"DECLARE  SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := '786D060A0E1418'; SR"
"EC.MAXVAL := '786D060B060702'; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NO"
"VALS := DBMS_STATS.NUMARRAY(2454993.55512731,2454994.21251157); SREC.BKVALS"
" := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STATS.SET_COLUMN_STATS(NU"
"LL,'"T_BS_LK_GAZK"','"ZHGXSJ"', NULL ,NULL,NULL,25818,.0000387326671314587,"
"0,srec,8,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 20001:
"DECLARE  SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := '30312D3131E69C882D3"
"038'; SREC.MAXVAL := '33312D38E69C88202D3038'; SREC.EAVS := 0; SREC.CHVALS "
":= NULL; SREC.NOVALS := DBMS_STATS.NUMARRAY(2502276677726560000000000000000"
"00000,265804560733121000000000000000000000); SREC.BKVALS := DBMS_STATS.NUMA"
"RRAY(0,1); SREC.EPC := 2; DBMS_STATS.SET_COLUMN_STATS(NULL,'"T_BS_LK_GAZK"'"
",'"YBZHSJC"', NULL ,NULL,NULL,325,.00307692307692308,4035034,srec,3,6); END"
";"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
IMP-00017: following statement failed with ORACLE error 20001:
"DECLARE  SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := '3230303036303039373"
"9'; SREC.MAXVAL := '32303036303035313537'; SREC.EAVS := 0; SREC.CHVALS := N"
"ULL; SREC.NOVALS := DBMS_STATS.NUMARRAY(26059221646030700000000000000000000"
"0,260592218309964000000000000000000000); SREC.BKVALS := DBMS_STATS.NUMARRAY"
"(0,1); SREC.EPC := 2; DBMS_STATS.SET_COLUMN_STATS(NULL,'"T_BS_LK_GAZK"','"Y"
"BZJ"', NULL ,NULL,NULL,4563950,.000000219108447726202,0,srec,11,6); END;"
IMP-00003: ORACLE error 20001 encountered
ORA-20001: Invalid or inconsistent input values
ORA-06512: at "SYS.DBMS_STATS", line 4194
ORA-06512: at line 1
Import terminated successfully with warnings.

查了些资料,加了statistics=none

imp user/user file=file.dmp full=y ignore=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也一样

"ORA-01659: 无法分配超出 7 的 MINEXTENTS (在表空间 PERFSTAT 中)"

通过baidu,问题搞定,呵!baidu越来越强大了,解决方法如下:

第1步:修改datafile的autoextend

SQL> alter database datafile 'C:\ORACLE\ORADATA\SDBY\perfstat.dbf' autoextend on;

第2步:调用spdrop.sql删除之前create的对象

SQL> @?/rdbms/admin/spdrop.sql

第3步:重新调用spcreate.sql来创建对象

SQL> @?/rdbms/admin/spcreate.sql

你可能感兴趣的:(oracle,sql)