Database page
Choose the appropriate authorities
Under Choose the appropriate authorities to grant to the selected user, indicate which database authorities you want a user to have or to stop exercising. You can grant or revoke authorities to perform specific activities, or the authority to administer the entire database:
Deselect this check box if you want to revoke DBADM authority.
Schema page
Schema
This box consists of a Schema column and a column for each schema privilege. Use this box to list and select the schemas that you want to grant or revoke privileges on. Initially, this box lists any schemas that the user already has privileges on. To add other schemas to the box, click on Add Schema and select them on the Add Schema window.
Next to the schema names, this box displays symbols that indicate whether the user already has privileges on the schemas, and whether grants and revocations of privileges are pending or have been made. These symbols change to reflect changes that you make when you use the Privileges boxes or the Grant All or Revoke All push buttons.
Symbols in privileges columns
On the Schema, Table, Index, and View pages, symbols in the privileges columns indicate whether the user already has privileges on the objects that you selected, and whether grants and revocations of privileges are pending or have been made. The symbols are:
Example
SCHEMA1 is listed in the Schema column on the Schema page. You want to grant the CREATEIN privilege on SCHEMA1; so you select SCHEMA1 and specify Yes in the CREATEIN box. Your grant of the CREATEIN privilege is now pending. As a sign of this, a check mark framed by corner brackets appears in the CREATEIN column next to SCHEMA1.
Then you click on Apply, and the privilege, but not the Grant option, is granted. As a sign of this, the corner brackets disappear, leaving the check mark unframed.
Example
TABLE2 is listed in the Table column on the Table page. You want to grant:
Accordingly, you select TABLE2 and specify Grant in the INSERT box. Your grant of the INSERT privilege and the Grant option is now pending. As a sign of this, a double check mark framed by corner brackets appears across from TABLE2 in the INSERT column.
Then you click on Apply, and the privilege, with the Grant option, is granted. As a sign of this, the corner brackets disappear, leaving the double check mark unframed.
Example 1
INDEX3 is listed in the Index column on the Index page. The selected user has the CONTROL privilege on INDEX3, but no longer needs it. So you decide to revoke it. Accordingly, you select INDEX3 and specify No in the CONTROL box. The revocation that you want is now pending. As a sign of this, an X framed by corner brackets appears across from INDEX3 in the CONTROL column.
Then you click on Apply, and the privilege is revoked. As a sign of this, the corner brackets disappear, leaving the X unframed.
Example 2
You want to grant the DELETE privilege on VIEW4. So, on the View page, you select VIEW4 in the View column and specify Yes in the DELETE box. Then you determine that it would be better to grant the DELETE privilege to a group rather than to individual users. So you override the Yes, by selecting VIEW4 again and specifying No in the DELETE box. As a sign that this override is pending, an X framed by corner brackets appears in the DELETE column across from VIEW4.
Example 3
On the View page, you click on the Add View push button. Then, on the Add View window, you select the schema that contains VIEW5, select VIEW5, and click on Add and Close. Consequently, VIEW5 appears in the View column; and unframed Xs appear across from it in the view privileges columns. These unframed Xs mean that the selected user doesn't have any privileges on VIEW5.
Add Schema
Click on this push button to open the Add Schema window, so that you can select schemas that you want to grant or revoke privileges on. When you click on Apply on this window, the selected schemas are added to the Schema box on the Schema page.
Grant All
On the Schema page, click on this push button to open the Select Grant Option window, so that you can grant all privileges on the selected schemas either with or without the Grant option (the right to grant the privileges to other users and to groups).
On the Table and View pages, click on this push button to grant all privileges on the selected tables or views, and to provide the Grant option with all privileges except CONTROL.
On the Index page, click on this push button to grant the CONTROL privilege on the selected indexes.
Revoke All
Click on this push button to:
Example
Suppose that on the Table page, you use the Grant All push button to request all privileges on TABLE1. Then, before closing the Change User notebook, you decide it would be better to grant only the SELECT and INSERT privileges on this table. To do this, you could:
CREATEIN
This box indicates whether the selected user has the CREATEIN privilege on the schema or schemas selected in the Schema column. To change the box's setting, click on the down arrow and select the setting that you want. You can select:
The CREATEIN privilege, along with authorization to create an object, allows a user to create the object in a schema. (Exception: If a user owns a schema and has CREATETAB authority, the user doesn't need the CREATEIN privilege on the schema to create tables in it.)
If you select multiple schemas for which you specified different settings (for example, Yes for one schema andNo for the others), the CREATEIN box is blank. But the settings that you specified remain in effect.
DROPIN
This box indicates whether the selected user has the DROPIN privilege on the schema or schemas selected in the Schema column. To change the box's setting, click on the down arrow and select the setting that you want. You can select:
The DROPIN privilege on a schema allows a user to drop any object that belongs to that schema.
If you select multiple schemas for which you specified different settings (for example, Yes for one schema andNo for the others), the DROPIN box is blank. But the settings that you specified remain in effect.
ALTERIN
This box indicates whether the selected user has the ALTERIN privilege on schemas selected in the Schema column. To change the box's setting, click on the down arrow and select the setting that you want. You can select:
The ALTERIN privilege on a schema allows a user to alter the objects that belong to the schema, and to change the comments on these objects.
If you select multiple schemas for which you specified different settings
(for example, Yes for one schema andNo for the others),
the ALTERIN box is blank. But the settings that you
specified remain in effect.
Table page
Table
This box consists of a Table column and a column for each table privilege. Use this box to list and select the tables that you want to grant or revoke privileges on. Initially, this box lists any tables that the user already has privileges on. To add other tables to the box, click on Add Table and select them on the Add Table window.
Next to the table names, this box displays symbols that indicate whether the user already has privileges on the tables, and whether grants and revocations of privileges are pending or have been made. These symbols change to reflect changes that you make when you use the Privileges boxes or the Grant All or Revoke All push buttons.
Symbols in privileges columns
On the Schema, Table, Index, and View pages, symbols in the privileges columns indicate whether the user already has privileges on the objects that you selected, and whether grants and revocations of privileges are pending or have been made. The symbols are:
Example
SCHEMA1 is listed in the Schema column on the Schema page. You want to grant the CREATEIN privilege on SCHEMA1; so you select SCHEMA1 and specify Yes in the CREATEIN box. Your grant of the CREATEIN privilege is now pending. As a sign of this, a check mark framed by corner brackets appears in the CREATEIN column next to SCHEMA1.
Then you click on Apply, and the privilege, but not the Grant option, is granted. As a sign of this, the corner brackets disappear, leaving the check mark unframed.
Example
TABLE2 is listed in the Table column on the Table page. You want to grant:
Accordingly, you select TABLE2 and specify Grant in the INSERT box. Your grant of the INSERT privilege and the Grant option is now pending. As a sign of this, a double check mark framed by corner brackets appears across from TABLE2 in the INSERT column.
Then you click on Apply, and the privilege, with the Grant option, is granted. As a sign of this, the corner brackets disappear, leaving the double check mark unframed.
Example 1
INDEX3 is listed in the Index column on the Index page. The selected user has the CONTROL privilege on INDEX3, but no longer needs it. So you decide to revoke it. Accordingly, you select INDEX3 and specify No in the CONTROL box. The revocation that you want is now pending. As a sign of this, an X framed by corner brackets appears across from INDEX3 in the CONTROL column.
Then you click on Apply, and the privilege is revoked. As a sign of this, the corner brackets disappear, leaving the X unframed.
Example 2
You want to grant the DELETE privilege on VIEW4. So, on the View page, you select VIEW4 in the View column and specify Yes in the DELETE box. Then you determine that it would be better to grant the DELETE privilege to a group rather than to individual users. So you override the Yes, by selecting VIEW4 again and specifying No in the DELETE box. As a sign that this override is pending, an X framed by corner brackets appears in the DELETE column across from VIEW4.
Example 3
On the View page, you click on the Add View push button. Then, on the Add View window, you select the schema that contains VIEW5, select VIEW5, and click on Add and Close. Consequently, VIEW5 appears in the View column; and unframed Xs appear across from it in the view privileges columns. These unframed Xs mean that the selected user doesn't have any privileges on VIEW5.
Add Table
Click on this push button to open the Add Table window, so that you can select tables that you want to grant or revoke privileges on. When you click on Apply on this window, the selected tables are added to the Table box on the Table page.
Grant All
On the Schema page, click on this push button to open the Select Grant Option window, so that you can grant all privileges on the selected schemas either with or without the Grant option (the right to grant the privileges to other users and to groups).
On the Table and View pages, click on this push button to grant all privileges on the selected tables or views, and to provide the Grant option with all privileges except CONTROL.
On the Index page, click on this push button to grant the CONTROL privilege on the selected indexes.
Revoke All
Click on this push button to:
Example
Suppose that on the Table page, you use the Grant All push button to request all privileges on TABLE1. Then, before closing the Change User notebook, you decide it would be better to grant only the SELECT and INSERT privileges on this table. To do this, you could:
SELECT
This box indicates whether the selected user holds the SELECT privilege, with the Grant option, on the table or tables selected in the Table column. To change the box's setting, click on the down arrow and select the setting that you want. You can select:
The SELECT privilege allows a user to retrieve rows from a table and to create views on a table.
If you select multiple tables for which you specified different settings (for example, Yes for one table andNo for the others), the SELECT box is blank. But the settings that you specified remain in effect.
INSERT
This box indicates whether the selected user holds the INSERT privilege, with the Grant option, on the table or tables selected in the Table column. To change the box's setting, click on the down arrow and select the setting that you want. You can select:
The INSERT privilege allows a user to insert rows into a table.
If you select multiple tables for which you specified different settings (for example, Yes for one table andNo for the others), the INSERT box is blank. But the settings that you specified remain in effect.
UPDATE
This box indicates whether the selected user holds the UPDATE privilege, with the Grant option, on the table or tables selected in the Table column. To change the box's setting, click on the down arrow and select the setting that you want. You can select:
The UPDATE privilege allows a user to update a table.
If you select multiple tables for which you specified different settings (for example, Yes for one table andNo for the others), the UPDATE box is blank. But the settings that you specified remain in effect.
DELETE
This box indicates whether the selected user holds the DELETE privilege, with the Grant option, on the table or tables selected in the Table column. To change the box's setting, click on the down arrow and select the setting that you want. You can select:
The DELETE privilege allows a user to delete rows from a table.
If you select multiple tables for which you specified different settings (for example, Yes for one table andNo for the others), the DELETE box is blank. But the settings that you specified remain in effect.
CONTROL
This box indicates whether the selected user holds the CONTROL privilege on the on the table or tables selected in the Table column. To change the box's setting, click on the down arrow and select the setting that you want. You can select:
With the CONTROL privilege on a table, a user:
If you select multiple tables for which you specified different settings (for example, Yes for one table andNo for the others), the CONTROL box is blank. But the settings that you specified remain in effect.
ALTER
This box indicates whether the selected use holds the ALTER privilege, with the Grant option, on the on the table or tables selected in the Table column. To change the box's setting, click on the down arrow and select the setting that you want. You can select:
The ALTER privilege on a table allows a user to:
If you select multiple tables for which you specified different settings (for example, Yes for one table andNo for the others), the ALTER box is blank. But the settings that you specified remain in effect.
INDEX
This box indicates whether the selected user holds the INDEX privilege, with the Grant option, on the on the table or tables selected in the Table column. To change the box's setting, click on the down arrow and select the setting that you want. You can select:
The INDEX privilege allows a user to create an index on a table.
If you select multiple tables for which you specified different settings (for example, Yes for one table andNo for the others), the INDEX box is blank. But the settings that you specified remain in effect.
REFERENCES
This box indicates whether the selected user holds the REFERENCES privilege, with the Grant option, on the on the table or tables selected in the Table column. To change the box's setting, click on the down arrow and select the setting that you want. You can select:
The REFERENCES privilege allows a user to create and drop a foreign key.
If you select multiple tables for which you specified different settings
(for example, Yes for one table andNo for the others),
the REFERENCES box is blank. But the settings that you
specified remain in effect.
Index page
Index
This box consists of an Index column and a column for the CONTROL privilege. Use this box to list and select the indexes on which you want the CONTROL privilege granted or revoked. Initially, this box lists any indexes on which the user already has the CONTROL privilege. To add other indexes to the box, click on Add Index and select them on the Add Index window.
Next to the index names, this box displays symbols that indicate whether the user already has the CONTROL privilege on the indexes, and whether grants and revocations of this privilege are pending or have been made. These symbols change to reflect changes that you make when you use the CONTROL box or the Grant All or Revoke All push buttons.
Symbols in privileges columns
On the Schema, Table, Index, and View pages, symbols in the privileges columns indicate whether the user already has privileges on the objects that you selected, and whether grants and revocations of privileges are pending or have been made. The symbols are:
Example
SCHEMA1 is listed in the Schema column on the Schema page. You want to grant the CREATEIN privilege on SCHEMA1; so you select SCHEMA1 and specify Yes in the CREATEIN box. Your grant of the CREATEIN privilege is now pending. As a sign of this, a check mark framed by corner brackets appears in the CREATEIN column next to SCHEMA1.
Then you click on Apply, and the privilege, but not the Grant option, is granted. As a sign of this, the corner brackets disappear, leaving the check mark unframed.
Example
TABLE2 is listed in the Table column on the Table page. You want to grant:
Accordingly, you select TABLE2 and specify Grant in the INSERT box. Your grant of the INSERT privilege and the Grant option is now pending. As a sign of this, a double check mark framed by corner brackets appears across from TABLE2 in the INSERT column.
Then you click on Apply, and the privilege, with the Grant option, is granted. As a sign of this, the corner brackets disappear, leaving the double check mark unframed.
Example 1
INDEX3 is listed in the Index column on the Index page. The selected user has the CONTROL privilege on INDEX3, but no longer needs it. So you decide to revoke it. Accordingly, you select INDEX3 and specify No in the CONTROL box. The revocation that you want is now pending. As a sign of this, an X framed by corner brackets appears across from INDEX3 in the CONTROL column.
Then you click on Apply, and the privilege is revoked. As a sign of this, the corner brackets disappear, leaving the X unframed.
Example 2
You want to grant the DELETE privilege on VIEW4. So, on the View page, you select VIEW4 in the View column and specify Yes in the DELETE box. Then you determine that it would be better to grant the DELETE privilege to a group rather than to individual users. So you override the Yes, by selecting VIEW4 again and specifying No in the DELETE box. As a sign that this override is pending, an X framed by corner brackets appears in the DELETE column across from VIEW4.
Example 3
On the View page, you click on the Add View push button. Then, on the Add View window, you select the schema that contains VIEW5, select VIEW5, and click on Add and Close. Consequently, VIEW5 appears in the View column; and unframed Xs appear across from it in the view privileges columns. These unframed Xs mean that the selected user doesn't have any privileges on VIEW5.
Add Index
Click on this push button to open the Add Index window, so that you can select indexes for which you want to grant or revoke the CONTROL privilege. When you click on Apply on this window, the selected indexes are added to the Index box on the Index page.
Grant All
On the Schema page, click on this push button to open the Select Grant Option window, so that you can grant all privileges on the selected schemas either with or without the Grant option (the right to grant the privileges to other users and to groups).
On the Table and View pages, click on this push button to grant all privileges on the selected tables or views, and to provide the Grant option with all privileges except CONTROL.
On the Index page, click on this push button to grant the CONTROL privilege on the selected indexes.
Revoke All
Click on this push button to:
Example
Suppose that on the Table page, you use the Grant All push button to request all privileges on TABLE1. Then, before closing the Change User notebook, you decide it would be better to grant only the SELECT and INSERT privileges on this table. To do this, you could:
CONTROL
This box indicates whether the user referenced on the Database page has the CONTROL privilege on the index or indexes selected in the Index column. To change the box's setting, click on the down arrow and select the setting that you want. You can select:
The CONTROL privilege on an index allows a user to drop the index. Unless the user has SYSADM or DBADM authority, he or she cannot grant this privilege to other users or to groups.
If you select multiple indexes for which you specified different settings
(for example, Yes for one index andNo for the others),
the CONTROL box is blank. But the settings that you
specified remain in effect.
View page
View
This box consists of a View column and a column for each view privilege. Use this box to list and select the views that you want to grant or revoke privileges on. Initially, this box lists any views that the user already has privileges on. To add other views to the box, click on Add View and select them on the Add View window.
Next to the view names, this box displays symbols that indicate whether the user already has privileges on the views, and whether grants and revocations of privileges are pending or have been made. These symbols change to reflect changes that you make when you use the Privileges boxes or the Grant All or Revoke All push buttons.
Symbols in privileges columns
On the Schema, Table, Index, and View pages, symbols in the privileges columns indicate whether the user already has privileges on the objects that you selected, and whether grants and revocations of privileges are pending or have been made. The symbols are:
Example
SCHEMA1 is listed in the Schema column on the Schema page. You want to grant the CREATEIN privilege on SCHEMA1; so you select SCHEMA1 and specify Yes in the CREATEIN box. Your grant of the CREATEIN privilege is now pending. As a sign of this, a check mark framed by corner brackets appears in the CREATEIN column next to SCHEMA1.
Then you click on Apply, and the privilege, but not the Grant option, is granted. As a sign of this, the corner brackets disappear, leaving the check mark unframed.
Example
TABLE2 is listed in the Table column on the Table page. You want to grant:
Accordingly, you select TABLE2 and specify Grant in the INSERT box. Your grant of the INSERT privilege and the Grant option is now pending. As a sign of this, a double check mark framed by corner brackets appears across from TABLE2 in the INSERT column.
Then you click on Apply, and the privilege, with the Grant option, is granted. As a sign of this, the corner brackets disappear, leaving the double check mark unframed.
Example 1
INDEX3 is listed in the Index column on the Index page. The selected user has the CONTROL privilege on INDEX3, but no longer needs it. So you decide to revoke it. Accordingly, you select INDEX3 and specify No in the CONTROL box. The revocation that you want is now pending. As a sign of this, an X framed by corner brackets appears across from INDEX3 in the CONTROL column.
Then you click on Apply, and the privilege is revoked. As a sign of this, the corner brackets disappear, leaving the X unframed.
Example 2
You want to grant the DELETE privilege on VIEW4. So, on the View page, you select VIEW4 in the View column and specify Yes in the DELETE box. Then you determine that it would be better to grant the DELETE privilege to a group rather than to individual users. So you override the Yes, by selecting VIEW4 again and specifying No in the DELETE box. As a sign that this override is pending, an X framed by corner brackets appears in the DELETE column across from VIEW4.
Example 3
On the View page, you click on the Add View push button. Then, on the Add View window, you select the schema that contains VIEW5, select VIEW5, and click on Add and Close. Consequently, VIEW5 appears in the View column; and unframed Xs appear across from it in the view privileges columns. These unframed Xs mean that the selected user doesn't have any privileges on VIEW5.
Add View
Click on this push button to open the Add View window, so that you can select views that you want to grant privileges on. When you click on Apply on this window, the selected views are added to the View box on the View page.
Grant All
On the Schema page, click on this push button to open the Select Grant Option window, so that you can grant all privileges on the selected schemas either with or without the Grant option (the right to grant the privileges to other users and to groups).
On the Table and View pages, click on this push button to grant all privileges on the selected tables or views, and to provide the Grant option with all privileges except CONTROL.
On the Index page, click on this push button to grant the CONTROL privilege on the selected indexes.
Revoke All
Click on this push button to:
Example
Suppose that on the Table page, you use the Grant All push button to request all privileges on TABLE1. Then, before closing the Change User notebook, you decide it would be better to grant only the SELECT and INSERT privileges on this table. To do this, you could:
SELECT
This box indicates whether the selected user holds the SELECT privilege, with the Grant option, on the view or views selected in the View column. To change the box's setting, click on the down arrow and select the setting that you want. You can select:
The SELECT privilege allows a user to retrieve rows from a view and to create views on a view.
If you select multiple views for which you specified different settings (for example, Yes for one view andNo for the others), the SELECT box is blank. But the settings that you specified remain in effect.
INSERT
This box indicates whether the selected user holds the INSERT privilege, with the Grant option, on the view or views selected in the View column. To change the box's setting, click on the down arrow and select the setting that you want. You can select:
The INSERT privilege allows a user to insert rows into an updatable view.
If you select multiple views for which you specified different settings (for example, Yes for one view andNo for the others), the INSERT box is blank. But the settings that you specified remain in effect.
UPDATE
This box indicates whether the selected user holds the UPDATE privilege, with the Grant option, on the view or views selected in the View column. To change the box's setting, click on the down arrow and select the setting that you want. You can select:
The UPDATE privilege allows a user to update rows in an updatable view.
If you select multiple views for which you specified different settings (for example, Yes for one view andNo for the others), the UPDATE box is blank. But the settings that you specified remain in effect.
DELETE
This box indicates whether the selected user holds the DELETE privilege, with the Grant option, on the view or views selected in the View column. To change the box's setting, click on the down arrow and select the setting that you want. You can select:
The DELETE privilege allows a user to delete rows from an updatable view.
If you select multiple views for which you specified different settings (for example, Yes for one view andNo for the others), the DELETE box is blank. But the settings that you specified remain in effect.
CONTROL
This box indicates whether the selected user holds the CONTROL privilege on the view or views selected in the View column. To change the box's setting, click on the down arrow and select the setting that you want. You can select:
With the CONTROL privilege on a view, a user:
If you select multiple views for which you specified different settings (for example, Yes for one view andNo for the others), the CONTROL box is blank. But the settings that you specified remain in effect.