<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: CLOB&#039;s unexpected ways</title>
	<atom:link href="http://technology.amis.nl/2006/07/05/clobs-unexpected-ways/feed/" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/2006/07/05/clobs-unexpected-ways/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=clobs-unexpected-ways</link>
	<description></description>
	<lastBuildDate>Fri, 12 Apr 2013 10:04:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Patrick Sinke</title>
		<link>http://technology.amis.nl/2006/07/05/clobs-unexpected-ways/#comment-3571</link>
		<dc:creator>Patrick Sinke</dc:creator>
		<pubDate>Thu, 06 Jul 2006 09:46:19 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1274#comment-3571</guid>
		<description><![CDATA[Hi Marco, thanks for you information, as always ;)
I forgot to mention I was working in Oracle 9iR2, apparently it&#039;s al a bit less buggy in 10g!]]></description>
		<content:encoded><![CDATA[<p>Hi Marco, thanks for you information, as always <img src='http://technology.amis.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
I forgot to mention I was working in Oracle 9iR2, apparently it&#8217;s al a bit less buggy in 10g!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Gralike</title>
		<link>http://technology.amis.nl/2006/07/05/clobs-unexpected-ways/#comment-3570</link>
		<dc:creator>Marco Gralike</dc:creator>
		<pubDate>Wed, 05 Jul 2006 20:23:13 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1274#comment-3570</guid>
		<description><![CDATA[Also look at &quot;Storing CLOBs Inline: DISABLING STORAGE and Space Used&quot; on http://www.utexas.edu/its/unix/reference/oracledocs/v92/B10501_01/appdev.920/a96591/adl06faq.htm

The link for the REPLACE statements should have been http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/functions134.htm#SQLRF00697

Chaining or migration can be tollerable as long as your (storage/architecture) design is correct. See also:

http://asktom.oracle.com/pls/ask/f?p=4950:8:18100613647296170221::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:358341515662]]></description>
		<content:encoded><![CDATA[<p>Also look at &#8220;Storing CLOBs Inline: DISABLING STORAGE and Space Used&#8221; on <a href="http://www.utexas.edu/its/unix/reference/oracledocs/v92/B10501_01/appdev.920/a96591/adl06faq.htm" rel="nofollow">http://www.utexas.edu/its/unix/reference/oracledocs/v92/B10501_01/appdev.920/a96591/adl06faq.htm</a></p>
<p>The link for the REPLACE statements should have been <a href="http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/functions134.htm#SQLRF00697" rel="nofollow">http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/functions134.htm#SQLRF00697</a></p>
<p>Chaining or migration can be tollerable as long as your (storage/architecture) design is correct. See also:</p>
<p><a href="http://asktom.oracle.com/pls/ask/f?p=4950:8:18100613647296170221" rel="nofollow">http://asktom.oracle.com/pls/ask/f?p=4950:8:18100613647296170221</a>::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:358341515662</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Gralike</title>
		<link>http://technology.amis.nl/2006/07/05/clobs-unexpected-ways/#comment-3569</link>
		<dc:creator>Marco Gralike</dc:creator>
		<pubDate>Wed, 05 Jul 2006 19:38:56 +0000</pubDate>
		<guid isPermaLink="false">http://technology.amis.nl/blog/?p=1274#comment-3569</guid>
		<description><![CDATA[See &quot;lob_replace&quot; on asktom for a solution: http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1533006062995

After looking up replace, what rules apply for input / ouput datatypes (http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/functions134.htm#SQLRF00697)
 I did the following:

SQL&gt; select * from v$version;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production

5 rows selected.


SQL&gt; create table clob_test
  2  (id number(7),
  3   name varchar2(20),
  4   description clob
  5  );

Table created.

SQL&gt; insert into clob_test
  2  values (1, &#039;ABCD&#039;,&#039;ABCD&#039;)
  3  ;

1 row created.

SQL&gt; commit;

Commit complete.

SQL&gt; update clob_test set name = REPLACE( name, &#039;ABCD&#039;, &#039;ABCDEF&#039;) where ID=1
  2  ;

1 row updated.

SQL&gt; update clob_test set description= REPLACE( description, &#039;ABCD&#039;, &#039;ABCDEF&#039;) where ID=1;

1 row updated.

SQL&gt; select * from clob_test;

       ID NAME                 DESCRIPTION
--------- -------------------- -------------------------------------------------------------------------------
        1 ABCDEF               ABCDEF

1 row selected.

SQL&gt; insert into clob_test
  2  values (2, &#039;ABCD&#039;,to_clob(&#039;ABCD&#039;))
  3  ;

1 row created.

SQL&gt; commit;

Commit complete.

SQL&gt; select * from clob_test;

       ID NAME                 DESCRIPTION
--------- -------------------- -------------------------------------------------------------------------------
        1 ABCDEF               ABCDEF
        2 ABCD                 ABCD

2 rows selected.

SQL&gt; update clob_test set description= REPLACE( description, &#039;ABCD&#039;, &#039;ABCDEF&#039;) where ID=2;

1 row updated.

SQL&gt; select * from clob_test;

       ID NAME                 DESCRIPTION
--------- -------------------- -------------------------------------------------------------------------------
        1 ABCDEF               ABCDEF
        2 ABCD                 ABCDEF

2 rows selected.

SQL&gt; update clob_test set description= REPLACE( description, &#039;ABCD&#039;, to_clob(&#039;ABCD&#039;)) where ID=2;

1 row updated.

SQL&gt; select * from clob_test;

       ID NAME                 DESCRIPTION
--------- -------------------- -------------------------------------------------------------------------------
        1 ABCDEF               ABCDEF
        2 ABCD                 ABCDEF

2 rows selected.

SQL&gt; update clob_test set description= REPLACE( description, &#039;ABC&#039;, to_clob(&#039;ABCD&#039;)) where ID=2;

1 row updated.

SQL&gt; select * from clob_test;

       ID NAME                 DESCRIPTION
--------- -------------------- -------------------------------------------------------------------------------
        1 ABCDEF               ABCDEF
        2 ABCD                 ABCDDEF

2 rows selected.

SQL&gt; update clob_test set description= REPLACE( description, to_clob(&#039;DD&#039;),to_clob(&#039;D&#039;)) where ID=2;

1 row updated.

SQL&gt; select * from clob_test;

       ID NAME                 DESCRIPTION
--------- -------------------- -------------------------------------------------------------------------------
        1 ABCDEF               ABCDEF
        2 ABCD                 ABCDEF

2 rows selected.]]></description>
		<content:encoded><![CDATA[<p>See &#8220;lob_replace&#8221; on asktom for a solution: <a href="http://asktom.oracle.com/pls/ask/f?p=4950:8" rel="nofollow">http://asktom.oracle.com/pls/ask/f?p=4950:8</a>:::::F4950_P8_DISPLAYID:1533006062995</p>
<p>After looking up replace, what rules apply for input / ouput datatypes (<a href="http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/functions134.htm#SQLRF00697" rel="nofollow">http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/functions134.htm#SQLRF00697</a>)<br />
 I did the following:</p>
<p>SQL&gt; select * from v$version;</p>
<p>BANNER<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 &#8211; Prod<br />
PL/SQL Release 10.2.0.1.0 &#8211; Production<br />
CORE    10.2.0.1.0      Production<br />
TNS for Linux: Version 10.2.0.1.0 &#8211; Production<br />
NLSRTL Version 10.2.0.1.0 &#8211; Production</p>
<p>5 rows selected.</p>
<p>SQL&gt; create table clob_test<br />
  2  (id number(7),<br />
  3   name varchar2(20),<br />
  4   description clob<br />
  5  );</p>
<p>Table created.</p>
<p>SQL&gt; insert into clob_test<br />
  2  values (1, &#8216;ABCD&#8217;,'ABCD&#8217;)<br />
  3  ;</p>
<p>1 row created.</p>
<p>SQL&gt; commit;</p>
<p>Commit complete.</p>
<p>SQL&gt; update clob_test set name = REPLACE( name, &#8216;ABCD&#8217;, &#8216;ABCDEF&#8217;) where ID=1<br />
  2  ;</p>
<p>1 row updated.</p>
<p>SQL&gt; update clob_test set description= REPLACE( description, &#8216;ABCD&#8217;, &#8216;ABCDEF&#8217;) where ID=1;</p>
<p>1 row updated.</p>
<p>SQL&gt; select * from clob_test;</p>
<p>       ID NAME                 DESCRIPTION<br />
&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
        1 ABCDEF               ABCDEF</p>
<p>1 row selected.</p>
<p>SQL&gt; insert into clob_test<br />
  2  values (2, &#8216;ABCD&#8217;,to_clob(&#8216;ABCD&#8217;))<br />
  3  ;</p>
<p>1 row created.</p>
<p>SQL&gt; commit;</p>
<p>Commit complete.</p>
<p>SQL&gt; select * from clob_test;</p>
<p>       ID NAME                 DESCRIPTION<br />
&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
        1 ABCDEF               ABCDEF<br />
        2 ABCD                 ABCD</p>
<p>2 rows selected.</p>
<p>SQL&gt; update clob_test set description= REPLACE( description, &#8216;ABCD&#8217;, &#8216;ABCDEF&#8217;) where ID=2;</p>
<p>1 row updated.</p>
<p>SQL&gt; select * from clob_test;</p>
<p>       ID NAME                 DESCRIPTION<br />
&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
        1 ABCDEF               ABCDEF<br />
        2 ABCD                 ABCDEF</p>
<p>2 rows selected.</p>
<p>SQL&gt; update clob_test set description= REPLACE( description, &#8216;ABCD&#8217;, to_clob(&#8216;ABCD&#8217;)) where ID=2;</p>
<p>1 row updated.</p>
<p>SQL&gt; select * from clob_test;</p>
<p>       ID NAME                 DESCRIPTION<br />
&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
        1 ABCDEF               ABCDEF<br />
        2 ABCD                 ABCDEF</p>
<p>2 rows selected.</p>
<p>SQL&gt; update clob_test set description= REPLACE( description, &#8216;ABC&#8217;, to_clob(&#8216;ABCD&#8217;)) where ID=2;</p>
<p>1 row updated.</p>
<p>SQL&gt; select * from clob_test;</p>
<p>       ID NAME                 DESCRIPTION<br />
&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
        1 ABCDEF               ABCDEF<br />
        2 ABCD                 ABCDDEF</p>
<p>2 rows selected.</p>
<p>SQL&gt; update clob_test set description= REPLACE( description, to_clob(&#8216;DD&#8217;),to_clob(&#8216;D&#8217;)) where ID=2;</p>
<p>1 row updated.</p>
<p>SQL&gt; select * from clob_test;</p>
<p>       ID NAME                 DESCRIPTION<br />
&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
        1 ABCDEF               ABCDEF<br />
        2 ABCD                 ABCDEF</p>
<p>2 rows selected.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
