Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Ora-01489: result of string concatenation is too long

Raj RammohanMay 28 2009 — edited Apr 26 2011
Hello Gurus,

i have a typical problem

i am constructing a query in FORM and writing SQLPLUS script into a .SQL file. file will contain final data like below..

set linesize 90
set pagesize 0
set echo off
set verify off
set termout off
set feedback off
set trimspool on
set escape '^'
spool D:\10GAPPServerappln\xxx\TEMPREP\ADA39057.sql;
set linesize 229
select ' IQIS# ,Cust Complaint Short Txt ,CD Short Txt ' from dual;
set linesize 129
select a||','||b||','||c||d from table;
/
spool off;
exit;

After this By using HOST command i will execute the above .sql script and will write the output to text file.

But problem is when i have clob column in any one of concatenated columns in query (a or b or c) then i am getting the error "Ora-01489: result of string concatenation is too long".

pls suggest me how to overcome this problem..
This post has been answered by Solomon Yakobson on May 28 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 24 2011
Added on May 28 2009
7 comments
29,267 views