Solved

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

Posted on 2014-10-30
5
271 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 74

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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 how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
Suggested Courses

634 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