Database page
User
Use this box to specify the authorization name under which you want a user to use the database that you selected. Use one of these methods:
Important
You can specify an authorization name only for someone who currently has no authorities on the selected database and no privileges on the database's objects.
Choose the appropriate authorities
Under Choose the appropriate authorities to grant to the selected user, indicate which database authorities you want to grant. You can grant authorities to perform specific activities, or the authority to administer the entire database:
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 privileges on. To add 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 indicating either that the user has no privileges on the schemas, or that grants of the privileges are pending, or that such grants have been made. Symbols for pending grants reflect changes that you make when you use the Privileges boxes or the Grant All or Revoke All push buttons.
Add Schema
Click on this push button to open the Add Schema window, so that you can select schemas that you want to grant privileges on. When you click on Apply in 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 cancel all requests for privileges on the selected schemas, tables, indexes, or views.
Example
Suppose that on the Table page, you use the Grant All push button to request all privileges on TABLE1. Then, before closing the Add 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 user referenced on the Database page has the CREATEIN 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 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 user referenced on the Database page has the DROPIN 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 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 user referenced on the Database page 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 belongs 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 privileges on. To add 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 indicating either that the user has no privileges on the tables, or that grants of the privileges are pending, or that such grants 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.
Add Table
Click on this push button to open the Add Table window, so that you can select tables that you want to grant privileges on. When you click on Apply in 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 cancel all requests for privileges on the selected schemas, tables, indexes, or views.
Example
Suppose that on the Table page, you use the Grant All push button to request all privileges on TABLE1. Then, before closing the Add 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 user referenced on the Database page has the SELECT privilege on 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 user referenced on the Database page has the INSERT privilege on 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 user referenced on the Database page has the UPDATE privilege on 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:
by:
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 user referenced on the Database page has the DELETE privilege on 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:
by:
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 user referenced on the Database page has the CONTROL privilege on 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:
by:
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 user referenced on the Database page has the ALTER privilege on 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 user referenced on the Database page has the INDEX privilege on 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 SELECT box is blank. But the settings that you specified remain in effect.
REFERENCES
This box indicates whether the user referenced on the Database page has the REFERENCES privilege on 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. To add 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 indicating either that the user doesn't have the CONTROL privilege on the indexes, or that grants of the privileges are pending, or that such grants 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.
Add Index
Click on this push button to open the Add Index window, so that you can select indexes on which you want to grant the CONTROL privilege. When you click on Apply in 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 cancel all requests for privileges on the selected schemas, tables, indexes, or views.
Example
Suppose that on the Table page, you use the Grant All push button to request all privileges on TABLE1. Then, before closing the Add 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 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 privileges on. To add 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 indicating either that the user has no privileges on the views, or that grants of the privileges are pending, or that such grants have been made. These symbols change to reflect changes that you make when you use the Privileges boxes or theGrant All or Revoke All push buttons.
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 in 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 cancel all requests for privileges on the selected schemas, tables, indexes, or views.
Example
Suppose that on the Table page, you use the Grant All push button to request all privileges on TABLE1. Then, before closing the Add 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 user referenced on the Database page has the SELECT privilege on 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, to use the EXPORT utility to do so, and to create views on the 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.
The SELECT privilege allows a user to retrieve rows from a view and to create views on a view.
INSERT
This box indicates whether the user referenced on the Database page has the INSERT privilege on views selected in the View column. To change the 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 user referenced on the Database page has the UPDATE privilege on 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 user referenced on the Database page has the DELETE privilege on 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 user referenced on the Database page has the CONTROL privilege on 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.
Symbols in Privileges columns
On the Schema, Table, Index, and View pages, symbols in the privilege columns indicate what privileges a user lacks, what grants of privileges are pending, and what grants 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
On the Index page, you click on the Add Index push button. Next, on the Add Index window, you select the schema to which INDEX3 belongs, select INDEX3, and click on Add and Close. INDEX3 appears in the Index column, and an unframed X appears beside it in the CONTROL column. This X means that the user referenced on the Database page doesn't have the CONTROL privilege on INDEX3.
Example 2
You want to grant the UPDATE privilege on VIEW4. Therefore, on the View page, you select VIEW4 in the View column and specify Yes in the UPDATE box. Then you determine that it would be better to grant the UPDATE privilege to a group rather than to individuals. So you override the Yes, by selecting VIEW4 again and specifying No in the UPDATE box. As a sign that this override is pending, an X framed by corner brackets appears across from VIEW4 in the UPDATE column.