Suggestions to resolve issue reg scheduling a pl/sql program [message #473315] |
Fri, 27 August 2010 06:26 |
sreedevi_83
Messages: 43 Registered: October 2005 Location: India
|
Member |
|
|
Hi,
My requirement is to schedule a concurrent program which has a parameter
whose default value is being obtained by a sql statement.
When I schedule this program, the default value is correctly derived by
executing the sql statement only during my initial run.
But for my further runs of scheduled program, the sql statement is not
re-executing, instead the value obtained during my initial run is being
copied.
Any suggestions to resolve this issue please?
Thanks,
Sreedevi.
|
|
|
|
|
Re: Suggestions to resolve issue reg scheduling a pl/sql program [message #473324 is a reply to message #473320] |
Fri, 27 August 2010 06:52 |
sreedevi_83
Messages: 43 Registered: October 2005 Location: India
|
Member |
|
|
Thanks for your suggestions..
Okay you mean to say we can write a wrapper program..like this below.. I tried this too.. but here in our schema, where I am writing this procedure, I am not having access to fnd_request .. it gives me error saying that fnd_request is not defined.. so this idea didnt work out for me
create or replace procedure mispa_rundays (errbuf out varchar2, retcode out number) as
n_request_id number:=0;
n_rundays number:=0;
begin
SELECT ceil(sysdate -MIN(last_run_date) + 2) into n_rundays
FROM mispa.mispa_extract_control
WHERE lob = 'ConsSuppEdu';
n_request_id:= fnd_request.submit_request('CUSTPA','MISPA_GSI_TYPES_INCR', NULL, NULL,FALSE,'Y',n_rundays, 'Y', 'ConsSuppEdu');
end;
/
|
|
|
|
|
|
Re: Suggestions to resolve issue reg scheduling a pl/sql program [message #473334 is a reply to message #473331] |
Fri, 27 August 2010 07:21 |
|
Alien
Messages: 292 Registered: June 1999
|
Senior Member |
|
|
Hi,
so you put the code in a custom schema? You realize that is against the advice given by Oracle? The best thing to do is put custom packages and procedures in the APPS schema with names starting with XX.
Otherwise, I can only advise you to grant enough privileges to the custom schema to be able to run FND_REQUEST.
Regards,
Arian
|
|
|