Get the list of roles/privileges that allow access to an object

Hi friends,
Sometimes I'm not able to find the exact reason why a user has access to a particular object. There are so many roles that are granted to a user who I get confused by reaching the correct role via the TOAD schema browser which allows this user to make a select or any other operation on a particular operation on a given object.

Can you please me guide in writing a simple query that will tell me why a particular user has special access to a particular object?

I tried to use the script but no success in obtaining my goal below:
 SELECT DBMS_METADATA.GET_DDL('USER', '&&a')|| '/' DDL  FROM DBA_USERS WHERE ROWNUM <2
 UNION ALL
 SELECT DBMS_METADATA.GET_GRANTED_DDL('ROLE_GRANT','&&a' )|| '/' DDL FROM DBA_USERS where rownum <2
 UNION ALL
 SELECT DBMS_METADATA.GET_GRANTED_DDL('SYSTEM_GRANT', '&&a') || '/' DDL FROM DBA_USERS where rownum <2
I'm using oracle 11.1.0.7.0.

regds,
Malika

Normally, you can use the three following points of view to discover the privileges of users or roles with recipient =''

DBA_SYS_PRIVS - Access Privileges

DBA_ROLE_PRIVS - User Roles

DBA_TAB_PRIVS - Object Privileges

References: http://docs.oracle.com/cd/B28359_01/network.111/b28531/authorization.htm#BABCHEJB

Tags: Database

