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: At the 4000 limit for LOBs in SQL

Re: At the 4000 limit for LOBs in SQL

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Mon, 25 Mar 2002 11:38:49 -0800
Message-ID: <F001.00432634.20020325113849@fatcity.com>

It didn't reproduce on 9.0.1.2.

But then it was a simple test with just a couple of rows in the email table.

Jonathan Lewis
http://www.jlcomp.demon.co.uk

Next Seminar - UK, April 3rd - 5th
http://www.jlcomp.demon.co.uk/seminar.html

Host to The Co-Operative Oracle Users' FAQ http://www.jlcomp.demon.co.uk/faq/ind_faq.html

Author of:
Practical Oracle 8i: Building Efficient Databases

-----Original Message-----
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> Date: 25 March 2002 16:50

|Anyone seen behaviour like this before ?
|
|rem
|rem simple table
|rem
|SQL> create table blah (i number, x clob);
|
|Table created.
|
|rem
|rem Add a row that I construct (i=1), and then
|rem insert a row from an existing table (which
|rem also contains a clob)
|rem
|SQL> declare
| 2 r varchar2(32000) := rpad('*',20000,'*');
| 3 begin
| 4 insert into blah values (1,r);
| 5 insert into blah select 2,email
| 6 from email_content where id = 418830;
| 7 commit;
| 8 end;
| 9 /
|
|PL/SQL procedure successfully completed.
|
|rem
|rem So lengthwise the two lobs are similar
|rem
|SQL> select i, dbms_lob.getlength(x) from blah;
|
| I DBMS_LOB.GETLENGTH(X)
|---------- ---------------------
| 1 20000
| 2 19743
|
|rem
|rem And the first lob looks fine...
|rem
|SQL> select dbms_lob.substr(x,3999,1)
| 2 from blah where i = 1;
|
|DBMS_LOB.SUBSTR(X,3999,1)
|---------------------------------------------------------------------



|*********************************************************************


|*********************************************************************


|...
|
|rem
|rem Whereas the second lob does not!
|rem
|SQL>
|SQL> select dbms_lob.substr(x,3999,1)
| 2 from blah where i = 2;
|select dbms_lob.substr(x,3999,1)
| *
|ERROR at line 1:
|ORA-06502: PL/SQL: numeric or value error: character
|string buffer too small
|ORA-06512: at line 1
|
|Ideas anyone ?
|
|Cheers
|Connor
|
|=====
|Connor McDonald
|http://www.oracledba.co.uk (mirrored at
|http://www.oradba.freeserve.co.uk)
|
|"Some days you're the pigeon, some days you're the statue"
|
|__________________________________________________
|Do You Yahoo!?
|Everything you'll ever need on one web page
|from News and Sport to Email and Music Charts
|http://uk.my.yahoo.com
|--
|Please see the official ORACLE-L FAQ: http://www.orafaq.com
|--
|Author: =?iso-8859-1?q?Connor=20McDonald?=
| INET: hamcdc_at_yahoo.co.uk
|
|Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
|San Diego, California -- Public Internet access / Mailing
Lists
|--------------------------------------------------------------------
|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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jonathan Lewis
  INET: jonathan_at_jlcomp.demon.co.uk

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Mar 25 2002 - 13:38:49 CST

Original text of this message

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