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

CREATE/ALTER/DROP ROLE

Synopsis

CREATE Syntax:

CREATE ROLE rolename 
{NOT IDENTIFIED 
| IDENTIFIED 
  { EXTERNALLY 
  | GLOBALLY 
  | BY password  
  | USING [schema.]package 
  }
}

ALTER Syntax:

ALTER ROLE rolename 
{NOT IDENTIFIED 
| IDENTIFIED 
  { EXTERNALLY 
  | GLOBALLY 
  | BY password  
  | USING [schema.]package 
  }
}

DROP Syntax:

  DROP ROLE rolename

Creates, modifies, or removes a role, w hich is a set of privileges that can be granted to users. When you create a role, you are automatically granted that role WITH ADMIN OPTION, which allows you to grant or revoke the role or to modify it using the ALTER ROLE statement.

Keywords

rolename

Name of the role to be created.

NOT IDENTIFIED

Specifies that a user who was granted the role does not need to be verified when enabling it.

IDENTIFIED BY password

Specifies that the password must be provided when enabling the role.

IDENTIFIED EXTERNALLY

Specifies that the operating system verifies the user enabling the role.

IDENTIFIED GLOBALLY

Specifies that a global user is to be created. A global user must be authorized to use the role by the enterprise directory service before the role is enabled with the SET ROLE statement or at login time.

IDENTIFIED USING

Specifies that this is an application role, which is a role that can be enabled only by applications using packages. New with Oracle9i.

Common keywords and clauses: 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