My Oracle Support Banner

Bad Lengths for OUT and IN OUT CHAR Parameters In Callablestatement (Doc ID 372616.1)

Last updated on DECEMBER 19, 2023

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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.