Grant a role to a user or another role.
Prérequis
You must have administrative rights on the role you are granting.
Contexte et remarques
You cannot grant administrative rights on a system role; only users with the MANAGE ROLES system privilege can administer system roles.
Connect to the database.
Execute a GRANT ROLE statement. For example:
Option | Statement | ||
---|---|---|---|
Grant a role with no administrative rights. |
|
||
Grant a role with administrative rights. |
|
||
Grant administrative rights only on a role. |
|
Exemple
To grant RoleB along with its administrative rights to the user Jane, execute the following statement:
GRANT ROLE RoleB TO Jane WITH ADMIN OPTION |
To grant the user John the administrative rights to RoleB, but the inability to use RoleB, execute the following statement:
GRANT ROLE RoleB TO John WITH ADMIN ONLY OPTION |
![]() |
Discuter à propos de cette page dans DocCommentXchange.
|
Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0 |