How to resolve ORA-22828?

can you please help me resolve ora-22828? reading from a table clob into a variable clob in pl/sql?
when i try this i get the following error:

    lv_table7 clob;
    lv_userid varchar2(100) := 'ABCD390;EFGH794';
    dbms_output.put_line ('lv '||lv_userid);  
    SELECT  A.GET_TABLE(7, 301, 104, lv_userid)
    INTO    lv_table7
    FROM    schema1.table1 WHERE ROWNUM = 1;
    dbms_output.put_line ('T '||lv_table7);  
    select user_instance into lv_table7 from schema1.table1 WHERE user_id = lv_userid;
    dbms_output.put_line ('T '||lv_table7);
exception when others then
    dbms_output.put_line ('E '||sqlcode||sqlerrm);  
lv ABCD390;EFGH794
E -6502ORA-06502: PL/SQL: numeric or value error
ORA-22828: input pattern or replacement parameters exceed 32K size limit
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
What is your exact Oracle version (all 4 numbers please, like

I believe the issue is the second:
dbms_output.put_line ('T '||lv_table7);

There is a string concatenation in there that is probably causing the issue.

Try just the clob:
dbms_output.put_line (lv_table7);

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rao_SAuthor Commented:
i tried without the string concatenation, it did not work, so instead parsed out the text in 30K chunks...and that worked..
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.