How do I know what roles have access to an object?

Hello

Is there a way to see the roles that have access to a table in sqlplus? I keep a list of all roles that allow the selection of TABLE1.

Thank you!

Hello

To see the roles that have SOME privileges given directly on a given table:

SELECT r.role

OF dba_tab_privs p

JOIN dba_roles r WE r.role = p.grantee

Owner WHERE = "& owner.

AND table_name = '& table_name '.

AND privileged = "SELECT".

;

However, the roles can be granted to other roles, so to see all roles that have privileges either directly, as above, or indirectly, through other roles, you could do something like this:

WITH direct_grantees AS

(

SELECT r.role

OF dba_tab_privs tp

JOIN dba_roles r WE r.role = tp.grantee

WHERE tp.owner = '& owner '.

AND tp.table_name = '& table_name '.

AND tp.privilege = 'SELECT '.

)

SELECT role

OF direct_grantees

UNION

SELECT r2.role

Dba_roles R2

JOIN dba_role_privs ON rp.grantee = r2.role PR

START WITH (IN) rp.granted_role

SELECT granted_role

OF direct_grantees

)

CONNECT BY rp.granted_role = PRIOR rp.grantee

;

It considers only the roles that got the privilege on this table explicitly.  If you want to include roles that have the system privilege to SELECT ANY PICTURE, then look at dba_sys_privs, also.

Tags: Database

