Isn't there DBA_ view to see the privileges granted to a role ?

DB version :11.2
I couldn't find a DBA_ view which would list all the privileges granted to a role. Finally I had to grant the role to a user and then connect as that granted user and then query ROLE_TAB_PRIVS view. As a DBA , I can't login into business schemas to check this.
The scenario
==============
SCOTT schema has two tables : HRTB_EMP_MASTER and HELLOWORLD
I want to grant SELECT privileges on these two tables to another user called TESTUSER but not directly ; through roles
SQL> conn / as sysdba
Connected.
SQL> grant create role to testuser;
Grant succeeded.
SQL> conn testuser/test123
Connected.
SQL>
SQL> create role testuser_ro; 
Role created.
SQL> conn / as sysdba
Connected.
SQL> grant select on scott.hrtb_emp_master to testuser_ro;         --- > Granting the SELECT priv to the role first
Grant succeeded.
SQL> grant select on scott.helloworld to testuser_ro;               
Grant succeeded.
SQL> SELECT ROLE, OWNER, TABLE_NAME, PRIVILEGE FROM ROLE_TAB_PRIVS where owner = 'SCOTT';  ----> This won't work because I am connected as SYS
                                                          ----> ROLE_TAB_PRIVS is user specific view
no rows selectedSince I couldn't find a DBA view which will the privileges granted to a role , I granted the role to the user I had to login to the user (against our security policy) and query
ROLE_TAB_PRIVS.
SQL> grant testuser_ro to testuser;
Grant succeeded.
SQL> SELECT ROLE, OWNER, TABLE_NAME, PRIVILEGE FROM ROLE_TAB_PRIVS where owner = 'SCOTT';
no rows selected
SQL> conn testuser/test123
Connected.
SQL> SELECT ROLE, OWNER, TABLE_NAME, PRIVILEGE FROM ROLE_TAB_PRIVS where owner = 'SCOTT';
ROLE            OWNER           TABLE_NAME           PRIVILEGE
TESTUSER_RO     SCOTT           HELLOWORLD           SELECT
TESTUSER_RO     SCOTT           HRTB_EMP_MASTER      SELECT

you should search for grantee, not owner
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> create role r1;
Role created.
SQL> grant select on sys.v$database to r1;
grant select on sys.v$database to r1
ERROR at line 1:
ORA-02030: can only select from fixed tables/views
SQL> grant select on sys.v_$database to r1;
Grant succeeded.
SQL> select grantee, privilege, owner, table_name from dba_tab_privs where grantee='R1';
GRANTEE         PRIVILEGE                                OWNER           TABLE_NAME
R1              SELECT                                   SYS             V_$DATABASE

