Task
| Authorities and privileges
|
To grant or revoke database authorities
| You need the proper authorizations:
- To grant BINDADD, CONNECT, CREATETAB, CREATE_NOT_FENCED, and
IMPLICIT_SCHEMA authorities, you need either SYSADM or DBADM authority.
- To grant DBADM authority, you need SYSADM authority.
|
To grant or revoke a privilege on a schema
| You need one of the following authorizations:
- SYSADM authority
- DBADM authority
- The privilege with the Grant option (the right to grant the privilege to
other users and to groups)
Example
You can grant the ALTERIN privilege on a schema if you have one of these
authorizations:
- SYSADM authority
- DBADM authority on the database in which the schema resides
- The ALTERIN privilege on the schema, along with the right to grant the
ALTERIN privilege on the schema to other users and to groups
|
To grant or revoke privileges on tables or views
| You need the proper authorizations:
- To grant or revoke privileges on catalog tables and views, you need either
SYSADM or DBADM authority.
- To grant or revoke privileges on user-defined tables and views, you need
to meet the following requirements:
|
To grant or revoke the CONTROL privilege on an index
| You need either SYSADM authority or DBADM authority.
|
To define a person to DB2 as a user of a database
| You need one of the following authorizations:
|
To grant database authorities
| You need the proper authorizations:
- To grant BINDADD, CONNECT, CREATETAB, CREATE_NOT_FENCED, and
IMPLICIT_SCHEMA authorities, you need either SYSADM or DBADM authority.
- To grant DBADM authority, you need SYSADM authority.
|
To grant a privilege on a schema
| You need one of the following authorizations:
- SYSADM authority
- DBADM authority
- The privilege with the Grant option (that is, with the right to grant the
privilege to other users and to groups)
Example
You can grant the ALTERIN privilege on a schema if you have one of these
authorizations:
- SYSADM authority
- DBADM authority on the database in which the schema resides
- The ALTERIN privilege on the schema, along with the right to grant the
ALTERIN privilege on the schema to other users and to groups
|
To grant privileges on tables or views
| You need the proper authorizations:
- To grant privileges on catalog tables and views, you need either SYSADM or
DBADM authority.
- To grant privileges on user-defined tables and views, you need to meet the
following requirements:
|
To grant the CONTROL privilege on an index
| You need either SYSADM authority or DBADM authority.
|