Oracle11g Oracle 11g:无法从EE转储还原XE中的方案

Oracle11g Oracle 11g:无法从EE转储还原XE中的方案,oracle11g,oracle-xe,Oracle11g,Oracle Xe,我使用了expdp/impdp实用程序 在Oracle 11g XE中,并非所有表都被还原。以下是日志的一些摘录: ... ORA-31684: Object type USER:"GAZ" already exists ... ORA-39083: Object type TYPE failed to create with error: ORA-02304: invalid object identifier literal ... ORA-39082: Object type TYPE:"

我使用了
expdp/impdp
实用程序

在Oracle 11g XE中,并非所有表都被还原。以下是日志的一些摘录:

...
ORA-31684: Object type USER:"GAZ" already exists
...
ORA-39083: Object type TYPE failed to create with error:
ORA-02304: invalid object identifier literal
...
ORA-39082: Object type TYPE:"GAZ"."T_DATASET_INFO" created with compilation warnings
ORA-39082: Object type TYPE:"GAZ"."T_DATASET_INFO" created with compilation warnings
ORA-39082: Object type TYPE:"GAZ"."T_FIELDVALUE_INFO" created with compilation warnings
ORA-39082: Object type TYPE:"GAZ"."T_FIELDVALUE_INFO" created with compilation warnings
ORA-39082: Object type TYPE:"GAZ"."STRING_AGG_TYPE" created with compilation warnings
ORA-39082: Object type TYPE:"GAZ"."STRING_AGG_TYPE" created with compilation warnings
...
ORA-39112: Dependent object type OBJECT_GRANT:"GAZ" skipped, base object type TYPE:"GAZ"."PARMS" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"GAZ" skipped, base object type TYPE:"GAZ"."T_FIELDVALUE_RECORD" creation failed
ORA-39112: Dependent object type OBJECT_GRANT:"GAZ" skipped, base object type TYPE:"GAZ"."T_DATASET_RECORD" creation failed
...
ORA-00439: feature not enabled: Deferred Segment Creation
...
ORA-39083: Object type TABLE:"GAZ"."ACTDOCS" failed to create with error:
ORA-00439: feature not enabled: Deferred Segment Creation
...
ORA-39083: Object type TABLE:"GAZ"."DOCUM_NOTICE" failed to create with error:
ORA-00439: feature not enabled: Deferred Segment Creation
...
ORA-00439: feature not enabled: Fine-grained access control
...
ORA-39083: Object type RLS_POLICY failed to create with error:
ORA-00439: feature not enabled: Fine-grained access control
...
ORA-39083: Object type RLS_POLICY failed to create with error:
ORA-00439: feature not enabled: Fine-grained access control
...
ORA-39083: Object type PROCACT_INSTANCE failed to create with error:
ORA-01403: no data found
ORA-01403: no data found
ORA-01403: no data found
...
ORA-39083: Object type PROCACT_INSTANCE failed to create with error:
ORA-01403: no data found
ORA-01403: no data found
ORA-01403: no data found
...
Job "SYS"."SYS_IMPORT_SCHEMA_01" completed with 3397 error(s) at 17:53:03

XE版本是否支持EE版本序列化方案的格式?

涉及多种类型的错误。但其中两个确实与enterprise edition中提供但express edition中未提供的功能相关:

ORA-00439: feature not enabled: Deferred Segment Creation

ORA-00439: feature not enabled: Fine-grained access control
实际上,不可能直接导入这些转储。作为一种解决方法,您可以尝试在导入转储之前自己创建有问题的表。使用源系统中的定义并删除或替换不支持的功能。一旦该表存在,导入将发出警告,指出该表已经存在,但如果架构兼容,则无论如何都应该导入数据


关于细粒度访问控制的错误最初可以忽略。但是为了生产性使用,您需要想出另一种控制数据访问的方法。

XE不支持11G EE的许多功能。最安全的方法是将版本as 10.2添加到impdp命令中。下面给出的例子

impdp Target_schema/<password>@<DB_TNSNAME>  directory='DATA_DUMP' dumpfile=data_dump_EE.dmp logfile=import.log REMAP_SCHEMA=<Source_Schema>:<Target_schema> version=10.2 
impdp Target\u schema/@directory='DATA\u DUMP'dumpfile=DATA\u DUMP\u EE.dmp logfile=import.log REMAP\u schema=:version=10.2