SQL standard authorization exceptions

SQL exceptions are returned when errors occur with SQL authorization.

The following errors can result from the CREATE ROLE statement:

The following errors can result from the DROP ROLE statement:

The following errors can result from the SET ROLE statement:

The following errors can result from the GRANT statement:

The following errors can result from the REVOKE statement:

For all statements, an attempt to specify an identifier argument more than 128 characters long raises the SQLException 42622.

For more information about exceptions, see "SQL error messages and exceptions" in the Derby Reference Manual.

Related concepts
Using fine-grained user authorization
Privileges on views, triggers, constraints, and generated columns
Using SQL roles
Upgrading an old database to use SQL standard authorization
Related reference
NATIVE authentication and SQL authorization example