ITPub博客

首页 > 数据库 > Oracle > expdp ORA-39181解决方法

expdp ORA-39181解决方法

原创 Oracle 作者:apporacle 时间:2015-02-25 20:11:14 0 删除 编辑

在用expdp执行导出schema时候,报错

 

 ORA-39181:Only Partial Table Data Exported DueTo Fine Grain Access Control

 

在metalink上找到一篇关于该问题的文档ID 422480.1

适用环境

 

Oracle Database - Enterprise Edition - Version 10.2.0.1 and later

Information in this document applies to any platform.


原因分析

 

$ oerr ora 39181

39181, 0000, "Only partial table data may be exported due to fine grain access control on %s"

// *Cause:  An unprivileged user has tried to export a table that has fine

//          grain access control. The table owner is subjected to access

//          control and may not be able to export all rows in the table.

//          Only the rows that can be seen by that user will be exported. In

//          order to preserve integrity of the table, the user importing the

//          table should have enough privilege to recreate the table with the

//          security policies at import time.

// *Action: It is strongly recommended that the database administrator handle

//          exporting of this table.

一个非特权用户试图导出一个具有精细访问控制的表,表的所有者受到访问控制,可能无法导出表中的全部行数据。

 

VPD and Oracle Label Security are not enforced during DIRECT path export and similarly, database users granted the EXEMPT ACCESS POLICY privilege, either directly or through a database role, are exempt from VPD enforcements. However, the following policy enforcement options remain in effect even when EXEMPT ACCESS POLICY is granted:

 

* INSERT_CONTROL, UPDATE_CONTROL, DELETE_CONTROL, WRITE_CONTROL, LABEL_UPDATE, and LABEL_DEFAULT

 

EXEMPT ACCESS POLICY  is a strong privilege and must be granted with care. For example , grant it to the role exp_full_database role as this role is granted to admin users only.

 

EXEMPT ACCESS POLICY是一个非常大的权限,授权时候必须小心。例如只授予拥有exp_full_database角色的管理账户EXEMPT ACCESS POLICY的权限。

 

解决方法

 

To avoid this:

 

 Grant the privilege EXEMPT ACCESS POLICY to the exporting user

 

 -or-

 

 Disable the VPD policy.

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

请登录后发表评论 登录
全部评论

注册时间:2013-06-28

  • 博文量
    35
  • 访问量
    230162