My Oracle Support Banner

Passing Array Of Int From Java To Oracle PLSQL Raises PLS-00382 (Doc ID 2563257.1)

Last updated on OCTOBER 31, 2022

Applies to:

JDBC - Version 12.2.0.0.0 and later
Information in this document applies to any platform.

Symptoms

Passing an array of int from Java to Oracle PLSQL via JDBC raises below exception

PLS_INTEGER is used as type of the array elements. 

The sample code in documentation Accessing PL/SQL Associative Arrays is used.



ERROR
-----------------------
java.sql.SQLException: ORA-06550: line 4, column 16:
PLS-00382: expression is of wrong type
ORA-06550: line 4, column 3:
PL/SQL: Statement ignored.

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution
References


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