Similar Questions

  • Cannot get the list of role access

    Hi all

    I'm new to UCM 11 g. We intend to apply ACLs in 11 g.
    I would like to know how to apply ACLs in the Complutense University of MADRID, I configured ACL according to the Oracle documentation, but how do the user of these ACLs.
    Still something I am unable to get the values in the list of role access.

    Thank you all

    Hello

    The value must be added to the view - ExternalRoles.

    Add the publication scheme and test it.

    Thank you
    Srinath

  • Cannot get the list of Ports on server using Powertool

    I try to get the list of Server Ports that have been activated on the FI-s using Powertool

    I use the below command and I don't get nada

    Get-UcsFabricServerCloud-Id "A" | Get-UcsServerPort - AdminState "enabled."

    Have tried without the additional options with no luck

    Get-UcsFabricServerCloud-Id "A" | Get-UcsServerPort

    The following command gives me a good performance

    Get-UcsFabricServerCloud-Id 'A '.

    On a whim, I also tried the below with no luck

    Get-UcsFiLanCloud-Id "A" | Get-UcsUplinkPort - IfRole 'server '.

    Any help appreciated.

    As for my other answer, you'd better start searching for the network element.  In this case, I'm looking for ports that are of the type "ether" and have an Interface to 'server '.

    PS C:\ucs > Get-UcsNetworkElement | Get-UcsFiModule-Id 1 | Get-UcsPortGroup-ether of Transport | Get-UcsFabricPort - IfRole Server | Select dn, peerdn, ifrole, operspeed | Format-Table

    Dn                                                PeerDn                                            IfRole                                            OperSpeed

    --                                                ------                                            ------                                            ---------

    sys/switch-A/slot-1/switch-ether/port-1 sys/chassis-1 /-1/tissu/port-1 10 Gbps server location

    sys/switch-A/slot-1/switch-ether/port-2 sys/chassis-1/slot-1/fabric/port-2 Server 10 Gbps

    sys/switch-A/slot-1/switch-ether/port-3 sys/chassis-1/slot-1/fabric/port-3 Server 10 Gbps

    sys/switch-A/slot-1/switch-ether/port-4 sys/chassis-1/slot-1/fabric/port-4 Server 10 Gbps

    sys/switch-B/slot-1/switch-ether/port-1 sys/chassis-1 /-2/tissu/port-1 10 Gbps server location

    sys/switch-B/slot-1/switch-ether/port-2 sys/chassis-1/slot-2/fabric/port-2 Server 10 Gbps

    sys/switch-B/slot-1/switch-ether/port-3 sys/chassis-1/slot-2/fabric/port-3 Server 10 Gbps

    sys/switch-B/slot-1/switch-ether/port-4 sys/chassis-1/slot-2/fabric/port-4 Server 10 Gbps

    Hope that helps.  Let me know if you have any other questions.

    Thank you
    Eric

  • Is there a way to get the list of open URL of file (.dmp) incident, mdmp [NOT BE]

    Hello

    My Firefox session crashed, which was little in private meetings. I have the mdmp (.dmp file) dump file saved. Is there anyway that I can get the list of URLS open in private in windows.

    If so, how to read the file OR open it for debugging.

    Kind regards
    bnrsubs

    All data are kept in memory during the session in incognito mode and will never be saved on the hard disk, so these data are available for normal use and things like restore closed tabs and windows and cookies still function as in a normal session, but this data is deleted from all the private browsing mode Windows Open (tabs) are closed.

  • Libretto U100 Bluetooth error message indicates - getting the list of files fail

    Hello

    I try to connect my Libretto U100 Bluetooth to a new Sony Ericsson mobile software Bluetooth for exchanging information.

    I can connect and see the files on the mobile phone, but when I click on the folders, there is an error message indicating "getting the list of files doesn't have."

    New drivers must or is there something else I need to set up at all?

    Previously, I was able to connect to any other mobile phone with no problems.

    Thank you in advance for help you.

    Hello

    I m sure that it s is not a Bluetooth problem or a cell phone if it s possible to connect Sony Ericsson and other mobile phones. Unfortunately, I'm not very familiar with this laptop but I found this site with FAQ on your mobile phone.

    http://www.Ericsson.com/Contact/FAQ.shtml
    http://www.Esato.com/Help/FAQ.php

    In addition, you should check the manual of the phone. I sure you will find a description of m

    Good luck

    Good bye

  • In Windows Media Player 11 when spend to add songs, how get the list to stop starting at the top?

    With WMP11, when adding pieces of the current reading library, I often change between two tabs. My question is every time I switch back to the library to add more songs, tab how can I get the list to stop starting at the top? I have a number of songs scrolling on there where I left last can be very inconvenient. I remember with an older version when you leave the library, that he would stay where you left it. Yet once, how can I stop the library always start at the top and instead pick up where I left off?

    Thank you very much

    Reinstalling wmp11

  • I would like to get the list of all devices on which my creative cloud has been activated for the last six months or a year

    I would like to get the list of all devices on which my creative cloud has been activated for the last six months or a year

    I do not think that information... Adobe titles represent the only link I know following your accounts, but not where the programs are installed

    https://Accounts.adobe.com/ , then click on Plans & products above to find a list of your programs and your serial numbers

  • Is there a way to get the list of hosts and its groups of belonging to the vCenter folder level in 5.5 web vsphere client plugin development?

    Hello

    I need to get the list of all hosts and its groups of belonging to the vcenter folder level.

    1. I created a view giving the extension point: vsphere.core.folder.monitorViews.

    2. After this step, I wrote the constraint as in my class of mediator,

    var ListConstraint:Constraint =

    QuerySpecUtil.createConstraintForRelationship ( _contextObject, 'childEntity');

    I was expecting a list of all child entities such as hosts, dc, cluster... But I have only the immediate child object which is only the Datacenter as my result.

    Is it possible to get all hosts and vCenter folder level Clusters because I need the entire list to vCenter (highest level).

    Other info:

    Object file has only two properties:

    1 childEntity - list of entities

    2 childType in-kind folder ('Virtual Machine', 'Data center'...)

    Is it possible to write a constraint specifying which list of childEntities I need using childType in.

    Example: Make Me childEntities that has a 'Host' and 'Cluster' childType but childType in doesn't have these two types.

    In addition, at this level, I could see the 'Associated objects' tab which has all the information I need, such as Clusters and Cluster tab hosts and host tab respectively.

    So, I think its possible to get this list to vCenter folder level.

    I have attached a screenshot representing the need. Kindly ignore the Conventions of naming in there since I edited the example comes with the sdk program.


    Query:

    1. How can I get the host and Cluster (table of relationship) list to vCenter folder level or even at the level of the vise.global.view?

    2. once I get this list, is it possible for me to manipulate that list and send the new list to IU?

    3. is there another way to do the same thing without the help of model classes and mediator?


    Pointers to this will be very useful.

    It is not possible to obtain all hosts a folder specific vCenter from a single query Data Manager.  You need to get the list of centers of data first and then get a list of data center hosts.

    It is best to make these repeated requests to the java level and return only the list that you want to the user interface.

    You can get all the objects in the host of the system with a simple query using a constraint with targetType = 'HostSystem', but you will need to eliminate those from other vCenter servers.  See how this chassis example queries all hosts the Java later in the getHosts() method: samples/chassis-app/chassisRackVSphere-service/src/main/java/com/vmware/samples/chassisRackVSphere/ChassisRackVSphereDataAdapter.java

    Another option is to use the vSphere Web Services SDK to browse vCenter. See the vSphere management forum for help on these APIs.  See this plugin of the sample using this SDK

    samples/vsphereviews/vsphere-wssdk-provider/src/main/java/com/vmware/samples/wssdkprovider/VmDataProviderImpl.java

  • Whence Acrobat get the list fonts it uses when you do OCR?

    Whence Acrobat get the list fonts it uses when you do OCR?

    For example, a picture came by using the font "Helvetica", which is not on my system.  So I know that it is not using system fonts to decide what font uses the image.

    In my view, it is likely to be integrated: learned and set at the factory. I don't think you will find that it uses your actual fonts.

    (Helvetica is STILL available for use in PDF format, it has a special status).

  • Analysis of query and get the list of used tables

    Hi all

    I need to parse the sql query (simple & complex as well) and for a list of the tables used in the query.

    And need to validate the fact that list the tables against a whitelist that is kept in the file.

    I tried to write my own parser, because there are many ways to write complex queries, I'm unable to cover all scenarios.

    I need help, is there other ways to get the list of tables used in a query?

    Thank you

    Manon...

    In general you would add a condition 1 = 2 just to restrict the display of the entire table. Then should not be causing any noticeable performance degradation. You can even use ROWNUM< 2.="" that="" will="" do="" a="" count="" stopkey.="" which="" could="" be="">

    SQL > select * from emp where rownum<>

    no selected line

    SQL > select * from table (dbms_xplan.display_cursor);

    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------
    SQL_ID, 97f4bd002xfy0, number of children 0
    -------------------------------------
    Select * from emp where rownum<>

    Hash value of plan: 4269703525

    ---------------------------------------------------------------------------
    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
    ---------------------------------------------------------------------------
    |   0 | SELECT STATEMENT |      |       |       |     2 (100) |          |
    |*  1 |  COUNT STOPKEY |      |       |       |            |          |
    |   2.   TABLE ACCESS FULL | EMP |     1.    38.     2 (0) | 00:00:01 |
    ---------------------------------------------------------------------------

    Information of predicates (identified by the operation identity card):
    ---------------------------------------------------

    1 Filter (ROWNUM<>

    19 selected lines.

    But its always good to bench mark it yourself.

  • How to get the list of active users in Essbase 6.5.6

    Hi gurus,

    How to get the list of active users in Essbase version 6.5.6

    I can't find any Esscmd list of active users...

    I used the command LISTLOGINS in ESSCMD, but it did not help me...

    pls suggest me an approach to find the list of active users.

    Thanks in advance...

    Hi guru,.

    When you connect to the application, you will find the security option---> connect you will find active use in the ESSBASE.

    If you need the list of users in the use of ESSBASE that recommends essmsh

    go for the race---> essmsh---> login user server use this tribute

    (1) session view all this;

    If you want to export the active users usebelow congratulate.

    2)

    spool to 'D:\suresh.txt ';

    poster session;

  • How to get the list of files for a virtual machine?

    Hello

    Virtual machines can have their files distributed on several issues (even through several data warehouses).

    PowerCLI gives us an easy way to retrieve the data warehouse associated with a virtual (Get-data store) machine, but it doesn't seem to be a built-in method to get the list of all records where a given virtual machine stores all its files. Or maybe I'm just blind ;-)

    Can anyone offer an overview on how to achieve this?

    Thank you

    No, that sounds like a good idea to copy/back up virtual machines.

    I adapted the script. She now returns one row for each unique record

    foreach($vm in Get-VM){
      $folders = $vm.ExtensionData.LayoutEx.File | %{$_.Name.Split('/')[0]} | Sort-Object -Unique  $folders | Select @{N="VM";E={$vm.Name}},@{N="Folder";E={$_}}
    }
    
  • Get the list of the names of cache

    I use this code to get a list of all the names of my cluster cache:
    ------

    Cluster cluster = CacheFactory.ensureCluster ();
    for (enumeration < String > = cluster.getServiceNames services (); services.hasMoreElements () ;))
    {
    String sName = (String) services.nextElement ();
    System.out.println("service:"+sName);
    Service service = cluster.getService (sName);
    If (service instanceof CacheService) {}
    CService CacheService = service (CacheService);
    Caches of list < String > = cService.getCacheNames ();
    for (caches = cService.getCacheNames (); caches.hasMoreElements () ;){)
    Add caches.nextElement () in a list
    }
    }
    }

    ------

    It works fine, but in order to access multiple clusters, I have to use proxy/extend coherence.

    When I use the proxy/extend, the code above no longer works. I explain: when you use proxy/extend, cluster.getServiceNames () returns the Management and Cluster but does not return the Cache Services more.

    I tried to get a group in a different way object:

    . GetCluster (CacheFactory.getConfigurableCacheFactory () .ensureService ("ExtendTcpInvocationService") (InvocationService));

    where ExtendTcpInvocationService is defined with < remote-invocation-diet > but the result is the same.


    To summarize : I would like to get the list of all my names of cache in an application of several cluster; is this possible?

    Hello

    Yes, your invoked must be on the classpath of the server and you use POF, it must also be in the configuration of the server POF file.

    The best way to find the names of cache on the server without needing to code on the cluster must use JMX - assuming that you have enabled JMX on the cluster. You can easily run a JMX to Java code query or use something ike JConsole of VisualVM...

    JK

  • How can we get the list of files in a folder?

    Hi all

    My plugin has a list of .ai files in the user interface of the folder C:\Program Files\Adobe\Adobe Illustrator CS4\Plug - ins\Illustrator Filters\MyPlugin.

    Also, if we put 'MyFile.ai' in the folder 'MyPlugin', then the user interface should display the MyFile (file name) in a drop-down list box.

    I want to get the list of files in the folder "MyPLugin".

    Download the plugins to HAVE

    AI::filepath pluginsFolder.

    sAIFolders-> FindFolder (kAIPluginsFolderType,

    fake , pluginsFolder);

    MyPlugin folder

    AI::UnicodeString MyPluginFolder (pluginsFolder.GetFullPath ());

    MyPluginFolder.append (ai::UnicodeString ("\\Illustrator Effects\\Myplugin\\"));

    Here I get the my full path of the folder plugin in "MyPluginFolder".

    Now, this file, I want to get the list of files that I placed?

    What are the APIs available in artificial intelligence to get the list of files in a folder?

    If you want to enumerate files in a directory, you have to use the OS APIs. I does not provide for this. There are different ways to find important files/directories related to AI, but nothing else.

    The APIs to do this in the operating system are usually pretty easy to use but. Annoying if you try to hit Mac and Windows, but a little care in the design of your interface and hide the worst.

  • I liked the old version of iTunes that allowed me to delete songs from my camera if I needed to make room for other things. Does anyone know why it was changed?

    I liked the old version of iTunes that allowed me to delete songs from my camera if I needed to make room for other things. Does anyone know why it was changed?

    You have to ask Apple why the design has changed. You should still be able to delete songs by changing your selection of synchronization and synchronize.

    Or you can delete songs directly on your iPad and other iOS devices, directly in the music app or via settings > general > storage & use iCloud > storage management > music

