PL/SQL (MOSC)

MOSC Banner

Using Table of Records type as Input to PLSQL procedure showing performance issues from Java

in PL/SQL (MOSC) 2 commentsAnswered

Hi Team,

We are facing performance issues when we are trying to pass an array of array as input from Java to PLSQL procedure which has the table of records as input in 19C database.

We are using Oracle Database 19C, Java Version 8, JDBC Specification 4.2 in ojdbc8.jar

Table Type

CREATE TYPE TEST_REC AS OBJECT (EmpName VARCHAR2(50),EmpNo NUMBER));

CREATE TYPE TEST_TBL AS TABLE OF TEST_REC;

PLSQL procedure:

procedure TEST_PROC(P_TEST_TBL IN TEST_TBL)

as

begin

...........

end;

Java Code:

  1. OracleStruct[] structArray = new OracleStruct[length];
  2. ArrayDescriptor descriptor =ArrayDescriptor.createDescriptor( "TEST_TBL", oracleConnection );
  3. ARRAY array_to_pass =new ARRAY( descriptor, oracleConnection, structArray );

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center