Oracle-exp不支持自擴展分區表的導出EXP-00006,EXP-00000


一、Oracle-exp不支持自擴展分區表的導出

有同事溝通說exp導出自擴展的分區表報錯,測試了一下果然如此哈。

 CREATE TABLE "T_PART_TABLE"
   (    "ID" VARCHAR2(64),
    "PERSOID" NUMBER,
    "CODE" VARCHAR2(64),
    "NAME" VARCHAR2(64),
    "DEPT" VARCHAR2(64),
    "LOG_TIME" NUMBER,
    "LOG_TYPE" NUMBER,
    "CONTENT" VARCHAR2(1024),
    "RESULT" VARCHAR2(2),
    "SN" VARCHAR2(128),
    "DEPT_ID" NUMBER,
    "BLACK_FLAG" VARCHAR2(2 BYTE),
    "CREATE_TIME" Date)
    PARTITION BY RANGE (CREATE_TIME)  interval (numtodsinterval (1,'DAY'))
(
 PARTITION part_p180613 VALUES LESS THAN (TO_DATE('2018-6-13', 'yyyy-mm-dd'))
 );
insert into T_PART_TABLE(ID,CREATE_TIME) values(1,sysdate);
insert into T_PART_TABLE(ID,CREATE_TIME) values(2,sysdate+1);
commit;

[oracle@t2 ~]$ exp yz/yz file=/home/oracle/T_PART_TABLE.dmp tables=T_PART_TABLE
Export: Release 11.2.0.4.0 - Production on Tue Oct 19 13:28:37 2021
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in AL32UTF8 character set and AL16UTF16 NCHAR character set
About to export specified tables via Conventional Path ...
EXP-00006: internal inconsistency error
EXP-00000: Export terminated unsuccessfully

 

二、學習MOS

Exporting System or Composite Partitioned Table Using Classic Export Gives EXP-6 AND EXP-0 (Doc ID 762774.1)    
Oracle Cloud Infrastructure - Database Service - Version N/A and later
When exporting a composite. interval, or system partitioned table using conventional export utility, it fails with EXP-6 and EXP-0 errors:
EXP-00006: internal inconsistency error
EXP-00000: Export terminated unsuccessfully
CAUSE
Bug 7834212 has been filed regarding this problem. However, it should be noted that the new composite partitioning and system partitioning is a 11g feature.
Classic Export does not support this. When a table with this feature is exported, an error message EXP-113 is raised:
EXP-00113: Feature New Composite Partitioning Method is unsupported. Table <TABLE_NAME> could not be exported
But the export would still complete.
And in normal circumstances this error should continue to be seen.
But if the table partition has split or added a new partition, it will now generate the EXP-6 and EXP-0 errors and fail to complete.
SOLUTION
Use Data Pump to perform exports of composite and interval partitioning and system partitioned tables as this is the recommended method.
REFERENCES
BUG:7834212 - EXPORT FAILS WITH EXP-6 AND EXP-0 ON PARTITIONED TABLE INSTEAD OF EXP-113

小結: Oracle的意思就是說Oracle 11g有復合分區和自擴展分區的新特性,但是呢,這些新的特性Oracle exp不在支持了,所以報錯! Oracle建議使用expdp而非exp!!!

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM