Why doesn't the "grant execute any procedure" work?

Hi to all.
I want to grant the execute privilege for all SYS schema functions/procedures. To achieve it I do the following:
SQL> connect sys/*****@orcl
Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
Connected as SYS
SQL> create user test identified by test;
User created
SQL> grant create session to test;
Grant succeeded
SQL> grant execute any procedure to test;
Grant succeeded
According to the [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9013.htm] the "grant execute any procedure" - grants Execute procedures or functions, either standalone or packaged.
So, the steps seem to be right. Then, I try to connect to the test user and execute any procedure from the SYS schema, for example, dbms_lock.sleep:
SQL> connect test/test@dizzy/orcl
Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
Connected as test
SQL> begin
2 sys.dbms_lock.sleep(1);
3 end;
4 /
begin
sys.dbms_lock.sleep(1);
end;
ORA-06550: line 3, column 1:
PLS-00201: identifier 'SYS.DBMS_LOCK' must be declared
ORA-06550: line 3, column 1:
PL/SQL: Statement ignored
So, the execution fails due to insufficient rights. However, the direct grant on the sys.dbms_lock works!
SQL> connect sys/*****@dizzy/orcl as sysdba
Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
Connected as SYS
SQL> grant execute on dbms_lock; to test;
grant execute on dbms_lock; to test
ORA-00911: invalid character
SQL> grant execute on dbms_lock to test;
Grant succeeded
SQL> connect test/test@dizzy/orcl
Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
Connected as test
SQL> begin
2 sys.dbms_lock.sleep(1);
3 end;
4 /
PL/SQL procedure successfully completed
So, to be sure that the grant on any procedure from the definite scheme is given, should I avoid giving the execute any procedure grant?
P.S. Is there any special tag for code?
Thanks in advance.

Sybrand, thank you for the reply.
You are right. I tried to connect by another user NOT SYS and created the function:
SQL> create user testic identified by i;
User created
SQL> grant create session, execute any procedure to testic;
Grant succeeded
SQL> create or replace function get1 return number is
  2  begin
  3  return 1;
  4  end;
  5  /
Function created
SQL> connect testic/i@orcl
Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
Connected as testic
SQL> select get1 from dual;
select get1 from dual
ORA-00904: "GET1": invalid identifier
SQL> select kaisa_rgali.get1 from dual;
      GET1
         1Thank you for the tag. This's exactly what I asked about.
Finally, I tried t open the hyperlink http://download.oracle.com/docgs/cd/B10501_01/server.920/a96521/privs.htm but it failed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • "GRANT EXECUTE ANY PROCEDURE TO " does not work in some cases

    Hello,
    I some of my PL/SQL-packages I'm using DBMS-packages.
    Because I don't want to grant access for every single package, I granted EXECUTE ANY PROCEDURE to the user/schema of my packages.
    This did work in several installation.
    But for what reason ever, in one installation DBMS_RANDOM cannot be used (DBMS_RANDOM must be declared). If I explicitly grant execute on this package, it works. When I revoke it and renew the ANY PROCEDURE, it doesn't again.
    What's wrong.
    Version 11.2.0.2 on Win2008R2
    Regards,
    Mynz

    Mynz wrote:
    Hello,
    I some of my PL/SQL-packages I'm using DBMS-packages.
    Because I don't want to grant access for every single package, I granted EXECUTE ANY PROCEDURE to the user/schema of my packages.
    This did work in several installation.
    But for what reason ever, in one installation DBMS_RANDOM cannot be used (DBMS_RANDOM must be declared). If I explicitly grant execute on this package, it works. When I revoke it and renew the ANY PROCEDURE, it doesn't again.
    What's wrong.privilege acquired via ROLE do NOT apply within named PL/SQL procedures/functions

  • Why doesn't the Southwest Airlines DING app work?  I'm not getting any DING's.  Are they issuing none?  I used to get them on my mac but no more there, either

    Why doesn't the Southwest Airlines DING app work on my iPhone or iPad?  It used to work on my mac computer, but no more.  Are they shutting it down, or just not issuing many special fares? 

    Ask Southwest Airlines... it's their app.

  • 1. Why doesn't the "Show Duplicates" function ever work?  It's always grayed out.

    1. Why doesn't the "Show Duplicates" function ever work?  It's always grayed out.

    do you have the current itunes? the option is under view "show duplicate items. Maybe you just dont have any duplicates.

  • Adobe, Why doesn't the download link for FreeHand work???!!!!!!

    Adobe, Why doesn't the download link for FreeHand work???!!!!!!

    Right! I tried the trial download links and nothing happens: http://www.adobe.com/cfusion/tdrc/index.cfm?loc=en&product=freehand
    The download links are working for other discontinued programs like Pagemaker and GoLive but I see that this page officially made FreeHand no longer for purchase.
    Discontinued products

  • Why doesn't the desktop 'snap to grid' work with Snow Leopard?

    I've recently upgraded my OS to Snow Leopard and I do a lot of work with photo folders which I keep organized on my desktop. Since upgrading the 'snap to grid' function in the view options of the desktop preferences has stopped working. For some reason the folders and files on the desktop keep snapping off the screen or on top of each other so that I cannot find them easily. I've had to turn off the 'snap to grid' and the desktop no longer looks organized and is not easy to navigate. Why is this happening? AND, how do I fix it? It seems to me the snap to grid shouldn't have gone out the window with an upgraded OS. I'm very organized and borderline OCD so this is FRUSTRATING me to no end!!!
    Anyone have any ideas?

    It's working for me in 10.6. Try moving this file in your Home Folder/Library to the trash -- don't empty it yet.
    /Users/yourusername/Library/Preferences/com.apple.desktop.plist
    When finished go back to the Desktop>View Options and select Snap to grid.
    If that doesn't do it, open Terminal in utilities and copy/paste this command, then hit return. Don't attempt to type it in by hand. If you make a typo or get the spaces wrong, there could be a disaster. When finished go back to the Desktop>View Options and select Snap to grid.
    rm ~/Desktop/.DS_Store

  • Why doesn't the address bar and tabs work after opening a PDF?

    I am using Firefox 3.6.16 and windows 7. When I open a PDF file using adobe reader in Firefox the address bar becomes inoperable for any other tabs I have open or open subsequently. This occurs until the tab the pdf file is open on is closed. I tried upgrading to Firefox 4 but apparently the problem is amplified in that as once a PDF file is opened even if you close the tab its on nothing works until you restart Firefox. I am using adobe reader X but had the same issue with 9. Thanks in advance for any help.

    * "Clear the Cache": [http://kb.mozillazine.org/Menu_differences Firefox > Preferences] > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Why doesn't the music, but audio is works fine, in iMovie'11?

    I recently opened up a project I was working on in iMovie '11. The music I had recently added wasn't working because it said it couldn't locate the original file.
    I reloaded the music and started adding it to the project, deleting the music that wasn't working as I went along. The new music worked for a couple of minutes, but now it isn't working at all. Nothing plays, whether in the playback mode or through scrolling. But when I scroll over the dialogue in the project, that is working...
    Any one know how I can fix this?
    <Links Edited By Host>

    Hi
    You are using a Non Destructive Video Editor - and to get this to work as it should - non of the raw-material can be moved at all.
    So if You are using material on external hard disks or USB-memories or Audio-CDs they all need to be there when working on the project.
    There is no Movie in Your project (no copies) but just a small text document pointing to Your raw-material and how it is to be played to be the Movie You are working on.
    I do a folder on my Mac where I put all extras Audio and photo files so they are in a specific location at 100% (no alias). Audio as .aiff 16-bit 48kHz (no .mp3, wma etc - but all converted to .aiff and photos as .jpg)
    From here I get it into my movie project - just to be sure that all is there if external hard disks, Audio-Cds etc are not connected.
    Audio from iTune is a chapter on it's own. I collect all needed audio into a new PlayList then BURN it out as an Audio-CD (.aiff not .mp3) then I use the files on this one.
    Yours Bengt W

  • Apex Version 4.2: Why doesn't the session timeout parameter settings work?

    Prior to an upgrade to Apex Version 4.2.0.00.27, we ran Apex Version 4.1 in our environment. This is on a platform using Oracle Database Enterprise Edition 11g R2 on Windows Server 2008. The session timeout parameters (set for a single application using "Shared Components" -> "Security Attributes") were set to the following:
    Maximum Session Time: 1 day
    Maximum Session Idle Time: 8 hours
    This worked with no problems in Apex 4.1; our user would leave a data entry form open for several hours, complete the data entry then submit the page. Now, with the upgrade to Apex 4.2, doing the same thing causes the system to redirect to the login page and aborting any edits or new data entered into the form previously.
    I have tried to set both session parameters to ZERO (0) which is what the documentation explains is the equivallent to "no timeout" but that didn't work as well.
    I have reset the session control parameters to what they were before the upgrade and my session times out before the time values I set. (on the version 4.2 upgraded instance).
    Why was the session timeout parameters I set ignored by the system? Can anyone else out there confirm/repeat the problem I observed?

    Hi Richard,
    You probable have it ok, but the time should be in seconds.
    Kees

  • Why doesn't the flash player from adobe work on chrome?

    When i watch videos on youtube, the speakers would hear statics and it would crackle. I thought it was my macbook air, but researching it, people said it was because of chrome's installed in flash player. I disabled chrome's adobe flash player and instead downloaded straight from adobe website. however, it doesn't let me watch videos, saying i needed to download the flash player. When i use safari and watch video on youtube, it's perfectly fine; however, i do not like to safari and would much prefer google chrome. Any suggestions. help?

    Try looking/posting here.
    Chrome  Support

  • Why doesn't the Apple support communities homepage work with an iPad?

    You can't scroll. Why would apple create a site that doesn't work as intended using one of their own products?

    That was fast and it works!  I never knew you could do this.  Learn something every day!  Thanks !  Does this always work for scrolling in situations like this or does the page need to encoded in some way?

  • Why doesn't the ymsgr:sendim? link work in Mail?

    Hi,
    I am trying to make my email signature a bit more funky with linked icons. I have added icons for LinkedIn (web link), Twitter (web link), Email (mailto:) and Yahoo Messenger. However, when I "Add Link" for Yahoo Messenger, Apple Mail doesn't recognise the command
    ymsgr:sendim?myuserid
    However, it does recognise
    aim:sendim?myuserid
    I'm baffled... Can someone help me out?

    You are welcome.
    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback

  • Why doesn't the 'top edit' 'q' shortcut work for me on my timeline? The 'w' 'tail edit' works fine though.

    If someone could help me out with what I'm missing I would be most grateful! Thanks!

    Thanks for your response Jim. I'm following a Lynda tutorial in which it says:
    "If I want to trim off everything at the head, maybe this is all me talking before the camera starts rolling, I can do what's called a Top and Tails edit.
    So, the keyboard shortcuts for this are Q and W, and they're right next to each other on the keyboard. If I hit the Q key, it will lop off everything before the play head to that edit point. So now, we just have the back half of the clip. Let me undo that, Cmd+Z. And if I hit the W, it will lop off everything to the right of where the play head is parked."
    It seems to work for him in the video, and I can get the W shortcut to work but not the Q one. Not sure why!

  • HT4896 Why doesn't the popup for special characters work anymore?

    This feature used to work, then about a month ago it stopped.  I've tried messing with the keyboard delay and repeat functions.  Search online only brings up how to disable.  I study languages and history, the special character pop-up was a godsend, so I would really like it back. 
    Thank you.
    Using new Macbook pro, running OS X 10.9.2.

    Back up all data.
    Please triple-click anywhere in the line below on this page to select it:
    defaults delete -g ApplePressAndHoldEnabled
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing the key combination command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    Wait for a new line ending in a dollar sign ($) to appear below what you entered. Log out or reboot. Test.

  • Why doesn't the default fonts and color work after upgrading to version 31?

    As mentioned upon, my default fonts doesn't work. No matter what kind of font i changed ,it always showed the times new roman font i think.
    pls help me .thanks

    Problem solved. The character encoding for outgoing is wrong, i change it to Western. Then its ok now

Maybe you are looking for

  • Efi update and ambient light sensor issue

    I just updated my early 2010 15" MacBook Pro with v2.7 EFI Firmware Upate. Now my screen ambient lighting is going nuts with changing the brightness all by itself, even with the AC power plugged in. The unit was working fine before this update. Are o

  • Sales Order for Job Work

    Dear Experts,                     We have to do SAP implementation of our client,                    Basically they are doing Job Order for example  consider , their work is assembling the Ceiling Fan spare parts to make fan(Here Fan is Finished Prod

  • Advantage of using WebDynPro Java?

    Hi, What is the advantage/disadvantage of using Web dynpro in developing web-service based applications in terms of cost, development capability, security and compatibility? in comparison with Visual composer or CAF? Thanks, Aravind

  • So, in the end, is mixing JSTL with JSF ok or not?

    At first, when I began learning JSF, I was taught not to mix JSTL into JSF because it's very hard to know how will be behave. Then, I learned that in order to avoid the confusion completely, it was best not to use any JSTL or even better use Facelets

  • PHP5 OCI8 Oracle Client on MacOS X Leopard - Installation Script

    Hello, There is a new bash scripts for the installation and configuration of Apache2, PHP5, Oracle Client v10.2 and OCI8 on MacOS X running Leopard. The script was tested on Leopard 10.5.4. It should work with the pervious versions of Leopard but I d