How to check which user has the privilege to execute a stored procedure?

I am using Oracle 7 and I would like to check which user has the privilege to execute a stored procedure. How can I check it? Is there any view I can query for?
Alex Hung

Please check DBA_SYS_PRIVS.
SQL> select * from dba_sys_privs
2 where grantee='HARY';
GRANTEE PRIVILEGE ADM
HARY EXECUTE ANY PROCEDURE NO
....

Similar Messages

  • How to find out which user has the permission to execute startsap ?

    Hi All
    How do I find out which user has the permission to execute the startsap and stopsap? Do I control the permission on those script using windows standard authorization? For example: only allow certain user have the read and write permission?
    Thank you.!
    Vincent Lo

    Well to me this is really weird question..
    <b>noone un-authorized should have access to OS on your system</b>
    If this is valid you do not need to solve problems who can and who cannot start/stop SAP, because if you want to prevent some users from shutting down the SAP you have really hard job to do - there are many ways how to kill the SAP (for example killing relevant process from task manager, killing of database, messing with services etc.) - yes, this is harmful way of stopping SAP, but we are talking about attack, right? I would contact some Windows specialist to help you disable all the ways how to harm the running SAP. But still after that - there are many files that can be modified/deleted so SAP will crash after restart - you need to protect them too, etc.
    In case you take the first assumption as granted (and you really limit access to this server) you do not need to worry who can stop or start SAP - at the other hand it may be handy to be able to start/stop SAP from other users - for this you can run the stop/start script "under different user".
    But to answer the question - to me this is question just of access control (but really never tried that myself):
    <a href="http://technet2.microsoft.com/WindowsServer/en/library/c6413717-511e-42bd-bd81-82431afe4b2a1033.mspx">Permit or restrict access to a snap-in for a domain</a> (or see other related links down there on this page)
    Please award points for useful answers.
    Thanks

  • How to find which users has used external scripting

    I want to find out the users who used the scripting for doing any mass changes activity.

    Hi Murphy;
    Please check which user has which forms open? and Re: how to determine which forms are currently open?
    Hope it helps you in your issue
    Regard
    Helios

  • How to know which user shutdown the server

    Hi,
    Is there a way to check which user has shutdown the server in windows server 2012.
    I know Event Id : 1076,1074,6008 gives information about system shutdown.but want to know which user did that ?
    thanks

    Steps to see which user shutdown the system:
    1. Go to event Viewer
    2. Right click on system and -> Filter Current Log
    3. For User Shutdowns, click downward arrow of Event Sources -> Check User32.
    4. In <All Event IDs> type  1074 -> OK
    This will give the list of Power off and restart events. It will have the date and time as well as Username.

  • How to determine which user has an Access 2013 databse open

    How can I tell which user / PC has opened a Backend Access database?

    If the file is stored on a server and you have access to it, you could check in Computer Management, then go into System Tools, Shared Folders, Open Files, and you should find the file listed there along with which user has it open currently.

  • JSF: How to determine which element has the focus?

    Hi all,
    I have a JSP with some input fields and a text area. When I press "ENTER" the data I have entered should be saved. That works fine (I use JavaScript to catch the keyPressed-event). But when I want to insert a new line in the text area, I press ENTER too and this invokes the javascript function. So it�s not possible to insert a new line in the text area. And I don`t want to save the data when I�m just inserting a new line.
    is it possible to determine which element has the focus at the moment of pressing ENTER? if it`s the text area then I won�t save the data and inserting a new line is possible? Or how to say: "Insert an new line if the user presses SHIFT+ENTER" or something like that?
    I�m using JSC for my application and this is my JS-function:
    function checkIt(evt)      
    var charCode = (evt.charCode) ? evt.charCode : ((evt.which) ? evt.which : evt.keyCode);
         if (charCode == 13)
              document.getElementById('form1:bt_Save').click();
              return false;
              return true;
    I�m looking for something like that:
    if(charCode == 13) {
    if(document.getElementById('form1:textArea').hasFocus())
    doNothing...
    else {
    document.getElementById('form1:bt_Save').click();
         return false;
    thanks for any help

    Hi,
    I searched through many forums (js of course too) but
    I couldn�t find a solution. Everybody knows how to
    set the focus but not how to get it. We often use
    JSF/JSP with javascript and maybe somebody here has
    another approach to this problem (how to solve it
    using jsf itself or anything else)?Take easy. I just suggested to search in a JavaScript forum , in your question you didn't mentioned this. Good luck man.
    Cya.

  • How to know which user has executed which ddl statement

    Hi All,
    Last week i faced some problem, like some one has truncated the table , so luckily i have the schema backup so i restored it till the last backup taken.
    but i want to know who has executed this ddl statement.
    i know there are some utilities are avaible with oracle, so please describe me the easiest and quickest way to get this.
    Regards
    Asif

    In order of descending simplicity
    - Use the principle of least privilege to restrict the privileges users have in the database to ensure that they cannot do things like truncating a table
    - Enable auditing of potentially problematic statements. This has to be done before the damage is done, though
    - Create a DDL trigger that logs when users issue DDL. This also must be done before the damage is done.
    - Use LogMiner to go through the archived log files that were generated at the time the table was truncated. This assumes that the database is in ARCHIVELOG mode and that you have the archived logs from last week. Using LogMiner to track down the culprit is also likely to be relatively time-intensive
    Justin

  • How to determine which drive has the most recent backup?

    I have a few drives that contain backups of files. What would be the easiest way to figure out which of the drives has the most recent backup? When I sort by date, the folder shows one date, though the files inside show a different date? Is there a way to quickly check the drives to find which is the most recent?
    Thanks.

    the folder modification date isn't reliable, as is only tells of changed in the folder, but not in subfolders. there is no efficient way. I however highly suggest Time capsule, it is WAY easier and you can ask it not to sync the System data and/or applications, so it would prevent this hassle.
    You could try this: go to the first drive, type different letters, like a for instance, and see which file is the most recent document/folder.
    do the same thing on the other drives and compare.

  • How to check which user type my Leopard is?

    i recently bought a leopard os x off my friend. im just interested in knowing if it is a single user or family pack. Just wondering how i can find that out.

    The Mac OS X Family Pack allows the installation of the Mac OS X DVD onto 5 Mac (max). There are restrictions on just what Macs are considered part of a Family's household (I think a college student living at school qualifies, but otherwise the Macs generally have to be in the same home).
    Besides that, there is no difference between a Mac OS X Family Pack and a single Mac license.
    There are no activation codes.
    However, the way you worded the question makes me wonder if you are asking whether you can create multiple accounts on your Mac. A separate account for different members of your family.
    If that is the question, then every Mac OS X installation allows multiple accounts for different users on the same Mac. You may make some Admin accounts, and some regular users. You can impose parental controls on some accounts and not on others.
    You can use Fast User Switching between accounts, without needing ot logout of an account.

  • How to find which Port has the highest traffic (both in/out) in switch

    Hello,
    I have a 3550 switch with 48 port having 12.1 code.
    Need to know which port is causing the highest traffic , i mean to track which user is downloading/uploading the most.
    I was able to track this in CATOS with the command sh top and that will tell the port, but in IOS based switches i was not able to find
    Can some one help.

    You can try with the following command:
    show interfaces summary
    Output shows the traffic for all ports instead of the top one only, but you can find the top from this output. Or you can install an MRTG or Cacti for monitor the used bandwith.
    bye
    FCS
    Please rate me if I helped.

  • Privilege to execute a stored procedure

    Hi,
    I have developped a Portal Application which is attached to the
    same schema that the data. I have a stored procedure in that
    schema, but when i try to execute it in a form trigger using the
    insert button and additional PL/SQL, an error occurs and telle
    me that privileges: are insufficient to do that. By the way, i
    was logged using portal30 and I have granted the execute
    statement of the proceure to portal30.
    Any Ideas will be very helpfull.
    Thanks

    Lahiani
    Alright, I'll have a crack at it.
    If I understand your question, you have:
    1. a data-owning schema with a procedure;
    2. a portal application addressing that data;
    3. granted execute on the <schema>.<procedure> to portal30;
    But you can't execute the procedure from the application.
    My first question is: which schema does your portal application belong to? ie. when you run your application it will operate in the database as a schema user you have chosen when you created the application. You must grant execute on the procedure to this application schema.
    Now maybe portal30 owns the application, in which case what you've done should work.
    However, once you have verified which schema your application operates as, then you should login to sql*plus as that schema and attempt to execute the procedure.
    ie. execute <schema>.<procedure>
    What is the result when you try that? Let us know how you go, and write out the results as clearly as you can. If you still get an error please paste it in.
    Greg

  • How to find which user has killed a particular job in CPS?

    Hi All,
    I am new in CPS. I want to find the user who has killed a particular job in CPS?
    Thanks in Advance.
    Avdhesh

    Hi  Gerben,
    Thanks for the reply.
    But I noticed when I  killed a job and checked in the  last modified by option I didn't  find my user name there. It was displaying the user who had modified that job definition last time.
    Thank you
    Avdhesh

  • How to find which user has access to Discoverer Reports?

    I need to find users having access to Discovered reports using a script. How can I do that?

    Hi,
    You need to give more details...
    Are you using oracle applications? are the users database users?
    If you use oracle application you can use the following:
    SELECT DISTINCT Disco_Docs.Doc_Name "Discoverer Workbook"
    ,Trunc(Disco_Docs.Doc_Created_Date) "Workbook Create Date"
    ,CASE
    WHEN Instr(Disco_Docs.Doc_Created_By
    ,'#') = 0 THEN
    Disco_Docs.Doc_Created_By
    WHEN Instr(Disco_Docs.Doc_Created_By
    ,'#') > 0
    AND Instr(Disco_Docs.Doc_Created_By
    ,2) = 0 THEN
    (SELECT Fu.User_Name
    FROM Fnd_User Fu
    WHERE Fu.User_Id = Substr(Disco_Docs.Doc_Created_By
    ,2
    ,5))
    ELSE
    NULL
    END "Workbook Owner/Creator"
    ,Disco_Users.Eu_Username
    ,CASE
    WHEN Instr(Disco_Users.Eu_Username
    ,'#') = 0 THEN
    Disco_Users.Eu_Username
    WHEN Instr(Disco_Users.Eu_Username
    ,'#') > 0
    AND Instr(Disco_Users.Eu_Username
    ,2) = 0 THEN
    (SELECT Fu.User_Name
    FROM Fnd_User Fu
    WHERE Fu.User_Id = Substr(Disco_Users.Eu_Username
    ,2
    ,5))
    ELSE
    (SELECT Resp.Responsibility_Name
    FROM Fnd_Responsibility_Tl Resp
    WHERE Resp.Responsibility_Id =
    Substr(Disco_Users.Eu_Username
    ,2
    ,5))
    END AS "Shared Name / Responsibility"
    FROM Eul_Us.Eul5_Documents Disco_Docs
    ,Eul_Us.Eul5_Access_Privs Disco_Shares
    ,Eul_Us.Eul5_Eul_Users Disco_Users
    WHERE Disco_Docs.Doc_Id = Disco_Shares.Gd_Doc_Id(+) AND
    Disco_Users.Eu_Username(+) NOT IN ('EUL5', 'PUBLIC') AND
    Disco_Users.Eu_Id(+) = Disco_Shares.Ap_Eu_Id
    Tamir

  • Log to check as to which user has accessed which report?

    Hi,
    I am using BOBJ for report creation and SAP BI for datawarehousing.
    The user can access these reports using the iviews created in the portal. Due to some performance testing requirements we need to check which user accessed which report and if he has drilled down to a particular level in a report, then there should be a means to know that as well.
    BO offers a few standard activity reports to check which user has done which activity. However the details of drill down etc. cannot be checked using that. Please help as to how can we check that too.
    Best Regards,
    Neha

    Hi,
    See [Business Objects|/community [original link is broken]; and [Crystal Reports|/community [original link is broken]; forums for this topic.
    -Paul

  • 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

Maybe you are looking for