I have a type defined in ORACLE. Lets name it as HEADER.
create or replace TYPE "HEADER_OT" as object ("FIELD1" VARCHAR2(25));
I am now using this object in a PL/SQL block and assigning a value to this FIELD1 as below.
HEADER_OT(some input value of length 24)
This some input value of length 24 has spaces and - in it. When i execute my PL/SQL block i get below error
Error Occured:ORA-06502: PL/SQL: numeric or value error: character string buffer too small
If I set it to null it works fine.If i set to value 123456789012345678901234 it works fine again. But if I add two more digits to the above it fails.
I used length and lengthb functions to find the size of my original input, but both give a value of 24.
Program Manager – Wfd FO is my original value