Oracle sys.utl_recomp grant permission to user

0

Is it possible within AWS RDS Oracle to grant sys.utl_recomp permission to a user?

exec utl_recomp.recomp_parallel(8);

The command does work as master user for the database, but I need to be able to grant permission to execute this command to another user. I've not been able to find information on how to complete this task. The command tasks page for AWS shows how to assign sys objects, but it doesn't work for the package utl_Recomp.

All help appreciated.

已提問 5 年前檢視次數 1091 次
2 個答案
1
已接受的答案

Hi there!

The master user in RDS Oracle should be direct-granted execute privileges on SYS.UTL_RECOMP, so it can grant the privilege to other users via the GRANT statement. For example,

grant execute on sys.utl_recomp to otheruser;

It can also be granted using the RDSADMIN_UTIL package as described at https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.Oracle.CommonDBATasks.System.html#Appendix.Oracle.CommonDBATasks.TransferPrivileges (note, you will need to specify the grantee username in upper case with this command).

exec rdsadmin.rdsadmin_util.grant_sys_object('UTL_RECOMP', 'OTHERUSER', 'EXECUTE');

Hope this helps. Thanks!
Michael

AWS
已回答 5 年前
0

Thanks Michael, sometimes I get so deep in the weeds I cannot see the answer.

Appreciated.

已回答 5 年前

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

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

回答問題指南