Problem dequeueing even with sys privilege - DEQUEUE ANY

On one database instance we are seeing this; Connected user has DEQUEUE ANY sys privileges;
However, a dequeue fails saying insufficient privileges; This works on other database instances?
Any ideas? This is with database - (10.2.0.3.0 - 64bit Production)
Thanks
Vijay
SQL> select * from USER_SYS_PRIVS;
USERNAME PRIVILEGE ADM
PUBLIC DEQUEUE ANY QUEUE NO
PUBLIC ENQUEUE ANY QUEUE NO
PUBLIC DEBUG CONNECT SESSION NO
PUBLIC DEBUG ANY PROCEDURE NO
PUBLIC SELECT ANY DICTIONARY NO
6 rows selected.
SQL> DECLARE
2 dOpt dbms_aq.DEQUEUE_OPTIONS_T;
3 mprop dbms_aq.message_properties_t;
4 deq_msgid RAW(16);
5 payLoadData MyPayload;
6 BEGIN
7
8 dOpt.wait := 1;
9
10
11 dbms_aq.dequeue(
12 queue_name => 'MyQueue',
13 dequeue_options => dOpt,
14 message_properties => mprop,
15 payload => payLoadData,
16 msgid => deq_msgid);
17
18 END;
19 /
DECLARE
ERROR at line 1:
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_AQ", line 335
ORA-06512: at line 11
SQL>

Thanks for the comment;
I don't think this is a design flaw; Design is such that queues are owned by a separate
schema user; Our install/upgrade architecture requires that the DDL be executed by
a separate user. This prevents me from granting object level privileges on the queues
because they have to be granted as the owner of the queue; I get around that by
granting "DEQUEUE ANY QUEUE" sys privilege which can be granted by a non
queue object owner (by SYS or DBA).
See this related topic.
Granting queue privileges as a DBA user to queues not owned by DBA
Also, if this was a design flaw, then why would it work on other database instances?
The fact that I am granting "DEQUEUE ANY QUEUE" to PUBLIC should be sufficient for
any database user to dequeue the message.

