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: CLOB field question

Re: CLOB field question

From: Tim Bunce <Tim.Bunce_at_pobox.com>
Date: Thu, 16 Aug 2001 05:39:51 -0700
Message-ID: <F001.0036CD6B.20010816054137@fatcity.com>

On Thu, Aug 16, 2001 at 02:15:55AM -0800, Guy Hammond wrote:
> I have another CLOB question, what is the best way to do a
> search-and-replace?
>
> Something like a c/oldvalue/newvvalue/ on the SQL*Plus command line, or
> $variable =~ s/oldvalue/newvalue/; in Perl.
>
> The only thing I can think of right now would be using INSTR to locate
> the value I want, SUBSTR to extract the parts of the document either
> side of it, then APPEND to create a new CLOB with first part, new value,
> last part... but this seems a bit inelegant.

My Oracle::OCI perl modules is close to being able to let you stream a LOB into client memory and stream it back to the server, possibly applying perl regular expressions along the way.

Tim.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Tim Bunce
  INET: Tim.Bunce_at_pobox.com

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 Thu Aug 16 2001 - 07:39:51 CDT

Original text of this message

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