My Oracle Support Banner

ORA-29532 When Trying To Connect To The Same Database Through Java Class Using The JDBC Driver (Doc ID 2302061.1)

Last updated on APRIL 10, 2024

Applies to:

Oracle Database Backup Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Oracle Database - Standard Edition - Version and later
JDBC - Version and later
Oracle Database Cloud Schema Service - Version N/A and later
Information in this document applies to any platform.


On database, when attempting to run a java stored procedure that connects to the same database, the following error occurs:

<PROCEDURE NAME>('jdbc:oracle:thin:@<host>:<port>:<sid>','<user>,'<password>');
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception:
java.lang.Exception: Error occured while
Error loading driver IO Error:
The Network Adapter could not establish the connection
ORA-06512: at "<PROCEDURE NAME>", line 1
ORA-06512: at line 2

The java program used for this test is 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.