Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

User can't see DBA_SEGMENTS

832104Apr 6 2011 — edited Apr 6 2011
Greetings All,

I have an issue where an account(user/schema owner) on the production instance cannot see several (perhaps all) dba_tables/views, specifically dba_segments, dba_objects, dba_recyclebin. Both platforms are 11gR2.

The same account/user on the development platform CAN however see these tables/views. This user was created and granted privileges/roles from the very same SQL script on both platforms.

Another thing that I experienced/noticed is that while using Oracle’s SQL Developer, this user/account on the production platform is able to reference these tables from the SQL editor window, but when I try to compile a procedure with the exact same SQL select statement the compile fails with ORA-00942: table or view does not exist.

I have tried referencing by fully qualifying as sys.dba_segments. Public synonyms do exist on both platforms.

I have even tried explicitly granting select on DBA_SEGMENTS (and sys.dba_segments) to this user with no effect.

I have compared the production privileges/grants/roles/synonyms to that of the development platform for this user with DBA_ROLE_PRIVS, DBA_SYS_PRIVS, ROLE_TAB_PRIVS, USER_ROLE_PRIVS, SESSION_PRIVS, and several others. All were identical to each other. This user has been granted the DBA role on both platforms.

What else could I look at or do to identify why this user cannot reference these views/tables on the production platform but can on the development.

Thanks for your time,

Bob
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 4 2011
Added on Apr 6 2011
11 comments
18,862 views