There are two ways that roles in a database environment can be used:
When it comes to the actual mechanisms of database roles, they can function in different ways:
- User roles
- Application roles.
- User Role
- Application Role
When it comes to the actual mechanisms of database roles, they can function in different ways:
- Roles can be given schema or system privileges.
- A certain role can actually be granted to another. However, there are rules with this function, such as a role is not allowed to be granted to itself. It can also not be granted circularly, in other words, role X cannot be given to role Y, if role Y has already been given to role X.
- Any database users can be given any role.
- At any given time, every role that is given to a user is either disabled or enabled.
- A role that is given indirectly, in other words a role that is given to another, can be enabled or disabled for each user.