Return-Path: Delivered-To: 2-oracle-l@orafaq.com Received: (qmail 32537 invoked from network); 15 Apr 2008 19:34:53 -0500 Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180) by static-ip-69-64-49-119.inaddr.server4you.com with SMTP; 15 Apr 2008 19:34:53 -0500 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E62D0840EF0; Tue, 15 Apr 2008 20:34:53 -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 24592-04; Tue, 15 Apr 2008 20:34:53 -0400 (EDT) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 5F5D784061A; Tue, 15 Apr 2008 20:34:53 -0400 (EDT) Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 15 Apr 2008 19:56:41 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D3F82840243 for ; Tue, 15 Apr 2008 19:56:40 -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 21685-01 for ; Tue, 15 Apr 2008 19:56:40 -0400 (EDT) Received: from s-utl02-dcpop.stsn.net (s-utl02-dcpop.stsn.net [72.255.0.202]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with SMTP id 71CA1840218 for ; Tue, 15 Apr 2008 19:56:40 -0400 (EDT) Received: from s-utl02-dcpop.stsn.net ([127.0.0.1]) by s-utl02-dcpop.stsn.net (SMSSMTP 4.1.2.20) with SMTP id M2008041519563528245 ; Tue, 15 Apr 2008 19:56:35 -0400 X-Spam-Status: No, hits=0.0 required=9.9 tests=ALL_TRUSTED: -2.867,AWL: -0.574,BAYES_00: -1.665, HTML_10_20: 1.35,HTML_MESSAGE: 0.001,SARE_MSGID_EMPTY: 1.106 X-Spam-Level: Received: from Prokyon.centrexcc.com ([10.26.77.204]) by s-utl02-dcpop.stsn.net; Tue, 15 Apr 2008 19:56:33 -0400 Date: Tue, 15 Apr 2008 17:56:20 -0600 To: daniel.fink@optimaldba.com From: Wolfgang Breitling Subject: Re: ** CPU impact of I/O change Cc: ajoshi977@yahoo.com,oracle-l@freelists.org In-Reply-To: <48049B2C.4070507@optimaldba.com> References: <369294.45225.qm@web58014.mail.re3.yahoo.com> <48049B2C.4070507@optimaldba.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_47656093==.ALT" Message-Id: <20080415235640.71CA1840218@turing.freelists.org> X-archive-position: 7201 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-to: oracle-l-bounce@freelists.org X-original-sender: breitliw@centrexcc.com Precedence: normal Reply-to: breitliw@centrexcc.com List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: oracle-l X-List-ID: oracle-l List-subscribe: List-owner: List-post: List-archive: X-list: oracle-l X-Virus-Scanned: Debian amavisd-new at localhost.localdomain --=====================_47656093==.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed I beg to differ slightly. a) migrated rows are fixed by a truncate and reload. What Dan probably meant is that the reload does not prevent the re-occurrence of row migration unless the root cause is addressed, perhaps by as little as increasing pctfree. b) just to prevent the misconception - not that Dan has said anything to that effect - that chained rows are only created at insert. An update also can cause a row to chain as well as migrate. Just imagine a row with 3 varchar2(4000) fields which at insert time are populated with a single space each. If a later update expands each field to its 4000 byte maximum the resulting row does no longer fit into a single block and needs to be chained. I don't know if the row at that point is also migrated. Should be easy to find out. As for changing the HWM, if you are on 10g+ with ASSM-LMTs then you can use shrink rather than a reorg to reset the HWM. At 06:10 AM 4/15/2008, Daniel Fink wrote: >The second question is "Will reorganizing tables fix the problem?". >The answer to that is almost certainly not. Chained rows occur >because the row is too large to fit into a block. Migrated rows >occur when the update to a row needs more space than the available >free space in the block. In the first case, either make the row >smaller or the block (actually the available free space in the >block) larger, two things that a truncate and reload won't help. In >the second case, you have to change the application logic or the >free space setting (pctfree) for the table. Migrated rows are a >symptom of updates that cannot fit into the available free space in >the block, something a truncate and reload won't help either. > >Changing the HWM only impacts full table scans. If the HWM has been >set too high because of a one time event (huge delete) and it has a >quantifiable impact, then a reorganization of the table is >appropriate. If the HWM is set too high because large insert/delete >operations are normal, the change will be temporary. Regards Wolfgang Breitling Centrex Consulting Corporation www.centrexcc.com --=====================_47656093==.ALT Content-Type: text/html; charset="us-ascii" I beg to differ slightly.

a) migrated rows are fixed by a truncate and reload. What Dan probably meant is that the reload does not prevent the re-occurrence of row migration unless the root cause is addressed, perhaps by as little as increasing pctfree.

b) just to prevent the misconception - not that Dan has said anything to that effect - that chained rows are only created at insert. An update also can cause a row to chain as well as migrate. Just imagine a row with 3 varchar2(4000) fields which at insert time are populated with a single space each. If a later update expands each field to its 4000 byte maximum the resulting row does no longer fit into a single block and needs to be chained. I don't know if the row at that point is also migrated. Should be easy to find out.

As for changing the HWM, if you are on 10g+ with ASSM-LMTs then you can use shrink rather than a reorg to reset the HWM.

At 06:10 AM 4/15/2008, Daniel Fink wrote:

The second question is "Will reorganizing tables fix the problem?". The answer to that is almost certainly not. Chained rows occur because the row is too large to fit into a block. Migrated rows occur when the update to a row needs more space than the available free space in the block. In the first case, either make the row smaller or the block (actually the available free space in the block) larger, two things that a truncate and reload won't help. In the second case, you have to change the application logic or the free space setting (pctfree) for the table. Migrated rows are a symptom of updates that cannot fit into the available free space in the block, something a truncate and reload won't help either.

Changing the HWM only impacts full table scans. If the HWM has been set too high because of a one time event (huge delete) and it has a quantifiable impact, then a reorganization of the table is appropriate. If the HWM is set too high because large insert/delete operations are normal, the change will be temporary.

Regards

Wolfgang Breitling
Centrex Consulting Corporation
www.centrexcc.com --=====================_47656093==.ALT-- -- http://www.freelists.org/webpage/oracle-l