Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

oracle.sql.ARRAY constructor is slow

843859Sep 22 2010 — edited Dec 15 2010
Hi Everybody,

I am stuck at a very weird problem. The oracle.sql.ARRAY constructor is intermittently taking 2-3 secs to load. Below is the code snippet.
// We first obtain the connection from the connection pool
Connection con = ConnectionManager.getConnection (false);

// We then get the underlying connection.
Connection underlyingCon = ((WrappedConnection) con).getUnderlyingConnection();

// Here TAB_TEST is our oracle collection object
ArrayDescriptor tabTest = ArrayDescriptor.createDescriptor ("TAB_TEST", underlyingCon);

// objTest is the actual data that we want to pass to the database. Its class implements SQLData
// *This constructor is taking lots of time*
ARRAY tabTestArray = new ARRAY (tabTest, underlyingCon, objTest);
I have tried using ojdbc14.jar and ojdbc5.jar in vain.

If anyone has any pointers on this issue, please share.

I am aware that this is a duplicate post (437908 But no solution was provided in this post.

TIA,
Nitin.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 12 2011
Added on Sep 22 2010
3 comments
350 views