ROLES
Using the
system table
ROLES
, you can determine the following database information:
All
role
that require a password to be specified before they can be activated
SELECT owner, role
FROM DOMAIN.ROLES
WHERE password_required = 'YES'
All roles that the current user uses as a default value
SELECT role
FROM DOMAIN.ROLES
WHERE defaultrole = 'YES'
All roles that are active in the current database session: see
ROLES
Role privilege: see
ROLEPRIVILEGES