stop start Workflow mailer by script

classic Classic list List threaded Threaded
2 messages Options
big
Reply | Threaded
Open this post in threaded view
|

stop start Workflow mailer by script

big
Hi,

On e-business 11.5.10 DB 11.2.04 on AIX

I want to stop start Workflow mailer by the following script. But:

If it is already started , the script stops it without starting.
If it is stopped it starts it.
Any idea?
Here is my script:

#!/bin/sh -u
sqlplus -s apps/mypwd << EOF
spool /u/logs/SC_stop_WF_$USER.log
whenever sqlerror exit sql.sqlcode;
set echo off
--set heading off
declare
    p_retcode number;
    p_errbuf varchar2(100);
    m_mailerid fnd_svc_components.component_id%TYPE;
 begin
fnd_svc_component.stop_component(10006, p_retcode, p_errbuf);
    commit;
fnd_svc_component.start_component(10006, p_retcode, p_errbuf);
    commit;
 end;
/
spool off
exit;
EOF
Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: stop start Workflow mailer by script

ErmanArslansOracleBlog
Administrator
What do you see in the spool/log?

Check the following link as well (note that, I didn't test it) ->

https://ittutorial.org/oracle-workflow-mailer-service-component-auto-restart-crontab