0

我使用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版序列化方案的格式?

4

2 回答 2

2

涉及多种类型的错误。但是其中两个确实与企业版中可用但在快捷版中不可用的功能有关:

ORA-00439: feature not enabled: Deferred Segment Creation

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

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

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

于 2012-08-06T09:17:43.357 回答
0

XE 不支持 11G EE 的许多功能。最安全的方法是将版本作为 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 
于 2019-02-02T18:42:19.900 回答