Question : PL/SQL Procedure to insert CLOB data into Oracle Table

When executing insert statements to populate an Oracle Table with a CLOB data field, receive
SQL Error: ORA-01704: string literal too long
Solutions researched all point to using bind variables - but seems bind variables in a loop structure have a limitation of 32,000 chars.  How do I go about separating my CLOB field into 32,000 character chunks and then append them in the correct way?  Is there any pre-written PL/SQL code out there that reads a CLOB field into a bind variable? The data currently consists of about 7000 records and resides as INSERT statements in a .sql file created by TOAD export data feature.  

Answer : PL/SQL Procedure to insert CLOB data into Oracle Table

If I understand, you have a file with 7000 insert statements and some the the fields are greater than 4000 characters?

You might be able to use SQL*Loader to trick this data into loading.  Check out my example in:
http://www.experts-exchange.com/Database/Oracle/10.x/Q_26168431.html?#a32664632
Random Solutions  
 
programming4us programming4us