USER_ROLE_PRIVS

2025-12-09 07:09:36  Updated

Feature

USER_ROLE_PRIVS describes the roles granted to the current user.

Applicability

This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition provides only MySQL mode.

Fields

Field Type Nullable Description
GRANTEE VARCHAR2(30) NO The username of the user.
GRANTED_ROLE VARCHAR2(30) NO The name of the role granted to the user.
ADMIN_OPTION VARCHAR2(3) NO Indicates whether the grant was with the ADMIN option.
DEFAULT_ROLE VARCHAR2(3) NO Indicates whether the role is designated as a DEFAULT ROLE for the user.

Contact Us