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: 8i CLOB data needs a labotomy

Re: 8i CLOB data needs a labotomy

From: John Barron <jbarron_at_windriver.com>
Date: Tue, 27 Jun 2000 15:11:58 -0700
Message-Id: <10541.110593@fatcity.com>

--=====================_116064501==_.ALT
Content-Type: text/plain; charset="us-ascii"

ooppps lobotomy - cant speel

At 01:27 PM 6/27/00 -0800, you wrote:
>
> Hi
>
> I think my 8i CLOB data needs a labotomy. This is my problem and my work
> around. We use perl DBD::Oracle to load our database from flat files. Part of
> it is to load embedded text data into CLOB columns in our table
> CR_HLD_QISI_CALLS. The CLOB cols are PROBLEMTEXT, ANALYSISTEXT, etc. When we
> run the perl script the 100M text file mushrooms out to 900M in the
> tablespace. Using the tablespace coalesce command has no affect on the
> tablespaces. If we MOVE the tables and CLOB data to another tablespace (or
> even in the same tablespace) and compress to one extent it shrinks the 800M
> down to 40M.
>
> Why does it take so much tablespace? Is it the way perl loads data? We have
> set default storage on the tablespace and tables to PCTFREE=0 as there will
> be no updates to this table. The database is UTF8 with NLSLANG=ja16euc and we
> do have some indexes on the tables but none of this accounts for the huge
> space requirements for the initial upload.
>
> Any comments, pointers would be appreciated. Ive added our move sql and the
> space used before and after the table move and coalesce.
>
> tia
>
> John Barron
>
>
> The SQL for moving the CLOBS and tables
> ------------------------------------------------------
> alter table CRTS.CR_HLD_QISI_CALLS move tablespace CRTS_DATA
> lob (PROBLEMTEXT) store as (tablespace CRTS_QISI_LOB
> storage(minextents 1));
> alter table CRTS.CR_HLD_QISI_CALLS move
> lob (ANALYSISTEXT) store as (tablespace CRTS_QISI_LOB
> storage(minextents 1));
> alter table CRTS.CR_HLD_QISI_CALLS move
> lob (HISTORY) store as (tablespace CRTS_QISI_LOB
> storage(minextents 1));
>
> alter tablespace CRTS_QISI_DATA coalesce;
>
> alter table CRTS.CR_HLD_QISI_CALLS move tablespace CRTS_QISI_DATA
> lob (ESC_SUMMARY) store as (tablespace CRTS_QISI_LOB
> storage(minextents 1));
>
>
> The BEFORE and AFTER space output
> -------------------------------------------------
> Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
> With the Partitioning option
> JServer Release 8.1.6.0.0 Production
>
> Table CLOB Col
> CR_HLD_QISI_CALLS PROBLEMTEXT 64,430,080
> CR_HLD_QISI_CALLS ANALYSISTEXT 469,114,880
> CR_HLD_QISI_CALLS HISTORY 279,552,000
> CR_HLD_QISI_CALLS ESC_SUMMARY 1,597,440
> CR_HLD_QISI_CALLS Total 814,694,400
>
> Table altered.
>
>
> Table altered.
>
>
> Table altered.
>
>
> Tablespace altered.
>
>
> Table altered.
>
> CR_HLD_QISI_CALLS PROBLEMTEXT 39,936,000
> CR_HLD_QISI_CALLS ANALYSISTEXT 532,480
> CR_HLD_QISI_CALLS HISTORY 532,480
> CR_HLD_QISI_CALLS ESC_SUMMARY 532,480
> CR_HLD_QISI_CALLS Total 41,533,440

