My Oracle Support Banner

Grant INDEX or REFERENCE Object Privilege to a Role Does Not Fail With ORA-01931 (Doc ID 1169723.1)

Last updated on MARCH 24, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.2.0 [Release 10.2 to 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

 

NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.  


The below statement is supposed to fail with ORA-01931, but it appears to be successful:

 SQL> grant index on user1.emp to role1;

EXPECTED BEHAVIOR
-----------------------
Error: ORA 1931
Text: cannot grant UNLIMITED TABLESPACE, REFERENCES, or INDEX to a role
-------------------------------------------------------------------------------
Cause: The UNLIMITED TABLESPACE, REFERENCES, or INDEX privileges cannot be
granted to a role.
Action: Grant these privileges directly to the user.


STEPS
-----------------------
The issue can be reproduced using the following steps:

1. create role role;
2. grant index on user1.emp to role1;
Grant succeeded

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.