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.
Similar Messages
-
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,
SinanPlease 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 -
How to automatically empty the exception queue?
Hi.
I have an exception queue that contains over 140000 messages. Is there some way of making Oracle empty this queue on a regular basis? I have set "dequeue" to "disabled" because I am not interested in this queue's messages, but the queue just continues to grow larger and larger...
Any help would be very appreciated!
Regards,
-ChristerIs this really not possible? Do I have to make a trigger on the table or manually delete it to stop growing?
-
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 advancePlease 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 -
How can i tell what caused a message to go to the exception queue.
For instance say i have a message that has reached its expiration period and goes to the exception queue how would i be able to find out that the reason it went to the exception queue is because it had expired?
version 10g
select * from AQ$<queue_table> will show the reason why the message went to the exception queue.
Edited by: user457357 on May 6, 2009 5:37 PMWhen you define a queue table and queue, there will be an exception queue there automatically - you can't avoid it being created.
-
I am new to AQ. We are using Oracle 11.2.0.3. We will be implementing Normal single subscriber queue. We will be using exisiting error logging table to hadle exception . So exception queue would be redundant for our workflow.
1) Is is possible to create Queue without exception queue?
2) Can we use queue by disabling its exception queue?
3) How can we remove/expire message from exception queue as soon as it enqueued?
Appreciate your input. Thanks.Hello,
1) Is is possible to create Queue without exception queue?
When you create a queue table you always get a default exception queue and there should always be at least one exception queue in a queue table. When you create normal queue an exception queue is not created just the normal queue
2) Can we use queue by disabling its exception queue?
I am not clear on what you are asking with regard to this question. If you enqueue a message into a normal queue and it needs to be moved to the exception queue a queue monitor slave process will move the message from the normal queue to the exception queue. You can only enable an exception queue for dequeue. You cannot prevent a message from being placed on the exception queue if it is appropriate for the system to do this.
3) How can we remove/expire message from exception queue as soon as it enqueued?
You can setup AQ PL/SQL Notification to process any messages which are placed in the default exception queue or use DBMS_AQ.Listener to listen for enqueued messages into the exception queue.
Thanks
Peter -
Error handlers inserting into exception queue?
Hi,
Im currently writing a PL/SQL procedure that handles specific apply errors. The errors that i'm not interested in I would like to remain in the exception queue. How can I insert the LCRs into the exception queue?
Cheers,
WarrenI think i've realised that if you want the lcr to end up in the exception queue you have to call its execute sub-program.
e.g.
lcr.execute(true);
If execute is not called the apply error is effectively deleted/forgotten. -
How to clear outbound Queue in SXMB_MONI
HI Experts,
Unable to process the file in SXMB_MONI as a result the files are getting strucked with the QUEUE and now how to clear this queues for processsing the file...
and another i have configure the server with 611 client but while executing the client of the server is showing 001 and we didn't observe initially as it is working fine but when we observed now it is found
is this has an impact..
do we need to do any other certain configurations at the Server end..
regards,
Kishore> There is no URL in SXMB_ADM, how to provide an url there, and even before we didn't get this problem as the files are successfully processsing for the past 3 months in PDN, and now we are getting this problem.
>
Hello,
I have understood your problem but you are not following the steps which we are mentioning here.
For your above problem you need to follow ONLY step no1 & 2 mentioned in the blog since steps are common for acitvating the proxy and thats way you are getting confused that why I am asking you to follow that blog.
In the blog step 1 will simply help you creat the RFC destination.
Step 2 will help you to use the above RFC destinaiton as an url.
In opionion if you resolve this problem first then it will be easier to solve your queue problem.
Please let me know if you need more help/clarification in this regard i will help you.
Regards,
Sarvesh -
How to throw exception in run() method of Runnable?
Hi, everyone:
I want to know how to throw exception in run() method of interface Runnable. Since there is no throwable exception declared in run() method of interface Runnable in Java API specification.
Thanks in advance,
GeorgeThanks, jfbriere.
I must add though that if your run() methodis
executed after a call to Thread.start(), then
it is not a good choice to throw anyRuntimeException
from the run() method.
The reason is that the thrown exception won't be
handled appropriately by a try-catch block.Why do you say that "the thrown exception won't be
handled appropriately by a try-catch block"? Can you
explain it in more detail?
regards,
George
Because the other thread runs concurrently with and independently of the parent thread, there's no way you can write a try/catch that will handle the new thread's exception: try {
myThread.start();
catch (TheExceptionYouWantToThrowFromRun exc) {
handle it
do the next thing This won't work because the parent thread just continues on after myThread.start(). Start() doesn't throw the exception--run() does. And our parent thread here has lost touch with the child thread--it just moves on to "do the next thing."
Now, you can do some exception handling with ThreadGroup and uncaughtException(), but make sure you understand why the above won't work, in case that was what you were planning to do. -
How to configure JMS queue on OC4J server. Development in JDeveloper 10G
Hi there,
I have to configure a JMS for an Asynchronous process in my Application which will be running in Oracle 10G Application Server. Development Environment is Oracle JDeveloper 10G.
I am facing a problem on how to configure JMS queue.
Steps Followed are:
in the <JDevloperHome>/j2ee/home/config
1. Made the new queue and connection factory's JMS entry in jms.xml.
2. Specifed the queue in oc4j-connectors.xml.
3. played around with application.xml
and tried all combinations, but the message producer always failed to lookup the queue.
Need help on the steps to follow so that the producer can post the message in the queue.
Also please help how to configure the MDB to listen to the queue.
Thanx and Regards
SubhamIf you were dealing with Oracle 10g app server as opposed to standalone, I might be better able to help you.
One thing though, when you are configuring your MDB in the orion-ejb-jar.xml file, do not forget to specify attribute listener-threads, otherwise no matter how many beans you have in your MDB pool, only one bean will be listening to the queue. Many listener-threads equal to max number of beans in pool. -
is there anyway to dequeue exception queue messages
my main queue is multiconsumer
Message was edited by:
JAAi ll answer my question
first set exception queue dequeue enable
BEGIN
dbms_aqadm.start_queue(queue_name => 'aq$_request_qt_e',dequeue => TRUE,enqueue => FALSE);
END;
then dequeue messages with null consumer name ;) -
BPEL Process for AQ Exception Queue
Is there a way to configure AQ adapter to dequeue message from default exception queue. I have tried doing so but it fails to find the exception queue. If not then what are the better ways of handling exception messages for a multiconsumer queue.
I need to enqueue the messages from exception queue once the issue is resolved.
-AAAny one who can help me on this ?
-AA -
Message not moving to default exception queue when max retries reached
Hi
I've set up an advanced queue with max retrie of 5 but when the dequing fails the retry count increments but it never goes to the exception queue. The retry count stays at 6, msg_state = READY, deq_txn_id = RETRY_EXCEEDED. Any ideas?
-- drop queue if it exists
exec dbms_aqadm.stop_queue (queue_name => 'AQ$_JY_METER_ENABLE_QTAB_E');
exec dbms_aqadm.stop_queue (queue_name => 'JY_METER_ENABLE_QUE');
exec dbms_aqadm.drop_queue (queue_name => 'JY_METER_ENABLE_QUE') ;
exec dbms_aqadm.drop_queue_table( queue_table => 'JY_METER_ENABLE_QTAB');
-- create the payload for the messages
CREATE TYPE jy_meter_enablement_typ AS OBJECT
request_id VARCHAR2(30) ,
request_system_code VARCHAR2(20) ,
business_process_ref VARCHAR2(20) ,
request_type_ref VARCHAR2(20) ,
meter_serial_number VARCHAR2(10) ,
message_request_content CLOB
-- Create queue table.
-- This one has a sort list so items will be enqueued first based on priority and then based on enq_time
BEGIN
dbms_aqadm.create_queue_table (queue_table => 'JY_METER_ENABLE_QTAB',
queue_payload_type => 'JY_METER_ENABLEMENT_TYP',
multiple_consumers => TRUE ,
sort_list => 'priority,enq_time' ,
comment => 'Queue table to handle JY Meter Enablement messages');
END;
-- Create Queue based on table
BEGIN
-- retention time set 3600 seconds (ie 1 hour) so the message is kept on the queue for 1 hour after it has been dequeued.
dbms_aqadm.create_queue (queue_name => 'JY_METER_ENABLE_QUE',
queue_table => 'JY_METER_ENABLE_QTAB' ,
max_retries => 5 ,
retry_delay => 2 ,
retention_time => 3600 ,
comment => 'Queue to handle JY Meter Enablement messages in priority/enq_time order');
END;
-- start the queue
BEGIN
dbms_aqadm.start_queue (queue_name => 'JY_METER_ENABLE_QUE');
END ;
-- Add and register a subscriber to the queue to run the Dequeue procedure
BEGIN
dbms_aqadm.add_subscriber (queue_name => 'EMO_METER_MGMT.JY_METER_ENABLE_QUE',
subscriber => SYS.AQ$_AGENT('JY_METER_ENABLE_QUE_SUBSCRIBER',
NULL,
NULL )
dbms_aq.register (SYS.AQ$_REG_INFO_LIST(SYS.AQ$_REG_INFO('JY_METER_ENABLE_QUE:JY_METER_ENABLE_QUE_SUBSCRIBER',
DBMS_AQ.NAMESPACE_AQ,
'plsql://EMO_METER_MGMT.DEQUEUE.dequeue_jy_request',
HEXTORAW('FF'))),1);
END;
-- start the default exception queue
BEGIN
dbms_aqadm.start_queue(queue_name => 'EMO_METER_MGMT.AQ$_JY_METER_ENABLE_QTAB_E',
enqueue => FALSE,
dequeue => TRUE);
END ;
/ThanksSorry, forgot to add db version
select banner from v$version/
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
5 rows selected. -
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 -
How to add Exception handling in Oracle Business rules Function
Hello,
We use to have good number of business rules in our application. So we need to have some functions in BR Composite.
Can some one let me know how to handle exception in Oracle business rules exception( Regular try catch will not compile)
is there any way please let me know.
Edited by: Network22 on Mar 25, 2013 10:21 AMWhy aren't you using por_custom_pkg.custom_validate_req_line to add extra validations.
Ensure that profile POR: Enable Requisition Line Customization is set to Yes if you were to use po_custom_pkg for Requisition line validations.
OAF calls por_custom_pkg at various points depending upon the values in Profile Options:-
POR: Enable Req Distribution Customization
POR: Enable Req Header Customization
POR: Enable Requisition Line Customization
Thanks,
Anil Passi
Maybe you are looking for
-
Error while scanning for Serial-ATA devices.
There was an error while scanning for Serial-ATA devices. I'm not sure how to trouble shoot this. I believe a secondary drive in bay 2 died.
-
Unsupported feature in Mass Case Tester
Hi, I am getting an unsupported feature error in Mass Case Tester when I am trying to use reference data for priming my rulebase. Please let me know what could be the possible cause of this error. Is the use of reference data not supported in the cur
-
ESS & MSS configuration In EP 7.0
Hi friends, I am new in the Portal . I have the requirement to implement ESS and MSS in EP 7.0. can any one send me the step by step document for installation and configuration document of Business package for ESS and MSS. What is the pre-requites fo
-
Bk 7 filed, citi card IIB not on credit report
Ran a credit report and my citi card is no where to be found. Is this something to just ignore?
-
Re: Standard cost estimate CK64
Dear CO Experts When i execute costing run using transaction ck64 (inputs defined in CK40n) i get the following error message. But i am able to successfully update using transaction CK11n and CK24 transactions. Can anyone let me know what is the reas