ORA-01031 SELECT ANY DICTIONARY System Privilege Granted Through Role Does Not Allow View Creation (Doc ID 342489.1)

Last updated on MARCH 26, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.8 to 11.2.0.4 [Release 9.2 to 11.2]
Information in this document applies to any platform.
Checked for relevance on 08-Sep-2010


Symptoms

The system privilege SELECT ANY DICTIONARY  is granted to USER1 through DBA role.

USER1 attempts to create a view based upon SYS.OBJ$ table, but fails with ORA-1031 error :

SQL> create user USER1 identified by user1;
User created.
SQL> grant dba to USER1;
Grant succeeded.

SQL> connect USER1/user1
Connected.

SQL> create or replace view zz as select * from sys.obj$;

create or replace view zz as select * from sys.obj$
                                                   *
ERROR at line 1:
ORA-01031: insufficient privileges

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms