PL/SQL AQ notification works in XE but not in our Enterprise Edition

Hello,
I am trying to get a Queue up and working and have ran through several examples, but I cannot get the Notify to work in our development environment but it works just fine in my local XE instance.
Below is the code that WORKS in XE but does not call the procedure in the Enterprise Edition of Oracle:\
Please note I may manually DBMS_AQ.DEQUEUE the queued item -- that works just fine, but the intent is the have it notify the procedure (this is still hashing out this technology so keep that in mind during critiquing).
What is different between XE and Enterprise Edition in these regards or what is it I should check?
(I got the job_queue_processes increased as noted in the below)
GRANT EXECUTE ON dbms_aq TO aq;
GRANT EXECUTE ON dbms_aqadm TO aq;
GRANT CONNECT, RESOURCE, aq_administrator_role TO aq;
begin
  dbms_aqadm.grant_system_privilege('ENQUEUE_ANY','aq',FALSE);
  dbms_aqadm.grant_system_privilege('DEQUEUE_ANY','aq',FALSE);
  commit;
end;
drop procedure demo_queue_callback_procedure;
BEGIN
        DBMS_AQADM.STop_QUEUE ( queue_name => 'aq.streams_queue_1' );
        DBMS_AQADM.DROP_QUEUE ( queue_name => 'aq.streams_queue_1' );
        DBMS_AQADM.DROP_QUEUE_TABLE ( queue_table => 'aq.streams_queue_1_table'
                                     ,FORCE       =>TRUE );
