Concurrent Managers Not Working Check This
Concurrent Managers Not Working Check This
Set serveroutput on
UPDATE per_all_people_f
SET email_address = 'dummy@test.com'
WHERE email_address IS NOT NULL;
UPDATE fnd_user
SET email_address = 'dummy@test.com'
WHERE user_name NOT IN
('ANONYMOUS',
'AUTOINSTALL',
'INITIAL SETUP',
'FEEDER SYSTEM',
'CONCURRENT MANAGER',
'STANDALONE BATCH PROCESS')
AND email_address IS NOT NULL;
/
Commit:
/
UPDATE jtf_rs_resource_extns
SET source_email = 'dummy@test.com'
WHERE source_email IS NOT NULL;
update wf_local_roles
set notification_preference='QUERY'
where orig_system in ('FND_USR','PER')
and name NOT IN ('Xuser1','Xuse2')
update fnd_user_preferences
set preference_value='QUERY'
where preference_name='MAILTYPE' and module_name='WF'
and user_name not in ('-WF_DEFAULT-',
'Xuser1','Xuser2')
update wf_local_roles
set notification_preference='QUERY'
madhanappsdba.blogspot.com/2015/10/inactive-no-this-is-what-you-see-this.html 1/16
5/20/2019 Bounce Apache server in R12 | ORACLE APPS DBA
update fnd_user_preferences
set preference_value='MAILHTML'
where preference_name='MAILTYPE' and module_name='WF'
and user_name <> '-WF_DEFAULT-';
UPDATE wf_local_roles
SET email_address = 'dummy@test.com'
WHERE email_address IS NOT NULL
AND (ORIG_SYSTEM = 'PER' OR ORIG_SYSTEM = 'PER_ROLE');
/
Commit:
/
update wf_notifications
set mail_status = 'SENT'
where end_date is not null
and status = 'CLOSED'
and MAIL_STATUS = 'MAIL';
3 View comments
https://play.google.com/store/apps/details?id=appinventor.ai_pshreedhar.PLSQL_Review1
madhanappsdba.blogspot.com/2015/10/inactive-no-this-is-what-you-see-this.html 2/16
5/20/2019 Bounce Apache server in R12 | ORACLE APPS DBA
This purges the WF_NOTIFICATION_OUT queue and rebuilds it with data currently in the
WF_NOTIFICATIONS table. This is what purges all notifications
waiting in the queue to be sent. It will then populate the queue with the current data in the
WF_NOTIFICATIONS table.
Only notifications with mail_status = 'MAIL' and status = 'OPEN' will be re-enqueued in the
WF_NOTIFICATION_OUT queue and sent by the mailer.
update fnd_svc_comp_param_vals
set parameter_value = '&EnterEmailID'
where parameter_id =
( select parameter_id
from fnd_svc_comp_params_tl
where display_name = 'Test Address'
);
madhanappsdba.blogspot.com/2015/10/inactive-no-this-is-what-you-see-this.html 3/16
5/20/2019 Bounce Apache server in R12 | ORACLE APPS DBA
Here are steps/events for Oracle Workflow Notification Outbound Processing(eMail from Oracle
Applications Workflow to Users)
1.When workflow Engine determines that a notification message must be sent, it raises an event in BES
(Business Event System) oracle.apps.wf.notifications.send
Event is raised with Notification ID (NID) as event key
2. There is seeded subscription to this Event
3. Event is placed on WF_DEFERRED agent
4.Event is dequeued from WF_DEFERRED and subscription is processed
5. Subscription places event message to WF_NOTIFICATION_OUT agent.
6.Notification Mailer dequeues message from WF_NOTIFICATION_OUT agent and
6.1convert XML representation of notification into MIME encoded message (Multi-purpose Internet Mail
Extensions) and
6.2 Send message by SMTP (Simple Mail Transfer Protocol) to intended user (If Test Address/Override
Address is set then email is sent to Test Address
mail_status >> SENT means mail has gone out of mailer to user
madhanappsdba.blogspot.com/2015/10/inactive-no-this-is-what-you-see-this.html 4/16
5/20/2019 Bounce Apache server in R12 | ORACLE APPS DBA
You can also use script wfver.sql in FND_TOP/sql to find version of workflow in Apps.
PARAMETER_NAME VALUE
------------------------------ ------------------------------
Inbound Server Name wfmailer.abc.com
Username wftst
Password oracle
Outbound Server Name wfmailer.abc.com
Reply-to Address wftst@abc.com
commit;
There are 141 messages with status `MAIL¿, this status should remain very short and then progress to
status `SENT¿.
: OAM Login > Site Map > Workflow > Service Components.
These same detail are also given in the output from script $FND_TOP/sql/wfver.sql
13 rows selected.
sqlplus apps/
select running_processes
from fnd_concurrent_queues
where concurrent_queue_name = 'WFMLRSVC';
select component_status
from fnd_svc_components
where component_id =
(select component_id
from fnd_svc_components
where component_name = 'Workflow Notification Mailer');
Possible values:
RUNNING
STARTING
STOPPED_ERROR
DEACTIVATED_USER
DEACTIVATED_SYSTEM
declare
p_retcode number;
p_errbuf varchar2(100);
m_mailerid fnd_svc_components.component_id%TYPE;
begin
-- Find mailer Id
-----------------
select component_id
into m_mailerid
from fnd_svc_components
where component_name = 'Workflow Notification Mailer';
--------------
-- Stop Mailer
--------------
fnd_svc_component.stop_component(m_mailerid, p_retcode, p_errbuf);
commit;
end;
/
declare
p_retcode number;
p_errbuf varchar2(100);
m_mailerid fnd_svc_components.component_id%TYPE;
begin
-- Find mailer Id
-----------------
select component_id
into m_mailerid
from fnd_svc_components
where component_name = 'Workflow Notification Mailer';
--------------
-- Start Mailer
--------------
madhanappsdba.blogspot.com/2015/10/inactive-no-this-is-what-you-see-this.html 7/16
5/20/2019 Bounce Apache server in R12 | ORACLE APPS DBA
TO configure workflow
Workflow Mailer Notification settings.
Log on to OAM
Click on Workflow Administrator -> Business Event Local System
Change VIS.ABC.COM to PROD.ABC.COM
Click on Workflow Manager ->Notification Mailer -> Workflow Notification Mailer -> Edit
Edit outbound Email Account (SMTP) -> Server Name =Concurrent Tier
IMAP Server -> Server Name = xxx.xxx.x.xx
Username/password: wfvis/xxxxx :
Reply-To Address: wfvis@abc.com
After executing autoconfig make sure Workflow System Administrator is NOT set to SYSADMIN .
Please set this to ""Workflow Administrator Web (New)""
Following script will take care of this .
sqlplus apps/""pwd""
SQL> update wf_resources set text = 'FND_RESP|FND|FNDWF_ADMIN_WEB_NEW|STANDARD' where
name = 'WF_ADMIN_ROLE';
1 row updated.
SQL> commit;
Commit complete.
modify this profile option to have the value of an actual App Server
WF: Workflow Mailer Framework Web Agent : http://hostname.domainname:8000
additonal notes
Possible values:
RUNNING
STARTING
STOPPED_ERROR
DEACTIVATED_USER
DEACTIVATED_SYSTEM
-----------------
select component_id
into m_mailerid
from fnd_svc_components
where component_name = 'Workflow Notification Mailer';
--------------
-- Stop Mailer
--------------
fnd_svc_component.stop_component(m_mailerid, p_retcode, p_errbuf);
commit;
end;
/
A workflow notification send event (notification email) can fail at several different points, so monitoring it
using one method usually is not going to give you a complete picture.Additionally, you have to keep in
mind that the process is dynamic, meaning that as transactions are created into the queues they are also
mailed out; so a
count of data is at best only a snapshot of a particular moment in time.
1. Here is a more robust script for monitoring the wf_notifications table:
select message_type, mail_status, count(*) from wf_notifications
where status = 'OPEN'
GROUP BY MESSAGE_TYPE, MAIL_STATUS
messages in 'FAILED' status can be resent using the concurrent request 'resend failed workflow
notificaitons'
messages which are OPEN but where mail_status is null have a missing email address for the recipient,
but the notification preference is 'send me mail'
2. Some messages like alerts don't get a record in wf_notifications table so you have to watch the
WF_NOTIFICATION_OUT queue.
select max(notification_id)
from wf_notifications
where message_type=’WFTESTS’
and message_name =’OAFWK_MSG’
. Then, provide the mailer log returned by the following query:
SELECT fcp.logfile_name
FROM fnd_concurrent_queues fcq, fnd_concurrent_processes fcp, fnd_lookups flkup
WHERE concurrent_queue_name in (‘WFMLRSVC’)
AND fcq.concurrent_queue_id = fcp.concurrent_queue_id
AND fcq.application_id = fcp.queue_application_id
AND flkup.lookup_code=fcp.process_status_code
AND lookup_type =’CP_PROCESS_STATUS_CODE’
AND meaning=’Active’
Please run the diagnostics from Note 748421.1 Oracle Workflow ATG Support: R12 Java Mailer Setup
Diagnostic Test and upload its archive file.
How does workflow Notification Mailer IMAP (Inbound Processing) Works:
This is the inbound flow:
1. Approver sends email response which is directed to the value defined in Replyto address.
a. This address has been setup by the customer’s mail administrator to route incoming mail to the IMAP
Inbox folder.
2. The Workflow Inbound Agent Listener picks up the message. Only messages which are in ‘unread’ state
are evaluated; the rest of the messages in the inbox are ignored.
3. The message is scanned to see if it matches entries in the TAG file . Mail tags are defined in the OAM
mailer configuration pages and these list strings of text and actions to take if those strings are
encountered. An example of this are ‘Out of Office’ replies. If the string of the message matches a mail tag
and the action is ‘Ignore’ then nothing else will happen.
4. The message is then scanned for the presence of a Notification Id (NID). This NID is matched against
valid NID for the mailer node.
5. If valid NID is not detected, (and there is no matching TAG file entry) then the message is placed into the
DISCARD folder.
6. If a valid NID is detected the listener raises a subscription to the WF_NOTIFICATION_IN queue and
places the mail message in the Processed folder.
7. From this point on the message is handled by the product workflow (like PO APPROVAL) . An event
created by that group will monitor the WF_NOTIFICATION_IN queue and will trigger the rest of the
approval workflow.
Here are steps/events for Oracle Workflow Notification Outbound Processing(eMail from Oracle
Applications Workflow to Users)
1.When workflow Engine determines that a notification message must be sent, it raises an event in BES
(Business Event System) oracle.apps.wf.notifications.send
Event is raised with Notification ID (NID) as event key
2. There is seeded subscription to this Event
3. Event is placed on WF_DEFERRED agent
4.Event is dequeued from WF_DEFERRED and subscription is processed
5. Subscription places event message to WF_NOTIFICATION_OUT agent.
6.Notification Mailer dequeues message from WF_NOTIFICATION_OUT agent and
6.1convert XML representation of notification into MIME encoded message (Multi-purpose Internet Mail
Extensions) and
6.2 Send message by SMTP (Simple Mail Transfer Protocol) to intended user (IfTest Address/Override
Address is set then email is sent to Test Address
E-Mail Notification is sent if all below conditions are truea) Notification status is OPEN or CANCELED and
b) Notification mail_status is MAIL or INVALID and
c) Recipient Role has a valid e-mail address and Notification Preference is in the format MAIL%
d) Workflow Deferred Agent Listener is running
e) Workflow Notification Mailer is running
To check a) & b) run below query
SELECT status, mail_status FROM wf_notifications WHERE notification_id = ‘&NID’;
mail_status >> SENT means mail has gone out of mailer to user
To check c) run below query
SELECT email_address, nvl(WF_PREF.get_pref(name, ‘MAILTYPE’),notification_preference)
FROM wf_roles
WHERE name = upper(‘&recipient_role’);
To check d) & e) Use OAM (Oracle Application Manager)
How to purge e-mail notifications from the Workflow queue
madhanappsdba.blogspot.com/2015/10/inactive-no-this-is-what-you-see-this.html 12/16
5/20/2019 Bounce Apache server in R12 | ORACLE APPS DBA
Some times Due to large number of e-mail notifications to accumulated in the queue Workflow mailer will
not start,To fix this issue we need purge the notifications from the Workflow queue.
The below outlines the steps, Please take proper backup before performing the below.
1) You need to update the notifications you do not want sent, in the WF_NOTIFICATIONS table.
2) Check the WF_NOTIFICATIONS table as below. Records where status = ‘OPEN’ and mail_status =
‘MAIL’ are notifications that will have an e-mail notification sent.
SQL> select notification_id,status,mail_status,begin_date from WF_NOTIFICATIONS where status =
‘OPEN’ and mail_status = ‘MAIL’;
3) This should show you which notifications are waiting to be e-mailed.
4) To update a notification so that it will not get e-mailed. Set the MAIL_STATUS = ‘SENT’. The mailer will
think the e-mail has already been sent and it will not send it again.
SQL> update WF_NOTIFICATIONS set mail_status = ‘SENT’ where mail_status = ‘MAIL’;
-> This will update all notifications waiting to be sent by the mailer.
5) Then run the script wfntfqup.sql to purge the WF_NOTIFICATION_OUT queue and rebuild it with data
currently in the WF_NOTIFICATIONS table. This is what purges all notifications waiting in the queue to be
sent.Only the ones where mail_status = ‘MAIL’ and status = ‘OPEN’ will be placed in the
WF_NOTIFICATION_OUT queue and sent by the mailer.
SQL>sqlplus apps/apps_pwd @$FND_TOP/patch/115/sql/wfntfqup APPS APPS_PWD APPLSYS
6) Now you can start your WF Containers and then Mailer
Posted 6th April 2016 by Unknown
View comments
---
Oracle EBS: Repairing the "XXX is not a valid responsibility for the current user"
error in Oracle
How to "fix" a problem that can occur in Oracle when you have granted a user access to a new web-based
responsibility but the middle-tier application servers have not picked up this change.
Below are detailed instructions on how to clear the cache on the middle-tier application server(s). As it
says in the warning when you try and do it there will be a performance hit while it re-reads all the data from
the database - use on Production Systems at you own risk!!
At the moment I'm currently configuring Oracle Internet Expenses (11, not 12) and several times we've
granted a user the "Internet Expenses" responsibility, they've logged into Oracle, selected Internet
Expenses and then received an error along the lines of "Internet Expenses is not a valid responsibility for
the current user. Please contact your System Administrator". For example when trying to access "Function
Administrator" privilege you get the message:
madhanappsdba.blogspot.com/2015/10/inactive-no-this-is-what-you-see-this.html 13/16
5/20/2019 Bounce Apache server in R12 | ORACLE APPS DBA
You only get this issue with Web-based responsibilities. If I'd assigned "Payables Manager" then it works
without any issues, the reason for this error is that in order to improve performance Oracle caches some
information on the web server. In order to "fix" this problem we need to clear the cache by following these
steps;
Step 3: Select "Caching Framework" (second option from the right on blue bar)
madhanappsdba.blogspot.com/2015/10/inactive-no-this-is-what-you-see-this.html 14/16
5/20/2019 Bounce Apache server in R12 | ORACLE APPS DBA
This page shows you the currently configured Caching Statistics and Policy. The bit we're interested in
though is the "Clear All Cache" button the right-hand side.
And we're done, the user should now be able to log in with the new responsibility.
R12 --XXX is not a valid responsibility for the current user. Please contact your System Administrator.
How to Resolved XXX is not a valid responsibility for the current user. Please contact your System
Administrator.
Some time it happens that we assign a new web based responsibility like isupplier or iprocurement but
when opening it display following screenshot.
This is happening because middle tiers has yet to pick the change in assigned responsibility. To resolve
this issue we need to clear the middle tier cache.
madhanappsdba.blogspot.com/2015/10/inactive-no-this-is-what-you-see-this.html 15/16
5/20/2019 Bounce Apache server in R12 | ORACLE APPS DBA
It
will open without error
madhanappsdba.blogspot.com/2015/10/inactive-no-this-is-what-you-see-this.html 16/16