Find all privileges

Does anyone have a query I can use to display all of a user's privileges ? I have users that cannot drop tables, which I need to grant them, but when I run them "drop any table" privilege, they still cannot drop tables.
I need a query that will display all privileges they have, so I can see what is going on here ....

Sorry, I have been running around in circles here (lack of communication between the developers and the dba's!)
I have just been told by a fellow dba, that the users are not allowed to drop any tables on our system. They create tables, but we have a nightly process, that drops the tables.
This program was incorrectly written to try and drop a table it created.
Sorry for wasting everyone's time !!

Similar Messages

  • Find all system and object privs granted to a user

    I need a query to find out all sys and ibject qyery given to a user. This is because a user was able to query all_directories few days ago in production instance, now he is unable to do it.
    I found a query to find all roles inside a role. This role "APPS_QUERY_ROLE" has another 25 roles inside it. I want a query which will drill down to each role and "role within a role" to find all privileges associated to a role and hence to the user.

    This may be helpful to you :
    SYS@orcl> select 'create role ' || role || ';'
      2  from dba_roles
      3  where role = '&&role';
    Enter value for role: APPS_QUERY_ROLE      <------Make sure it should be in CAPS
    old   3: where role = '&&role'
    new   3: where role = 'APPS_QUERY_ROLE'
    no rows selected
    SYS@orcl> select 'grant ' || privilege || ' to &&role' ||
      2  decode(admin_option,'YES',' with admin option;','NO',';')
      3  from role_sys_privs
      4  where role = '&&role';
    old   1: select 'grant ' || privilege || ' to &&role' ||
    new   1: select 'grant ' || privilege || ' to APPS_QUERY_ROLE' ||
    old   4: where role = '&&role'
    new   4: where role = 'APPS_QUERY_ROLE'
    no rows selected
    SYS@orcl> select 'grant ' || privilege || ' on ' || owner || '.' || table_name
      2  || ' to &&role ' || decode(grantable,'YES','with grant option;','NO',';')
      3  from role_tab_privs
      4  where role = '&&role';
    old   2: || ' to &&role ' || decode(grantable,'YES','with grant option;','NO',';')
    new   2: || ' to APPS_QUERY_ROLE ' || decode(grantable,'YES','with grant option;','NO',';')
    old   4: where role = '&&role'
    new   4: where role = 'APPS_QUERY_ROLE'
    no rows selected
    SYS@orcl>Source:Re: Help to Generate Role Creation Script
    Regards
    Girish Sharma

  • Find users with grant all privileges

    Hello,
    I am trying to figure out how to query for all users who might have grant all privileges.
    Any ideas or scripts?
    thanks

    Hi,
    Please check this out,
    http://www.petefinnigan.com/tools.htm
    There are a lot of good scripts, maybe one of them can show what you are looking for.
    Cheers,
    Marcello M.

  • Can not find SeManageVolumePrivilege privilege in the process token

    I need to enable the privilege of SE_MANAGE_VOLUME_NAME(SeManageVolumePrivilege) in my application according to the article http://support.microsoft.com/default.aspx/kb/156932?p=1. 
    I called GetTokenInformation in my process to get all of the privileges: GetTokenInformation(hToken, TokenPrivileges, pTKPs, lenght, &lenght).
    On XP and Vista, I could find SeManageVolumePrivilege privilege in the process token, and I could enable it successfully. However, on Win7, I failed to find it in the process token. So I doubt maybe some setting of my login account is disabled.  But my Windows login account is belong to the Administrator group and I also add it to the "Perform volume maintenance tasks" of local policies->user rights assignment.
    Does anyone know about this issue? Thank you very much!

    You will only see the privilege if you have the Full token (ie if UAC is enabled, you must be elevated).
    thanks
    Frank K [MSFT]
    Follow us on Twitter, www.twitter.com/WindowsSDK

  • How to know all privileges

    Hello everybody.
    Im working with Oracle database 10Gr2
    A fast question how I can know all privileges that a user have?
    Thanks in advanced & regards everybody.

    You will have to query the rdbms security/privilege related views:
    dba_sys_privs
    dba_tab_privs
    dba_role_privs
    Here is a short article on these and other security related views:
    How do I find out which users have the rights, or privileges, to access a given object ? http://www.jlcomp.demon.co.uk/faq/privileges.html
    HTH -- Mark D Powell --

  • Find All Occurrences always fails within loop

    Dear forumers,
    There's this strange problem that requires a fix.
    Finding all occurences of '#' works fine here:-
    REPORT  zz_test.
    DATA: lv_text TYPE string,
          ls_result TYPE match_result,
          et_release type table of yytc_release,
          lt_result  TYPE match_result_tab.
    lv_text = '"RFC-1234#Create ""Payroll"" under NL directory"'.
      FIND ALL OCCURRENCES OF REGEX '#'
                IN lv_text
                RESULTS lt_result IGNORING CASE IN CHARACTER MODE.
      IF sy-subrc = 0.   " SY-SUBRC is always 0
        READ TABLE lt_result INTO ls_result INDEX 1.
        WRITE :'Offset: ' .
        WRITE: ls_result-offset .
        WRITE: lv_text+00(ls_result-offset).
      ENDIF.
    But it always fails here, within a loop at an internal table:-
    SELECT * .... INTO TABLE it_jira ...
    LOOP AT it_jira ASSIGNING <jira>.
      <release>-summary = <jira>-summary.
      IF <release>-type CS 'Subtask'.
        " <release>-summary is of data type CHAR255
        PERFORM get_subtask USING <release>-summary.  
      ENDIF.
    ENDLOOP.
    FORM get_subtask  USING    pv_summary TYPE yytc_release-summary.
      DATA:
        lv_string  TYPE char255,
        lv_final   TYPE char255,
        lv_summary TYPE string,
        lv_strlen  TYPE i,
        lt_result  TYPE match_result_tab.
      lv_string = pv_summary.     " LV_STRING = '"RFC-1234#Create ""Payroll"" under NL directory"''
      CONDENSE lv_string.
      lv_strlen = STRLEN( lv_string ).
      lv_strlen = lv_strlen - 1.
      IF lv_string+0(1) = '"' AND lv_string+lv_strlen(1) = '"'.
        lv_strlen = lv_strlen - 1.
        WRITE lv_string+1(lv_strlen) TO lv_final+1(254).
      ENDIF.
      lv_summary = lv_final.
    "  FIND ALL OCCURRENCES OF '#'
    "      IN lv_summary
    "    RESULTS lt_result IGNORING CASE.   * SY-SUBRC is always 4 here too
      FIND ALL OCCURRENCES OF REGEX '#'
          IN lv_summary
        RESULTS lt_result IGNORING CASE IN CHARACTER MODE.
      IF sy-subrc = 0.    " SY-SUBRC is always 4 here - why?!  :(
      ENDIF.
      CLEAR: lv_string,
             lt_result.
    ENDFORM.                    " GET_SUBTASK
    Only when the string LV_SUMMARY is edited from within the debugger (add space to the string prefix, etc), the SY-SUBRC will be 0 and there'll be data found in LT_RESULT.
    How can I resolve this issue? Please do help. Thanks.

    I think the subtle difference is that in your first example the character is actually '#' whereas in the second example it is actually another (unprintable)value such-as line-feed and only APPEARS to be '#'.
    You must find out what the value in question is(will it always be the same value?) and then replace that instead of '#'.

  • How do I find all the purchased items on my iPhone? When I try to update the iPhone iOS while connected to my MacBook it says there are purchased items on the phone that have not been transferred to my iTunes library and that I should transfer them.

    How do I find all the purchased items on my iPhone? When I try to update the iPhone iOS while connected to my MacBook it says there are purchased items on the phone that have not been transferred to my iTunes library and that I should transfer them before updating.

    Thanks. This seems to have worked easily.

  • When looking at my "About This Mac" it says that I have 60gb of space left on my hard drive, but when I go into finder to find all of these files there is not 300gb worth in anything I search, even searching, "All files on the Mac". Help!?

    When looking at my "About This Mac" it says that I have 60gb of space left on my hard drive, but when I go into finder to find all of these files there is not 300gb worth in anything I search, even searching, "All files on the Mac". Help!?
    It says I have over 150 gigs of video on my hard drive. But I have gone through and deleted almost all of what shows up, still it says there is roughly the same amount on the hard drive. Where are these files? I want to delete them so I can have my hard drive clear.
    Thanks for your help guys!

    Quote from the article.
    Time Machine in OS X Lion includes a new feature called "local snapshots" that keeps copies of files you create, modify or delete on your internal disk. Local snapshots compliment regular Time Machine backups (that are stored on your external disk or Time Capsule) giving you a "safety net" for times when you might be away from your external backup disk or Time Capsule and accidentally delete a file.
    So what makes a notebook any different then a desktop, other then with a desktop you might have your tm backup drive connected all the time.
    The object here is to not indiscriminately delete files you need or want to keep. I personally have never deleted a file I wanted to keep.
    In essence a backup is for catastrophic failure of your system. So it can be restored once that failure has been fixed. Not because you go in willy nilly and start deleting files.

  • My Top Rated songs, when I synch my iP4S - comes up with an error message saying it can't find all the songs. When I check, library has songs listed but with a "!" bubble next to them. When I click on them they play. What am I doing wrong?

    When synching, itcomes up with an error message saying it can't find all the songs. When I check, library has songs listed but with a "!" bubble next to them. When I click on them they play. What am I doing wrong? This happens every time so I click them and it sorts them (boring with 200 odd). How can I prevent this?

    Once you successfully add you iTunes library to iTunes Match, you go to Settings>iTunes & App Store on your iOS device and turn on iTunes Match.  Your iTunes Match library will then appear on your iOS device.

  • Find all music files and move to one folder for all of family to access, find all music files and move to one folder for all of family to access

    I seem to have music files in various places on my laptop, on my husbands computer and our main imac.  What we want to do is put all music on imac so when each of us logs on we have the same files availabe in itunes, but we logon seperately so we can have different playlists and checked music. So here is what I want to do:
    Find all music files on each computer seperately and put everything in one folder one each computer, so three folders total to start...
    Move my husbands itunes library and my itunes library from each of our laptops to our main imac, making one huge itunes folder
    I want to store our music on an external hard drive, which I have, so I have a full library for backup purposes.
    I want all future music downloaded on any of our laptops to transfer to the main imac computer, again to keep one main library
    I want all video, apps, books, etc on each laptop to be available in one file on my main imac also so we can all use them
    So mainly I want to organize, organize, organize and put everything in one spot so things don't get all messed up and some items are only accessible to me some times and not my husband or vice versa.  We want to share everything we can so we don't have to pay twice. I have read many instuctions, but nothing seems to be helping me and was hoping someone could...
    Thanks, l

    I am totally running into the same issue as well. On top of that, when syncing to my iPhone, it took some of the tracks from my iphone and recopied them to the iTunes library, as new files, so now I have a ton of duplicates, and tons of tracks that can't find the iTunes folder, so they have the little "!" next to them.
    It would be really nice to have someone answer this question. I didn't think, moving my iTunes library to a bigger external hard drive would have caused all this madness

  • How to find all open POs and there SUM

    How to find all open POs and there SUM
    Please help.
    Thanks,
    vihar9

    Have you tried looking at the tables, standard reports, or the PO display transaction?  Have you asked your functional analyst or development team lead? This is not a forum to post a requirement and get your job done for you...

  • How can I find all exclamation marks in my iTunes without clicking on each song?  Is there a way to delete all instead of one at a time?

    How can I find all exclamation marks in my iTunes without clicking on each song?  Can they be deleted all at once instead of one song at a time?

    Lost & Found
    Create a playlist called Found, select everything in Music and drag it into the Found playlist (it may take some time to count the tracks that are to be dropped). Create a smart playlist called Lost matching All the rules Playlist is Music and Playlist is not Found. Your lost tracks will be in this playlist.
    Optional: It depends a bit on why things aren't where iTunes expects to find them but if they are in sensible Artist & Album folders in some common location then my FindTracks script should be able to reconnect them to iTunes. FindTracks uses some fuzzy matching routines and searches for multiple potential locations. For more details see this thread. Once you have repaired the tracks that can be found you can drag the contents of the Lost playlist into Found which will update things.
    Or, you can simply delete all the tracks in the Lost playlist with Ctrl-A to select them and then Shift-Delete to delete.
    tt2

  • How can i find all included pictures which are not in a album? (only in the Library)

    How can i find all included pictures which are not in a album? (only in the Library)

    Hi there,
    I'm afraid I don't quite understand your question. All images are in your Library and only those you specifically select from that Library would be in an Album. What platform are you using? Revel Mac, Elements, web browser, etc?
    Here is a link with some helpful information:
    FAQ: File Basics: How do I Upload, Download, Share, and Delete files in Revel?
    Thank you,
    Glenyse

  • What query should I use to find all versions of Office 2013 64-bit installed on client computers?

    What query should I use to find all versions of Office 2013 64-bit installed on client computers? Could someone create a custom query? I need all of the client computers names and which ones have any Office 64-bit components. Thank you so much! I really
    appreciate it!

    Hi,
    You could edit the following query to meet your requirement.
    SELECT     dbo.v_R_System.Name0, dbo.v_GS_OPERATING_SYSTEM.Caption0 AS [Operating System],
                          dbo.v_GS_OPERATING_SYSTEM.CSDVersion0 AS [OS Service Pack], arp.DisplayName0,
                          CASE WHEN arp.version0 LIKE '11.0.6361.0' THEN 'SP1' WHEN arp.version0 LIKE '11.0.7969.0' THEN 'SP2' WHEN arp.version0 LIKE '11.0.8173.0'
    THEN 'SP3' WHEN
                           arp.version0 LIKE '12.0.6215.1000' THEN 'SP1' WHEN arp.version0 LIKE '12.0.6425.1000' THEN 'SP2' WHEN arp.version0 LIKE '14.0.6029.1000'
    THEN 'SP1' ELSE '' END
                           AS 'Service Pack', arp.Version0
    FROM         dbo.v_Add_Remove_Programs AS arp INNER JOIN
                          dbo.v_R_System ON arp.ResourceID = dbo.v_R_System.ResourceID INNER JOIN
                          dbo.v_RA_System_SMSInstalledSites AS ASSG ON dbo.v_R_System.ResourceID = ASSG.ResourceID INNER JOIN
                          dbo.v_GS_OPERATING_SYSTEM ON dbo.v_R_System.ResourceID = dbo.v_GS_OPERATING_SYSTEM.ResourceID
    WHERE     (arp.DisplayName0 LIKE '%Microsoft Office%edition%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Standard 2007%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Enterprise 2007%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Professional%2007%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Standard 2010%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Enterprise 2010%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Professional%2010%' OR
                          arp.DisplayName0 LIKE 'Microsoft Office 2000%' OR
                          arp.DisplayName0 LIKE 'Microsoft Office XP%') AND (arp.DisplayName0 NOT LIKE '%update%') AND
                          (arp.DisplayName0 NOT LIKE '%Microsoft Office XP Web Components') AND (dbo.v_R_System.Operating_System_Name_and0 NOT LIKE '%server%')
    AND
                          (arp.InstallDate0 NOT LIKE 'NULL')
    ORDER BY dbo.v_R_System.Name0, arp.DisplayName0, arp.Version0
    Full details:http://social.technet.microsoft.com/Forums/systemcenter/en-US/7baeb348-fb63-4115-8d76-2c884d18f708/sql-query-to-check-ms-office-service-pack-level?forum=configmgrreporting
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Is there a way to find all highlights made in the macbook ibooks library in the case that you cant remember the book in which the highlight was made?

    Is there a way to find all highlights made in the MacBook iBooks library in the case that you cant remember the book in which the highlight was made?

    Some things that might help:
    1. Only the most recently used apps actually occupy memory (used to be the most recent 4, but may have changed in the latest iPhones). After 4 (or so), IOS writes them out of active memory, as it does for even the latest 4 if there's no activity for a long time. So the business of closing all the open apps, apart from the most recent ones doesn't make a difference. Tis article has a good explanation:
    http://www.speirs.org/blog/2012/1/2/misconceptions-about-ios-multitasking.html
    2. There are settings about background app activity that might help:
    - Settings, General, Background App Refresh controls which apps can update their data in the background
    - Settings, Notifications controls which apps can tell you things, which they have to wake up to do.
    - Settings, Privacy, Location Services controls which apps monitor your location - another activity that uses resources
    Hope some of that helps

Maybe you are looking for

  • Metadata changes in Lightroom are not reflected in Premiere Pro C

    Hello everyone. I am having trouble with my current workflow. I am shooting RAW with a Canon 7d using Magic Lantern. I use raw2cdng to transform the mlv(raw) files to cdng. I then use lightroom to color correct my DNG files. I use lightroom to save t

  • Webauth asking again for credntials

    Hello Experts, I am having an issue with webauth page. I am using ISE as radius server and using sponsor account for guest account creation. My Issue is: once I login with webauth i got internet connection but after few idle time (5-10min), I need to

  • IPad 3G: Verizon or ATT better Queens NY?

    I'm buying an IPad for my friend who doesn't have broadband at home. He lives in Nassau County, just east of the Queens border. Have tried researching Verizon vs. ATT online, but not much info. Do know ATT is supposed to be faster but less reliable.

  • How to stop the addition of GRPO

    Hi all,my client has a requirement where if a grpo is copied from the Purchase order, it should always have the same series as present in purchase order. So in case even if some user tries to change the series or changes the series by mistake, the sy

  • Changing outlook 2013 contact so they will not receive winmail.dat files - missing settings

    trying to change email properties of a contact in outlook 2013 who keeps receiving winmail.dat from one of our guys , trying to get to internet format to change that setting. I have made the registry change suggested here http://www.slipstick.com/out