Search notes:

Oracle: DBA_ROLE_PRIVS

dba_role_privs lists roles and to whom (users and roles) these roles are granted.
dba_role_privs also comes in the variant user_role_privs.
select
   rpr.granted_role,
   rpr.grantee,
   rpr.admin_option,
   rpr.common,
   rpr.default_role,     -- YES indicates that the role belongs to a user's set of default roles
   rpr.delegate_option,
   rpr.inherited
from
   sys.dba_role_privs rpr;

Querying role hierarchy

The following select statement hierarchically queries the (direct and indirect) roles granted to a user (here: USR_HIR):
with role_hierarchy (usrrol, lvl) as (
   select 'USR_HIR'    , 0     from dual union all
   select  granted_role, lvl+1 from role_hierarchy h join dba_role_privs p on p.grantee = h.usrrol
)
search depth first by usrrol set ord
select
   lpad(' ', rh.lvl*2) || usrrol
from
   role_hierarchy rh;

Find the roles via which a user is granted a given privilege

with role_hierarchy (usrrol, usrrol_concat) as (
   select 'USR_HIR_1'  , 'USR_HIR_1'                              from dual                                                           union all
   select  granted_role,  usrrol_concat || ' -> ' || granted_role from role_hierarchy h join dba_role_privs p on p.grantee = h.usrrol
)
select
   rh.usrrol_concat
from
   role_hierarchy  rh                             join
--
-- Alternatively, join with dba_tab_privs:
--
   dba_sys_privs   pr on rh.usrrol = pr.grantee
where
   pr.privilege = 'CREATE TABLE';

See also

dba_roles lists all roles.
Oracle privileges

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1746939638, '3.145.108.231', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/installed/data-dictionary/role/privs/index(85): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78