Oracle RDS GRANT ISSUE for java.protocol.handler.pkgs

0

Error while when executing exec dbms_java.grant_permission('myschema','SYS:java.util.PropertyPermission','java.protocol.handler.pkgs','write');

Error Details : ORA-29532: Java call terminated by uncaught Java exception: java.lang.SecurityException: policy table update SYS:java.util.PropertyPermission, java.protocol.handler.pkgs ORA-06512: at "SYS.DBMS_JAVA", line 705 ORA-06512: at line 1 29532. 00000 - "Java call terminated by uncaught Java exception: %s" *Cause: A Java exception or error was signaled and could not be resolved by the Java code.

Karan
已提問 2 年前檢視次數 663 次
1 個回答
1

Java implementation in Amazon RDS has a limited set of permissions. The master user is granted the RDS_JAVA_ADMIN role, which grants a subset of the privileges granted by the JAVA_ADMIN role. java.util.PropertyPermission in RDS Oracle is limited to http.* and https.* You can see the permissions it has by looking into the permissions granted to RDS_JAVA_ADMIN role using this query

SELECT name FROM dba_java_policy WHERE grantee IN ('RDS_JAVA_ADMIN', 'PUBLIC') AND enabled = 'ENABLED' ORDER BY type_name, name, grantee;

If you must use this functionality in Oracle database, you can consider Amazon RDS Custom for Oracle https://aws.amazon.com/rds/custom/

profile pictureAWS
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南