Java Code Fails With ORA-29532 When Permission Is Been Granted By '*' At IP Subnet

(Doc ID 2398415.1)

Last updated on MAY 22, 2018

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 11.2 to 12.2]
Information in this document applies to any platform.


Executing a Java code from Database fails with  

ORA-29532: java call terminated by uncaught java exception the Permission ( connect,resolve) has not been granted to SCOTT.
The PL/SQL to grant this is dbms_java.grant_permission( 'SCOTT', '', '', 'connect,resolve' )

Though permissions are already granted as below

exec dbms_java.grant_permission( 'SCOTT', '', '10.23.198.*:80', 'connect,resolve' );


Permission is been granted by Asterisk ('*') at IP subnet level which is not left most position.


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