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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: using temp tables for staging databases?

Re: using temp tables for staging databases?

From: Binley Lim <Binley.Lim_at_xtra.co.nz>
Date: Mon, 27 Oct 2003 03:29:25 -0800
Message-ID: <F001.005D4AE1.20031027032925@fatcity.com>


What you have described is expected behaviour - if "the next insert would drop amount of free space less than PCTFREE", the block is unlinked.

What I had not considered is what happens when the block is still below PCTUSED? As usual, Steve Adams' website explains this very nicely - it is not unlinked, just walked over, so the next smaller insert is likely to succeed. And as you pointed out, It would indeed take rows that are a large proportion of blocksize for this effect to have an impact.

  No, blocks won't fill up to PCTFREE in case a block is already above PCTUSED and the next insert would drop amount of free space less than PCTFREE. Blocks are just unlinked from freelist in this case. That means if you normally have 10byte inserts and occasionally have 4000 byte inserts in your table, then you might be wasting space due to premature unlink of blocks in freelist.

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Binley Lim
  INET: Binley.Lim_at_xtra.co.nz

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Oct 27 2003 - 05:29:25 CST

Original text of this message

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