--=====================_116064501==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
ooppps lobotomy - cant speel<br>
<br>
At 01:27 PM 6/27/00 -0800, you wrote: <br> <blockquote type=cite cite>Hi <br>
<br>
I think my 8i CLOB data needs a labotomy. This is my problem and my work around. We use perl DBD::Oracle to load our database from flat files. Part of it is to load embedded&nbsp; text data into CLOB columns in our table CR_HLD_QISI_CALLS. The CLOB cols are PROBLEMTEXT, ANALYSISTEXT, etc. When we run the perl script the 100M text file mushrooms out to 900M in the tablespace. Using the tablespace coalesce command has no affect on the tablespaces. If we&nbsp; MOVE the tables and CLOB data to another tablespace (or even in the same tablespace) and compress to one extent it shrinks the 800M down to 40M.<br>
<br>
Why does it take so much tablespace? Is it the way perl loads data? We have set default storage on the tablespace and tables to PCTFREE=0 as there will be no updates to this table. The database is UTF8 with NLSLANG=ja16euc and we do have some indexes on the tables but none of this accounts for the huge space requirements for the initial upload.<br>
<br>
Any comments, pointers would be appreciated. Ive added our move sql and the space used before and after the table move and coalesce.<br> <br>
tia<br>
<br>
John Barron<br>
<br>
<br>
The SQL for moving the CLOBS and tables<br>

------------------------------------------------------<br>
<font face="r_ansi">alter table CRTS.CR_HLD_QISI_CALLS move tablespace CRTS_DATA<br>
lob (PROBLEMTEXT) store as (tablespace CRTS_QISI_LOB<br> storage(minextents 1));<br>
alter table CRTS.CR_HLD_QISI_CALLS move<br> lob (ANALYSISTEXT) store as (tablespace CRTS_QISI_LOB<br> storage(minextents 1));<br>
alter table CRTS.CR_HLD_QISI_CALLS move<br> lob (HISTORY) store as (tablespace CRTS_QISI_LOB<br> storage(minextents 1));<br>
<br>
alter tablespace CRTS_QISI_DATA coalesce;<br> <br>
alter table CRTS.CR_HLD_QISI_CALLS move tablespace CRTS_QISI_DATA<br> lob (ESC_SUMMARY) store as (tablespace CRTS_QISI_LOB<br> storage(minextents 1));<br>
<br>
<br>
</font>The BEFORE and AFTER space output<br>
-------------------------------------------------<br>
<font face="r_ansi">Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production<br>
With the Partitioning option<br>
JServer Release 8.1.6.0.0&nbsp; Production<br> <br>
Table&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CLOB Col<br>
CR_HLD_QISI_CALLS&nbsp;&nbsp;&nbsp;
PROBLEMTEXT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 64,430,080<br>
CR_HLD_QISI_CALLS&nbsp;&nbsp;&nbsp;
ANALYSISTEXT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 469,114,880<br>
CR_HLD_QISI_CALLS&nbsp;&nbsp;&nbsp;
HISTORY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 279,552,000<br>
CR_HLD_QISI_CALLS&nbsp;&nbsp;&nbsp;
ESC_SUMMARY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1,597,440<br>
CR_HLD_QISI_CALLS&nbsp;&nbsp;&nbsp;
Total&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 814,694,400<br>
<br>
Table altered.<br>
<br>
<br>
Table altered.<br>
<br>
<br>
Table altered.<br>
<br>
<br>
Tablespace altered.<br>
<br>
<br>
Table altered.<br>
<br>
CR_HLD_QISI_CALLS&nbsp;&nbsp;&nbsp;
PROBLEMTEXT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 39,936,000<br>
CR_HLD_QISI_CALLS&nbsp;&nbsp;&nbsp;
ANALYSISTEXT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 532,480<br>
CR_HLD_QISI_CALLS&nbsp;&nbsp;&nbsp;
HISTORY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 532,480<br>
CR_HLD_QISI_CALLS&nbsp;&nbsp;&nbsp;
ESC_SUMMARY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 532,480<br>
CR_HLD_QISI_CALLS&nbsp;&nbsp;&nbsp;
Total&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Received on Tue Jun 27 2000 - 17:11:58 CDT

Original text of this message

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