Dear experts,
I am looking for the system parameter to keep an event with status “Finished” longer in the application messages.
Currently they are deleted after one day (or less than one day).
Dear experts,
I am looking for the system parameter to keep an event with status “Finished” longer in the application messages.
Currently they are deleted after one day (or less than one day).
Hi Iskender.
You might want to review the following documentation:
System administrators can use message archiving functionality to move processed and older application messages to Message Archive for future reference. This might very well be the reason why you see Application Messages disappear after one day or less.
Have a look at the Database Schedule and its parameters:
You will probably want to change the value for parameter HOURS_OLD_ to something greater that 24 (hours)
Please have a look and let us know if that resolves the problem.
Best regards.
Gonzalo.
Also - In IFS Cloud there is a Database Task for cleaning messages “Cleanup Application Message Queues”
Dear
dear
thank you both for your response.
I will test it and get back to you.
Hi guys,
the database task “Cleanup Applications Message Queues” seems to be the right one.
We have at least two database tasks.
One of them has the parameter “Any”:
Does it mean that all status are affacted?
I need to exclude “Finished” because there is already one for this status.
Does anyone have the synax for LIST_OF_QUEUES to exclude a single queue?
I have one queue set for 28 days but want 3 days on all other queues. I’ve tried all ways I can think of.
Any suggestions appreciated!
CURSOR c_message_ids_any_state_ (queues_ VARCHAR2,
limit_ NUMBER) IS
SELECT a.application_message_id,
a.state_date,
a.rowid
FROM fndcn_application_message_tab a
WHERE (a.queue IN (SELECT REGEXP_SUBSTR(queues_, ',^,;]+', 1, LEVEL)
FROM dual
CONNECT BY REGEXP_SUBSTR(queues_, ',^,;]+', 1, LEVEL) IS NOT NULL)
OR a.queue LIKE queues_)
AND (a.tag IS NULL OR a.tag <> 'BATCH')
AND a.state_date < SYSDATE - limit_/86400;
See below an example for LIST_OF_QUEUES = NOTIFICATIONS;OUT1;ERROR
SELECT REGEXP_SUBSTR('NOTIFICATIONS;OUT1;ERROR', ' ^,;]+', 1, LEVEL)
FROM dual
CONNECT BY REGEXP_SUBSTR('NOTIFICATIONS;OUT1;ERROR', ',^,;]+', 1, LEVEL) IS NOT NULL
CURSOR c_message_ids_any_state_ (queues_ VARCHAR2,
limit_ NUMBER) IS
SELECT a.application_message_id,
a.state_date,
a.rowid
FROM fndcn_application_message_tab a
WHERE (a.queue IN (SELECT REGEXP_SUBSTR(queues_, ',^,;]+', 1, LEVEL)
FROM dual
CONNECT BY REGEXP_SUBSTR(queues_, ',^,;]+', 1, LEVEL) IS NOT NULL)
OR a.queue LIKE queues_)
AND (a.tag IS NULL OR a.tag <> 'BATCH')
AND a.state_date < SYSDATE - limit_/86400;
Dear
thank you a lot for the investigation.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.