Oracle 11g:无法从EE转储中恢复XE中的方案

时间:2012-08-06 08:33:47

标签: 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:"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版序列化方案的格式?

我将非常感谢这些信息。谢谢大家。

2 个答案:

答案 0 :(得分:3)

有几种类型的错误被调用。但其中两个确实与企业版中提供的功能相关,但与快速版中没有相关:

ORA-00439: feature not enabled: Deferred Segment Creation

ORA-00439: feature not enabled: Fine-grained access control

确实无法直接导入这些转储。作为解决方法,您可以在导入转储之前尝试自己创建有问题的表。使用源系统中的定义并删除或替换不支持的功能。一旦表存在,导入将发出一个警告,表示该表已存在,但如果模式兼容,它应该导入数据。

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

答案 1 :(得分:1)

XE不支持11G EE的许多功能。最安全的方法是添加版本为10.2,您IMPDP命令。以下示例

16*0x80