Oracle truncates Java String when mapping to VARCHAR2
Ive published Java method as a function. The Java method returns a string value, which is mapped into VARCHAR2 type in the call spec.
Everything works fine when the returned sting is less then 4097 bytes in length. Once the returned string is over 4097 bytes Oracle truncates it to 4097.
PL/SQL limit size for VARCHAR2 is 34K so theoretically there shouldnt be a problem.
Any ideas how to fix this problem?
Thanks,
Irek