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!
$ 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!
相关文章推荐
- 【翻译】Why JavaScript Is and Will Continue to Be the First Choice of Programmers
- How to Spend the First 10 Minutes of Your Day
- warning:Instance variable used while 'self' is not set to the result of '[(super or self) init…]'
- 【译】Why JavaScript Is and Will Continue to Be the First Choice of Programmers
- To find the first working day. Non-Holiday and Non Weekend
- Day 9 ,Today is me to write the diary !so this diary is more formal than the diaries before.
- 87.You want to display the date for the first Mon day of the next month and
- 布置Git环境Your working copy is out of date. Try pulling from the remote to get the latest change
- Xcode4 布置Git环境Your working copy is out of date. Try pulling from the remote to get the latest change
- Idea svn version is too old,You need to upgrade the working copy first.
- 欧拉项目 Problem 12 of What is the value of the first triangle number to have over five hundred divisors
- Xcode4 布置Git环境Your working copy is out of date. Try pulling from the remote to get the latest change
- This is a bug I believe, and it took me 2-3 days to figure it out. Please do the following to get it working,
- To love oneself is the beginning of a lifelong romance. —Oscar Wilde
- The stack 'CSTACK' is filled to 100% (4096 bytes used out of 4096) 错误解决
- The connection to adb is down, and a severe error has occured.adb server is out of date ADB server d
- 解决 The 'InnoDB' feature is disabled; you need MySQL built with 'InnoDB' to have it working
- System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException: Operation is not valid due to the current state of the obj
- Time crumbles things; everything grows old under the power of Time and is forgotten through the lapse of Time
- The working copy needs to be upgraded svn: The working copy at 'D:\eclipse workspace\kjzfcopy' is