Maybe you are looking for

  • How to upgrade to OS x 10.7 Lion?

    I have an OsX Lion of MacBookPro 10.7.5 I get messages saying: there will soon be no more access to the features of google chrome and safari, but when I try to update tells me that my system is too old. What should I do? Must I install OsX El Capitan

  • Satellite C650-14W - need new motherboard

    http://www.Toshiba.pl/discontinued-products/satellite-C650-14W/HelloWhat other similar models of motherboards will be closer to a laptop C650-14W? More information:MOTHERBOARDS: (Broken) REF: 1310A 2355202SYSTEM BDSPS:V00255000IEC S/N J004M102FMDATE

  • Printer not activated - error-30 code

    Hi ya'll, I read the answers to other questions about the error code 30. I have created a new range of HP printers and now I can print only online of IE. It won't work for me that I have a business and it is fully installed on Firefox. Is there a way

  • Save all source files in a project of earlier version?

    What is the quickest way to save all source files in a project from an earlier version? I know that I can do with individual files, but is there a way to do everything at once?

  • My BB 8520 blackBerry smartphones does not ringtones

    Yesterday's leave suddenly my BB has stopped playing some ringtones and is also not play video files. When I try to play any ringtone manually, an error which says error playing with a message "an error occurred while trying to play the media. I also