Java Code Fails With ORA-29532 When Permission Is Been Granted By '*' At IP Subnet
Last updated on MAY 22, 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.
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