I have a stored procedure which has a CLOB field. When i invoke the stored procedure with a large value (over 33K characters) I get the error "PLS-00172: string literal too long"
My stored proc
create or replace procedure P(c clob) is
begin
dbms_output.put_line('dbms_lob.getlength(c)');
end;
Invoking the stored procedure
declare
C CLOB := 'large text over 33k characters';
begin
P(C => C);
end;
/
Issue:
"PLS-00172: string literal too long" error is thrown while invoking stored proc