Java Code Fails With ORA-29532 When Permission Is Been Granted By '*' At IP Subnet
(Doc ID 2398415.1)
Last updated on AUGUST 04, 2018
Applies to:Oracle Database - Enterprise Edition - Version 18.104.22.168 to 22.214.171.124 [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
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' );
Permission is been granted by Asterisk ('*') at IP subnet level which is not left most position.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!