8i | 9i | 10g | 11g | 12c | 13c | 18c | 19c | 21c | 23ai | Misc | PL/SQL | SQL | RAC | WebLogic | Linux
Script: roles.sql
( Download Script )
-- ----------------------------------------------------------------------------------- -- File Name : https://oracle-base.com/dba/monitoring/roles.sql -- Author : Tim Hall -- Description : Displays a list of all roles and privileges granted to the specified user. -- Requirements : Access to the USER views. -- Call Syntax : @roles -- Last Modified: 27/02/2018 -- ----------------------------------------------------------------------------------- SET SERVEROUTPUT ON SET VERIFY OFF COLUMN role FORMAT A30 SELECT a.role, a.password_required, a.authentication_type FROM dba_roles a ORDER BY a.role; SET VERIFY ON