Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.SecurityException when granting java permission

Usman80Sep 12 2012 — edited Sep 13 2012
DB version 11.1.07

We used this command to grant the following permission in development and stage environment with no problems.

exec dbms_java.grant_permission( 'SCHEMA', 'SYS:java.lang.RuntimePermission', 'getClassLoader', '' );

When the same command is run in production, it results in this.

ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception:
java.lang.SecurityException: policy table update
SYS:java.lang.RuntimePermission, getClassLoader
ORA-06512: at "SYS.DBMS_JAVA", line 787
ORA-06512: at line 1

These commands were executed as SYS user in all environments. Any ideas what could be causing this?

Thanks.
Usman
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 11 2012
Added on Sep 12 2012
2 comments
689 views