Grant privileges for an opaque data type
- Privileges on the use of the opaque data type
- Privileges on the support functions of the opaque data type
The CREATE OPAQUE TYPE statement creates a new opaque data type with the Usage privilege granted to the owner of the opaque data type and the DBA. To use the opaque data type in an SQL statement, you must have the Usage privilege. The owner can grant the Usage privilege to other users with the USAGE ON TYPE clause of the GRANT statement.
- Accesses columns of the opaque data type
The Select, Insert, Update, and Delete table-level privileges determine access to a column.
- Invokes a UDR with the opaque data type as an argument
The Execute routine privilege determines access to a UDR.
GRANT USAGE ON TYPE circle TO dexter
The sysxtdtypeauth system catalog table stores data type-level privileges. This table contains privileges for each opaque and distinct data type that is defined in the database. The table contains one row for each set of privileges granted.
For information about setting the privileges for support functions, refer to Set privileges for support functions.