Task | Authorities and privileges |
---|---|
To alter a table | You must have at least one of the following privileges on the table to be
altered:
|
To alter a table with a primary key | You must have at least one of the following privileges on the table to be
altered:
To drop the primary key, you must have at least one of the following privileges on every dependent table:
|
To alter a table with a foreign key | You must have at least one of the following privileges on the table to be
altered:
To add or drop a foreign key, you must have one of the following privileges on the parent table:
|
To change the quiesce mode of a table | You must have one of the following authorities:
|
To copy a table | You need both:
|
To create a table with a foreign key | You must have at least one of the following privileges:
To define a foreign key, you must have at least one of the following privileges on the foreign table:
|
To define a foreign key | You must have at least one of the following privileges on the foreign
table:
|
To create a table | You must have at least one of the following privileges:
|
To drop a table | You must either be the definer as recorded in the DEFINER column of
SYSCAT.TABLES, or have at least one of the following privileges:
|
To export data from a table or view into an output file | You must have one of the following authorities:
|
To grant and revoke privileges on a table | You need the proper authorizations:
|
To import a file into a table | You must have one the following authorities:
|
To load data into a table | you must have one of the following authorities:
|
To restart a load | you must have one of the following authorities:
You should know at what point you want to restart the load process. |
To terminate a load | you must have one of the following authorities:
You should also try to restart the load before terminating it. Terminate a load only if you try to restart it and an unrecoverable error occurs. |
To rename a table | You must have at least one of the following privileges:
|
You must have one of the following authorities:
For an indication of whether it would be beneficial to reorganize your table, you can run the REORGCHK command. This command is used through the Command Center. A table cannot be reorganized if both of the following statements are true:
| |
To run statistics for a table, | You must have one of the following authorities:
|
To turn off constraint checking | If you do not have SYSADM or DBADM authority: you need the CONTROL
privilege on the table and on all of the tables whose foreign keys can be
traced back to the primary key of the table. These tables are its
dependents and descendents.
You cannot turn off constraint checking for a system table. |
To turn on constraint checking | If you do not have SYSADM or DBADM authority: You need the CONTROL
privilege on the tables that are being checked. These tables include
the selected table and its dependents and descendents. To write
exceptions, you need the INSERT privilege on the exception table.
If the selected table is a dependent or descendent table, make sure that the constraints of all of its parent (direct or indirect) tables are turned on. You cannot turn on constraint checking for a system table. |