Generating and running GRANT DCL statements
Before you begin
You must have the required Db2 privileges.
To generate and run a GRANT DCL statement
In the DB2 Navigator perspective, select one or more of the supported objects.
For more information, see Navigating to an object.On the Tasks toolbar, click Grant
.The Grant <object> Privileges dialog box is displayed.
On the Auth Names tab, use the following buttons to add users and roles:
- Add Authorization Id
- Add Role
On the Privileges tab, select one or more object privileges that you want to grant to the added users and roles.
Only the object privileges related to the selected object are displayed.(Optional) To include the WITH GRANT OPTION clause, select With Grant.
On the Object List tab, you can review the objects to which you are granting the users and roles privileges.
- Click Generate DCL.
The Grant DCL statement is displayed in the Scratchpad perspective. Click Run
to run the Grant DCL statement.(Optional) To save the Grant DCL statement, perform the following steps:
Click Save
.In the File name field, enter an existing data set name.
Click OK.