Return-Path: <ml-errors@fatcity.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id h9GNRU722776
 for <oracle-l@orafaq.net>; Thu, 16 Oct 2003 18:27:30 -0500
X-ClientAddr: 66.27.56.213
Received: from www2.fatcity.com (rrcs-west-66-27-56-213.biz.rr.com [66.27.56.213])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id h9GNRTc22771
 for <oracle-l@orafaq.net>; Thu, 16 Oct 2003 18:27:29 -0500
Received: (from root@localhost)
 by www2.fatcity.com (8.11.6/8.11.6) id h9GKfcf10279
 for oracle-l@orafaq.net; Thu, 16 Oct 2003 13:41:38 -0700
Received: by fatcity.com (05-Jun-2003/v1.0g-b73/bab) via fatcity.com id 005D3689; Thu, 16 Oct 2003 13:39:39 -0800
Message-ID: <F001.005D3689.20031016133939@fatcity.com>
Date: Thu, 16 Oct 2003 13:39:39 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: Mladen Gogala <mladen@wangtrading.com>
Sender: ml-errors@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: Mladen Gogala <mladen@wangtrading.com>
Subject: Re: CLOB data
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 73; ListGuru (c) 1996-2003 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain; Format=Flowed; DelSp=Yes; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

This is because "ENABLE STORAGE IN ROW" is the default, which means
that oracle will store the first 4000 bytes in the original block.
The first part of a LOB is, essentially, identical to VARCHAR2(4000)
or VARRAW(4000). If you say something like

CREATE TABLE t
  (
    ISCT_ID              NUMBER(10),
    CONTENT              CLOB
  )
  TABLESPACE UNDOTBS
  LOB(CONTENT) STORE AS LOB_CONTENTS (
           TABLESPACE SYSTEM
           DISABLE STORAGE IN ROW
           NOCACHE
           LOGGING)
/

You will not be able to do that any longer. You cannot, however, exceed  
4000 characters (I'm not sure what happens if the characters are  
multibyte ones - may be Steve or Cary could help with that).


On 10/16/2003 04:54:26 PM, Nancy Hu wrote:
> I know Oracle provides us dbms_lob package to manipulate LOB data.   
> However, I can use standard DML to manipulate CLOB data as following.   
> Is there advantage to use dbms_lob package?
> 
> SQL> CREATE TABLE t
>  2  (
>  3    ISCT_ID              NUMBER(10),
>  4    CONTENT              CLOB
>  5  );
> 
> Table created.
> 
> SQL> insert into t values(1, 'test');
> 
> 1 row created.
> 
> SQL> insert into t values(2, NULL);
> 
> 1 row created.
> 
> SQL> update t set content='test2' where isct_id=2;
> 
> 1 row updated.
> 
> SQL> select * from t;
> 
>   ISCT_ID                             CONTENT
> -------------------------------------------------------
>         1                               test
> 
>         2                               test2
> 
> SQL>
> 
> _________________________________________________________________
> Surf and talk on the phone at the same time with broadband Internet  
> access. Get high-speed for as low as $29.95/month (depending on the  
> local service providers in your area).  https://broadband.msn.com
> 
>-- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
>-- 
> Author: Nancy Hu
>  INET: nancyhu68@hotmail.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@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).
Mladen Gogala
Oracle DBA



Note:
This message is for the named person's use only.  It may contain confidential, proprietary or legally privileged information.  No confidentiality or privilege is waived or lost by any mistransmission.  If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender.  You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks.
Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Mladen Gogala
  INET: mladen@wangtrading.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@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).

