Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 18130 invoked from network); 14 Sep 2007 21:48:04 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by 69.64.49.119 with SMTP; 14 Sep 2007 21:48:03 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 32309742A77;
 Fri, 14 Sep 2007 22:09:20 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 20628-05-2; Fri, 14 Sep 2007 22:09:20 -0400 (EDT)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 7F4067444A9;
 Fri, 14 Sep 2007 22:09:19 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Fri, 14 Sep 2007 21:24:18 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 62682743C82
 for <oracle-l@freelists.org>; Fri, 14 Sep 2007 21:24:18 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 04166-06-5 for <oracle-l@freelists.org>;
 Fri, 14 Sep 2007 21:24:18 -0400 (EDT)
Received: from web812.biz.mail.mud.yahoo.com (web812.biz.mail.mud.yahoo.com [209.191.90.85])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with SMTP id D747D7444BC
 for <oracle-l@freelists.org>; Fri, 14 Sep 2007 21:24:17 -0400 (EDT)
Received: (qmail 66233 invoked by uid 60001); 15 Sep 2007 02:03:00 -0000
X-YMail-OSG: pwttmTYVM1kialiQxOwT6HjgVg9DKHY4QwjwCSxcJbqMIKwUzwf0oclORMMMup8zAkaxy7r01QxAzB2oOHgLvgaBT5jnEj8q5Wc1X1R6AXsbzg8-
Received: from [66.193.86.210] by web812.biz.mail.mud.yahoo.com via HTTP; Fri, 14 Sep 2007 19:03:00 PDT
Date: Fri, 14 Sep 2007 19:03:00 -0700 (PDT)
From: David Aldridge <david@david-aldridge.com>
Subject: RE: Causes of CF (Control file) Enqueues on Index Creation?
To: david@david-aldridge.com, T.Koppelaars@centraal.boekhuis.nl,
  Oracle List <oracle-l@freelists.org>
In-Reply-To: <583540.70389.qm@web806.biz.mail.mud.yahoo.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0-1446616220-1189821780=:65550"
Message-ID: <486947.65550.qm@web812.biz.mail.mud.yahoo.com>
X-archive-position: 1589
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: david@david-aldridge.com
Precedence: normal
Reply-to: david@david-aldridge.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
--0-1446616220-1189821780=:65550
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

There's a fresh complication on this -- there are actually eight simultaneous processes inseeting into the table, so changing to a direct path insert causes a big table locking problem. I thought I could alleviate that with a parallel direct path load (ie. load to new extents instead of above the HWM) but that didn't get rid of the locking for some reason -- maybe there is a lock held by the query coordinator in each case that causes the contention.
   
  So here're my other desperate stabs at quick workarounds -- an upgrade to 10g and/or moving each partition into it's own TS. My feeling is that either of these would help reduce the pq slaves fighting over locks, the former because of a achange in the checkpointing mechanism with 10g fromTS-based checkpoints to segment-based checkpoints, and the latter because it would pretty much mean the same thing.
   
  All thoughts appreciated.

David Aldridge <david@david-aldridge.com> wrote:
  If the load were modified to be direct path, and I've no idea why it isn't already to be honest, then my intuition tells me that would remove the possibility of delayed block cleanout occuring ... does that sound correct? I can't think why the blocks would need to be cleaned following direct path insert.

