To find which packages the PUBLIC role has execute privileges on

Hi Experts:
I need to find which packages the PUBLIC role has execute privileges on, since an Audit has revealed there are "there were execute privileges on 2 packages granted to the PUBLIC role"
How can I find these? I have queried, in different ways, dba_tab_privs and dba_sys_privs but I cant get a way to see
execute privileges on packages / procedures.
Thanks,
10.2.0.4
Linux RH 4.
Edited by: user11981168 on 30-Apr-2010 04:12

SELECT table_name
FROM dba_tab_privs p
,dba_objects o
WHERE p.owner=o.owner
AND p.table_name = o.object_name
AND p.owner = 'SYS'
AND p.privilege = 'EXECUTE'
AND p.grantee = 'PUBLIC'
AND o.object_type='PROCEDURE'; --PACKAGE,FUNCTION                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Query to get objects list for which the current user has 'SELECT' privilege

    Hi,
    I want to get tables and views list for which the current user has 'SELECT' privilege excluding sytem tables and views. The privilege information for the current user is scattered in more than one system views. I have following system views
    USER_TAB_PRIVS_RECD - Object grants for which the current user is the grantee
    ROLE_TAB_PRIVS - describes table privileges granted to roles. Information is provided only about roles to which the user has access.
    If the object privilege is granted explicitly like "GRANT ALL ON TABLE_NAME TO "USERNAME" then this privilege entry goes to USER_TAB_PRIVIS_RECD
    If the object privilege is granted by ROLE. Role is created with certain object privileges. this role is assigned to user "GRANT ROLE_NAME TO "USERNAME"", then this entry goes to ROLE_TAB_PRIVS
    From these findings, I have composed below query
    (SELECT DISTINCT TABLE_NAME FROM USER_TAB_PRIVS_RECD) UNION (SELECT DISTINCT TABLE_NAME FROM ROLE_TAB_PRIVS WHERE PRIVILEGE = 'SELECT')
    Have I got user's all prvilege details? should I look some other system views?
    How to exclude system table privileges details?
    (SELECT DISTINCT TABLE_NAME FROM USER_TAB_PRIVS_RECD) UNION (SELECT DISTINCT TABLE_NAME FROM ROLE_TAB_PRIVS WHERE PRIVILEGE = 'SELECT' AND OWNER NOT IN ('SYS','SYSTEM') Is this right?
    What about Public role in Oracle? Should I consider public role here?
    Oracel Version :11g
    I want make this query to work on Oracle 8i or above version
    Thanks

    >
    I want to get tables and views list for which the current user has 'SELECT' privilege excluding sytem tables and views.
    >
    You will need a hierarchical query to do that.
    Try this script for Listing privileges recursively for Oracle users
    http://www.adp-gmbh.ch/ora/misc/recursively_list_privilege.html

  • How to find which package is corrupted?

    Hi,
    I'm connected to the net throught a broadband connection right for the next few days and I have the following issue: I'm trying to install libreoffice, and for this, I have about 90 Mb of packages to download. Now because the connection is not too stable, and not fast at all, I had a few tries until I got all the stuff downloaded ( 1. here I mean packman downloaded for me; 2.I set aria2 as transfer command to continue the downloads ), but now pacman says that a package is corrupted and can't install.
    The problem is that pacman does not say anything about which package is corrupted, the whole output is:
    Targets (18): graphite-1:1.0.3-1 hsqldb-java-1:1.8.0.10-2 hyphen-2.8.3-1 libidl2-0.8.14-2 libreoffice-common-3.5.1-1 libreoffice-en-US-3.5.1-1 libwpd-0.9.2-2 libwps-0.2.2-2 lpsolve-5.5.2.0-2
    neon-0.29.6-4 orbit2-2.14.19-2 libreoffice-base-3.5.1-1 libreoffice-calc-3.5.1-1 libreoffice-draw-3.5.1-1 libreoffice-gnome-3.5.1-1 libreoffice-impress-3.5.1-1
    libreoffice-math-3.5.1-1 libreoffice-writer-3.5.1-1
    Total Download Size: 0.00 MiB
    Proceed with download? [Y/n]
    (18/18) checking package integrity [##########################################################################] 100%
    error: failed to commit transaction (invalid or corrupted package)
    Errors occurred, no packages were upgraded.
    Is there a way to find which package is corrupted? Because I would not start over the whole download process if it is possible, I'd like to re-download only the corrupted ones.
    I'm using pacman 4.0.2, 32bit.
    Thank you!

    Gcool wrote:pacman --debug will tell you which package it is.
    Thanks for the tip, unfortunately did not helped me, the package, which was corrupted was not listed by the debug info. I started to manually test each package I downloaded and found the bad one that way. I kind of miss the old behavior, when pacman offered you to delete and re-download a package, if it did not passed the CRC verification.
    But thanks anyway!

  • Which are the required roles/privs for viewing all scheduler jobs in OEM?

    Platform: Oracle 11.1.0.6 Enterprise Edition (64) Windows 2008 R2 Server
    - I've created a new Admin user in "OEM>Setup>Adminstrators>Create"
    - I checked the user in "OEM>Server>Users":
    CREATE USER "SA_ADMIN"
    PROFILE "DEFAULT"
    INDENTIFIED BY "saadminsa"
    DEFAULT TABLESPACE "SYSAUX"
    TEMPORARY TABLESPACE "TEMP"
    ACCOUNT UNLOCK;
    GRANT SELECT ANY DICTIONARY TO "SA_ADMIN";
    GRANT "MGMT_USER" TO "SA_ADMIN"
    - "SA_ADMIN" was granted only the permissions above.
    - I can log in OEM as "SA_ADMIN"
    - I can see OEM backup jobs and the history
    - But I cannot see any "scheduler" jobs in "OEM>Server>Jobs"
    - I get a lists of the jobs in "OEM>Scheduler Central" but I cannot display any more information of "scheduler jobs"
    - I logged off from OEM
    - I granted SCHEDULER_ADMIN role to "SA_ADMIN"
    GRANT SCHEDULER_ADMIN TO "SA_ADMIN";
    - I logged back in OEM as "SA_ADMIN
    - I can now see some scheduler jobs, but not all of the jobs, I still cannot see any of the new jobs I created logged in OEM as SYS.
    Which are the required roles/privs for viewing all scheduler jobs in OEM?

    if you grant "SYSDBA" to the new Admin user then you can see the "scheduler" jobs.
    GRANT SYSDBA TO "SA_ADMIN";
    I wanted to grant "read" access in OEM for the new user.
    This behaviour is strange.
    Without the "SYSDBA" role the new user can see the OEM backup jobs that were create in as SYS, but it cannot see the "scheduler" jobs.

  • Since downloading OS X Yosemite I have been having issues with Netflix. Video slows down which causes the audio to go out of sync. Netflix plays ok on ipad which makes me think it's the software which is the issue. Has anyone else had this issue?

    Since downloading OS X Yosemite I have been having issues with Netflix. Video slows down which causes the audio to go out of sync. Netflix plays ok on ipad which makes me think it's the software which is the issue. Has anyone else had this issue?

    Try this:
    Go to System Preferences - Bluetooth. Delete the keyboard from the list of devices by pressing the "-" button. Take the batteries out of the keyboard and reinsert them. In Bluetooth Preferences press the '+" button to add the new device. If the keyboard begins to pair, click the word "pair" and type in the passcode. Press return. The keyboard is now paired.
    If the mouse is not pairing, try this: shut down the computer completely, unplug any USB mice, then turn off the power to the bluetooth mouse.  ONce the computer starts up again, wait for the pop-up looking for a mouse.  Turn on the power to the bluetooth mouse.  It should work normally now.

  • How do I find which of the later versions of OS-X will run on my 24" iMac?

    Am currently running OS_X 10.6.8 and really need to upgrade that on my 24" iMac if at all possible to run Quickbooks as I can't find an older copy of QB that will run on this system.  Anyone know where to buy older versions of Quickbooks?

    Choose About this Mac from the Apple menu, click on More Info, and check the model identifier against the following, which are the earliest Macs of each type that can run Mountain Lion and newer:
    iMac7,1
    MacBook5,1
    MacBookPro3,1
    MacBookAir2,1
    Macmini3,1
    MacPro3,1
    Xserve3,1
    A Mac older than those listed which has a Core 2 Duo(not Core Duo) or better CPU and at least 2GB of RAM can run Lion 10.7, which is available by clicking here. Neither Yosemite nor Lion support PowerPC software such as Microsoft Office 2004.
    (120523)

  • How to find Which package used in Reports

    Hi,
    Is there any option to view all the package which used in all the all eul reports. My problem is One report is refreshing tables using package/function/ procedure ...........i which report is doing that ..........I'm having more than 1500 discoverer report and opening all report one by by is not fessible as each having tabs as well.........

    Hi,
    You should start from the table that is being updated...
    find its referenced objects, you can use :
    select a.owner, name, decode(a.type,'PACKAGE BODY','PACKAGE',a.type),do.status
    from all_dependencies a,
    dba_objects do
    where do.object_name=a.referenced_name
    and do.owner=a.referenced_owner
    and do.object_type=a.referenced_type
    and referenced_name = 'xxxxxxxxx'; -<<<<----- put here your table name
    This will give you the list of objects referencing the table, try to find the package / procedure / function.
    then login to the administrator and try to locate the package in the list of function (you need to go to the register functions screen)
    Tamir

  • How to find which are the user exits that updating z table.

    There was a question posted by someone else which said:
    I have a z table. my requirement is to find the user exits that update the value to this table?
    but my requirement is to get only those user exits that update my z table.
    Before that question was rejected, it got 5 replies which made me think that this tip is worth sharing.
    So the steps are:
    Do a where-used list search from SE11
    Click on Search Range button at bottom
    Type UPDATE (you can also add Insert, Delete etc to select-option) to ABAP Key Words field
    Say No to the popup that asks whether to include Fields of the Table
    Result will show relevant programs with code snippets doing static Update on that custom table.

    EWK1 would be too performance heavy in this case. It scans the source code to get the result.
    You can however, download the list of programs given in where-used list, and give that as limiting condition in EWK1 or some other code scanning utility.
    Using my method, where-used list of table is taken from database tables, and then code scanning is done only on the that list, not on entire Z* programs.
    Try it yourself to notice the speed difference.

  • Finding which tablespace the index is using

    Hello,
    How do I find the tablespace in which the indexes of a particular schema are present. like getting the tablename , table , columname and tablespace present .
    I found this in the OEM but did not know how to generate the SQL for that.
    Thanks for any help.
    Message was edited by:
    user558362

    I would use dba_indexes instead of dba_segments if you are not interested in physical storage information. The dba_indexes view provided the index_name and owner as well as the table_name and table_owner. The table and index owner might be different and this view will allow you to find all indexes for a table where you do not know the index names. You can join dba_indexes to dba_ind_columns for the index column list.
    HTH -- Mark D Powell --

  • Does anybody had this problem which is the surface color has changed?

    I purchsed an macbook WHITE only about 2 months.
    since a month after I can see the macbook surface color has changed which under my two hands.
    resulted in the macbook looks so dirty and ugly.
    I feel so sad with this problem which I think this is a hardware fault or at least this is a design fault.
    does anybody have the same problem as mine and how to deal with?
    even APPLE company can replace a new one for me but I will have the same problem after a month.
    does black version have this problem?

    Welcome to Apple Discussions!
    Not from what I've heard. Here's the article of what you should do about it:
    http://docs.info.apple.com/article.html?artnum=304058
    If you have done it, and it didn't solve the problem, contact them again and ask for a replacement machine.

  • HT204370 I have been away for a while and have returned to itunes. I paid for a movies, James Camerons Avitar and would like to se it again , but cannot find it as the web page has changed

    I nneed to restore a Movies that I paid for on Itunes
    It's James Camerons " Avitar  ""
    How to you finf your downloads with this new )to me) web Page

    You don't find it on here, if the film is still in your country's iTunes store and if you are in a country where films can be redownloaded (and if the studio allows redownloading) then you should be able to redownload it via the Purchased link under Quicklinks on the right-hand side of the iTunes store homepage on your computer's iTunes
    If you can't redownload it then have you got a copy of it on your backup of your downloads ?

  • Query to find out if the numeric string has letters in it. Please, help!

    Hi, everyone!
    Could you please help me in constructing the following query:
    I want the query to return the records, for which a specified column contains at least 1 alpha-numeric character in it. For example, if I search the Items table, I want the rows with the following Item_Number values be returned: "34265af6", "bbbbbbbb", "9808677y" etc...
    Thanks a lot.
    Regards,
    Eugene.

    Would you consider the Null value for "p_string" input parameter as being NUMBER or otherwise? That's an interesting question. The function and query as is would treat nulls as numbers, consistent with how Oracle would treat a null as a potential number, by not raising any error when asked for to_number(null). However, if you wanted to exclude nulls, you could just add an additional filter condition to the where clause. See examples below.
    -- selecting to_number(null) does not raise an error:
    SQL> SELECT TO_NUMBER (NULL) FROM DUAL
      2  /
    TO_NUMBER(NULL)                                                                
    -- is_number(null) is considered numeric:
    SQL> SELECT is_number (NULL) FROM DUAL
      2  /
    IS_NUMBER(NULL)                                                                
    Y                                                                              
    -- combination of Oracle and user-defined
    -- functions considers null as numeric:
    SQL> SELECT DECODE (LTRIM (NULL, '0123456789-+E/.,'),
      2                NULL, is_number (NULL),
      3                'N')
      4  FROM   DUAL
      5  /
    DECODE(LTRIM(NULL,'0123456789-+E/.,'),NULL,IS_NUMBER(NULL),'N')                
    Y                                                                              
    SQL> -- additional test data:
    SQL> INSERT INTO items VALUES (NULL)
      2  /
    1 row created.
    SQL> COMMIT
      2  /
    Commit complete.
    SQL> SELECT * FROM items
      2  /
    ITEM_NUMBE                                                                     
    ABC123                                                                         
    ABC                                                                            
    DEF123                                                                         
    123                                                                            
    C123                                                                           
    XYZ                                                                            
    GHI                                                                            
    8 rows selected.
    SQL>
    SQL>
    SQL> -- unmodified select statement
    SQL> -- treats nulls as numbers
    SQL> -- and doesn't include null value
    SQL> -- in result set when searching
    SQL> -- for non-numbers:
    SQL> SELECT *
      2  FROM   items
      3  WHERE  DECODE (LTRIM (item_number, '0123456789-+E/.,'),
      4                NULL, is_number (item_number),
      5                'N') = 'N'
      6  /
    ITEM_NUMBE                                                                     
    ABC123                                                                         
    ABC                                                                            
    DEF123                                                                         
    C123                                                                           
    XYZ                                                                            
    GHI                                                                            
    6 rows selected.
    SQL>
    SQL>
    SQL> -- modified select statement
    SQL> -- treats nulls as non-numbers
    SQL> -- and includes nulls in result set
    SQL> -- when searching for non-numbers:
    SQL> SELECT *
      2  FROM   items
      3  WHERE  DECODE (LTRIM (item_number, '0123456789-+E/.,'),
      4                NULL, is_number (item_number),
      5                'N') = 'N'
      6  OR     item_number IS NULL
      7  /
    ITEM_NUMBE                                                                     
    ABC123                                                                         
    ABC                                                                            
    DEF123                                                                         
    C123                                                                           
    XYZ                                                                            
    GHI                                                                            
    7 rows selected.

  • Hi. Which of the current macbooks has a keyboard similar to a macbook pro 2012 model?

    Hi,
    I was in PCWorld the other day and tried out the keyboards on a number of the current crop of MacBook Pros and Airs. I have used a number of thinkpads over the years and so I guess I'm kind of used to a certain type of keyboard which gives good tactile feedback and where the keys have a fair amount of 'travel' which I felt wasn't the case with the new macbooks.However, this was not the impression I had when I tried an older MacBook Pro (non-retina) which had a noticeably different feel to it - the keys seemed to be higher and there appeared to be a greater amount of travel - the end result being a much better typing experience. My question is, do any of the current MacBook models have the same keyboard of typing 'feel' of the older MacBook pro?
    Thanks in advance.

    Sorry about the typo in the last sentence. It should read: 'My question is, do any of the current MacBook models have the same keyboard or typing 'feel' of the older MacBook pro?'

  • Windows Azure Pack - Server returned HTTP response code: 500 error while accessing the public tenant API

    Hi,
    We are facing the following error while trying to access the given Windows Azure Pack Public tenant API to query the virtual machines list along with network adaper details - 
    java.io.IOException: Server returned HTTP response code: 500 for URL: https://<hostname>:30006/<subscription-id>/services/systemcenter/vmm/VirtualMachines?$expand=VirtualNetworkAdapters&$top=10000&$skip=0
    The response is proper when we access the following URL - 
    https://<hostname>:30006/<subscription-id>/services/systemcenter/vmm/VirtualMachines
    Only on adding the $expand=VirtualNetworkAdapters, url parameter we are getting the above error.
    Where can we check for the error logs on the Azure Pack server ? We checked for the logs using Windows Event Viewer but did not find any for the public tenant API.
    What should be the cause for such an error and how can we fix this to get the proper data?
    Thanks in advance.

    Yes, we tried this, $top=10&$skip=0 works for the following url
    https://<hostname>:30006/<subscription-id>/services/systemcenter/vmm/VirtualMachines?$top=10&$skip=0
    It is only when we add $expand=VirtualNetworkAdapters,
    the server returns the mentioned error response - 
    URL for which the server returns the 500 error -
    https://<hostname>:30006/<subscription-id>/services/systemcenter/vmm/VirtualMachines?$expand=VirtualNetworkAdapters&$top=10&$skip=0
    Can
    you point to the error logs for Windows Azure Pack and SPF ?

  • What is the public IP in this case?!!

    I have an ASA firewall,i also have a Motorola router that is actually a modem and a router and an access point in the same time (3 in 1) ;however iam only intending to use the Motorola internal ports to connect to the external ASA port, when i finish the NAT rules (which translating the internal ASA network into the outside network which is 192.168.0.0/24 which is the internal network for the Motorola router) which one is the public IP address in this case?? i mean i might not be able to get to the ASA's internal IP from the Internet because it is the internal network for the Motorola...so in this case is my only public IP on the Internet in the Motorola's external IP ? which is the ISP's IP address provided???
    I am really lost on this one, any help here is much appreciated.
    Thanks

    Hi,
    Seems to me that your public IP address will be configured on the Motorola device. In most cases the device will probably be using DHCP to get the public IP address from the ISP and therefore the IP might sometimes change. Though naturally it might be a static public IP address as I don't know the thing is handled in your case.
    If you wish to have a host/server reachable from the Internet then you would probably have to configure somekind of Static PAT (Port Forward) on the Motorola device or perhaps even Static NAT the public IP address from to the external IP of the ASA (from the network 192.168.0.0/24) so that all traffic that is allowed on the Motorola device will be forwarded to the ASA (because of the 1:1 Static NAT mapping of the IP addresses)
    If you need to reach your internal network remotely and dont need to host anything directly to the public network then you might be able to set up VPN Client connection to the ASA.
    If you dont know the public IP address then if its a DHCP IP address from the ISP you can always check your current public IP address through some site. I for example tend to go to www.ripe.net . It shows your current IP address on the site. Naturally there should be multiple other sites that show this information.
    If your public IP address is static then the ISP probably has provided you some documentation which mentions the public IP address assigned to you when you got the Internet connection.
    Also you might not need to configure NAT at all on the ASA since its not an edge device. You could simply let the internal networks of ASA and the Motorola device to communicate with their original IP addresses. This would naturally require that the Motorola device has a route for the ASA internal network on it pointing towards the external IP address of the ASA.
    - Jouni

Maybe you are looking for