开发者

Oracle: where can I query java grants?

开发者 https://www.devze.com 2023-01-06 03:12 出处:网络
I need to check the current user\'s java grants, something similar to what has been set by: dbms_java.grant_permission(\'SCOTT\',\'java.net.SocketPermission\',\'*\',\'connect\');

I need to check the current user's java grants, something similar to what has been set by:

dbms_java.grant_permission('SCOTT','java.net.SocketPermission','*','connect');

Can this be done without system privs from the current开发者_如何学JAVA account? If I need to do it with system privs, where should I look?

10gR2, if that makes a difference.


This should show up in the DBA_JAVA_POLICY and USER_JAVA_POLICY views.


begin
  dbms_java.grant_permission(grantee           => 'CALL_RECORDING',
                             permission_type   => 'java.io.FilePermission',
                             permission_name   => 'D:/AES/-',
                             permission_action => 'execute,read,write,delete');
  commit;
end;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号