重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1172|回复: 0
打印 上一主题 下一主题

[Oracle] imp导入出现ORA-06550、IMP-00017、IMP-00003告警

[复制链接]
跳转到指定楼层
楼主
发表于 2022-12-9 11:48:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
问题描述:从oracle 11.2.0.4使用exp导出,然后imp导入oracle19.16,出现ORA-06550IMP-00017IMP-00003告警,如下所示:
[oracle@leo-19c-ogg~]$ export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
[oracle@leo-19c-ogg~]$ imp leo/leo file=/home/oracle/leo.dmp full=y            
Import:Release 19.0.0.0.0 - Production on Thu Dec 1 10:56:14 2022
Version19.16.0.0.0
Copyright(c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
Connectedto: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version19.16.0.0.0
Exportfile created by EXPORT:V11.02.00 via conventional path
importdone in AL32UTF8 character set and AL16UTF16 NCHAR character set
exportserver uses UTF8 NCHAR character set (possible ncharset conversion)
.importing LEO's objects into LEO
.importing LEO's objects into LEO
. .importing table                       "LDEPT"          4 rowsimported
. .importing table                        "LEMP"         14 rowsimported
IMP-00017:following statement failed with ORACLE error 6550:
"BEGIN DBMS_STATS.SET_INDEX_STATS(NULL,'"SYS_C007729"'                     "
"                                                                          "
"                     "
IMP-00003:ORACLE error 6550 encountered
ORA-06550:line 1, column 171:
PLS-00103:Encountered the symbol "end-of-file" when expecting one of thefollowing:
   ) , * & = - + < / > at in is modremainder not rem =>
   <an exponent (**)> <> or != or~= >= <= <> and or like like2
   like4 likec between || multiset membersubmultiset
IMP-00017:following statement failed with ORACLE error 6550:
"BEGIN DBMS_STATS.SET_INDEX_STATS(NULL,'"SYS_C007730"'                     "
"                                                                          "
"                     tensible indexes"
IMP-00003:ORACLE error 6550 encountered
ORA-06550:line 1, column 172:
PLS-00103:Encountered the symbol "TENSIBLE" when expecting one of thefollowing:
   ) , * & = - + < / > at in is modremainder not rem =>
   <an exponent (**)> <> or != or~= >= <= <> and or like like2
   like4 likec between || multiset membersubmultiset
Importterminated successfully with warnings.
[oracle@leo-19c-ogg~]$ sqlplus / as sysdba
SQL*Plus:Release 19.0.0.0.0 - Production on Thu Dec 1 10:57:18 2022
Version19.16.0.0.0
Copyright(c) 1982, 2022, Oracle.  All rightsreserved.
Connectedto:
OracleDatabase 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version19.16.0.0.0
SQL>conn leo/leo;
Connected.
SQL>set line 200
SQL>select * from lemp
     EMPNO ENAME      JOB              MGR HIREDATE                  SAL       COMM    DEPTNO
-------------------- --------- ---------- ------------------ ---------- --------------------
      7369 SMITH      CLERK           7902 17-DEC-80                 800                    20
      7499 ALLEN      SALESMAN        7698 20-FEB-81                1600        300         30
      7521 WARD       SALESMAN        7698 22-FEB-81                1250        500         30
      7566 JONES      MANAGER         7839 02-APR-81                2975                    20
      7654 MARTIN     SALESMAN        7698 28-SEP-81                1250       1400         30
      7698 BLAKE      MANAGER         7839 01-MAY-81                2850                    30
      7782 CLARK      MANAGER         7839 09-JUN-81                2450                    10
      7788 SCOTT      ANALYST         7566 19-APR-87                3000                    20
      7839 KING       PRESIDENT            17-NOV-81                5000                    10
      7844 TURNER     SALESMAN        7698 08-SEP-81                1500          0         30
      7876 ADAMS      CLERK           7788 23-MAY-87                1100                    20
     EMPNO ENAME      JOB              MGR HIREDATE                  SAL       COMM    DEPTNO
-------------------- --------- ---------- ------------------ ---------- --------------------
      7900 JAMES      CLERK           7698 03-DEC-81                 950                    30
      7902 FORD       ANALYST         7566 03-DEC-81                3000                    20
      7934 MILLER     CLERK           7782 23-JAN-82                1300                    10
14 rowsselected.
SQL>select * from ldept;
    DEPTNO DNAME          LOC
------------------------ -------------
        10 ACCOUNTING     NEW YORK
        20 RESEARCH       DALLAS
        30 SALES          CHICAGO
        40 OPERATIONS     BOSTON
异常原因:
该导入告警很常见,通常与源端以及目标端数据库版本有关.
解决方案:
使用expimp时加参数禁用统计信息的导出/导入:statistic=none
[oracle@leo-19c-ogg~]$ imp leo/leo file=/home/oracle/leo.dmp full=y statistics=none
Import:Release 19.0.0.0.0 - Production on Thu Dec 1 11:31:13 2022
Version19.16.0.0.0
Copyright(c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
Connectedto: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version19.16.0.0.0
Exportfile created by EXPORT:V11.02.00 via conventional path
importdone in AL32UTF8 character set and AL16UTF16 NCHAR character set
exportserver uses UTF8 NCHAR character set (possible ncharset conversion)
.importing LEO's objects into LEO
.importing LEO's objects into LEO
. .importing table                       "LDEPT"          4 rowsimported
. .importing table                        "LEMP"         14 rows imported
Importterminated successfully without warnings.

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

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

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-6-29 09:07 , Processed in 0.144231 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表