您的位置:首页 > 其它

The first day of working--everything is fresh to me--I am a super person!

2009-02-02 15:19 696 查看
I did a strange thing at the first day of the new year and Oracle gave me a foolish feedback then I took a rather long time to find the root cause about the issue.

$ sqlplus scott/tiger

SQL*Plus: Release 10.2.0.3.0 - Production on Mon Feb 2 02:15:49 2009

Copyright (c) 1982, 2006, Oracle. All Rights Reserved.

Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Oracle Label Security, OLAP
and Data Mining options

SQL> CREATE MATERIALIZED VIEW sgreports.summary on prebuilt table
2 REFRESH force with primary key
3 AS select *
4 FROM sgreports.summary;
CREATE MATERIALIZED VIEW sgreports.summary on prebuilt table
*
ERROR at line 1:
ORA-04020: deadlock detected while trying to lock object
30x407DD02900x41697EB180x40BE24128

SQL> CREATE MATERIALIZED VIEW summary on prebuilt table
2 REFRESH force with primary key
3 AS select *
4 FROM sgreports.summary;

Materialized view created.

I took time to find what has caused the deadlock,sound like joke,isn't it:)

The first day of working--everything is fresh to me--I am a super person!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