select grantee role,privilege
from dba_sys_privs
where grantee not in (select username from dba_users)
-- and grantee in('DBA','CONNECT','RESOURCE')
group by grantee,privilege
order by 1
或者
-- dba_roles data dictionay lists all roles existing/created in Oracle
select grantee role,privilege
from dba_sys_privs
where grantee in (select role from dba_roles)
group by grantee,privilege
order by 1
您可以创建一个角色并将权限授予该角色,然后将该角色授予用户。
向用户授予 dba 权限
grant dba to someuser
您可以探索给您一个想法的默认/当前角色。
或者
请记住,在给予一揽子特权之前,您必须非常小心。