Skip to Main Content
Oracle in a Nutshell
book

Oracle in a Nutshell

by Rick Greenwald, David C. Kreines
December 2002
Intermediate to advanced content levelIntermediate to advanced
928 pages
85h 29m
English
O'Reilly Media, Inc.
Content preview from Oracle in a Nutshell

Name

GRANT (Object Privileges)

Synopsis

GRANT {object_priv[,object_priv ...] | ALL [PRIVILEGES]} 
  [column [,column...]] ON 
{ [schema.]object_name 
| DIRECTORY directory_name 
| JAVA {SOURCE | RESOURCE} [schema.]java_object
}
TO {username | role | PUBLIC}
[WITH GRANT OPTION]

Grants privileges on a database object to one or more users or roles.

Keywords

object_priv

Specifies the name of the object privilege to be granted. Valid privileges are ALTER, DELETE, EXECUTE, INDEX, INSERT, REFERENCES, SELECT, and UPDATE.

object_name

Name of the object on which privileges are to be granted.

DIRECTORY

Specifies the name of a directory object on which privileges are to be granted.

JAVA SOURCE

Specifies the name of a Java source object on which privileges are to be granted.

JAVA RESOURCE

Specifies the name of a Java resource object on which privileges are to be granted.

username

Name of the user who will be granted the object privilege.

role

Name of a role that will be granted the object privilege.

PUBLIC

Specifies that the object privilege be granted to all current and future users.

WITH GRANT OPTION

Specifies that the grantee of the privilege can grant the privilege to others.

Common keywords and clauses: column, schema.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle Internals

Oracle Internals

Donald K. Burleson
Oracle PL/SQL

Oracle PL/SQL

Lewis Cunningham
Oracle Essentials: Oracle9i, Oracle8i and Oracle8, Second Edition

Oracle Essentials: Oracle9i, Oracle8i and Oracle8, Second Edition

Rick Greenwald, Robert Stackowiak, Jonathan Stern

Publisher Resources

ISBN: 0596003366Errata Page