Can a dequeued message be under the authority of the queuing user ?

Hello,
I am testing AQ on an 11.2.0.1.0 database and I am missing something...
Here is my test case:_
1) I have a queue created in COM_OWNER account. I created a callback procedure with dbms_aq.register. This procedure just create a row into log table.
2) The user FBOUCHER issue a dbms_aq.enqueue.
3) I query the log table. The row was created by SYS ??.
Can my callback procedure run under the authority of FBOUCHER instead of SYS ?
I specified "authid current_user" for my callback package and used USER to insert into log table.
Thanks for your help.
Here is my complete test case:*
Following scripts are run from COM_OWNER Oracle user on a 11.2.0.1.0 database.
create or replace package test_aq authid current_user is
procedure getmessage(context in raw, reginfo in sys.aq$_reg_info, descr in sys.aq$_descriptor, payload in RAW, payloadl in number);
end;
create or replace package body test_aq is
procedure getmessage(context in raw, reginfo in sys.aq$_reg_info, descr in sys.aq$_descriptor, payload in RAW, payloadl in number) is
begin
insert into log values ('notification received', sysdate, user );
commit;
end;
end;
declare
l_reg_info_list sys.aq$_reg_info_list;
begin
dbms_aqadm.stop_queue(queue_name => 'TEST_QUEUE');
dbms_aqadm.drop_queue(queue_name => 'TEST_QUEUE');
dbms_aqadm.drop_queue_table(queue_table => 'TEST_QUEUE_TABLE');
dbms_aqadm.create_queue_table(queue_table => 'TEST_QUEUE_TABLE', queue_payload_type => 'RAW', multiple_consumers => FALSE);
dbms_aqadm.create_queue(queue_name => 'TEST_QUEUE', queue_table => 'TEST_QUEUE_TABLE') ;
dbms_aqadm.start_queue(queue_name => 'TEST_QUEUE', enqueue => TRUE, dequeue => TRUE) ;
dbms_aqadm.grant_queue_privilege(privilege => 'ENQUEUE', queue_name => 'TEST_QUEUE', grantee => 'MAJ_COM');
execute immediate 'drop table log';
execute immediate 'create table log(text varchar2(2000), date_creation date, usager_creation varchar2(30))';
execute immediate 'drop public synonym log';
execute immediate 'create public synonym log for com_owner.log';
execute immediate 'grant select, insert, delete on log to maj_com';
execute immediate 'drop public synonym test_aq';
execute immediate 'create public synonym test_aq for com_owner.test_aq';
execute immediate 'grant execute on test_aq to maj_com';
l_reg_info_list := sys.aq$_reg_info_list(sys.aq$_reg_info('COM_OWNER.TEST_QUEUE', DBMS_AQ.NAMESPACE_AQ, 'plsql://COM_OWNER.TEST_AQ.GETMESSAGE?PR=0', hextoraw('FF')));
dbms_aq.register(l_reg_info_list, 1);
end ;
Following scripts was run from a user schema (FBOUCHER). This user has MAJ_COM role.
declare
msg RAW(500) ;
enq_opts dbms_aq.enqueue_options_t ;
msg_props dbms_aq.message_properties_t ;
begin
dbms_aq.enqueue(queue_name => 'COM_OWNER.TEST_QUEUE', enqueue_options => enq_opts, message_properties => msg_props, payload => hextoraw('FF'), msgid => msg) ;
commit ;
end ;
/* Next check to see if notification was received.
It was received but within the authority of SYS...
SQL> select * from log;
TEXT DATE_CREATION USAGER_CREATION
notification received 2009-11-15 12 SYS
SQL>

No. LabVIEW is available for Windows, Mac, Sun, and Linux. Every binary is unique to the OS. You can try to convince NI to create a LabVIEW version for VX Works but I don't think you'll get very far. Sorry.

Similar Messages

  • Urgent! Can't open encrypted file under the same user.

    My system is X61s, Windows XP pro sp3.
    There is no change of user account, no reinstallation or recovery of system.
    I used EPS encrypted some of my important files last month. Without any user account changes and system reinstallation I suddenly can not open the encrypted files anymore. I am aware that the change of user account or reinstalling the system will change the encrypted ID, then the encrypted file will not be opened unless there is a digital certificate of the user that encrypted the file. However I have been using the same user account since I bought the laptop and I have never reinstalled or recovered the system.
    I have tried to encrypted some other files and these files can be opened without any problem. But only the file that I encrypted about a month ago can not be opened.  Those are very important files for me. Can anyone help me to get my files back please!!!
    mod edit: moved to windows forum for better exposure.
    Message Edited by erik on 10-01-2008 11:51 PM

    hello you did not mention any error messages you were facing??
    i can only assume you are getting the follwing messages if you try to open an encrypted file...
    Cause: Encrypting File System (EFS) only works on files and folders on NTFS file system volumes. If the folder or file you are trying to encrypt is on a FAT or FAT32 volume, the Advanced button does not appear in the properties of that folder or file.
    Solution:
    Convert the volume to NTFS with the convert utility.
    Open command prompt
    Type:
    convert drive /fs:ntfs
    where drive is the drive letter of the intended drive.
    "the recovery policy configured for this system contains an invalid security certificate" or "BAD_RECOVERY_POLICY" OCCURS
    Cause: The Encrypting File System (EFS) recovery policy implemented on this computer contains one or more EFS recovery agent certificates that have expired. These certificates cannot be used.
    Solution:
    Either renew the existing certificates or generate new certificates for the EFS recovery agents and reapply the recovery agent policy with those certificates.
    the acess denied message occurs when trying to open an encrypted file
    Cause: The file was encrypted by Encrypting File System (EFS) using a public key certificate and the associated private key for this certificate is not available on this computer.
    Solution:
    Locate the private key for the appropriate certificate and import it onto this computer using the Certificates snap-in.
    Cheers and regards,
    • » νιנαソѕαяα∂нι ѕαмανє∂αм ™ « •
    ●๋•کáŕádhí'ک díáŕý ツ
    I am a volunteer here. I don't work for Lenovo

  • How can I save multiple titles under the same DVD?

    I use HandBrake to rip DVD's into iTunes. How can I save multiple titles under the same DVD? For instance, I have a Jimi Hendrix documentary that comes with special features, such as concert performances. I would like to have the main feature and the special features saved in my iTunes under the same title, perhaps as different 'tracks' (kind of like how different songs can be saved under the same album).
    Is there a way for me to do this, or am I chasing phantoms?

    *This response is for iPhoto 11 (v9). If you're using an earlier version, please post back and let us know. Troubleshooting steps are not the same for different versions. To find out which iPhoto you have: iPhoto Menu -> About iPhoto)*
    Duplicate the photo first. (Photos -> Duplicate). This means that you will have multiple copies of the master as well as the edited version.
    If you use versions like this often and wish to have only one master then you can do this with Aperture.
    Regards
    TD

  • How can i add two values under the same property?

    Hi all,
    How can i add two values under the same property name in a
    prop list? For example:
    [question1: "item1","item2", question2: "item3","item4"]
    To be more precise, i am creating a property list and I want
    whenever a two values have the same property name to be added int
    he list under the same property. For example:
    gMyList.AddProp (#""&question&"" & x,
    member("input").text)
    question is a variable that is updated fromt he user's input.
    Now, whenever somethign like this happens:
    question = "question1"
    member("input").text = "five"
    question = "question1"
    member("input").text = "six"
    I want to output list to be:
    [question1: "five","six"] and so on
    Any ideas?

    Maybe you could make each property a list (so you have a
    property list full
    of lists), and add multiple values to the list held in a
    particular
    property?
    Cheers
    Richard Smith

  • I bought bought over 200 Apps back in 2011, can i re download them under the same account to my new iPad?

    I bought over 200 Apps back in 2011, can i re download them under the same account to my new iPad?

    Yes, you can re download them.
    http://support.apple.com/kb/ht2519.

  • Can I save captions (labels under the photos in iPhoto) in Aperture?

    Can I save captions (labels under the photos in iPhoto) in Aperture?

    The captions are indeed in iPhoto replacing the scan number under the photo.
    I see, you want to save the name of the image version - both Aperture and iPhoto allow you to create multiple edited versions of the same original image file and in iPhoto you are seeing the name of the image version belbow the thumbnail of the image, if you change the title n the Info panel.
    But they are not saved with the photos when burned to disc,apparently (correct me if I am werong).
    I don't know, which iPhoto version you are currently using. When you export photos (in iPhoto '11) or image versions (in Aperture 3) as files to a folder on the disk, you can use the version name/Title as the filename. Both applications let you chose, how the exported file will be called. In iPhoto use the following settings, when exporting your images, to use the title as the filename:
    Select the images in the Browser.
    Use "File > Export"
    Set the "Kind" to "Original" or "Current", depending on if you want to export the original or the edited version,
    And then pick a format for the filename. To use the title/verson name as the filname instead of the scan number, set "File Name" to  "Use Title".

  • TS2755 Can you recover messages from before the timeline on iphone will let you go back to?

    Can you recover messages from before the timeline on iphone will let you go back to?
    i need information from january but my phones messages is only letting me go back to 24th February

    No, if you restore from your backup and all you have is text from Feb. then sorry that all you can get.

  • Mail: no message appears under the column of messages.

    I probably did something which changed the window. No message appears under the list of messages. What did I do wrong?

    What version of OS X are you using?

  • I want to run two or more firefox processes under the same user at the same time

    My setup: A laptop running Fedora 20 and Gnome 3. I would really like to have a Firefox window on the laptop screen, and at the same time another one on the VNC client I am running on another computer. Both under the same user account.
    Closing one of the firefox windows is a very poor solution, as I would lose all the tabs I opened, in addition to the hassle.
    Is that possible at all? If yes, how? And if not, can you suggest workarounds?

    You can use the -no-remote command line switch to open another Firefox instance with its own profile and run different Firefox instances simultaneously, but do not use -no-remote to start the default browser with the default profile.
    * http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile
    * https://developer.mozilla.org/Mozilla/Multiple_Firefox_Profiles
    See also Remote Control:
    *https://developer.mozilla.org/Command_Line_Options

  • HT2542 Hi, I created a new user on mac, Admin but i can't use adobe CS6 while the original user is admin too and all programs are running normal. How can i solve this problem?

    Hi, I created a new user on mac, Admin but I can't use adobe CS6 while the original user is admin too and all programs are running normal. How can I solve this problem?

    Hi Amanda,
    Software applications are usually installed in the Applications folder on the Macintosh HD and are accessible to all users.
    I would advise you to check the Applications folder and see if your software is in there.
    Next step would be to Control Click or Right Click on the application and choose "Get Info" and make sure the permissions are set to "Read & Write" for all users. The article below provides more details:
    Troubleshooting permissions issues in Mac OS X
    http://support.apple.com/kb/ht2963
    You may need to contact Adobe Support if this does not resolve your issue:
    http://helpx.adobe.com/photoshop.html
    Hope this information helps!
    - Judy

  • QueueBrowser doesn't work when messages are in the queue

    We are attempting to list off the messages in a JMQ 2.0 queue while our application is running. The code currently creates a new Connection & Session and then a new QueueBrowser on each queue. Following that, we get an Enumeration of the messages in the queue and print them out.
    When no messages are in the queue, this approach works fine and prints out all the relevent information. However, when a message is in the queue, the QueueBrowser just hangs. I've tried on transacted and non transacted QueueSessions and the same thing happens.
    Is this known behavior and is it possible to work around it?
    Thanks,
    Mike

    Try restarting the Mac with the ethernet cable plugged in and with a live device attached ('live device' = another Mac, a modem, a printer, or a hub/switch/router, which has been powered on).

  • Can't access Conversation View under the View menu. Using Daily 38.0a1. Any ideas?

    I can get to the Conversation View under the View menu in TB release candidate 31.4.0. But don't see it under Daily version 38.0a1 64bit on different computer. Any help appreciated.
    Thx

    It is on the message menu

  • When an app update is available in the ipad appstore, a WAITING message appears under the app and the installation does not proceed

    When updates are available in the ipad app store, I click on install and under the app a WAITING message appears. No installation is done and the message does not disappear. I have tried hard and soft resets without success. The ipad (1st gen) runs under iOS 5.0.1. I now have 5 apps waiting for installation of updates.

    You can also finish the downloads in iTunes on your computer and then sync the updates to the iPad. From the iTunes menu on your computer go to Store>Check for Available Downloads.

  • I've lost my list of passwords. How can I read what's under the asterisks as text

    AS I've lost all my written lists for my ipad passwords is there an app so I can read what's under the asterisks, or any other way?

    If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup).
    If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present.
    You may have to force iPad/iPod into Recovery Mode
    http://support.apple.com/kb/ht4097

  • The "unified messaging" tag under the properties of my exchange server is hidden

    hello all, 
    i have a probleme and hope you will help me to fix it.
    when I tried to go the properties of my exchange server , i do not found the "unified messaging" tag  in the left menu
    what's the probleme? what can i do to resolve it?
    Thanks 

    Hi,
    If I recall correctly that setting was added there in a later build.
    Since you are still on Exchange 2013 RTM (15.0.516.32), it would be a good idea to install Exchange 2013 SP1.
    Microsoft Exchange Server 2013 Service Pack 1 (SP1)
    http://www.microsoft.com/en-us/download/details.aspx?id=41994
    Martina Miskovic

Maybe you are looking for

  • Expdp export error

    Please help if you can. We have oracle running on a Windows XP machine and another instance running on a Windows 2003 server machine. I get the same results when I try to run the export on either database. I connected to Oracle with SQLPlus and sent

  • E71 music player error

    ever you got your music player doesn't respond when you click "refresh"? and new song doesn't display on all song list? please help me..I really need your help.. thanx sooo much before...

  • Sent control cycles via IDOC

    Hi, I want to use the following IDOCs to execute the KANBAN process in an external system. Inbound SAP: CONF51 (for Kanban status) Outbound SAP: PKHD5 (control cycle) + PKHD5 (kanban) information How can I trigger that the outbound information is sen

  • Sybase ASE 15.7.0 in suspect status

    Hi Gurus, We have a problem when we try to connect to a SyBase DB (Adaptive Server Enterprise/15.7.0/EBF 20953 SMP ESD#4.2), the database is in suspect mode. We ran the following commands after rebooting but the same error appears: server>isql -X -Us

  • Severe performance issues in production database

    Hi Experts, we have configured RMAN in our production database recently using some 3 party tool COMMVAULT. Problem is just 47 GB database taking around 6 hrs of time to complted the bakcup job. Please let me know what could be the reason. Further to