Create a role that contains the privileges necessary to debug a procedure and correct any errors found during the debugging process, and then grant that role to User1. Also, grant administrative rights on the role to User1 so that they can grant the role to, or revoke the role from, other users as necessary.
Prerequisites
This lesson assumes that you have completed all previous lessons in this tutorial. See Lesson 2: Grant privileges to User1 (Sybase Central).
Create the role.
In the left pane in Sybase Central, right-click Roles and click New » Role.
In the What do you want to name the new user-defined role? field, type DebugAndAlter, and then click Next.
On the Choose the Administrators screen, click Finish to accept the default, which is to allow users with the MANAGE ROLES system privilege (also known as global administrators) to administer the role.
Grant the required system privileges to the role.
In the left pane, double-click Roles and select DebugAndAlter.
In the right pane, click the System Privileges tab.
Right-click anywhere on the tab, and click New » Granted System Privileges.
Click the ALTER ANY OBJECT system privilege, then click OK.
Right-click the tab again, click New » Granted System Privileges, select DEBUG ANY PROCEDURE, and then click OK.
Click File » Save to save your changes to the database.
Grant the role to User1 with administrative rights on the role.
In the left pane, double-click Users and select User1.
In the right pane, click the Roles tab.
Right-click anywhere on the tab, then click New » Granted Roles.
Click DebugAndAlter and then click OK. The ability to exercise the DebugAndAlter role is granted to User1, without administrative rights.
In the right-pane, on the row for the DebugAndAlter role, click in the cell in the Adm. column to add a check mark. This grants administrative rights on the role to User1.
Click File » Save to save your changes to the database.
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0 |