Solved

How  can I check the list of objects which my user is having access?

Posted on 2014-10-30
5
251 Views
Last Modified: 2015-01-05
I assume all_objects view will provide me the list of objects which my user can access.

But I found a few tables which does not find a place in this view, but still I am able to access.

If my assumption is not correct, How I can check the list of objects which my user having access?
0
Comment
Question by:sakthikumar
5 Comments
 
LVL 16

Accepted Solution

by:
Wasim Akram Shaik earned 250 total points
ID: 40412848
ALL_TAB_PRIVS data dictionary view has the information you need.
0
 
LVL 13

Expert Comment

by:Alexander Eßer [Alex140181]
ID: 40412872
select *
  from user_tab_privs;

Open in new window

0
 
LVL 1

Expert Comment

by:Lacca
ID: 40412891
select *
  from USER_OBJECTS;
0
 
LVL 13

Expert Comment

by:Alexander Eßer [Alex140181]
ID: 40412954
select *
  from USER_OBJECTS;

These are just those objects which are owned by the logged on user, not neccessarily those which this user is allowed to access...
0
 
LVL 73

Assisted Solution

by:sdstuber
sdstuber earned 250 total points
ID: 40412994
you also inherit object privileges from ROLES granted to your user, and from roles granted to those roles and so on.

To recursively search your direct privileges and inherited privileges try this...

Just change "YOUR_USER" to whatever username you're investigating.

    SELECT LPAD(' ', 3 * (LEVEL - 1)) || granted_role "User, roles and sys privs", description
      FROM (SELECT grantee, granted_role, 'Role' description FROM dba_role_privs
            UNION ALL
            SELECT grantee, privilege || ' on ' || owner || '.' || table_name, 'Object Privilege'
              FROM dba_tab_privs
            UNION ALL
            /* fake privilege query to get user names as a starting point (see START WITH clause) */
            SELECT NULL , 'YOUR_USER' , 'User'
              FROM DUAL)
START WITH grantee IS NULL
CONNECT BY grantee = PRIOR granted_role;
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now