You have the HOTEL Demo Schema for the SQL Tutorial.
Log on to the database instance DEMODB as user MONA.
Define and use roles. Proceed as described in SQL Tutorial, Roles.
You can use the system tableSESSION_ROLES to determine the following database information, among other things:
· All roles that are active in the current database session
SELECT role
FROM DOMAIN.SESSION_ROLES
All roles: see ROLES
Role for a user that is automatically activated when a database session is opened: see ROLES
Role privilege: see ROLEPRIVILEGES