Grant Execute Statement; Syntax Description Of Grant Execute; Considerations For Grant Execute; Authorization And Availability Requirements - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

GRANT EXECUTE Statement

"Syntax Description of GRANT EXECUTE"

"Considerations for GRANT EXECUTE"

"Examples of GRANT EXECUTE"
The GRANT EXECUTE statement grants privileges for executing a stored procedure in Java (SPJ)
to one or more specified roles.
GRANT EXECUTE
ON [PROCEDURE] procedure-ref
TO {grantee [,grantee ]... }
[WITH GRANT OPTION]
procedure-ref is:
[schema-name.]procedure-name
grantee is:
authid | PUBLIC
Syntax Description of GRANT EXECUTE
EXECUTE
specifies the privilege of executing a stored procedure by using a CALL statement.
ON [PROCEDURE] procedure-ref
specifies the name of a stored procedure on which to grant EXECUTE privilege, of the form:
[schema-name.]procedure-name
where each part of the name is a valid SQL identifier with a maximum of 128 characters. For
more information, see
TO {grantee [,grantee ]... }
specifies one or more roles to whom you grant EXECUTE privilege.
grantee is authid | PUBLIC
authid specifies an authorization ID to whom you grant the EXECUTE privilege.
Authorization IDs identify roles during the processing of SQL statements. The authorization
ID must be a valid role name, enclosed in double quotes. authid is not case-sensitive.
SQL:1999 specifies two special authorization IDs: PUBLIC and SYSTEM.
PUBLIC specifies all present and future authorization IDs.
SYSTEM specifies the implicit grantor of privileges to the creators of objects.
You cannot specify SYSTEM as an authid in a GRANT EXECUTE statement.
WITH GRANT OPTION
specifies that roles to whom privileges are granted have the right to grant the same privilege
to other roles.
Considerations for GRANT EXECUTE

Authorization and Availability Requirements

To grant EXECUTE privilege on a stored procedure, you must have both that privilege and the
right to grant that privilege. That is, the WITH GRANT OPTION privilege must have been issued
to your role and not revoked. If you lack authority to grant one or more of the specific privileges,
the system returns a warning (and does grant any of the specified privileges that you do have
authority to grant). If you have none of the specified privileges WITH GRANT OPTION, the
system returns an error.
"Identifiers" (page
220).
GRANT EXECUTE Statement
117

Advertisement

Table of Contents
loading

Table of Contents