Purge queue

is there a way to purge a queue or topic of all messages from the command line? In other words, is there a way to delete all the existing messages already in an existing queue or topic?

From the command line, I am sure there is a command within the runmqsc command. But I am not sure what it is..
Through a program you could just do destructive reads with a receiver that does a "GetWait" on the queue.
//Start session and etc....
          QueueReceiver queueReciever = session.createReceiver(Queue object);
          boolean messagefound = true;
     //Start connection
          connection.start();
          while (messagefound) {
Message m = queueReciever.receive(1000);
if (m != null) {
messagesCleared++;
}else {
messagefound = false;
//Close session and connection once all messages have been read off.
     session.close();
     connection.close();

Similar Messages

  • Purging queues in Oracle 8i

    Hi,
    I've got an old Oracle 8i (8.1.7.3.0) database that has some queues that have been running for years with retention_time=-1 so there are gigabytes of old messages taking up approx 200GB of disk space. Here's an example of how one of the queues looks:
    BEGIN DBMS_AQADM.CREATE_QUEUE(
    Queue_name => 'ABC.MY_Q',
    Queue_table => 'ABC.MY_Q_TAB',
    Queue_type => 0,
    Max_retries => 5,
    Retry_delay => 0,
    Retention_time => -1,
    dependency_tracking => FALSE,
    comment => 'My Queue);
    END;
    My question is how best to remove the old messages ? I'm quite happy to start afresh with zero messages in the queue tables. From the research I've done I've come up with these possibilities:
    1. Allter the queues to have a sensible retention time e.g.
    DBMS_AQADM.ALTER_QUEUE(
    Queue_name => 'ABC.MY_Q',
    Retention_time => 60 * 60 * 24 * 7);
    Question - will this automatically cause all older messages to be removed ? If yes, is it a slow operation for hundreds of millions of messages and does it require lots of undo tablespace ? If no, then what other steps are required to purge the data older than the new retention time ?
    2. Stop, drop, recreate and start the queues.
    Question - will this also be a slow operation for hundreds of millions of messages and does it require lots of undo tablespace ?
    3. Truncate the queue tables.
    Question - is this safe ? Will behind the scenes objects get screwed up ? Perhaps after truncating the tables I should drop and recreate the queues and queue tables ?
    Thanks in advance for your help,
    Colm
    Edited by: 802408 on 14-Oct-2010 08:52

    As i see it your only option is to drop and recreate, I'm assuming you don't want any of the messages that are held? If not then stop, drop and recreate with a sensible retention time.
    If you allow oracle to remove the messages you will still be left with a huge queue table as it will not reclaim the space.
    The drop operation should be quick and will not cause undo problems - assuming you don't want to try and keep any of the messages to put back on to the recreated queue.
    Do not manually truncate the queue tables - this is not supported and not recommended, if you are happy to do this then the best approach is to drop and recreate.
    Thanks
    Paul
    Edited by: PaulTill2508 on Oct 16, 2010 12:05 PM

  • Why are messages not dequeuing and stuck in the ready state?

    Messages are successfully enqueueing but not dequeuing and are stuck in ready state (STATE = 0).  The ENQ_TIME is 5 hours ahead of system time.  In one environment, AQ is working (10g 10.2.0.4.0).  In the other environment, it is not working (11g 11.2.0.3.0).
    I just did the following:
    1. Purged queue table
    2. Stopped queues
    3. Dropped queues
    4. Dropped queue table
    5. Created queue table
    6. Created queues
    7. Started queues
    I tested once and a record was inserted in the queue table:
    MSGID      <msgid>
    CORRID     
    PRIORITY      1
    STATE      0
    DELAY     
    EXPIRATION     
    TIME_MANAGER_INFO     
    LOCAL_ORDER_NO      0
    CHAIN_NO      0
    CSCN      0
    DSCN      0
    ENQ_TIME      12/23/2014 4:33:43.338902 PM
    ENQ_UID      <enq_uid>
    ENQ_TID      <enq_tid>
    DEQ_TIME     
    DEQ_UID     
    DEQ_TID     
    RETRY_COUNT      0
    EXCEPTION_QSCHEMA     
    EXCEPTION_QUEUE     
    STEP_NO      0
    RECIPIENT_KEY      0
    DEQUEUE_MSGID     
    SENDER_NAME     
    SENDER_ADDRESS     
    SENDER_PROTOCOL     
    USER_DATA      <user_data>
    USER_PROP     
    Notice the RETRY_COUNT is 0.  The ENQ_TIME is 5 hours ahead.  In the procedures to enqueue and dequeue, there are no errors.
    Following is the plsql to enqueue:
    CREATE OR REPLACE PACKAGE BODY
    pkg_2
    AS
        FUNCTION queue_create_thing ( <parameters> )
            RETURN NUMBER
        IS
            enqueue_options     dbms_aq.enqueue_options_t;
            message_properties  dbms_aq.message_properties_t;
            message_handle      RAW(16);
            v_message           msg_type;
            v_thing_id          things.id%TYPE;
        BEGIN
            v_message := msg_type( <parameters> );
            dbms_aq.enqueue(queue_name => '<queue name>',
                            enqueue_options => enqueue_options,
                            message_properties => message_properties,
                            payload => v_message,
                            msgid => message_handle);
            RETURN v_thing_id;
        EXCEPTION
            WHEN OTHERS
            THEN
               errpkg.record_and_stop (SQLCODE);
        END queue_create_thing;
        PROCEDURE queue_delete_thing( <parameters> )
        IS
            enqueue_options     dbms_aq.enqueue_options_t;
            message_properties  dbms_aq.message_properties_t;
            message_handle      RAW(16);
            v_message           msg_type;
        BEGIN
            v_message := msg_type( <parameters> );
            dbms_aq.enqueue(queue_name => '<queue name>',
                            enqueue_options => enqueue_options,
                            message_properties => message_properties,
                            payload => v_message,
                            msgid => message_handle);
        END;
    END pkg_2;
    Following is the code to dequeue:
    CREATE OR REPLACE PACKAGE BODY
    pkg_1
    AS 
        PROCEDURE create_thing ( context IN RAW,
                                    reginfo IN sys.aq$_reg_info,
                                    descr IN sys.aq$_descriptor,
                                    payload IN RAW,
                                    payloadl IN NUMBER )
        IS 
            dequeue_options dbms_aq.dequeue_options_t;
            message_properties dbms_aq.message_properties_t;
            message_handle RAW(16);
            message msg_type;
        BEGIN
            dequeue_options.msgid := descr.msg_id;
            dequeue_options.consumer_name := descr.consumer_name;
            DBMS_AQ.DEQUEUE(queue_name => descr.queue_name,
                            dequeue_options => dequeue_options,
                            message_properties => message_properties,
                            payload => message,
                            msgid => message_handle);
            pkg_2.create_thing( p_thing_id => message.thing_id );
            UPDATE table t
               SET creation_complete = 1
             WHERE id = message.thing_id;
            COMMIT;
        EXCEPTION
            WHEN OTHERS
            THEN
                ROLLBACK;
                plog.error(SQLERRM);
                plog.full_call_stack;
        END create_thing;
        PROCEDURE delete_thing ( context IN RAW,
                                    reginfo IN sys.aq$_reg_info,
                                    descr IN sys.aq$_descriptor,
                                    payload IN RAW,
                                    payloadl IN NUMBER )
        IS 
            dequeue_options dbms_aq.dequeue_options_t;
            message_properties dbms_aq.message_properties_t;
            message_handle RAW(16);
            message msg_type;
        BEGIN
            dequeue_options.msgid := descr.msg_id;
            dequeue_options.consumer_name := descr.consumer_name;
            DBMS_AQ.DEQUEUE(queue_name => descr.queue_name,
                            dequeue_options => dequeue_options,
                            message_properties => message_properties,
                            payload => message,
                            msgid => message_handle);
            pkg_2.delete_thing( p_thing_id => message.thing_id );
            COMMIT;
        EXCEPTION
            WHEN OTHERS
            THEN
                ROLLBACK;
                plog.error(SQLERRM);
                plog.full_call_stack;
        END delete_thing;   
    END pkg_1;

    Following is the code to create the queue:
    BEGIN
      SYS.DBMS_AQADM.STOP_QUEUE ( QUEUE_NAME => '<queue name>');
      SYS.DBMS_AQADM.DROP_QUEUE ( QUEUE_NAME => '<queue name>');
    END;
    BEGIN
      SYS.DBMS_AQADM.CREATE_QUEUE
        QUEUE_NAME          =>   '<queue name>'
       ,QUEUE_TABLE         =>   '<queue table>'
       ,QUEUE_TYPE          =>   SYS.DBMS_AQADM.NORMAL_QUEUE
       ,MAX_RETRIES         =>   5
       ,RETRY_DELAY         =>   0
       ,RETENTION_TIME      =>   0
       ,COMMENT             =>   'Queue for processing creation of things'
    END;
    BEGIN
      SYS.DBMS_AQADM.START_QUEUE
        QUEUE_NAME => '<queue name>'
       ,ENQUEUE => TRUE
       ,DEQUEUE => TRUE
    END;

  • Oracle Service Bus 11gR3(11.1.1.3.0) Clustering Configuration Error.

    Hi ,
    I am trying to configure a domain with a AdminServer and 2 Managed servers hosting Oracle Service Bus.
    I created a admin server and it started up fine. Then i extended the domain and checked on Oracle Service Bus and tried to create two managed servers and assigned it to a cluster.
    Though when i created a managed server assigned to a cluster it was all working fine. I would like to create another managed server and assign it to the cluster.
    Any help with this problem would be very helpful.
    As soon as I assign two servers to the cluster I get an exception and the Configuration Wizard throws exception.
    Jan 23, 2011 2:54:30 PM [THREAD: WizardController] com.oracle.cie.domain.script.jython.CommandExceptionHandler handleException
    SEVERE: Error: assign() failed.
    com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.ScriptException: Unable to find JMSQueue wli.reporting.purge.queue
    at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:51)
    at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:1538)
    at com.oracle.cie.domain.script.jython.WLScriptContext.assign(WLScriptContext.java:956)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.python.core.PyReflectedFunction.__call__(Unknown Source)
    at org.python.core.PyMethod.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyObject.invoke(Unknown Source)
    at org.python.pycode._pyx0.assign$10(<iostream>:61)
    at org.python.pycode._pyx0.call_function(<iostream>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.pycode._pyx3.f$0(<iostream>:95)
    at org.python.pycode._pyx3.call_function(<iostream>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyCode.call(Unknown Source)
    at org.python.core.Py.runCode(Unknown Source)
    at org.python.util.PythonInterpreter.execfile(Unknown Source)
    at org.python.util.PythonInterpreter.execfile(Unknown Source)
    at com.oracle.cie.domain.script.jython.WLSTOfflineInterpreterHelper.executeScript(WLSTOfflineInterpreterHelper.java:138)
    at com.oracle.cie.domain.WLSAutoDeployer.executeEmbeddedScript(WLSAutoDeployer.java:5286)
    at com.oracle.cie.domain.WLSAutoDeployer.executeAllEmbeddedScripts(WLSAutoDeployer.java:5168)
    at com.oracle.cie.domain.WLSAutoDeployer.executeEmbeddedScriptsByState(WLSAutoDeployer.java:5227)
    at com.oracle.cie.domain.WLSAutoDeployer.executeAllEmbeddedScriptsByState(WLSAutoDeployer.java:1449)
    at com.oracle.cie.domain.WLSAutoDeployer.executeScripts(WLSAutoDeployer.java:330)
    at com.oracle.cie.domain.assignment.ServerClusterAssignment.acceptChanges(ServerClusterAssignment.java:62)
    at com.oracle.cie.domain.assignment.AssignmentTree.acceptChanges(AssignmentTree.java:465)
    at com.oracle.cie.domain.operation.AssignmentOperation.acceptChanges(AssignmentOperation.java:104)
    at com.oracle.cie.wizard.domain.gui.tasks.AssignmentGUITask.saveChanges(AssignmentGUITask.java:256)
    at com.oracle.cie.wizard.domain.gui.tasks.AssignmentGUITask.onLeave(AssignmentGUITask.java:280)
    at com.oracle.cie.wizard.domain.gui.tasks.AssignmentGUITask.okNext(AssignmentGUITask.java:142)
    at com.oracle.cie.wizard.WizardController.nextTask(WizardController.java:592)
    at com.oracle.cie.wizard.WizardController.run(WizardController.java:469)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: com.oracle.cie.domain.script.ScriptException: Unable to find JMSQueue wli.reporting.purge.queue
    at com.oracle.cie.domain.script.ScriptExecutor.pinJMSDestForEmbeddedScript(ScriptExecutor.java:3343)
    at com.oracle.cie.domain.script.ScriptExecutor.processAssignmentByName(ScriptExecutor.java:1463)
    at com.oracle.cie.domain.script.jython.WLScriptContext.assign(WLScriptContext.java:952)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.python.core.PyReflectedFunction.__call__(Unknown Source)
    at org.python.core.PyMethod.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyObject.invoke(Unknown Source)
    at org.python.pycode._pyx0.assign$10(<iostream>:61)
    at org.python.pycode._pyx0.call_function(<iostream>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.pycode._pyx3.f$0(<iostream>:99)
    at org.python.pycode._pyx3.call_function(<iostream>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyCode.call(Unknown Source)
    at org.python.core.Py.runCode(Unknown Source)
    at org.python.util.PythonInterpreter.execfile(Unknown Source)
    at org.python.util.PythonInterpreter.execfile(Unknown Source)
    at com.oracle.cie.domain.script.jython.WLSTOfflineInterpreterHelper.executeScript(WLSTOfflineInterpreterHelper.java:139)
    at com.oracle.cie.domain.WLSAutoDeployer.executeEmbeddedScript(WLSAutoDeployer.java:5286)
    at com.oracle.cie.domain.WLSAutoDeployer.executeAllEmbeddedScripts(WLSAutoDeployer.java:5168)
    at com.oracle.cie.domain.WLSAutoDeployer.executeEmbeddedScriptsByState(WLSAutoDeployer.java:5227)
    at com.oracle.cie.domain.WLSAutoDeployer.executeAllEmbeddedScriptsByState(WLSAutoDeployer.java:1450)
    at com.oracle.cie.domain.WLSAutoDeployer.executeScripts(WLSAutoDeployer.java:330)
    at com.oracle.cie.domain.assignment.ServerClusterAssignment.acceptChanges(ServerClusterAssignment.java:62)
    at com.oracle.cie.domain.assignment.AssignmentTree.acceptChanges(AssignmentTree.java:466)
    at com.oracle.cie.domain.operation.AssignmentOperation.acceptChanges(AssignmentOperation.java:104)
    at com.oracle.cie.wizard.domain.gui.tasks.AssignmentGUITask.saveChanges(AssignmentGUITask.java:256)
    at com.oracle.cie.wizard.domain.gui.tasks.AssignmentGUITask.onLeave(AssignmentGUITask.java:280)
    at com.oracle.cie.wizard.domain.gui.tasks.AssignmentGUITask.okNext(AssignmentGUITask.java:143)
    Thanks
    Edited by: karpra on Jan 23, 2011 3:19 PM

    Anuj,
    Thanks for your reply.
    May be i was not too clear in my previous post.
    I do not see this problem when i start the managed servers.
    I stumble across this problem when i try to configure a cluster containing two managed servers in the configuration wizard. Earlier i had run the rcu utility while installing OSB on top of weblogic server.
    So when i try to create a domain with osb it checks for DEV_SOAINFRA and i change the default derby connection to oracle(my database) and then to test i tried creating a cluster with one managed server it seemed to be working fine.
    Now i tried creating two managed servers in a cluster in configuration wizard as soon as i try to assign one managed server to cluster its fine , once i assign the second managed server it fails with that exception and the configuration wizard displays error occured and it terminates.
    The exact problem is as soon as i assign two managed servers to a cluster it fails(configuration wizard)
    I would guess its a problem creating a distributed jsm system with queue and topics that osb uses.
    Note : - It would be helpful as well if i can somehow create a distributed jms system used by osb for other managed server (using WLST), and then i can create a new managed server in the Admin console and assign it to the cluster as well.
    Edited by: 698740 on Jan 24, 2011 4:42 AM

  • OSB JMS resources in a cluster

    Hi,
    I am creating an OSB cluster with multiple managed servers using a script. I would like to know what resources (JMS) are needed and how they should be targeted so that reporting works.
    Best regards
    Dimo

    I think I have found out what is required by the OSB:
    1. DataSource deployed in the cluster AND on the admin server for the reporting (wlsbjmsrpDataSource), scripts to drop and create the tables are located in ${osb_home}/dbscripts/oracle/
    2. JMS Module containing:
    2.1. 3 Connection factories:weblogic.wlsb.jms.transporttask.QueueConnectionFactory, wli.reporting.jmsprovider.XAConnectionFactory, wli.reporting.jmsprovider.NonXAConnectionFactory
    2.2. 8 Queues - QueueIn, wli.reporting.jmsprovider.queue, wli.reporting.jmsprovider_error.queue, wli.reporting.purge.queue, wlsb.internal.transport.task.queue.email, wlsb.internal.transport.task.queue.file, wlsb.internal.transport.task.queue.ftp, wlsb.internal.transport.task.queue.sftp
    I am not sure if that list is complete as it has been a bit of reverse engineering to find it out...

  • Error in  purging failed workflow emails queue

    Hi,
    Oracle EBS:11.5.10.2
    OS: AIX 5.3
    after resolving the workflow issue i had a stopped queue of of around 5000 mails.
    to purge that queue I followed the oracle Action plan.
    1. Stop Workflow Agent Listeners and Mailers
    2. Find the tablespace where indexes on corrid for queue tables are created :
    select distinct tablespace_name
    from dba_indexes,dba_queues
    where index_name like 'WF%N1'
    and table_name=queue_table
    and name like 'WF%';
    3.
    update wf_notifications
    set mail_status = 'SENT'
    where status in ('OPEN', 'CANCELED')
    and mail_status in ('MAIL', 'INVALID')
    commit;
    4. Rebuild mailer's queue :
    sqlplus apps/APPSpw @$FND_TOP/patch/115/sql/wfntfqup APPS APPSpw APPLSYS
    when i reuild the queue I am facing with the error:
    error faced while running the script(rebuild mailers queue)
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:02.67
    Commit complete.
    Elapsed: 00:00:00.01
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:03.93
    Commit complete.
    Elapsed: 00:00:00.00
    declare
    ERROR at line 1:
    ORA-20000: Oracle Error = -942 - ORA-00942: table or view does not exist
    ORA-06512: at line 281
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    appldev@ebtstdb on /ebdevdbh/app/ebprdappl/fnd/11.5.0/patch/115/sql #
    regards,

    This is the Text forum. This post is in the wrong forum. Any replies should be posted to the following duplicate thread in another forum:
    issue in clearing workflow notification

  • Messages waiting indefinetely in queue -- how to purge

    Hi All,
    I have around 900 messages in the outbound queue waiting in the past 2 days .
    Is there any way to purge sceduled messages in the Queue (SMQ1,SMQ2)?
    My messages are indefinetely growing in the message queue without processing. I understand I need to configure a background job for that.
    Which transaction code should i use to schedule Backgound job for Messages ( not BPM) ?
    Is there any way I can purge these messages from the queue before they get processed by XI?
    if yes please let me know the way.
    Because of this a scenario I run today is scheduled in the queue after 3 days and my receiver is unable to get the message.
    Regards,
    Meher

    Hi All,
    Thanks All for helping me.
    Initiated a search for all the messages waiting on all the Queues.
    Status of all the messages shows : <b>To Be Delivered</b>
    Messages were processed successfully till some date. we have a system down after that.
    From then on messages are not being processed.
    Am I missing in the job configuration for the Queues.
    Queue status is displayed as Ready ( no errors)
    Regards,
    Meher
    This is not a production environment.

  • Purge a queue with JAVA API

    Hi,
    Is it possible to purge a queue with the JAVA API ?
    I have not found anything ...
    I am also trying to browse archived messages (state 2), the "browseQueue" method does only browse the ready messages (state 0).
    Is it possible to browse archived messages ?? (in java)
    Thanks in advance.

    found it, I had to write
    "ormi://<some-ip>:12401/orabpel" for java.naming.provider.url

  • MDB's keep consuming messages after queue purged

    I have a pool of 5 mdbs processing messages from a queue. The queue had 500 messages in it.
    I used the imqcmd purge dst ... command to clear a queue.
    The mdb's continued to consume messages. I would think that at most 5 messages could have been in the middle of processing and then it would stop but it processed another 30 messages before I killed the app server. I assume it would have gone through the 500.

    I have a pool of 5 mdbs processing messages from a queue. The queue had 500 messages in it.
    I used the imqcmd purge dst ... command to clear a queue.
    The mdb's continued to consume messages. I would think that at most 5 messages could have been in the middle of processing and then it would stop but it processed another 30 messages before I killed the app server. I assume it would have gone through the 500.

  • How to purge exception queue

    I would like to write a store procedure to purge exception queue according to queue and corr_id, but the problem is corr_id needs to be passed as a variable.
    declare
              po_t dbms_aqadm.aq$_purge_options_t;
              begin
              po_t.block := FALSE;
              dbms_aqadm.purge_queue_table(queue_table => 'hari_bpfqueuetable',
              purge_condition => 'queue = ''AQ$_HARI_BPFQUEUETABLE_E''',
              purge_options => po_t);
              end;
    The above script works fine, but once I add corr_id to purge condition as blow, it gives error.Can anybody help on that? Thanks in advance
    declare
              po_t dbms_aqadm.aq$_purge_options_t;
              begin
              po_t.block := FALSE;
              dbms_aqadm.purge_queue_table(queue_table => 'hari_bpfqueuetable',
              purge_condition => 'queue = ''AQ$_HARI_BPFQUEUETABLE_E'' and corr_id = ''???''',
              purge_options => po_t);
              end;

    user477534,
    Just a suggestion.
    What about concatenation?
    dbms_aqadm.purge_queue_table(queue_table => 'hari_bpfqueuetable',
    purge_condition => 'queue = ''AQ$_HARI_BPFQUEUETABLE_E'' and corr_id = ''' || YOUR_VAR || '''',
    purge_options => po_t);Good Luck,
    Avi.

  • How to purge Workflow queue after R12 upgrade before starting WF Mailer?

    Hi,
    We are about to upgrade to R12.1.3 from R11.5.9.
    As part of the testing, I configured and started the Workflow Mailer in the new system. As soon as I did that, the system started sending a ton of notifications regarding past Requisition approvals apparently queued in the system. WF Mailer has been down since I did the last upgrade test.
    We plan to approve all requisitions before the cutover in the old system, so there should be no email notifications pending. Is there a way of updating msg_state of those notifications in the wf_notification_out table with a value of "READY", so we can make sure that we will have a clean system and users will not receive any notifications regarding the past requisition approvals?
    Thanks,
    Sinan

    Please see these docs.
    Note: 847889.1 - Stop Workflow Notification Emails During Clone
    Note: 828812.1 - How To Stop Old Outbound Workflow Notification Email Messages During Clone Activity
    Note: 603003.1 - How To Remove Workflow Data On A Test Or Cloned Instance
    Note: 372933.1 - How to purge e-mail notifications from the workflow queue so the e-mail is not sent
    Note: 736508.1 - How to Cancel Email Notifications for Particular Workflow Type
    Regards,
    Hussein

  • Incidents Report Queue isn't purging

    Hi There,
    Using Antigen 9.2.1097 SP2 for SMTP server on Win2003 and although the "Purge after 91 days" check box for the Incidents report queue is enabled right now there are incidents going clear back to April 2014.
    The quarantine report queue is configured the same way yet it seems to be working with messages going back to only October 28, 2014.
    I have removed the purge check mark and clicked 'apply'  Then I re-enabled it and also changed the time to 101 days.  Then I waited overnight since I know the purge routine doesn't take effect right away.  In fact I waited multiple evenings
    with the same setting and no change.
    I have clicked the "Clear Log" button at the top right which I'm assuming should wipe out ALL the incidents and it gave feedback indicating it worked however I still have every single incident in the log.
    I'm only concerned with running out of disk space here.
    Any ideas or advice welcome!
    PS: As the Windows 2003 server is fully updated this issue has been surviving reboots as well since it had to be rebooted numerous times since October 28, anyway in order to apply security patches.
    Thanks!
    Sam

    Hi Sam,
    1) How can I monitor the database size in order that I might be able to decide if and when to uninstall / reinstall Antigen?  Where is this incidents database and can you confirm that it's true there's a 2GB limit oh and what will happen, exactly,
    when that's reached?  Will the computer catch on fire, do you suppose?  I sure hope it won't break in half to reveal all the smoke and mirrors inside of it, anyway! ;)
    Answer: You can monitor the size of your Incidents Database by looking at the size of the incident.mdb file located in your Antigen directory. There is a 2 GB limit for this file, once this limit is hit the file is corrupted and can no longer be purged by
    the Antigen option to 'purge after.' Can you verify the size of this file now? It is possible it is past the 2GB limit already and this is why your incidents are not purging.
    2) Can you point me to best practice method for that export and uninstall / reinstall you suggested so that I might have it handy in the event I determine, using your answers to point 1), that I'll need to buy myself a bit more time before we replace
    Antigen with another system?  (probably in August when things are a bit quieter in the office).
    Answer: You can export you incident list by choosing Export in Report -> Incidents --> Export. This will export your incidents to a .txt file to a location of your choice.
    Antigen stores program settings as well as scanning activity information, including the Quarantine Area, on the file system. If you want, you can relocate these files at any time after installation.
    To relocate data files :
    1. Stop all Exchange services and any Antigen services that might still be running after Exchange is stopped.
    2. Create a folder in the location where you want to move the files.
    3. Move all the data files (files with the .adb extension) and the Quarantine and Engines folders.
    4. Change the following registry key to reflect the new location: HKEY_LOCAL_MACHINE\SOFTWARE\Sybari Software\Antigen for Exchange\DatabasePath.
    5. Set the security for the new location. Right-click the folder of the new location, and then select Properties. On the Security tab, add a user called “Network Service” with Full Control privileges. This is necessary so that logging is performed for the
    SMTP Scan Job.
    6. Restart the Exchange services.
    If you have any questions you can reference the link below
    https://technet.microsoft.com/en-us/library/bb914021.aspx
    Best Regards,
    Joyce
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected].

  • Purge / recover messages on Queues

    I have done a simple application that sends messages to a queue. This messages are dequeued by a MDB.
    Yesterday i was testing the app and the MDB throwed an Exception in the on Message so all messages i sent stayed enqueued.
    Today i have fixed the bug and when i post a new message is consumed by MDB, but the messages enqueued yesterday during the MDB error are not proccessed.
    Imagine the MDB throws an Exception while gets a Database connection or try to call a webservice on a network error.
    How can i make the MDB listen to old messages?
    Regards

    Hi - thanks for replying. I run my own imap server - it's plain vanilla dovecot. I'll look into the settings there and see what might be off, although I suspect it's an iphone issue because all other imap clients I have used work just fine.
    The deleted messages are indeed moved to Trash on Server as I configured it, but they are only marked as deleted without a way to actually be purged (or filtered out when viewing).
    Cheers.

  • Re-triggering event structures after queue purged

    I have a vi built with an event structure that allows the user to stop the tests.  I am using the flush queue subvi in the producer loop to remove the remaining elements.  Then the user may fix the problem and again press start, starting the tests all over. 
    About 50% of the time, the event structure will not restart, and the vi will need to be stopped and re-started. 
    There must be something I am missing that is not allowing the event structure to re-start. 
    Is the position of the flush queue correct in my snippet?  
    What could cause the event structure to not respond and how can I troubleshoot it?
    Thanks.
    metzler CLAD
    Attachments:
    producer snippet.png ‏56 KB

    You should take more care about your error handling. Propably you just miss the errors that cause this behavior.
    * At the while loop, use shift-registers for the error wire.
    * I also recommend you to place a case around the event structure that catches errors and stop the loop.
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • How to purge the workflow which is in process

    Hi Friends,
    I am facing one problem in the AME Workflow.
    when a user submit a page for approval process, workflow engine invokes . and in the hr_api_transcations table transacation id is created for that workflow transacation. now the problem is, if i purge that workflow process using concurrent program 'PURGE OBSELETE WORKFLOW RUNTIME DATA' . it is deleting the workflow. but when i see the hr_api_transacation table still the transacation id for that workflow is active.
    Example :-
    when i see through through the responsibility (workflow administrator web applications)=>Administrator workflow=>Status monitor
    when i type the item key say some x and search for the workflow status i cant see the workflow status. i can see it is deleted.
    but when i type the same item key in the hr_api_transacation
    like :- select * from hr_api_transactions where item_key='X' i can see the status of this transacation is active and workflow is in pending.
    can anyone explain me why system is behaving like.. how to stop the workflow process and how to delete the transacation id from the table.
    Thanks in advance

    Please check below nots
    453137.1 (Oracle Workflow Best Practices Release 12 and Release 11i) sections titled "Choosing Not to Use E-mail Notifications" and "Cleaning Up the WF_NOTIFICATION_OUT Queue"
    How to purge e-mail notifications from the workflow queue so the e-mail is not sent [ID 372933.1]
    264191.1 describes how to Purging Oracle Workflow tables of obsolete workflow runtime information for completed workflow processes is a required regular maintenance tas
    Notification Mailers Unavailable
    How to delete undelivered notifications from WF mailer

Maybe you are looking for

  • Error while Creating SAP Transactional iView

    Hi I am trying to create an SAP Transaction iview to connect with SAP CRM system, i selected property WebHTML but i coule notable to connect to that TCode iview. For this i created a System with User Credentials that will map to the back end system.

  • Strange file in Applications folder, placeholder.txt

    Saw this file today, placeholder.txt, this file wasn't here before, it is in my Applications folder and on the dock as well, with contents (copy pasted): Placeholder to make sure directory gets created during a synch File creation date January 16, 20

  • Bug report status

    Hi, I have previously highlighted an issue with the Xperia C3 D2533 running 5.0, where the back camera is producing low quality images.This is from the Galaxy Note 1 While this is from the Xperia C3 What is appaling is if you zoom in, the N7000 has m

  • AppleScript to perform Safari file upload?

    I need an AppleScript to handle the file picker dialog in Safari for an upload operation. I have most of it working, except for the small fact that I can't figure out how to actually SELECT the file from the list. Mac OS X 10.7.3, Safari 5.1.3 Here's

  • Credit Card Hold Even Though Transaction Could Not Be Completed

    I just tried ordering one of the Lenovo Laptops (U530) through the online store, and when I checked out as a guest and tried paying I got an error message saying that the transaction cannot be processed. However, on my credit card account the charge