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 11.2.0.4 to 12.2.0.1 [Release 11.2 to 12.2]
Information in this document applies to any platform.

Symptoms

Executing a Java code from Database fails with  

ORA-29532: java call terminated by uncaught java exception

java.security.AccessControlException: the Permission (java.net.SocketPermission 10.23.198.253:80 connect,resolve) has not been granted to SCOTT.
The PL/SQL to grant this is dbms_java.grant_permission( 'SCOTT', 'SYS:java.net.SocketPermission', '10.23.198.253:80', 'connect,resolve' )

Though permissions are already granted as below

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

Changes

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

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