Actually i am inserting error message of previous step into table using procedure. I am using insert into my_table.my_column VALUES (REPLACE(SUBSTR('<%=odiRef.getPrevStepLog( "MESSAGE" )%>',1,4000),'''','"'));. But i am getting "ORA-01704: string literal too long" error.