我是这些东西的新手。有人能告诉我如何在SQL Plus中看到特定包及其同义词的授予权限,如果我想授予特定包的执行权限和同义词,我必须做什么。我只想给ex_test_role授予执行权限谢谢
答案 0 :(得分:1)
SELECT
p.grantee
FROM
dba_tab_privs p
WHERE
p.privilege = 'EXECUTE'
AND
p.owner = 'SCHEMA_NAME'
AND
p.table_name IN ( 'PACKAGE_NAME', 'SYNONYM_NAME' )
答案 1 :(得分:0)
要对包裹进行补助:
GRANT EXECUTE ON package-name TO ex_test_role;
查看现有拨款:
SELECT *
FROM USER_TAB_PRIVS
WHERE TABLE_NAME = package-name;