In this Document
Symptoms Cause Solution ReferencesAPPLIES TO: Oracle Server - Enterprise Edition - Version 10.2.0.1 to 10.2.0.3 [Release 10.2] Information in this document applies to any platform. SYMPTOMS
The following error is raised when trying to perform a fast refresh of a Materialized View (MV):
ERROR at line 1: ORA-12008: error in materialized view refresh path ORA-01031: insufficient privileges ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2255 ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2461 ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2430 ORA-06512: at line 1
The base table for the Materialized View contains XML or object types and is located in a different schema than the MV. If the same MV is created in the schema that owns the base table, then the refresh is working fine.
CAUSEThis issue is documented in Bug 6146742 and was confirmed for RDBMS versions 10.2.0.1 to 10.2.0.3. It is caused by the internal use of the 'Flashback' feature of the database. Please see the Oracle documentation for more details on this feature.
The bug is currently open with Development and is being worked upon there.
SOLUTIONThere is a workaround available to make the refresh run:
Granting explicitly flashback privilege on the base table and the MV log to the owner of the MV avoids the issue: Please replace 'PARENT_TABLE' with the name of the base table and '' with the owner of the Materialized View.
About Me
...............................................................................................................................
● 本文作者:小麦苗,只专注于数据库的技术,更注重技术的运用
● 本文在itpub(http://blog.itpub.net/26736162)、博客园(http://www.cnblogs.com/lhrbest)和个人微信公众号(xiaomaimiaolhr)上有同步更新
● 本文itpub地址:http://blog.itpub.net/26736162/abstract/1/
● 本文博客园地址:http://www.cnblogs.com/lhrbest
● 本文pdf版及小麦苗云盘地址:http://blog.itpub.net/26736162/viewspace-1624453/
● 数据库笔试面试题库及解答:http://blog.itpub.net/26736162/viewspace-2134706/
● QQ群:230161599 微信群:私聊
● 联系我请加QQ好友(646634621),注明添加缘由
● 于 2017-05-05 09:00 ~ 2017-05-05 22:00 在魔都完成
● 文章内容来源于小麦苗的学习笔记,部分整理自网络,若有侵权或不当之处还请谅解
● 版权所有,欢迎分享本文,转载请保留出处
...............................................................................................................................
拿起手机使用微信客户端扫描下边的左边图片来关注小麦苗的微信公众号:xiaomaimiaolhr,扫描右边的二维码加入小麦苗的QQ群,学习最实用的数据库技术。


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