Bad Lengths for OUT and IN OUT CHAR Parameters In Callablestatement
(Doc ID 372616.1)
Last updated on MARCH 20, 2019
Applies to:JDBC - Version 10.2.0 and later
Information in this document applies to any platform.
When a PL/SQL procedure is called from Java using OracleCallableStatment and specifying the length with registerOutParameter, the lengths in PL/SQL of OUT and IN OUT parameters are too long.
With JDBC/Thin, the length of both OUT and IN OUT parameters is 32512.
With JDBC/OCI, IN OUT parameters are always 8000. OUT parameters are twice the length defined by registerOutParameter.
It is only the lengths in PL/SQL that are incorrect. The lengths in Java are correct.
A PL/SQL procedure is defined as follows.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document