Similar Messages

  • Is there any view to get the privileges of that particulatr role?

    Hi,
    I wanna know,what are the privileges for the role.How to get it?

    Please review the following;
    Viewing Privilege and Role Information
    http://download.oracle.com/docs/cd/B19306_01/network.102/b14266/admusers.htm#sthref1804
    Also mention the database version.
    Adith

  • Is there a way to see the photo information on the iCloud sharing pages?

    There seems to be an issue with Apple wanting people to see the information for each photo easily.  When I share a photo in a shared album on iCloud, I don't see the title nor do I see any photo information, only the date that the photo was shared. 
    I DO see the date of the picture when it's in slide show view, in light font at the bottom right-easy to miss, but not when it's the basic view that allows us to scroll through the photos. 
    Is there a way to see the title and date of the photos on the left where the black space is and the sharing info is?
    It seems that this whole Photos program is half-done...
    Thank you,
    Dave

    There is an App at the App store called "Battery Magic". You can get a trial version, (free) that will show you what you want to know, including battery life, and how long you can play games, music and other things on your current battery life.
    You can also download the full version. I think its $0.99.

  • If I use an SD card for both Windows 7 and Mac, is there any way to see the documents from the Mac sight while on the windows side?

    If I use an SD Card on both the windows 7 and Mac OS (using bootcamp), is there any way to see the data seen on the Mac OS side while using the Windows OS?

    Windows Aero style uses a different background image than Mac:
    Windows Aero:
    #nav-bar {
    background-image: linear-gradient(rgba(253,253,253,0.45), rgba(255,255,255,0));
    Mac:
    #nav-bar {
    background: url(chrome://browser/skin/Toolbar-background-noise.png),
    linear-gradient(hsl(0,0%,93%), hsl(0,0%,83%));
    I can't test hands on, but you might be able to clear that OSX "fog" using a rule such as:
    @namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
    #nav-bar, #PersonalToolbar {
    background-image: none !important;
    background-color: transparent !important;
    This could be applied using the Stylish extension or by creating/editing a userChrome.css file.

  • My Mac has been stolen, but I have my iCloud account setup. The "find my mac" app has found the apartment block it's in, but I need an IP address. Is there a way to see the IP address of my Mac through iCloud?

    My Mac has been stolen, but I have my iCloud account setup. The "find my mac" app has found the apartment block it's in, but I need an IP address for the police to go and claim it. Is there a way to see the IP address of my Mac through iCloud? I've tried to get the IP address through Gmail and Dropbox but no success. Is there any software that updates automatically that I could find the IP address through?

    Shouldn't the IP address be on the box you bought the machine in? If you have the box, take it to the police as evidence that it's your machine. If I were you, I would set the firmware password when you get it back, but make sure you have the password written down in a safe place. If you forget it, there's only two ways to reset it. Either pay $400+ for the tool that can do it, or pay almost nothing for Apple to do it, I think it depends on where you live. The firmware password is this encrypted password and it can't be hacked either. The password prevents anyone from booting the machine into recovery mode, thus preventing them from restoring the computer to factory settings or performing any other functions. It's not stored in the hard drive so replacing that will be of no use either.
    I hope you get your Mac back and I hope this was helpful!

  • Is there a way to see the waveform of the audio in the primary video track?

    Is there a way to see the audio waveform of the audio in the video (primary) track?
    Scrubbing to determine precise edit points is useful, but seeing the dialog audio waveform would be much better.
    You can see the audio waveform in additional audio-only tracks, but for cutting to dialog you really need to see the primary audio waveform that's in the video track.
    Any thoughts?

    msimpson,
    No. The waveforms are only visible in the two separate audio tracks.
    A work around would be to use Advanced>Extract Audio command.
    This command, in spite of its name, copies the audio to one of the audio tracks and sets the volume level of the audio to zero in the video track.
    Now you'll have the waveform to use in editing. When you're done with it, you could delete it and raise the volume again on the video track.
    Matt

  • Is there any report to see the Latest GR receipts materials wise

    Dear Experts,
                              is there any report to see the Latest GR receipts materials wise , thanks in advance
    regards
    rajakarthik

    transaction MC.A
    Execute it.
    if you see the result, then press F6 to add the date fields to the screen.

  • Is there any report to see the consumption details?

    Hi,
    Is there any report to see the consumption details? with material number or without material number?
    Regards,
    Sattuj

    There are a no of ways from where you can get your desrired data....
    Table mver---used for material consumption.
    T code mcre---again used in consumption reports,
    Table MVER gives you detail of Material Consumption
    Also, MSEG (MENGE) and S026 (ENMNG) ... Pls restrict the selection condition for material with movement type 261 in table MSEG
    Tables
    DBERCHV Consumption History
    DVER Material Consumption for MRP Area
    You can get all the consumption details in MB51 report by selecting relevnt movement types. And MB5S also.
    For Repetetive :-
    Check this T Code MCRP,which gives you the exact material consumption datewise or order wise.
    *Report MCRE is widely used for the material cosnumption than checking in COOIS.*
    Also these reports can help you.
    MCPF Material analysis: Dates
    MCPO Material analysis: Quantities
    MCPW Material analysis: Lead time

  • HT1435 During normal charging phase is there a way to see the estimated battery% ?

    A1285 (EMC 2287) iPod nano 4th Gen
    During normal charging phase is there a way to see the estimated battery% ?   If I am at 10% and plug in to charge and it takes 30 minutes to get to 55% then I know there are about 30 more minutes of charging until I'm at 100%.

    There is an App at the App store called "Battery Magic". You can get a trial version, (free) that will show you what you want to know, including battery life, and how long you can play games, music and other things on your current battery life.
    You can also download the full version. I think its $0.99.

  • TS3999 Is there a way to see the date you invited someone to an event on your calendar?

    Is there a way to see the date you invited someone to an event on your calendar?

    How are you getting to full screen mode? I assume you are using Full Screen mobile add-on?
    Try the following instead:
    * Download Firefox Beta (v22) from google play
    * Navigate to about:config
    * In the search bar look for "dynamic"
    * Toggle 'browser.chrome.dynamictoolbar' to 'true'
    * Close the tab
    Now when using Firefox beta the navigation/loading bar will disappear automatically when you scroll down a page and will reappear when you click on a link.
    Please note that this is an experimental feature so there may be some issues. But I think it works better than the add-on. The feature will eventually come to the standard release version of Firefox for Android.

  • Is there a way to see the size of my ICloud backup files, so I can determine which one I want to use?

    Is there a way to see the size of my ICloud backup files, so I can determine which one I want to use?

    Go to Settings>iCloud>Storage & Backup>Manage Storage.  Your backups are listed at the top, along with their sizes.  Note: this will only list your most current backup.  You may have your previous two backups available too but you cannot access any size information about them.

  • Is there any way to see the iPhone home screen in an lcd tv?

    Just bought the HDMI adapter for mi iPhone4 and it plays videos very well, but is there any method to see the home screen and the apps in real time from the phone to my TV?

    if u have a tv screen near by then can use a hdmi cable that comes for iphone 5 to mirror it
    but i dont think there is an app for mirror without wifi

  • Is there any way to see the  user name(authorized) to logon IR

    Hi,
    Is there any way to see the user name(authorized) to logon Integration Repository?
    I am getting error while trying this out.
    Can anyone please help me.
    Thanks.

    Hi,
    YES, you can see in SU01 and select the user . ANd check for the Roles assigned to that particular User.
    By seeing the Roles itself we can be able to say the Authorized or not
    Regards
    Seshagiri

  • I lost my iphone but the battery has died. Is there any way to see the last known location of my phone before it shut down?

    I lost my iphone but the battery has died. Is there any way to see the last known location of my phone before it shut down?

    No

  • Is there a place to see the "Marker Text" for the entire index and make changes?

    I know how to make individual changes in "marker text" for the Index.
    Is there a place to see the "Marker Text" for the entire index and make changes there?
    I am indexing a book that uses quotes from scripture.
    As an example, I want to change listings from
    Colossians 3:10-11
    to
    Colossians 3 verses 10-11
    I would appreciate any help.
    If this is not the correct venue for this question, please disregard.

    You didn't mention which version of FM that you're using. In FM9, this can now be done in the Marker Pod.
    There are third-party utilities that also let you see all marker content.
    In the freebie category is MarkerWorker from Cudspan at: http://www.cudspan.net/plugins/
    In the paid plug-in category are:
    IXgen: http://www.fsatools.com/ixmid.html
    MarkerTools : http://www.leximation.com/tools/info/markertools.php
    emDex: http://www.emdex.ca/
    Indexing add-ons:
    IndexTools (helpful for formatting and other Index layout tricks): http://www.siliconprairiesoftware.com/Products.html
    In the DIY category, you can create a List of Markers for the Index (with hypertext enabled), open the Marker window (Special > Marker...) and then use ctrl+alt click on the entry to make a hypertext link to the location and see it in the marker window for editing. [Note: you can also do the same thing from the Index itself]

Maybe you are looking for

  • HR ABAP How to Write BDC For Infotype 0586

    Hi Experts Can Any One tell me how to write BDC for Infotype 0586  and also 585. If we enter into the maintaining Screen, the lines in the Screen will dynamically changing depending on the values. When I am doing recording , If I press page down afte

  • How to modify the timestamp in a msg file?

    Hi All, Do you know how to modify the timestamp in a msg file which was saved from Outlook Inbox. The mail subject and body are able to be modified by selecting Actions - Edit Message. But it looks like the mail timestamp and the To/Cc are not able t

  • Flash Builder 4 beta 2 Debug deployment

    Flashbuilder hangs nearly very time I try and deploy (via debug) my _trivial_ application (see http://anirudhs.chaosnet.org/blog/2009.10.12.html for the tutorial i'm trying to follow). Flash builder goes in to a 'Building workspace' mode and stays at

  • QM Certification Material

    Hi All,               If any one has QM certification material then request you to send it to my mail id : [email protected] Looking fwd postive response from you all as i need it on urgent basis. Regards Amit Choudhary

  • Oracle Portal - charts language problem

    I'm using Polish Oracle Portal 3.0 with database 8.1.7. OS is w2k Professional (Polish version). I can't force it to display Polish letters in charts (as subscribes), but !! anywhere else I can write anything I want using Polish language and its O.K.