dbTalk Databases Forums  

CLOB > 32k

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss CLOB > 32k in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
The Magnet
 
Posts: n/a

Default CLOB > 32k - 06-02-2010 , 09:49 AM






We're trying to insert a value that is like 50,000 characters long
into a CLOB column from PL/SQL. It is passed in as a parameter to a
CLOB type.

Now, from what I am reading 32k is the limit for any variable in PL/
SQL.

First, what is the best way to get around this.
Second, if 32k is the largest, the how does one insert objects,
photos, etc into an object column if PL/SQL can only handle 32k?

Reply With Quote
  #2  
Old   
Terry Dykstra
 
Posts: n/a

Default Re: CLOB > 32k - 06-02-2010 , 10:07 AM






"The Magnet" <art (AT) unsu (DOT) com> wrote

Quote:
We're trying to insert a value that is like 50,000 characters long
into a CLOB column from PL/SQL. It is passed in as a parameter to a
CLOB type.

Now, from what I am reading 32k is the limit for any variable in PL/
SQL.

First, what is the best way to get around this.
Second, if 32k is the largest, the how does one insert objects,
photos, etc into an object column if PL/SQL can only handle 32k?

Check out the dbms_lob package.

--
Terry Dykstra

Reply With Quote
  #3  
Old   
The Magnet
 
Posts: n/a

Default Re: CLOB > 32k - 06-02-2010 , 12:11 PM



On Jun 2, 10:07*am, "Terry Dykstra" <tddyks... (AT) forestoil (DOT) ca> wrote:
Quote:
"The Magnet" <a... (AT) unsu (DOT) com> wrote in message

news:f40c0053-0fef-473a-a206-f9319a55669c (AT) q8g2000vbm (DOT) googlegroups.com...



We're trying to insert a value that is like 50,000 characters long
into a CLOB column from PL/SQL. *It is passed in as a parameter to a
CLOB type.

Now, from what I am reading 32k is the limit for any variable in PL/
SQL.

First, what is the best way to get around this.
Second, if 32k is the largest, the how does one insert objects,
photos, etc into an object column if PL/SQL can only handle 32k?

Check out the dbms_lob package.

--
Terry Dykstra
Ok, well, however our PHP guys did it, the defined it as an object on
their end and it comes in as a CLOB and inserts just fine.

The next thing is that we open a REF cursor and the PHP reads the
record set of data, with the CLOB being part of it. The cursor is a
dynamic cursor built within the PL/SQL and then PHP reads the record
set.

But I am having issues getting the CLOB out and processed within the
REF cursor.

Any tricks while I search for an answer?

Reply With Quote
  #4  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: CLOB > 32k - 06-03-2010 , 01:57 PM



On 06/02/2010 04:49 PM, The Magnet wrote:
Quote:
We're trying to insert a value that is like 50,000 characters long
into a CLOB column from PL/SQL. It is passed in as a parameter to a
CLOB type.

Now, from what I am reading 32k is the limit for any variable in PL/
SQL.

First, what is the best way to get around this.
Second, if 32k is the largest, the how does one insert objects,
photos, etc into an object column if PL/SQL can only handle 32k?


32k at the time, until all is processed.
Similar to eating elephants.
--

Regards,

Frank van Bortel

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.