Similar Messages

  • Problem in login with sys

    hi,
    i have a problem in login with sys, the situation as follows:
    1- when i try to connect using : sqlplus "/as sysdba" or "sys/password as sysdba" it connect me to the DB.
    2- when i try to connect : sqlplus "sys/password@MYDB as sysdba" it gives me "ORA-01017: invalid username/password; logon denied".
    3- when i try to connect with another user i.e : sqlplus "system/password@MYDB" it connect me to the DB.
    DB version : 9.2.0.8
    OS version : Solaris 10
    please advice...

    1- when i try to connect using : sqlplus "/as sysdba"
    or "sys/password as sysdba" it connect me to
    the DB.This works anyway, because you're authenticated by OS. Example :
    SQL> conn sys/aaaa as sysdba
    Connected.
    SQL> conn sys/bbbb as sysdba
    Connected.
    SQL>
    2- when i try to connect : sqlplus "sys/password@MYDB
    as sysdba" it gives me "ORA-01017: invalid
    username/password; logon denied".Here you need the real password, so make sure you're using the correct one.

  • When I tap safari, I get a completely white page.  Pages take forever to load, even with strong wifi.  Any ideas?

    When I tap safari, I get a completely white page.  Pages take forever to load, even with strong wifi.  Any ideas?

    you may have a strong wifi signal but what kind of speed are you getting,
    are you able to connect to wifi and see if it goes any faster then?
    it might just be that the cellular data connection is slow

  • I have been using a Google moderated group with a robo receptor which suddenly turns down my message submission because it won't "word wrap" correctly. I have made no changes in my messages to the forum so the problem must be with my end. Any Ideas?

    I have been using a Google moderated group with a robo receptor which suddenly turns down my message submission because it won't "word wrap" correctly. I have made no changes in my messages to the forum so the problem must be with my end. Any Ideas?

    I have been using a Google moderated group with a robo receptor which suddenly turns down my message submission because it won't "word wrap" correctly. I have made no changes in my messages to the forum so the problem must be with my end. Any Ideas?

  • Apple Wireless Keyboard stuck at 100% charge, occasional disconnect even with fresh batteries. Any ideas?

    Hi all,
    I have an Apple Wireless Keyboard here I bought for my '09 Mac Mini, it's brilliant, love it. Problem is randomly a few months ago it started reporting my batteries as 100%, and I've not seen it report anything different for months now. Occasionally I'll get "connection lost" whilst the light on the keyboard is blinking as if it's trying to re-establish connection. I have a Wireless Trackpad which is working fine, reports the battery levels as normal and doesn't disconnect randomly. I've been replacing the batteries as disconnects happen and even with fresh ones it suffers from random disconnects.
    Am I right in thinking that this is a keyboard problem? It still works when it's not disconnecting (doesn't happen all the time). It's just annoying when I will be typing something fairly long and then suddenly I get disconnected!
    Cheers in advance.

    Alvin, I'm using Lion, but hopefully it's similar to Snow Leopard if that's what you're using. Hope this helps:
    Go in to System Preferences -> Bluetooth. In the page that appears, you'll see a white window showing your Bluetooth devices. At the bottom of this white pane, you'll see a +, - and a cog. Click the cog to bring up more options, and then click "Show More Info". The pane will split in to two, and show further information about your devices. Click your bluetooth device (such as your keyboard), and look at the setting of "Favourite" to the right. If this is set to "No", click the cog at the bottom left again, and click "Add To Favourites". Job done. You'll see the "Favourite" setting change to yes, and that's it.

  • I can't get any widgets onto the Desktop in Lion (10.7.2) even with devmode on. Any ideas anyone?

    So, new on the forum.
    The problem is, that My sister baught a new iMac 27" with Lion preinstalled and we then updated it to 10.7.2.
    Then she wanted the world clock from dashboard to desktop to stay and we found instructions how to do it with dashboard devmode made on in terminal.
    But.. it just doesn't work.
    We just can't get any widget onto the desktop not for a short time, not for stay.
    Does anyone any ideas.
    The third party software is not what we are looking dfor..
    In the meantime, my mom baught a new iMac 21,5" with Lion and updated it to 10.7.2.
    On this machine the widget instructions work fine!
    What can be the difference between these two?

    The Class.forName method throws a class not found exception, so ...as the compiler has told you ...you need to catch it or otherwise handle it.
    It "must be caught, or declared to be thrown".
    try {
      Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    }catch (ClassNotFoundException cnfe) {
      System.out.println(cnfe.toString());
    }Here, I have 'caught' it.

  • Two Laptop Computers, Latitude-XP & Prasario-Vista both with 4.0.1 are having trouble keeping navagation window visable even with navagation checked. Any other reports of the same?

    I have been using firefox for a few years now. I like it better than I-explorer but in the last version, 4.0.1 I am having problems accessing the navigation window.
    On two computers: Dell Latitude D530 running XP with XP standard browser. The other is a HP Compaq Presario CQ50 running Vista and Stardock Windowblinds.
    Both computers have the same problem with the current version of Firefox only. The navigation window will not stay displayed. I right click to view that the navigation option is checked but navigation is not there. If I right click and pick options, the navigation window suddenly appears but when I pick done, it disappears again.
    I either have to use a bookmark to navigate where I want or go to my Google search bookmark to get where I want.

    I have been using firefox for a few years now. I like it better than I-explorer but in the last version, 4.0.1 I am having problems accessing the navigation window.
    On two computers: Dell Latitude D530 running XP with XP standard browser. The other is a HP Compaq Presario CQ50 running Vista and Stardock Windowblinds.
    Both computers have the same problem with the current version of Firefox only. The navigation window will not stay displayed. I right click to view that the navigation option is checked but navigation is not there. If I right click and pick options, the navigation window suddenly appears but when I pick done, it disappears again.
    I either have to use a bookmark to navigate where I want or go to my Google search bookmark to get where I want.

  • Macbook  battery problem persists, even with brand new battery

    Within five minutes:
    Corresponds to icon showing 5% charge:
    zsh-% pmset -g ps
    Currently drawing from 'AC Power'
    -InternalBattery-0 5%; charging; 2:35 remaining (Good/Good)
    Corresponds to icon showing 0% charge:
    zsh-% pmset -g ps
    Currently drawing from 'AC Power'
    -InternalBattery-0 0%; charging; (no estimate) (Fair/Good)
    Corresponds to icon showing X:
    zsh-% pmset -g ps
    Currently drawing from 'AC Power'
    -InternalBattery-0 (removed)
    This all happened within 5 minutes.
    zsh-%

    if this is the mid-2007 model with the nVidia 8600GT chip, it could be the fried video card issue. first you could give it some time to boot up and then ping the machine from another computer to see if it responds. if it does, it is very likely the fried video card and you need to take it in for a free motherboard change (3 years from purchase date).
    when i had the black screen i a bit hastily shut the MBP off and on quickly many times while it was actually booting up. side effect of usually quiet operation of the hard drive is it's very hard to tell what the MBP is doing if the screen is black. while HFS+ is probably capable of recovering from this, probably better not risk file system corruption.
    in my case, i would not even get a startup chime at first. had to reset PRAM for that. very likely when the video card fries, it invalidates some data there and some startup POST-type routine check fails.
    and that's about all there is to be done. they run a specific test at the service spot that is supposed to give some graphics error exception code which entitles you to the free motherboard swap.

  • Filevault stuck on encryption paused even with charger in. Any suggestions?

    I just bought MacBook Air and going through the starting process it won't seem to finished encrypting the file vault.

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.

  • Itunes cannot connect even with wifi on? help?

    Itunes cannot connect even with wifi on. Any ideas? I have reset wifi connection and that didn't work.

    Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
    If an Update Appears Install it... if not... you are up to date for your particular Device...
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch

  • IMovie error when trying to export-file open with write privilege

    When trying to export an iMovie, after about two hours, I got a message - error - a file is open with write privilege.  Any idea what might be causing this error or what the error message means?

    Ask the users in the iMovie forum: https://discussions.apple.com/community/ilife/imovie?categoryID=141

  • Ipod Touch 5G- WiFi is very slow or won't work, even with 3 bars and stood next to the hub. Is there a problem with iOS 6.0.1? Any one know a way to fix it?

    Even with 3 signal bars on a 11mb/s connection. It takes more then 3 mintues to load Google fully!
    It works fine loading one page then goes back to being slow or no excitant. It seems to start working again after using speed test.
    At first i thought it was the case but after removing it there was no difference
    I have tried every thing i could think like:
    1. Turing it off and on again
    2. A complete restore and backup. (Done this about 3 times)
    I'm not sure if the new iOS 6.0.1 up date has caused this as it seemed to work fine for about a week after.
    Any help would be appreciated!

    I have same problem:
    I saw another topic on this but it was a couple of months old. Last month I purchased a ipod touch 5g. It runs great except the speedtest tops out at about .3 mbps down and 5 mbps up.  I don't understand what is going on. All my other wifi: Macs, ipod touch 4, ipad 2 & 3, etc work fine and get great speed of 9-15 mbps down and 5 mbps up. I can barely watch an Amazon video. Sometimes it goes fast but that is few and far between. I have tried resetting the network on it. I adusted my router for all the recomendations by Apple.
    It was suggested to remove the security on the router just to test it. I did that but it made no difference. This happens whether I'm close (10' or less) or farther away. Is there something I'm missing or do I need to return it?
    I keep seeing something about iOS 6.0.2 but my iPod Touch says I'm up to date at 6.0.1
    thanks,
    Bryce

  • The problem I have since I upgraded to Mavericks version 10.9.1 The problem appears only with Mail not with other programs, not even with my browser. When I try to zoom the text of an e-mail I received or sent , I can no longer use the keys Command   to e

    the problem I have since I upgraded to Mavericks version 10.9.1
    The problem appears only with Mail not with other programs, not even with my browser.
    When I try to zoom the text of an e-mail I received or sent , I can no longer use the keys Command + to enlarge the text, although I can reduce it with Command -.
    As I have a problem with my eyes, This is a serious matter for me.
    When I write an e-mail, if I select text and press Command +, it just displaces the text to the right.
    Now, my husband has a USB keyboard. If he connects it to my computer, his regular Command + does not work either, but  he uses the extended keyboard, then it works. Unfortunately, he needs it for a musical application which does not work with a wireless keyboard.

    Firefox 3.6.4 and 3.6.6 use a process called, "plugin-container.exe" which was using up most of my CPU when I opened up multiple tabs that contained Adobe Flash files, and caused Firefox to lock up.
    My solution was to use Firefox 3.5.10 which you can get from the Mozilla website at [http://www.mozilla.com/en-US/firefox/all-older.html]
    I am using Adobe Flash 10.1.53.64 without any problem in this version of Firefox. Check the release notes, I believe it contains all the latest security fixes in "Firefox 3.6.4".
    Hopefully, they will fix Firefox 3.6 in the next version (e.g. Firefox 3.6.7), until then you should probably use "Firefox 3.5.10".

  • Mac book pro is very very slow/it hangs for even the smallest tasks/even with the lid closed it is still running if it is not completely turned off. Dose any one know what may be wrong ? and how to fix it?

    More details about the problem : My computer is a Mid 2012 Mac Book pro 2.9GHz i7 processor with 8GB RAM updated to OS X v10.8.5
    - I ran a compleet scan of my computer for any threats ( I used virus barrier express ) and there was nothing identified
    - When I oppened the Activiti Monitor there are about 20-30 processes which I do not undersatand they are run under the user "root" 2 in perticular ( Kernel_task & fseventsd ) they both take up a lot of threads and kernel_task is constantly using 1.2 GB of "real memory" which is at least 20 times any other process that is running espesially the ones that run under the user "Apple" I do not know if this is causing the problems on my mac but i tryed to forces close it and it dose not even let me click the button, the others close but reopean immideatly. I will attach a screen shot of what i have mentioned here.
    - The problems I am facing are mainly performance :- To state a few examples, my mac dose not seam to be able to handile even the smallest tasks like switching tabs on safari, typing any thing, playing a movie withought stopping inbetween, etc.. ( let me elaborate on why I said its not able to handil these tasks, it is because when I am trying to do any one of the afformentioned tasks inbetween the cursor becomes a rainbow collered spinning disk and I am unable to do anything for about 10 seckonds after which it starts to work again for some time before it happens again. )
    - Another concern of mine is that my mac seems to be on even with the lid closed if I do not shut it down compleetly, if i just close the lid after some time the computer starts warming up, and the fan starts running. the battery is drained at the same rate or slightly less rate than it would have if i was using it normally with the lid opean. ( altough this is happning the screen dose not turn on untill the lid is opean again )
    - I have only 300+ GB full out of my 750GB so i believe these are not issues caused by my mac's memory being full ( BUT THE FIRST TIME I NOTICED THIS WAS HAPPNING WAS WHEN MY MEMORY WAS ABOUT 720GB FULL WHEN THESE ISSUES FIRST AROSE I IMMEADITLY DELEATED 400+GB OF MY USELESS FILES THAT I HAD BEEN HORDING ALL OF WHICH WERE MOVIES ) that about covers it all PLEASE LET ME KNOW IF ANY ONE KNOWS WHAT TO DO.
    Ps: I apoligize if I have given too many unrelevant details, not enough usefull information and or if i was just all over the place with my explanations but I am really frustrated and was hoping not to miss anyting. Please let me know if any information at all is required and ill do my best to provide it.
    Thank You

    Start with this comprehensive troubleshooting article:
    https://discussions.apple.com/docs/DOC-3521
    Look at this one for possible solutions:
    https://discussions.apple.com/docs/DOC-3353
    Ciao.

  • Fail to logon with SYS user: ORA-01031: insufficient privileges

    Hello,
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    OS: CentOS 5.5
    I fail to log on with SYS user through PL/SQL Developer. I receive the error: ORA-01031: insufficient privileges. PL/SQL Developer is installed on Windows 7 Professional. Oracle Client Version is 11.2.0.1.0. However I logon successfully with SYSMAN and SYSTEM.
    For those who might ask whether I try to connect "as sysdba" when I use SYS user, the answer is YES, I do.
    Besides I think the name of the tool (PL/SQL Developer) doesn't matter because I think I'll face the same error with any other tool (but I mentioned it just in case).
    On server side I have no issues with SYS user. I can connect through SQLPlus with connect / as sysdba or connect "/as sysdba" faultlessly.
    The initialization parameter sec_case_sensitive_logon is set to FALSE
    SQL> show parameter sensi
    NAME TYPE VALUE
    sec_case_sensitive_logon boolean FALSE
    I'm using local naming to connect and on client side I've a tnanames.ora file. The sqlnet.ora file looks like this:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)I read in this forum (another thread) about using a password file. I created a password file using orapwd this way:
    orapwd file=orapwDB11G2 entries=100 ignorecase=y password=a_passwordwhere I replaced "a_password" with the SYS password.
    Actually I'm not sure the client is influenced by the password file anyway because I tell it to use local naming.
    Any clues?
    Thank you very much!

    Verdi wrote:
    Hello, Chinar, AlexeyDev,
    ORACLE_SID variable is:
    [oracle@localhost bin]$ echo $ORACLE_SID
    planetThe directory $ORACLE_HOME/dbs:
    [oracle@localhost ~]$ ls -l $ORACLE_HOME/dbs
    total 28020
    -rw-rw---- 1 oracle oinstall    1544 Apr 10 12:43 hc_DBUA0.dat
    -rw-rw---- 1 oracle oinstall    1544 Apr 27 18:02 hc_planet.dat
    -rw-r--r-- 1 oracle oinstall    2851 May 15  2009 init.ora
    -rw-r--r-- 1 oracle oinstall    2966 Apr 26 16:33 initplanet.ora
    -rw-r----- 1 oracle oinstall      24 Apr  1 18:22 lkPLANET
    -rw-r----- 1 oracle oinstall 9519104 Apr 27 18:43 ora_control1
    -rw-r----- 1 oracle oinstall 9519104 Apr 27 18:43 ora_control2
    drwx------ 2 oracle oinstall    4096 Apr 10 12:43 peshm_DBUA0_0
    drwx------ 2 oracle oinstall    4096 Apr  1 18:19 peshm_planet_0
    -rw-r----- 1 oracle oinstall 9519104 Apr  8 11:25 snapcf_planet.f
    -rw-r----- 1 oracle oinstall    2560 Apr 27 18:41 spfileplanet.oraThe value of the parameter remote_login_passwordfile is:
    *.remote_login_passwordfile='EXCLUSIVE'
    I start up the instance using the spfile.As a side observation, it appears you have two control files also in this directory. That is risky, and goes against the intent of having multiplexed the control file. Ideally they would be on separate disk devices - including separate controllers, but at the very least they should be in directories that are separate all the way back to the root directory. If you can't protect against hardware failure, at least protect against human failure.

Maybe you are looking for

  • Unable to find ESR XI Content for SAP PI 7.1 EHP1

    Hi all, I check on Marketplace but I don't find the ESR Content (XI Content) for the SAP PI 7.1 EHP1, only ESR Content for SAP PI 701. I follow the link: [http://help.sap.com/saphelp_nwpi711/helpdata/en/48/d113f7b4073254e10000000a42189b/frameset.htm|

  • GUI/swing application doesn't appear under Win2K

    Hi, all, I wrote a Java GUI application with JDK1.4.1_01, when I run it on Win2K Professional (SP3) the GUI doesn't appear without any exception. But when I ran the same application under XP and Win98, the GUI application run ok and the GUI appears.

  • Whats a good wifi app?

    So I just finally updated my ipod 4g from when I first got it to the latest iOS. before I updated it I had an app that would show me the wifi that was open around my house but the app was discontinued. Since I updated my ipod I no longer have the app

  • Can't connect to mail server...

    Dunno if the two issues are related... downloaded and installed Thunderbird two days ago... set it up as newsreader and mail client without issue. Trying to set up Mail as mail client and it keeps telling me that some other client has the account loc

  • I can't load itunes?

    I am having difficultly installing the newest software update