We help IT Professionals succeed at work.
Get Started


ram_0218 asked
Last Modified: 2012-05-12
i've a function

str2tbl(input_list varchar2) {
 pipe row..

i've a procedure

proc(input_list) {
  insert into temp_table select * from table(str2tbl(input_list));
  select * from maintable where id in (select id from temp_table)

issue here is that, if the application passes the string list more than 4000 chars long then the call to str2tbl fails with ORA-01461 can bind a LONG value only for insert into a LONG column..

my question is, even the proc(input_list varchar2) .. this procedure accepting varchar2 and it can accept more than 4000 chars and bind it.. now when the str2tbl function is called passing same value it throws out this error.. any help how to avoid?
Watch Question
Database Developer & Administrator
Most Valuable Expert 2011
Top Expert 2012
This problem has been solved!
Unlock 1 Answer and 9 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE