Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

0

积分

1

好友

7

主题
1#
发表于 2013-10-31 17:35:44 | 查看: 3247| 回复: 3
Procedure里执行大概这样一段SQL,Insert Into T1 SELECT * FROM T1_COPY,报ORA-28081: 权限不足 - 命令引用了已经过编写的对象。但我把这段SQL单独拷贝出来,执行时没有问题,哪位帮忙给解释一下?
2#
发表于 2013-11-1 11:35:33
要给用户赋显示权限。给用户 赋权 INSERT 权限

回复 只看该作者 道具 举报

3#
发表于 2013-11-1 19:35:47
[oracle@mlab2 ~]$ oerr ora 28081
28081, 00000, "Insufficient privileges - the command references a redacted object."
// *Cause: The command referenced a redacted column in an
// object protected by a data redaction policy.
// *Action: If possible, modify the command to avoid referencing any
// redacted columns.  Otherwise, drop the data redaction policies that
// protect the referenced tables and views, or ensure that the user issuing
// the command has the EXEMPT REDACTION POLICY system privilege, then
// retry the operation.  The EXEMPT REDACTION POLICY system privilege
// is required for creating or refreshing a materialized view when the
// materialized view is based on an object protected by a data redaction
// policy.  The EXEMPT REDACTION POLICY system privilege is required for
// performing a data pump schema-level export including any object
// protected by a data redaction policy.  All data redaction policies are
// listed in the REDACTION_COLUMNS catalog view.

回复 只看该作者 道具 举报

4#
发表于 2013-11-1 19:37:48
做一个errorstack  并触发该错误

alter system set events ' 28081 trace name context forever level 3';


运行你触发问题的语句


压缩打包上传日志

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-6-15 05:42 , Processed in 0.047435 second(s), 21 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569