Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> A Special Case of Library Cache Lock Wait Event.

A Special Case of Library Cache Lock Wait Event.

From: AnySQL <anysql_at_gmail.com>
Date: 9 Mar 2007 02:59:41 -0800
Message-ID: <1173437981.230978.159400@8g2000cwh.googlegroups.com>


On Oracle 10g, I got the following wait of two sessions, session 32 blocked session 29. It's interesting and dangerous operation in OLTP system.

    SQL> SELECT SID, EVENT FROM V$SESSION       2 WHERE USERNAME='ANYSQL';            SID EVENT

    What I executed in session 32 is :

    SQL> exec dbms_mview.begin_table_reorganization('ANYSQL','T_IOT');

    PL/SQL procedure successfully completed.

    And what it's executing in session 29 is a delete statement, which was blocked by library cache lock :

    SQL> delete t_iot;

    Seems some of Oracle new features are dangerous, however if I submit a commit statement in session 32, then session 29 will continue to execute, the library cache lock will go away. Why not Oracle issue a default commit in this procedure?

From: http://www.anysql.net/en/oracle/mview_library_cache_lock.html

AnySQL.net



http://www.anysql.net/en Received on Fri Mar 09 2007 - 04:59:41 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US