Create AQ Buffered Queue?

How do you create an AQ buffered queue? I tried the following:
DBMS_AQADM.CREATE_QUEUE_TABLE(
queue_table => 'TEST_TABLE',
queue_payload_type => 'SYS.ANYDATA',
sort_list => 'PRIORITY,ENQ_TIME');
DBMS_AQADM.CREATE_QUEUE('TEST_QUEUE','TEST_TABLE');
DBMS_AQADM.START_QUEUE('TEST_QUEUE');
which creates a test queue under my 'jmsuser' account. However, when I run 'select * from v$buffered_queues' as sys, it returns no rows (the view does not exist under jmsuser)!
Three questions:
1. Is the v$buffered_queues wrong?
2. Did I create a buffered queue?
3. And if not, how do you create a buffered queue? I thought that giving the payload as 'SYS.ANYDATA' would suffice...
Thanks!

How do you create an AQ buffered queue? I tried the following:
DBMS_AQADM.CREATE_QUEUE_TABLE(
queue_table => 'TEST_TABLE',
queue_payload_type => 'SYS.ANYDATA',
sort_list => 'PRIORITY,ENQ_TIME');
DBMS_AQADM.CREATE_QUEUE('TEST_QUEUE','TEST_TABLE');
DBMS_AQADM.START_QUEUE('TEST_QUEUE');
which creates a test queue under my 'jmsuser' account. However, when I run 'select * from v$buffered_queues' as sys, it returns no rows (the view does not exist under jmsuser)!
Three questions:
1. Is the v$buffered_queues wrong?
2. Did I create a buffered queue?
3. And if not, how do you create a buffered queue? I thought that giving the payload as 'SYS.ANYDATA' would suffice...
Thanks!

