Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1148825
  • 博文数量: 231
  • 博客积分: 2500
  • 博客等级: 少校
  • 技术积分: 2662
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-03 16:35
个人简介

学无止境

文章分类

全部博文(231)

文章存档

2014年(7)

2013年(103)

2011年(11)

2010年(53)

2009年(57)

分类: Oracle

2009-12-24 00:12:42

Create Materialized View Fails with ORA-4020 Deadlock Detected [ID 103077.1]

 
修改时间 28-SEP-2009     类型 PROBLEM     状态 PUBLISHED
 
 
 
Problem Description
-------------------
You are trying to create a materialized view on a prebuilt table, and
the following is reported:
ORA-04020: deadlock detected while trying to lock object
 
Error:  ORA 4020
Text:   deadlock detected while trying to lock object %s%s%s%s%s
Cause:  While trying to lock a library object, a deadlock is detected.
Action: Retry the operation later.
 
Syntax being used resembles the following format:
 
create materialized view TEST on prebuilt table
    REFRESH FAST
      as select id, col1, col2 from TEST;
       
Solution Description
--------------------
You are using the incorrect syntax to create the materialized view.
 
 
Explanation
-----------
The initial table from which the prebuilt table was created from should be the
table in the from clause.
 
Syntax example:
 
create materialized view prebuilt_table on prebuilt table
    REFRESH FAST
      as select id, col1, col2 from master_table;
 
Where the prebuilt_table = the subset table created from a larger/master table.
Where the master_table = the larger/master table of which the prebuilt_table is a subset.
 
 
References
----------
ORA-12060 WHEN ATTEMPTING TO CREATE A MATERIALIZED VIEW
 
相关的

产品

·   Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
关键字

MATERIALIZED VIEW
 
阅读(1619) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~