"Koppelaars, Toon" <T.Koppelaars@centraal.boekhuis.nl> wrote:         v\:* {behavior:url(#default#VML);}  o\:* {behavior:url(#default#VML);}  w\:* {behavior:url(#default#VML);}  .shape {behavior:url(#default#VML);}                If delayed block cleanout causes writes to the controlfile, then this might be your problem.
   
  When the index is created then the blocks are reread from disk and at that moment are cleaned out and all the parallel slaves are fighting for the CF enqueue.
   
      
---------------------------------
  
  From: oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org] On Behalf Of David Aldridge
Sent: woensdag 12 september 2007 14:32
To: Oracle List
Subject: Causes of CF (Control file) Enqueues on Index Creation?

   
    We recently noticed, through Quest Performance Analysis, that a particular index creation statement on a newly populated table occasionally suffers from enqueue waits that extend the creation time from a few minutes to over an hour.

     

    We used statspack to investigate further and found that at the time of index creation we get a spike in CF enqueue waits.

     

    I have read Anjo Kolk's whitepaper "Description of Oracle7 Wait Events and Enqueues" http://www.akadia.com/download/documents/session_wait_events.pdf in which he identifies an imposing list of situations in which the CF enqueue is used.

     

    The index is a locally partitioned single column uncompressed b-tree built in parallel degree 8 against a range partitioned heap table with 8 partitions. The table has just been loaded when this index is created and it's the first to be created post-load. Other subsequently-built indexes do not appear to have suffered from this problem. the index creation takes place in a new session that starts immediately after a previous session has populated the table, commited and gracefully exited. The issue occurs intermittently, not on every occasion that the table is loaded.

     

    I don't have access to the statspack data we extracted at the moment ... I'll post it as soon as I do.

     

    Does anyone have any quick thoughts about the relationship between creating an index and a control file lock? I'm really pushing the limits of my internals knowledge here -- OK, actually I have gone past it :(





--0-1446616220-1189821780=:65550
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<div>There's a fresh complication on this -- there are actually eight simultaneous processes inseeting into the table, so changing to a direct path insert causes a big table locking problem. I thought I could alleviate that with a parallel direct path load (ie. load to new extents instead of above the HWM) but that didn't get rid of the locking for some reason -- maybe there is a lock held by the query coordinator in each case that causes the contention.</div>  <div>&nbsp;</div>  <div>So here're my other desperate stabs at quick workarounds -- an upgrade to 10g and/or moving each partition into it's own TS. My feeling is that either of these would help reduce the pq slaves fighting over locks, the former because of a achange in the checkpointing mechanism with 10g fromTS-based checkpoints to segment-based checkpoints, and the latter because it would pretty much mean the same thing.</div>  <div>&nbsp;</div>  <div>All thoughts appreciated.<BR><BR><B><I>David Aldridge
 &lt;david@david-aldridge.com&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">If the load were modified to be direct path, and I've no idea why it isn't already to be honest, then my intuition tells me&nbsp;that would remove the possibility of delayed block cleanout occuring ... does that sound correct? I can't think why the blocks would need to be cleaned following direct path insert.<BR><BR><B><I>"Koppelaars, Toon" &lt;T.Koppelaars@centraal.boekhuis.nl&gt;</I></B> wrote:   <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">  <META content="Microsoft Word 11 (filtered medium)" name=Generator>  <STYLE>  v\:* {behavior:url(#default#VML);}  o\:* {behavior:url(#default#VML);}  w\:* {behavior:url(#default#VML);}  .shape {behavior:url(#default#VML);}  </STYLE>    <STYLE>  <!--   /* Font Definitions */   @font-face   {font-family:Tahoma;   panose-1:2 11
 6 4 3 5 4 4 2 4;}   /* Style Definitions */   p.MsoNormal, li.MsoNormal, div.MsoNormal   {margin:0cm;   margin-bottom:.0001pt;   font-size:12.0pt;     font-family:"Times New Roman";}  a:link, span.MsoHyperlink   {color:blue;   text-decoration:underline;}  a:visited, span.MsoHyperlinkFollowed   {color:blue;   text-decoration:underline;}  span.EmailStyle17   {mso-style-type:personal-reply;   font-family:Arial;   color:navy;}  @page Section1   {size:595.3pt 841.9pt;   margin:70.85pt 70.85pt 70.85pt 70.85pt;}  div.Section1   {page:Section1;}  -->  </STYLE>    <DIV class=Section1>  <DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">If delayed block cleanout causes writes to the controlfile, then this might be your problem.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></DIV>  <DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB
 style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></DIV>  <DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">When the index is created then the blocks are reread from disk and at that moment are cleaned out and all the parallel slaves are fighting for the CF enqueue.<o:p></o:p></SPAN></FONT></DIV>  <DIV class=MsoNormal><FONT face=Arial color=navy size=2><SPAN lang=EN-GB style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></DIV>  <DIV>  <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt">  <HR tabIndex=-1 align=center width="100%" SIZE=2>  </SPAN></FONT></DIV>  <DIV class=MsoNormal><B><FONT face=Tahoma size=2><SPAN lang=EN-US style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT face=Tahoma
 size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org] <B><SPAN style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>David Aldridge<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> woensdag 12 september 2007 14:32<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Oracle List<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Causes of CF (Control file) Enqueues on Index Creation?</SPAN></FONT><SPAN lang=EN-US><o:p></o:p></SPAN></DIV></DIV>  <DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></DIV>  <DIV>  <DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">We recently noticed, through Quest Performance Analysis, that a particular index creation statement on a newly populated table occasionally suffers from enqueue waits that extend the creation time from a few minutes to over
 an hour.<o:p></o:p></SPAN></FONT></DIV></DIV>  <DIV>  <DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></DIV></DIV>  <DIV>  <DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">We used statspack to investigate further and found that at the time of index creation we get a spike in CF enqueue waits.<o:p></o:p></SPAN></FONT></DIV></DIV>  <DIV>  <DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></DIV></DIV>  <DIV>  <DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">I have read Anjo Kolk's whitepaper "Description of Oracle7 Wait Events and Enqueues" <A href="http://www.akadia.com/download/documents/session_wait_events.pdf">http://www.akadia.com/download/documents/session_wait_events.pdf</A>&nbsp;in which he identifies an imposing list of situations in which the CF enqueue is
 used.<o:p></o:p></SPAN></FONT></DIV></DIV>  <DIV>  <DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></DIV></DIV>  <DIV>  <DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">The index is a locally partitioned single column uncompressed b-tree built in parallel degree 8 against a range partitioned heap table with 8 partitions. The table has just been loaded when this index is created and it's the first to be created post-load. Other subsequently-built indexes do not appear to have suffered from this problem. the index creation takes place in a new session that starts immediately after a previous session has populated the table, commited and gracefully exited. The issue occurs intermittently, not on every occasion that the table is loaded.<o:p></o:p></SPAN></FONT></DIV></DIV>  <DIV>  <DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE:
 12pt">&nbsp;<o:p></o:p></SPAN></FONT></DIV></DIV>  <DIV>  <DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">I don't have access to the statspack data we extracted at the moment ... I'll post it as soon as I do.<o:p></o:p></SPAN></FONT></DIV></DIV>  <DIV>  <DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></DIV></DIV>  <DIV>  <DIV class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Does anyone have any quick thoughts about the relationship between creating an index and a control file lock? I'm really pushing the limits of my internals knowledge here -- OK, actually I have gone past it :(<o:p></o:p></SPAN></FONT></DIV></DIV></DIV></BLOCKQUOTE><BR></BLOCKQUOTE><BR>
--0-1446616220-1189821780=:65550--
--
http://www.freelists.org/webpage/oracle-l


