Grant Schema Statement; Syntax Description Of Grant Schema - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

GRANT SCHEMA Statement

"Syntax Description of GRANT SCHEMA"

"Considerations for GRANT SCHEMA"
"Examples of GRANT SCHEMA"
The GRANT SCHEMA statement grants access privileges for a schema to specified roles.
GRANT {privilege [,privilege]... | ALL [PRIVILEGES] }
ON SCHEMA schema-name
TO {grantee [,grantee ]... }
[WITH GRANT OPTION]
privilege is:
EXECUTE
| DELETE
| INSERT
| UPDATE
| REFERENCES
| SELECT
grantee is:
authid | PUBLIC
Syntax Description of GRANT SCHEMA
privilege[, privilege]... | ALL [PRIVILEGES]
specifies the privileges to grant. You can specify each of these privileges for a schema
DELETE
EXECUTE
INSERT
REFERENCES
SELECT
UPDATE
ALL PRIVILEGES
ON SCHEMA schema-name
specifies a schema on which to grant privileges.
TO {grantee [,grantee]... }
specifies one or more roles to whom you grant privileges.
grantee specifies an authorization ID to whom you grant privileges. Authorization IDs
identify roles during the processing of SQL statements. The authorization ID must be a valid
role name, enclosed in double quotes. grantee 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 statement.
WITH GRANT OPTION
specifies that roles to whom privileges are granted have the right to grant the same privilege
to other roles.
Can use DELETE statement.
Can EXECUTE privilege on a schema.
Can use INSERT statement.
Can create constraints that reference the schema.
Can use SELECT statement.
Can use UPDATE statement.
All of the privileges above. Can have all privileges that apply to the object type.
GRANT SCHEMA Statement
119

Advertisement

Table of Contents
loading

Table of Contents