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: Barbara Baker <barbarabbaker_at_yahoo.com>
Date: Tue, 21 Oct 2003 07:19:25 -0800
Message-ID: <F001.005D3DDD.20031021071925@fatcity.com>


Hi, Mark.
I'm not Tim, but I did encounter such a situation. This was not a temp table, but a permanent one.

We have a db with a very strange block size of 4608 (actually Tim is painfully aware of this one). We have a very large table in this database. It was expanding at about 200 megs per week -- way out of control for a relataively small database.

The database was not reusing blocks. Oracle recommends that (100% - (pctfree+pcused)) be greater than the maximum sie of a row. So we did an exact calculation of the blocksize less %free+%used

 1% of a block is 46.08
80% of a block is 3686.4
4608 - (46.08 + 3686.4) = 875.52

our largest row length is 860

So we set pctfree at 1% and pctused at 80% One of the reasons we can get by with this is because the vendor designed the database with all char (not varchar2), so we pretty much know exactly what each row is going to consume. (It's a Cobol app)

After this change, the database stopped it's wild expansion.

Not a normal situation, but then nothing here is normal. (Kids -- don't try this at home!)

Barb


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Barbara Baker
  INET: barbarabbaker_at_yahoo.com

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 Tue Oct 21 2003 - 10:19:25 CDT

Original text of this message

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