GRANT <privileges> … TO APPLICATION¶
Grants one or more access privileges on a securable object to an application. The privileges that can be granted are object-specific.
- Variations:
Syntax¶
Where:
For more details about the privileges supported for each object type, see Access control privileges.
Required parameters¶
object_nameSpecifies the identifier for the object on which the privileges are granted.
object_typeSpecifies the type of object for schema-level objects.
ALERTDYNAMIC TABLEEVENT TABLEEXTERNAL TABLEFILE FORMATFUNCTIONMASKING POLICYMATERIALIZED VIEWNETWORK RULEPACKAGES POLICYPASSWORD POLICYPIPEPROCEDUREROW ACCESS POLICYSECRETSEMANTIC VIEWSESSION POLICYSEQUENCESTAGESTREAMTABLETAGTASKTYPEVIEW
object_type_pluralPlural form of
object_type(e.g.TABLES,VIEWS).Bulk grants on pipes are not allowed.
nameSpecifies the identifier for the recipient application (the application to which the privileges are granted).
Usage notes¶
- Granting OWNERSHIP privileges on an object or all objects of a specified type in a schema or database to an application, or transferring ownership of the object from one application to another application, is not allowed.
- Any ACCOUNT level privilege grant (not REVOKE) that is not in the current application version manifest is not allowed.
Example¶
Grant the SELECT privilege on a view to an application: