ITPub博客

首页 > 数据库 > Oracle > 数据泵导出表空间时报出ORA-39181错误的解决办法

数据泵导出表空间时报出ORA-39181错误的解决办法

原创 Oracle 作者:jiage_Daniel 时间:2016-07-30 18:09:18 0 删除 编辑

数据泵在实现逻辑备份、逻辑恢复、数据库用户之间移动对象、数据库之间移动对象、实现表空间的迁移时有很重要的应用。
在实现表空间迁移时如果没有赋给用户exempt access policy 权限就会出现:

ORA-39181: Only partial table data may be exported due to fine grain access control on "OE"."PURCHASEORDER"


[oracle@~ datadump]$ expdp system/oracle directory=dir_dp dumpfile=ts.dmp logfile=ts.log tablespaces=users

Export: Release 11.2.0.4.0 - Production on Fri Jul 29 19:52:00 2016

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

Starting "SYSTEM"."SYS_EXPORT_TABLESPACE_01":  system/******** directory=dir_dp dumpfile=ts.dmp logfile=ts.log tablespaces=users

Estimate in progress using BLOCKS method...

Processing object type TABLE_EXPORT/TABLE/TABLE_DATA

Total estimation using BLOCKS method: 1.062 MB

Processing object type TABLE_EXPORT/TABLE/TABLE

Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX

Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT

Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS

Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT

ORA-39181: Only partial table data may be exported due to fine grain access control on "OE"."PURCHASEORDER"

. . exported "OE"."PURCHASEORDER"                        243.9 KB     132 rows

. . exported "OE"."CATEGORIES_TAB"                       14.14 KB      22 rows

. . exported "OE"."PRODUCT_REF_LIST_NESTEDTAB"            12.5 KB     288 rows

. . exported "OE"."SUBCATEGORY_REF_LIST_NESTEDTAB"       6.578 KB      21 rows

. . exported "SCOTT"."DEPT"                              5.929 KB       4 rows

. . exported "SCOTT"."EMP"                               8.562 KB      14 rows

. . exported "SCOTT"."SALGRADE"                          5.859 KB       5 rows

. . exported "SCOTT"."SL_BASE"                           5.906 KB       3 rows

. . exported "SCOTT"."T"                                 5.007 KB       1 rows

. . exported "SCOTT"."BONUS"                                 0 KB       0 rows

Master table "SYSTEM"."SYS_EXPORT_TABLESPACE_01" successfully loaded/unloaded

******************************************************************************

Dump file set for SYSTEM.SYS_EXPORT_TABLESPACE_01 is:

  /home/oracle/datadump/ts.dmp

Job "SYSTEM"."SYS_EXPORT_TABLESPACE_01" completed with 1 error(s) at Fri Jul 29 19:52:25 2016 elapsed 0 00:00:24

解决办法:

SYS@~>grant EXEMPT ACCESS POLICY to system;

Grant succeeded.



来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31362743/viewspace-2122754/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2016-06-16

  • 博文量
    17
  • 访问量
    20439