ORA-29532 When Trying To Connect To The Same Database Through Java Class Using The JDBC Driver

(Doc ID 2302061.1)

Last updated on AUGUST 31, 2017

Applies to:

Oracle Database - Standard Edition - Version 12.2.0.1 and later
JDBC - Version 12.2.0.0.0 and later
Information in this document applies to any platform.

Symptoms

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

BEGIN
lms.Pr_A('jdbc:oracle:thin:@<host>:<port>:<sid>','<user>,'<password>');
END;
/
BEGIN
*
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception:
java.lang.Exception: Error occured while executing...java.sql.SQLException:
Error loading driver ...............java.sql.SQLRecoverableException: IO Error:
The Network Adapter could not establish the connection
ORA-06512: at "LMS.PR_A", line 1
ORA-06512: at line 2

The java program used for this test is as follows:






Changes

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms