Enterprise Edition Home | Express Edition Home | Previous Page | Next Page   SQL Statements > START VIOLATIONS TABLE >

Initial Privileges on the Diagnostics Table

When the START VIOLATIONS TABLE statement creates the diagnostics table, the set of privileges granted on the target table are a basis for granting privileges on the diagnostics table. The database server follows different rules, however, when it grants each type of privilege.

The following table explains the circumstances under which the database server grants each privilege on the diagnostics table.

Privilege
Condition for Granting the Privilege
Insert
User has the Insert privilege on the diagnostics table if the user has the Insert, Delete, or Update privilege on any column of the target table.
Delete
User has the Delete privilege on the diagnostics table if the user has the Insert, Delete, or Update privilege on any column of the target table.
Select
User has the Select privilege on the diagnostics table if the user has the Select privilege on any column in the target table.
Update
User has the Update privilege on the diagnostics table if the user has the Update privilege on any column in the target table.
Index
User has the Index privilege on the diagnostics table if the user has the Index privilege on the target table.
Alter
Alter privilege is not granted on the diagnostics table.

(Users cannot alter diagnostics tables.)

References
References privilege is not granted on the diagnostics table.

(Users cannot add referential constraints to diagnostics tables.)

The following rules concern privileges on the diagnostics table:

The next example illustrates how the initial set of privileges on a diagnostics table is derived from the current privileges on the target table. Assume that you have a table called cust_subset that holds customer data. This table consists of the following columns: ssn (social security number), fname (first name), lname (last name), and city (city in which the customer lives). The following set of privileges exists on the cust_subset table:

Now user alvin starts a violations table named cust_subset_viols and a diagnostics table named cust_subset_diags for the cust_subset table:

START VIOLATIONS TABLE FOR cust_subset
   USING cust_subset_viols, cust_subset_diags

The database server grants the following set of initial privileges on the cust_subset_diags diagnostics table:

Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]