END;
BEGIN
        DBMS_AQADM.CREATE_QUEUE_TABLE (
                  queue_table        => 'aq.streams_queue_1_table'
                 ,queue_payload_type => 'aq.APP_INFO'
                 ,multiple_consumers => TRUE );
       DBMS_AQADM.CREATE_QUEUE (
          queue_name  => 'aq.streams_queue_1',
          queue_table => 'aq.streams_queue_1_table'
       DBMS_AQADM.START_QUEUE (
         queue_name => 'aq.streams_queue_1'
   END;
CREATE TABLE aq.queue_message_table
   ( message VARCHAR2(4000)  , ins_date date default sysdate);
CREATE or replace PROCEDURE aq.demo_queue_callback_procedure(
                     context  RAW,
                     reginfo  SYS.AQ$_REG_INFO,
                     descr    SYS.AQ$_DESCRIPTOR,
                     payload  RAW,
                     payloadl NUMBER
                     ) AS
      r_dequeue_options    DBMS_AQ.DEQUEUE_OPTIONS_T;
      r_message_properties DBMS_AQ.MESSAGE_PROPERTIES_T;
      v_message_handle     RAW(16);
      o_payload            aq.APP_INFO;
   BEGIN
      r_dequeue_options.msgid := descr.msg_id;
      r_dequeue_options.consumer_name := descr.consumer_name;
      DBMS_AQ.DEQUEUE(
         queue_name         => descr.queue_name,
         dequeue_options    => r_dequeue_options,
         message_properties => r_message_properties,
         payload            => o_payload,
         msgid              => v_message_handle
      INSERT INTO aq.queue_message_table ( message )
      VALUES ( '[' || o_payload.parameter || ';' || o_payload.value || ';' || to_char(o_payload.dte,'ddMONyy:hh:mi:ss') ||']' );
      COMMIT;
   END;
BEGIN
       DBMS_AQADM.ADD_SUBSCRIBER (
          queue_name => 'aq.streams_queue_1',
          subscriber => SYS.AQ$_AGENT(
                           'aq_queue_subscriber',
                           NULL,
                           NULL )
       DBMS_AQ.REGISTER (
          SYS.AQ$_REG_INFO_LIST(
             SYS.AQ$_REG_INFO(
                'streams_queue_1:aq_queue_subscriber',
                DBMS_AQ.NAMESPACE_AQ,
                'plsql://aq.demo_queue_callback_procedure',
                HEXTORAW('FF')
          1
   END;
DECLARE
       r_enqueue_options    DBMS_AQ.ENQUEUE_OPTIONS_T;
       r_message_properties DBMS_AQ.MESSAGE_PROPERTIES_T;
       v_message_handle     RAW(16);
       o_payload            aq.app_info;
       vreclst DBMS_AQ.AQ$_RECIPIENT_LIST_T;
    BEGIN
      o_payload := aq.app_info('msg4',4,sysdate);
     --vreclst(1):= sys.aq$_agent('ANYONE','', null);
      --r_message_properties.recipient_list:= vreclst;
      DBMS_AQ.ENQUEUE(
         queue_name         => 'aq.streams_queue_1',
         enqueue_options    => r_enqueue_options,
         message_properties => r_message_properties,
         payload            => o_payload,
         msgid              => v_message_handle
     COMMIT;
   END;
select * from aq.queue_message_table   ;
SELECT *
    FROM   aq.aq$streams_queue_1_table;
set serveroutput on   
    DECLARE
       r_dequeue_options    DBMS_AQ.DEQUEUE_OPTIONS_T;
       r_message_properties DBMS_AQ.MESSAGE_PROPERTIES_T;
       v_message_handle     RAW(16);
       o_payload            aq.app_info;
    BEGIN
      --r_dequeue_options.dequeue_mode := DBMS_AQ.BROWSE;
          r_dequeue_options.consumer_name := 'aq_QUEUE_SUBSCRIBER';
      DBMS_AQ.DEQUEUE(
         queue_name         => 'aq.streams_queue_1',
         dequeue_options    => r_dequeue_options,
         message_properties => r_message_properties,
         payload            => o_payload,
         msgid              => v_message_handle
      DBMS_OUTPUT.PUT_LINE(
         '*** message is [' || o_payload.parameter || ';' || o_payload.value || '] ***'
   commit;
   END;
    select * from dba_queue_schedules ;
    select * from dba_objects;
SELECT *
   FROM v$parameter
  WHERE name = 'aq_tm_processes'
     OR name = 'job_queue_processes';
job_queue_processes = 10;
aq_tm_processes = 0;
SELECT *
   FROM v$parameter
  WHERE name = 'aq_tm_processes'
     OR name = 'job_queue_processes';
in XE
aq_tm_processes     => 0
job_queue_processes => 10
Ora Type:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production    
PL/SQL Release 11.2.0.1.0 - Production                                          
CORE     11.2.0.1.0     Production                                                        
TNS for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production               
NLSRTL Version 11.2.0.1.0 - Production  
in XE
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production             
PL/SQL Release 11.2.0.2.0 - Production                                          
CORE     11.2.0.2.0     Production                                                        
TNS for 32-bit Windows: Version 11.2.0.2.0 - Production                         
NLSRTL Version 11.2.0.2.0 - Production
the
job_queue_processes => 4

Got it working,
in running this
SELECT owner, queue_name, queue_table, consumer_name
FROM dba_queue_subscribersI saw that there was an initial queue consumer that was overlapping, I dropped the initial queue and recreated all and it now works.

Similar Messages

  • SQL*Plus assignment works for 8i but not 9i

    We have scripts that connect to each database on the box and perform database tasks nightly. The scripts first set the environment then connects to each database with SQL*Plus. This works for 8i but fails in the recently created 9i environment.
    Because the SQL*Plus connection appears in many areas in the scripts, we assign the following connection string to a variable:
    SQLPLUS="/usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba'"
    Export SQLPLUS
    echo "$SQLPLUS"
    (This echo out correctly: /usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba')
    It fails when the script calls the assigned variable:
    $SQLPLUS <<-EOF
    with the following error:
    Usage: SQLPLUS [ [<option>] [<logon>] [<start>] ]
    where <option> ::= -H | -V | [ [-L] [-M <o>] [-R <n>] [-S] ]
    <logon> ::= <username>[<password>][@<connect_string>] | / | /NOLOG
    <start> ::= @<URI>|<filename>[.<ext>] [<parameter> ...]
    "-H" displays the SQL*Plus version banner and usage syntax
    "-V" displays the SQL*Plus version banner
    "-L" attempts log on just once
    "-M <o>" uses HTML markup options <o>
    "-R <n>" uses restricted mode <n>
    "-S" uses silent mode
    However, if I remove the SQLPLUS variable assignment and changed all occurrence of
    $SQLPLUS <<-EOF to
    /usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba' <<-EOF
    Then the script runs successfully. But this solution is cumbersome.
    Any ideas as to how to have the script work with assigning the SQLPLUS variable????
    Any help is appreciated

    I has an immediate suspicion it might be related to the issue
    mentioned in
    http://otn.oracle.com/support/tech/sql_plus/htdocs/sub_var2.html#2_7
    but this proved wrong: the SP2-306 still occurs in the latest
    SQL*Plus.
    I wonder what version of 8i you had working? With an old SQL*Plus
    8.1.7.0 my connection failed the same as in 9.2 and 10i.
    My solution was to do:
      SQLPLUS='sqlplus -s'
      UNPW='/ as sysdba'
      $SQLPLUS "$UNPW" &lt;&lt;EOF
      EOFThis worked in 9.2.0.5, 10.1.0.2 and 8.1.7.0.
    One common security risk on UNIX remains: putting the username and
    password on the command line. On some systems a "ps" command will
    show the password to any user. If OS authentication cannot be used
    for connection, perhaps putting the username/password in the SQL
    script may be more secure?
    A final note is that in SQL*Plus 10g, no quotes are needed around
    AS SYSDBA, i.e.
      sqlplus / as sysdba works from the OS prompt, whereas in 9.2 you need to do
      sqlplus "/ as sysdba"This makes a solution easy:
      SQLPLUS="/usr/oracle/product/10.1.0/bin/sqlplus -s xxx/xxxxxx@xxxx as sysdba"-- CJ

  • Push notifications work after restore, but not after reboot - ios5 iPhone 4

    Push notifications work after I restore my iPhone (confirmed by ipusher and facebook), but from the first time that I turn off/reboot the phone push notifications stop working!? I have restored several times, as the same thing happens every time.
    I have an iPhone 4g 32gb running ios5.0.1.

    If it's all push notifications, restore the device as "new" and see if the problem goes away.
    If it's push notifications for specifics apps, contact the developer of those apps.

  • Messages Notifications working on Macbook but not iMac

    So I update to Mavericks two days ago and everything is working great except for Messages. Now on my macbook, Messages works completely fine. I get a Notification when I get a new text from iMessage on my iOS and the syncing is great. But the problem I have is that on my iMac at work, Im not able to receive notifications for Messages. The syncing with my iOS is completely fine but I don't receive any Notificaitons. All of the settings are completely the same on both computers. And I've tried rebooting my phone as well.
    Any suggestions?

    HI,
    In Applications/Utilities open the Activity Monitor
    Find the Notification item and highlight it.
    Now use the quit option top left and confirm Force Quit.
    10:17 pm      Saturday; October 26, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.4)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • PL/SQL Web services working with synonyms but not parameters Collection

    Hi
    I am Using JDeveloper 10.1.3.1.0
    i could able to test successfully the PL/SQL web services with the synonyms.I created the PL/SQL web services in 'MKI' schema and then i dropped the objects from the MKI schema and launched the same in 'BAS' Schema and given grants to MKI schema and Created the Local synonyms in Schema 'MKI' and now when i test the PL/SQL web service, it is working successfully.
    There was problem with passing the collection types as parameters in web services in that case it is giving the following Error
    "Internal Server Error (Caught exception while handling request: java.rmi.RemoteException: java.sql.SQLException: Internal Error)"
    Could any one suggest me the reason for the above error?
    Regards
    Malathi

    Just a clarification about the problem.
    Even though, if an exception is raised, the Connection object will be eventually closed(), it may take a while and if there are lots of users getting exceptions at the same time the connection pool can quickly run out of connections (correct me if I am wrong please.)
    That is why we think the Connection object should be immediately closed in the case of an exception is raised and we are looking for a fix for this.
    Thanks
    Luis

  • My sound works for music but not apps

    My sound works for music but not apps

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Check your settings. The iPads have a small switch on the right edge. It can be used as a rotation lock to keep the screen from automatically reorienting itself as you move around, but you need to have the tablet’s settings configured properly. That same switch, right above the volume buttons, can also be set to function instead as a mute button to silence certain types of audio.
    If the switch is set to work as a mute button, you can change its purpose to “screen-rotation lock” by tapping the Settings icon on the home screen. On the Settings screen, tap General on the left side, and on the right side of the screen flick down to “Use Side Switch to.” Tap to select Lock Rotation or Mute to set the button’s function. Even if you set the side switch for your preferred use, you can still mute the Mini or lock the screen. Just double-click the Home button, and when the panel of apps appears along the bottom edge of the screen, flick the row from left to right with your finger. Tap the icon on the far left side of the row to either lock the iPad’s screen or mute the iPad’s alerts, notifications and sound effects. Music, podcasts and video are not muted unless you turn the volume all the way down.
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/ts5180
    iPhone: Can't hear through the receiver or speakers
    http://support.apple.com/kb/ts1630
    http://www.atreks.com/app-no-sound-on-ipad-4-%E2%80%93-what-to-do/
    To solve some sound problems, just follow these simple steps
    1. Go to Settings
    2. Tap on General
    3. Tap on Reset
    4. Tap on Reset All Settings
     Cheers, Tom

  • Custom F4 help in a BSP application working in Mozilla but not in IE

    Hi,
    I have created a custom F4 help in a BSP application.
    It is working in Mozilla but not in IE. I tried enabling javascript as well but still it is not working.
    Can someone please suggest a possible solution for this?

    Hi,
    See simmilar discussion in thread /thread/1883519 [original link is broken]
    I think this may be helpful for you.
    Thanks,
    Chandra

  • Why does the counter work in MAX, but not Labview?

    Please help, I have been away from Labview for over 3 months, and I am quite rusty....
    Last year, I successfully configured NI9401 to measure period (seconds) by counting the rising edges of my sensor signal.  Since then, I have aquired a new PC, and loaded all my software into it, including the Labview VI's that successfully worked on the old computer.
    I can see the digital signal using MAX and the test panel for the NI9401, so, I know my wiring and my TTL signal is OK, but, when I try to run the attached VI, nothing happens except the error below..  How do I tell this VI to look for the signal on MOD3/CTR0 and channel 14?
    Thanks. I am sure it is a small adjustment...this worked fine a few months ago...not sure what is wrong now.
    Thanks,
    Dave
    Solved!
    Go to Solution.
    Attachments:
    continuously measure period buffered_singlechannel_forum_feb_23_2012.vi ‏20 KB

    OK, now.  Resolved the issue. The vi is fine, but, some shaky wires were identified...worked in MAX but not in the vi.  Now that the connections have been tightened up, it works for both.  Sorry for the inconvenience.
    Dave

  • Works on emulators but not on mobile devices

    Hello,
    My project works on emulators but not on mobile devices (no image and on Samsung it says "unsupported file").
    Please help, I don't know what to do. My configurations: MIDP 2.1, CLDC 1.1.
    Thanks in advance.
    Edited by: Vitali.pom on Oct 27, 2011 12:01 PM

    Edit: I succeeded to solve it accidentally. I did the following: Sign the jar in Netbeans, clean and build, the jar didn't work, I wiped out the .ks from the jar and clean and build again. Now it worked.
    Edited by: Vitali.pom on Oct 30, 2011 1:28 AM

  • Wifi works at home but not when away from home

    My Wifi works at home but not when away from home, what is wrong?  I thought with a phone plan I didn't need to have a wifi connection.

    You either need WiFi or Cellular (or both). If you have neither, you can't connect to the internet.
    Most people use WiFi at home and Cellular while away from home, or connect to public WiFi networks where there are some.

  • Can't FaceTime anymore?  iPad states wifi connected and iPhone 4 states not connected?  I have wireless in my home? Not sure what happened.  Password works for iPad but not on phone?

    iPhone won't connect to wifi.  iPad is connected.  Password working on iPad but not on phone.  Can't upload software update of IOS 7.1 because phone not connecting to wifi?

    Connect iPhone to computer and open iTunes.  You will be prompted to update to iOS 7.0.  Keep your phone connected until the update is finished.

  • My apple id works on itunes but not on my ipod touch, what gives ?

    my apple id works on itunes but not on my ipod touch, what gives ?

    What are you trying to do on the iPod?
    Have you went to Settings>Store and sign out and then sign back in?

  • Album Art works for most, but not all

    I was reading previous forums on the subject, but no clear answer was given..
    The album art shows up fine in itunes and my library and works for most of my music on my ipod, but how come some album's art does appear? I have it set manually and select 'Get Info' then 'Artwork' and add it from there, then drag in the finished product to my ipod. I've been doing that and it works fine for most of the albums, but every so often, the album art will not appear on my ipod. Am I doing something wrong? I take them all from the same source (amazon.com) but it makes no sense to me how some randomly don't appear.
    I tried deleting the artwork and re-adding it, but nothing happened again. If you could answer why it works for most but not all or how I can get the album art to appear for the ones it will not by re-doing something, it would be appreciated. thanks.

    I encountered the same problem in the beginning. When I compared the size of the original images, the working ones seemed to be smaller in general, so I reduced the size of all covers I intended to upload on the pod to 300x300 pixels.
    This seemed to work - for 2 days. I bought the pod on friday, had pictures on sunday, but on Monday (after the first time the pod was fully discharged) none were left left.
    So I ended searching this forum for related problems...
    And decided to join my problem to this entry.

  • How to send active links in email from firefox. Works in IE but not Firefox... Is there a setting to change?

    how to send active links in email from firefox. Works in IE but not Firefox... Is there a setting to change?
    == This happened ==
    Every time Firefox opened
    == Always

    Check with your web mail service provider for help with that issue.

  • Medical app from Intuit works in IE, but not Firefox.

    Encrypted medical app works in new IE, but not Firefox. Everything works down to the end, and click on "continue" and nothing happens. A tech and I have spent hours on this. Did not work on FF5 or 6. Did not work on old IE, but did on fresh new version with no data files copied in.

    If it works in IE but not FF, then it has nothing to do with the mp3s. More likely it's because of the HTML on the page.
    To start, page is missing DOCTYPE declaration... a MAJOR problem. The DOCTYPE declares which set of rules the browser will use to display the page. Without it, different browsers go crazy or do not work at all.
    http://www.w3schools.com/tags/tag_DOCTYPE.asp
    Validate the html code here:
    http://validator.w3.org/
    You will have to fix all the errors if you want this to work in all browsers.
    Best wishes,
    Adninjastrator

Maybe you are looking for

  • Firefox does not link to another site

    I have an image in my web page that when clicked on is supposed to take the viewer to another extrernal web site. I have set it up with Dreamweaver CS4, and it works OK with IE6, Google Chrome, but not Firefox. Can anyone please advise how I should c

  • OS command working but file not moved

    HI All, I am facing an issue with receiver File adapter OS command. OS command will move file from folder A to B and after remove It was working previously fine.But now it is not moving file. In CC logs it is showing as successfull ececution of OS co

  • Exception when starting sun studio

    when am starting sun studio, it is giving an error message (exception)-java.lang.out of memory error : java heap space. i cant able to start sun studio. What will do...? Thanks in advance vinod

  • Portal Development using JSF & Struts

    Can some one explain about the feasibility of developing portals using JSF and Struts? What are the advantages and disadvantages of doing so? Is it a right decision to develop portal servers using these?

  • How can I get extract the data between two cursors on an XY graph

    How can I get extract the data between two cursors on an XY graph