Similar Questions

  • How will I know what security pack I have in my computer? and do I have to load the update of security in ms10-046

    I have recivied an email indicating that I need to load a security update. He referenced MS10-046 "a vulnerability in the windows shell could allow remote access" is this necessary? and it refers to the sp2. Which leads to my next question how can I know what "SP" I have on my computer. Thanks for your time and considerartion.

    go to start > run > type

    winver

    Click ok

    What service pack t - he say that contains?

  • I have a 2002 Home edition WIndows Xp System. How will I know what bit is?

    How will I know what bit is?

    Because they do not have a 64-bit edition family... you have a 32-bit operating system.

    To see for yourself, make a right click workstation-> properties, on the general tab, you will see under "system":
    Microsoft Windows XP
    Home Edition
    Version 2002
    Service Pack 3

    For a 64-bit version "Windows XP Professional x 64 Edition" appears under System.

  • Is it possible to change sequence settings after you start a project? Also, how can I know what sequence of parameters are best for clips that I have?

    Is it possible to change sequence settings after you start a project? Also, how can I know what sequence of parameters are best for clips that I have?
    The clips I have are HD and .mp3. MTS files.

    In the latest version of Premiere Pro, it is possible to change the settings for the sequence.

    You know what settings are best knowing what you are doing.  (Personally I'm fan of formal education for this.)  I know that sounds sarcastic, but, there is no right answer to the question whose parameters are the best.  There are many variables here, then... you really need to know what you're doing.

  • How can I know what anti virus do I have and where can I find it

    theres nothing on my desk so I don't know what I have and I want to turn it off for 10 minutes. Windows xp

    Have you actually installed an antivirus application?

    Look at the system of Notification area (next to the time display).  Place the cursor of the mouse on each of the icons (make sure to click the chevron pointing to the left if it is present to display all icons).  Each icon should have a pop up balloon, explaining that it is.

    If one of the icons associated with your antivirus application, right-click and you should get a menu that includes an option to turn it off temporarily.  If a right click does not work, [to the left] double click it.

    If none of the icons seem to be an antivirus application, follow these steps:

    1. open a command prompt window (start > run > cmd > OK)
    2. type the following lines in the black command prompt window and press ENTER after each line

    Tasklist/SVC > '% userprofile%\Desktop\MyTasks.txt '.
    output

    3. go to your desktop, then double-click on the MyTasks.txt file
    4 copy the contents of the MyTasks.txt and paste into your answer here

    You can remove MyTasks.txt after you copy and paste its content in your response.

  • Can you tell me how do I know what I should delete to get as much space in a minimum of time?

    Original title: my disk space is so small that I can't do anything.  Can you tell me how do I know what I should delete to get as much space in a minimum of time?

    Not enough disk space

    Hello

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    You may want to transfer some data, images or documents on removable media like USB keys,
    External USB (my choice) or even CD/DVD readers (make multiple copies if the use of these).

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

    Info:

    System restore usually holds 15% of disk space and updates that are necessary for running computer
    consume even more. Backup - Options of recovery and even MS updates and those of HP, Dell
    or similar manufacturers use the space if your charging system. There are also overhead for the readers are not
    format to their maximum capacity.

    Where all my disk space? (Vista) - good writeup
    http://Forum.NotebookReview.com/showthread.php?t=167983

    Hard disk space Vista shrinking and reducing anomaly
    http://www.mydigitallife.info/2007/07/04/Vista-hard-disk-space-shrinking-and-reducing-anomaly/

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

    It will show you how disk space is being used.

    WinDirStat - free - use to make sure you know what is too much space.
    http://WinDirStat.info/

    -Free - TreeSize tells you where precious space has gone to
    http://www.Jam-software.com/treesize_free/

    Also run Disk Cleanup:

    Start - All Programs - Accessories - System Tools - Disk Cleanup.

    Use the WinDirStat or TreeSize and these other tools.

    DiskMon - free - an application that logs and displays all the activity of the hard disk on a Windows System.
    You can also reduce DiskMon in your system tray, where it acts as a disk light, presenting a green
    icon when there is disk-read activity and a red icon when there is a writing activity.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896646.aspx

    Process Monitor - free - a monitoring tool for Windows that shows real-time file system,
    The process/thread activity and the register.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspx

    Manage - free - a utility that displays information about the handles opened for any process in the system.
    You can use it to see the programs that have an open folder, or to see the types of objects and the names of all
    the handles of a program.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896655.aspx

    -Free - Process Explorer shows you information about the handles and DLLs processes have
    opened or loaded.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    Sysinternals - many free tools
    http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx

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

    OpenedFilesView - Free displays the list of all the open files on your system. For each file opened,
    additional information is displayed: handle value, read/write/delete access, position in the file, the
    process that has the file open and more...
    http://www.NirSoft.NET/utils/opened_files_view.html

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • need help on history, recycle bin and cookies: how will I know what someone has done on my laptop?

    I would like to learn more about history on my computer vista laptop microsoft and more on maybe the trash and or cookies. For example, someone else used my laptop last night and delete everything that he was looking at or for then how can I know what it was?

    Assuming that it has not been removed, you can view the history of visited web sites by clicking on the Favorites button, click the history tab.

    The only things in the trash are files or folders that have been removed from the system (no evidence they have been read or something like that).

    Cookies will not tell you anything either because they are terms in the code and you can not tell what web site they belong - no good for tracking not web history (and they apply only to the history of the web).

    You can view the Start / recent items to display some of the files which were recently seen (assuming that the list has not been removed).  That may help some.  You can also go to C:\Users\\Recent for a longer list of recently accessed files (as long as you know the user name).

    There is actually very little that you can do with hindsight to see what anyone seen or done on your computer.

    If you want to implement such a procedure, use the Parental http://windows.microsoft.com/en-US/windows-vista/Set-up-Parental-Controls control and activity reports control Parentalhttp://windows.microsoft.com/en-us/windows-vista/Set-up-Parental-Controls-activity-reports.  Do this for each account you want to track.  Then you can check what you wish now that you could check.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How can you know what drivers and programs are essential and those that can be deleted without harming my computer?

    Original title: completely clueless

    I'm totally clueless when it comes to computers, but I try very hard to learn. I am using the help section a LOT, but I can't seem to find an answer to the only thing that makes me crazy. How can you know what drivers and programs are essential and those that can be deleted without harming my computer? I have a very basic net accountant I learn on before I screw up a portable more expensive and I do a cleaning on my C and D drives to improve performance because it runs so slow but it tells me I have the drivers who slow down Windows. I would greatky appreciate any assistance from someone who has the patience of a saint and is willing to take the time to explain it to me, in terms laymans. Thanks in advance

    Drivers: you should know what you bought (in your machine) and what * you * want out of it.  If you want stability and things work properly - let alone the drivers.  If you want more performance check (and other games) in the drivers of motherboard chipset and video network from the manufacturers Web site... For more stability stick with the OEM website (HP, Dell, Lenovo - the assembler of the whole machine) and slightly more performance/push the limits (even if they want to work too - so still some stability) - access to websites of its components manufacturer.

    With regard to the programs: you can decide what you use and do not use.  If you are not sure, look it up (Google) or ask.

  • How can I know what ram slot ram in there on my G4 imac

    OK so I have an imac G4 1 GHz version and I don't have any tools to open it to see what ram slots are empty for a ram upgrade how can I know what ram slot is free and opening the mac

    There is a user accessible memory slot. You can install a maximum of 2GBs. The memory of the plant is pre-installed.

  • How will I know if I have already installed (registered) RDIMMS or DIMM (unregistered) (Mac Pro 2010 mid year Quad)

    I have a Quad core Mac Pro Mid 2010. The article says do not mix of registrants with unsaved. So, how can I know that I have already installed? The system report said just - 1066 MHz DDR3 ECC, nothing else.

    Frank Fitzpatrick

    For the mac Pro 2010, is the question, what SIZE is each DIMM?

    0.5 GB, 1 GB, 2 GB and 4 GB are all unregistered in any case.

    8 GB could go either way - old those who could be saved, is not the ones you bought in recent years.

    16 GB and 32 GB are still recorded.

  • HP 2000-2c29WM Notebook PC how do I know if I have an activation code for Microsoft Office?

    I don't have the box I bought my laptop and more. How will I know what my activation code for Microsoft Office and if I bought it with my laptop? I bought the product in the United States and I am now in South Africa. I have the icon on my Start menu.

    Hello

    You probably have a TRIAL version on your computer and you must pay to get the code. Suppliers does not display a activation code of Microsoft Office on any box.

    Kind regards.

  • Should I delete the programs of 2004? How can you know what is safe to delete?

    Original title: remove programs

    I think I have a virus.  I see on my computer a few applications with and installed as of 2004.  The computer was purchased in 2007.  When I run it in safe mode, it works fine and all applications have a date of 2007 or newer.  Should I delete the programs of 2004? How can you know what is safe to delete?

    Hello

    This is not an indication of malware. Could be those are placed on the
    computer by the manufacturer of the system and that was the date that firstly, they prepared their
    for massive installation, or if they did not set a date and be used arbitrarily.

    =============================================================

    If you need search malware here's my recommendations - they will allow you to
    scrutiny and the withdrawal without ending up with a load of spyware programs running
    resident who can cause as many questions as the malware and may be more difficult to detect as the
    cause.

    No one program cannot be used to detect and remove any malware. Added that often easy
    to detect malicious software often comes with a much harder to detect and remove the payload. Then
    its best to be thorough than paying the high price later now too. Check with them to one
    extreme overkill point and then run the cleaning only when you are sure that the system is clean.

    It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run
    the regular windows when you can.

    TDSSKiller.exe. - Download the desktop - so go ahead and right-click on it - RUN AS ADMIN
    It will display all the infections in the report after you run - if it will not run changed the name of
    TDSSKiller.exe to tdsskiller.com. If she finds something or not does not mean that you should not
    check with the other methods below.
    http://support.Kaspersky.com/viruses/solutions?QID=208280684

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone.
    (If Rootkits run UnHackMe)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can
    Download it here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with others
    security programs. It is a single scanner, VERY EFFICIENT, if it finds something to come back
    here or use Google to see how to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software
    (viruses, Trojans, rootkits, etc.). who infected your computer despite safe
    what you have done (such as antivirus, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

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

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    New Vista and Windows 7 version
    http://OneCare.live.com/site/en-us/Center/whatsnew.htm

    Original version
    http://OneCare.live.com/site/en-us/default.htm

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

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

    Also follow these steps for the General corruption of cleaning and repair/replace damaged/missing
    system files.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type this into the search-> find COMMAND to top box and RIGHT CLICK-
    RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker
    (SFC.exe) program generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

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

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    I hope this helps.

  • How will I know if I have an administrator password?

    Opera wants to download an upgrade, but it is said that after the upgrade, I should return to Windows by using the administrator password.

    How will I know if I have a password?

    I don't want to be locked.

    Thank you

    You can be read more a warning than is really justified.

    Help us help you.  Please answer the following questions

    1. what version of Windows you have: XP Home, XP Pro, XP Media Center Edition?

    2. what service pack is installed?

    If you do not know the answers to 1 or 2, right-click on desktop and select Properties.

    3. What is the exact message of the opera full text?

    4. click on start > Control Panel > user accounts (if you get to the screen that says 'An icon of control panel', click on accounts of users again).

    You should see this screen--> http://qwertytutorials.com/software_tutorials/windows_xp/site_graphics/user_account_7a.png

    a. is the user account that you use usually say "Computer administrator" or "limited user"?
    b. you see an account named 'Administrator' (probably not)?
    c. If there are all listed accounts that say "Computer administrator", say also "protected by password? If so, you know the password?

  • How do I know what software is causing the error to Windows Installer: lack of program

    original title: How do I know what software is causing the error to Windows Installer

    Windows XP

    When you get this message that keeps popping up every two hours-

    The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded

    may be missing or the upgrade patch may update a different bersion of the program.   Make sure that the program

    to be upgraded exists on your computer and that you have the good patch upgrade. ."

    How do find you the application or software, or the program is causing the problem.  ?

    It is a simple solution.

    Go in run, type: msiexec /Unregister 'press the ok button.

    Back to run, enter: msiexec/regserver "press ok.

    Youre thru. Restart the pc

  • How do I know what motherboard is installed

    I have a HP h8 - 1070t.  How do I know what motherboard is installed?

    Should I update my BIOS I install more memory?

    Hello:

    Here is the link to the product for your model specifications page.

    http://support.HP.com/us-en/document/c02837359

    It bears the name of HP IPISB-CH2 Pegatron: motherboard of Chicago.

    Motherboard info is below to...

    http://support.HP.com/us-en/document/c02854392

    You should not have to update the BIOS in order to install more memory.

Maybe you are looking for