a) Login to Environment as apps user
sqlplus apps/<apps pass>
b) Check workflow mailer service current status
select running_processes
from fnd_concurrent_queues
where concurrent_queue_name = 'WFMLRSVC';
Number of running processes should be greater than 0
c) Find current mailer status
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
Now how to stop Notification Mailer from Backend
a) Login to Environment via sqlplus
sqlplus apps/<apps pass>
b) Stop notification mailer
declare
p_retcode number;
p_errbuf varchar2(100);
m_mailerid fnd_svc_components.component_id%TYPE;
begin
select component_id
into m_mailerid
from fnd_svc_components
where component_name = 'Workflow Notification Mailer';
fnd_svc_component.stop_component(m_mailerid, p_retcode, p_errbuf);
commit;
end;
/
Now how to start Notification Mailer from Backend
a)Login to Environment via sqlplus
sqlplus apps/<apps pass>
declare
p_retcode number;
p_errbuf varchar2(100);
m_mailerid fnd_svc_components.component_id%TYPE;
begin
select component_id
into m_mailerid
from fnd_svc_components
where component_name = 'Workflow Notification Mailer';
fnd_svc_component.start_component(m_mailerid, p_retcode, p_errbuf);
commit;
end;
/