Similar Messages

  • I hope it's Kappy reading this. My HP Laserjet successfully installed but can't create a print queue...

    Hello Kappy - Thank you for persevering with my printer issues. Firstly, I use Firefox, recently updated & as yet have not discovered how to monitor downloads. The software for HP Laserjet 2200 was eventually automaticallly, and therefore correctly, installed.The Add Printer Pane accessed via the + button in the Printer & Scanner window is blank - the Name & Location and Print Using & Add areas are all grayed out, therefore I can't locate the printer driver even though it is in the Printer folder. I messed around with HP Direct Protocol & Line Daemon functions, entering my IP address, just to see if I could locate the printer driver - I could. However, I get a pop-up window which says 'Unable to verify the printer on your network' but it gives me the option of going ahead anyway, which I did. I was able to create a print queue, able to give a print command, the printer window opens, but the printer appears as 'busy', but of course it's not printing. To look at the issue from another perspective: previously I was running 10.5.8 on my old Power Mac G5 and a week before I shifted over the iMac I paused the printer but when tried to resume printing I got a pop-up message saying IPadmin > enter administrator name + password. Which of course I couldn't do - I discovered this was a bug afflicting10.5 & 10.6 operating systems; the only way I could get around it was by re-creating myself as a new administrator, which I did, and got the printer going again. So, if I have a "Network" printer perhaps there's another route to get the driver recognized... What do you think?
    Alex Carr

    Morning Alexander Carr,
    Thanks for using Apple Support Communities.
    Use this article to troubleshoot printer issues in OS X.
    For more information on this, take a look at this article:
    Troubleshooting printer issues in OS X
    http://support.apple.com/kb/ts3147
    Best of luck,
    Mario

  • Error while creating a temp queue (JMSException sayin .Destination dosnt ex

    i will just post part of my code
    Properties env = new Properties();
                        env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.NamingContextFactory");
                        jndiContext = new InitialContext();
                        queueConnectionFactory = (QueueConnectionFactory)jndiContext.lookup("QueueConnectionFactory");
                        queue = (Queue) jndiContext.lookup(queueName);
                   }catch (NamingException e) {
                        System.out.println("JNDI API lookup failed: " + e.toString());
                        System.exit(1);
                   try {
                        queueConnection = queueConnectionFactory.createQueueConnection();
                        queueSession = queueConnection.createQueueSession (false, Session.AUTO_ACKNOWLEDGE);
                        queueConnection.start();
                        queueSender = queueSession.createSender(queue);
                        requestMessage = queueSession.createTextMessage();
                                                                requestMessage.setText("does");
    /* The code works fine  till here , but below as soon as i say  replyQueue = queueSession.createQueue("todo"); , it says the destination dosenot exist. why isnt it creating  a temporary queue for me . Exception thrown is javax.jms.JMSException :
    This Destination Does Not Exist.
                        replyQueue = queueSession.createQueue("todo");
                                            Destination replyDestination = replyQueue;

    createTemporaryQueue() already creates a unique
    destination; you don't need to do anything else.
    Note as we discussed in the previous thread; you
    should not create a temporary destination per
    request; you should create 1 temporary destination
    per consumer/process and reuse it across requests;
    using a correlationID to match requests to
    responses.
    James
    http://logicblaze.com/
    Hello Mr.James,
    pleeeeeeeeeeeeeeease give me one example of how do i create only one temporary queue and differentiate resposes based on CorrelationID, i mean i am just not able to do it , i feel i will have to browse through entire queue matching for CorrelationId's, however u had earlier rejected this approach
    THEN HOW DO I MATCH RESPONSES IN TEMPORARY QUEUES TO MY REQUESTS BASED ON CORRELATIONID , PLEASE GIVE ME AN EXAMPLE

  • Can't create a print queue on OS 10.7 via HP driver installed by Apple

    I've ust bought a reconditioned iMac and am getting applications up and running, but I'm unable to get my HP Laserjet 2200DN printer working. The Add Printer pane (Print & Scan Preferences) remains blank: Name & Location and Print Using & Add areas are all grayed out, therefore I can't locate the printer driver even though it has been installed in the Printer folder. I've messed around with HP Direct Protocol & Line Daemon functions, entering my IP address, just to see if the printer driver could be located - it could. However, I get a pop-up window which says 'Unable to verify the printer on your network' but it gives me the option of going ahead anyway, which I did. I was able to create a print queue, able to give a print command, the printer window opens, but the printer is  'busy', but of course it hasn't been given the command to print  anything.  Any ideas?
    Alex Car

    Morning Alexander Carr,
    Thanks for using Apple Support Communities.
    Use this article to troubleshoot printer issues in OS X.
    For more information on this, take a look at this article:
    Troubleshooting printer issues in OS X
    http://support.apple.com/kb/ts3147
    Best of luck,
    Mario

  • Defining/Creating a JMS Queue in XI

    Scenario: Third party system would post messages in XI Jms queue, the messages would ultimately be sent to SAP.
    Need to create this JMS queue in XI which receives Jms messages from third party.
    Steps done:
    1) Defined Sender Communication Channel 'CC_JMS'
    JNDILookup name:jmsfactory/default/QueueConnectionFactory
    JMSQueue:jmsqueues/default/JMS_queue
    initialcontextfactory:com.sap.engine.services.jndi.InitialContextFactoryImpl
    JNDIServerAddress:<<serverIP>>:50004
    2)Defined sender ID for the outbound interface in SXMSIF
    3) Added job(I've given the name, is it right?) in SXMb_Adm and Defined message filter for that job. activated.
    4)configured message filter for the above sender ID. Queue name XBT1
    5)when checked in adapter monitor for JMS_queue.Shows the following error message
      CC_JMS : Sender channel. Details: Object not found in lookup of JMS_Queue.
    Questions:
    1)Is that the right approach i am following
    2)How do i assign CC_JMS  to JMS_queue
    3)How do i know if JMS_queue is up and running
    thnx
    sunil

    Hi Sunil,
    Please take a look at these..
    http://help.sap.com/saphelp_erp2005/helpdata/en/bc/996b908db7485fabbacb9930714d7e/frameset.htm -- Queue sender and reciever
    http://help.sap.com/saphelp_erp2005/helpdata/en/f4/2d6189f0e27a4894ad517961762db7/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/90/57849e5e3e45d784afc4e3bfa8136f/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/c1/739c4186c2a409e10000000a155106/frameset.htm
    Hope they help!
    cheers,
    Prashanth
    P.S Please mark helpful answers

  • Internal Error ORA-0600 when creating multiple consumer queue table

    Hi,
    I tried to create a multiple consumer queue table with the following statements:
    exec DBMS_AQADM.GRANT_TYPE_ACCESS ('system');
    create type Change_History_Trigger_Data as object(Col1 VARCHAR2(255), Col2 VARCHAR2(128), Col3 VARCHAR2(255), Col4 TIMESTAMP, Col5 VARCHAR2(64), Col6 VARCHAR2(64), Col7 NUMBER(8));
    Works fine till this stage. But the following statement produces an ORA-0600 internal error message.
    EXEC DBMS_AQADM.CREATE_QUEUE_TABLE ('change_history_queue_tbl','Change_History_Trigger_Data', 'tablespace my_tblspace','ENQ_TIME',TRUE,DBMS_AQADM.TRANSACTIONAL);
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [kcbgtcr_4], [14392], [0], [1], [], [], [], []
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2224
    ORA-06512: at "SYS.DBMS_AQADM", line 58
    ORA-06512: at line 1
    I tried creating the same queue table with Multiple consumer = FALSE, and it works fine. But not with multiple consumer = TRUE
    I'm running on Oracle9i Enterprise Edition Release 9.2.0.6.0
    Any possible solutions?

    Problem solved.
    The queue name was too long. Found a post with the same problem.
    Re: Create Queue Table ORA-00600 while dbms_aqadm.create_queue_table
    thanks anyway

  • Persisting Messages in Buffered Queues

    Hello Everyone,
    As per the oracle documentation http://docs.oracle.com/cd/B28359_01/server.111/b28321/strms_prop.htm#i1006905
    LCRs that were captured by a capture process are always stored in a buffered queue, but LCRs that were captured by a synchronous capture are always stored in a persistent queue.
    This means that if we use Capture process and server goes down( or is restarted), we will loose those messages in buffered queues as messages are stored in memory.
    1) Is there a way to force capture process to persist the message into persistent queue?
    2) Is there a way to recover the messages from buffered queue when we restart the server?
    Please let me know if you have some ideas / some insights for above two cases.
    Thanks
    Nithin
    Edited by: 906226 on Jan 5, 2012 11:20 AM

    Hello,
    This is really a Streams question.
    When the database goes down the buffered messages are lost. However when the instance restarts the Capture re-mines the redo logs from the required_checkpoint_scn and then re-enqueues the LCRs. The apply also keeps track of where it was at via the apply progress So nothing is lost in the Streams scenario when an instance goes down. This is discussed in the documentation.
    In the AQ world if you are using a buffered queue then the messages would be lost and the application would have to handle that situation.
    Thanks
    Peter

  • Creating a destination queue programatically

    Is there any way to create a Destination Queue for a Connection Factory through my Java program, if I do not want to do it through the Admin console?
    Specifically, is there an API to create a JMS queue?
    Thanks.

    What do you mean by creating Queue for ConnectionFactory? ConnectionFactory is to create connection to the JMS server.
    JMS provides methods like createTopic and createQueue but they are for converting provider specific name into Topic or Queue object for destinations already existing. One can not create physical destinations through these methods. Exception is for temporary destinations. Methods are createTemporaryQueue and createTemporaryTopic. Their life period is that of the connection. They will be garbage collected when the connection is closed.
    Sagar
    http://www.sun.com/software/products/message_queue/

  • Creating a Druable Queue in JBoss

    Hi
    Can anybody tell me how to create a Durable Queue in JBoss?
    Regards
    Swapna

    Hi Sunil,
    Please take a look at these..
    http://help.sap.com/saphelp_erp2005/helpdata/en/bc/996b908db7485fabbacb9930714d7e/frameset.htm -- Queue sender and reciever
    http://help.sap.com/saphelp_erp2005/helpdata/en/f4/2d6189f0e27a4894ad517961762db7/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/90/57849e5e3e45d784afc4e3bfa8136f/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/c1/739c4186c2a409e10000000a155106/frameset.htm
    Hope they help!
    cheers,
    Prashanth
    P.S Please mark helpful answers

  • How to limit max number of downloads at once (and create a download queue)

    I just "upgraded" to Mozilla 26.0 last night and was quite irritated that they changed the made it so that I cannot access the old download window. Was it really necessary to get rid of the work-around to get to the old download window?
    Anyway, besides being more visually appealing, it previously downloaded two files at a time, unless I manually forced it to do more. The rest of the files would go into a download queue to wait their turn. After the update, it no longer creates a queue, leading to much slower downloads and it also slows my computer if I download too much.
    Is there any way that I can limit the max number of downloads (unless I want to force it to download more) like I had on the previous version of firefox? I would prefer not to add more any add-ons, so if there is an check-box that I missed somewhere or something in about:config that would allow me to do this it would be better.
    Also, is there any way to pause downloads now?

    Check these 2 articles
    https://support.mozilla.org/en-US/kb/change-firefox-behavior-when-open-file?esab=a&s=how+to+put+a+file+in+download+queue&r=2&as=s
    https://support.mozilla.org/en-US/kb/find-and-manage-downloaded-files?esab=a&s=limit+maximum+number+of+downloads+and+create+a+download+queue&r=1&as=s
    This might help you.
    Thank you.

  • Error creating integration event queue

    I have Administrator role and has Integration: Integration Event privilege. All options are enabled in the Integration Settings section on the Company Profile page.
    When I tried to create a new queue, I got the below error
    Access Denied.(SBL-ODS-50085)
    Do you have any idea?
    Thanks

    Turned out this feature was turned off for my dev environment. I need to ask Customer Care to turn it on.
    Thanks

  • ThreadpoolExecutor not creating threads unless queue is full

    Hi I want to use the threadpool provided in java. i.e Threadpoolexecutor.
    The requirement is:
    1. I need to have a corepool size(1)
    2. I need to have Maxpoolsize(40)
    3. I need to have a Queue without predefined capacity. I can use a LinkedBlockingQueue for this.
    But the problem is, if i construct a threadpool,
    ThreadPoolExecutor threadPool = new ThreadPoolExecutor(1,40,600, TimeUnit.SECONDS,new LinkedBlockingQueue<Runnable>());
    No new threads are created until the queue is full. I.e the no more than corePoolSize threads will ever be created. (And the value of the maximumPoolSize therefore doesn't have any effect.). But what i need to have is everytime a task is submitted, it should create a thread until it reaches MaxpoolSize() and then it should start Queing requests.
    I know that this is a documented behaviour in javadoc. But i need to know if there is a proven workaround to do so.
    Is there a way to do So.....

    Please don't [double post|http://forums.sun.com/thread.jspa?threadID=5379100].

  • Creating a new Queue table

    Hi All
    Does any one knows how to create a queue table in the tablespace of the Oracle 10g database?

    Hi
    I used the command
    begin
    sys.dbms_aqadm.create_queue_table(
    queue_table => 'JMS_ABC_QUEUETABLE',
    queue_payload_type => 'SYS.AQ$_JMS_MESSAGE',
    sort_list => 'PRIORITY, ENQ_TIME',
    compatible => '10.0.0',
    primary_instance => 0,
    secondary_instance => 0,
    storage_clause => 'tablespace system pctfree 10 initrans 1 maxtrans 255
    storage ( initial 64K minextents 1 maxextents unlimited )');
    end;
    and it shows
    ORA-01950: no privileges on tablespace 'SYSTEM'

  • Can I create a new Queue/Topic in client application?

    In sun's JMS turorial the application client sends messages to the queue, which is created administratively, using the j2eeadmin command. Can I create a new destination(queue or topic) in my client's code?
    Thanks very much.

    Thank you very much, flhood. This is my first time to gain aid from website except my school's BBS.
    But I still cann't solve the problem, here is my code, can you help me to check it if there is anywhere that I might do wrong?( I omit the try/catch part)
    QueueConnectionFactory queueConnectionFactory =null;
    QueueConnection queueConnection =null;
    QueueSession queueSession =null;
    Queue queue =null;
    Queue tempQueue =null;
    QueueSender queueSender =null;
    TextMessage message =null;
    final int NUM_MSGS;
    Context jndiContext =null;
    jndiContext =new InitialContext();
    queueConnectionFactory =(QueueConnectionFactory)jndiContext.lookup("QueueConnectionFactory");
    queueConnection =queueConnectionFactory.createQueueConnection();
    queueSession =queueConnection.createQueueSession(false,Session.AUTO_ACKNOWLEDGE);
    queueConnection.start();
    queue =queueSession.createQueue("MyQueue");
    tempQueue =queueSession.createTemporaryQueue();(Actually I don't know why I shall need a tempQueue if I have the queue.)
    queueSender =queueSession.createSender(queue);
    message =queueSession.createTextMessage();
    NUM_MSGS=10;
    for (int i =0;i <NUM_MSGS;i++){
    message.setText("This is message "+(i +1));
    System.out.println("Sending message:"+message.getText());
    queueSender.send(message);
    These codes run well if I lookup in the JNDI for the existing queue "MyQueue", but when I try to make it dynamically, the resutlt shows(I only use texteditor+j2sdk1.4+j2ee1.3.1):
    Java(TM) Message Service 1.0.2 Reference Implementation (build b14)
    Sending message:This is message 1
    Exception occurred:javax.jms.InvalidDestinationException: No Destination found f
    or name: MyQueue
    I use deloytool to check the destionation, of course the "MyQueue" hasn't been created, but I use try/catch to brace these two line:
    queue =queueSession.createQueue("MyQueue");
    queueSender =queueSession.createSender(queue);
    Nothing gain.
    They are really puzzling me!

  • Jms/xbusResources-jms.xml - how OSB creates internal JMS queue?

    Hi there,
    In a project I have 3 proxy services, 1 dispatch request to the other 2 routing directly to them and with no Business services.
    One of these 2 is an HTTP, the other is a JMS. On this last I actually make a publish action along the pipeline and looks it doesn't require the JNDI name in the action itself, simply the proxy name or reference.
    Now in my local box it works, in JIT it doesn't. The only difference I can see is on the jmsResource tab:
    my local
    local-sso-audit-1142838076     Queue     local-sso-audit     local-sso-audit-1142838076     wlsbJMSServer
    local-sso-auditRequest33430637     Queue     local-sso-auditRequest     local-sso-auditRequest33430637     wlsbJMSServer
    local-sso-mail26453307     Queue     local-sso-mail     local-sso-mail26453307     wlsbJMSServer
    and in JIT none of the above is present.
    I guess these are internal queue created by OSB on deployment, but why should have not created in JIT??
    Thanks in advance

    Hi Alesandro,
    Do you get any exception back?
    Did you set QualityOfService=Exactly-Once in the Routing options inside your Publish action? This will make the exception visible.
    Regards,
    Fabio.

Maybe you are looking for

  • Data Matching For Non Alphabetical Letter (Japanese character)

    Hi, I want to do some data matching for Japanese Character like Name & Address (Using kanji or kana). There's a lot of uniqueness of the japanese character like the letter is the same but the pronounciation can be different or it can be in reverse, t

  • How to install C/C++ compiler in Solaris 10 (ie gcc)

    HI all, I have just installed Solaris 10 on my x86 machine. I thought that I installed the C/C++ compilers but when I went to check it turns out that I don't. When I type which gcc or which cc I get gcc not found. Am I missing something? If I need to

  • Guestbook For iWeb??  Can you turn a Blog into one??

    I need a guestbook on my website. I was wondering if there was a way to create one with iWeb? If not, is there a way to use the comment page from a blog for the guestbook? I tried it but I can't get a link in the Nav bar that goes to that one blog en

  • Screen no workie again !!!!!!!!!

    Bought a new iPhone on 07/10/2007. Last May the bottom touch row of the screen went dead. Went to Apple Store and they exchanged it for me. Well today the screen touch does not work. I called and they told me that my 90 day warranty expired the end o

  • Why are my windows sliding off screen?

    So, I was on my Mac Book Pro doing work and I flick between different windows (FCP, Finder, Safari etc) using the cmd - Tab function. All works fine and all the windows stay on the screen. However, I was doing something in finder when all of a sudden