To find Concurrent Program Usage
Hi,
I need to create a report providing details of Concurrent program name,date created date last used.
I don't know from which I can information about when concurrent Program was last used.
Input Parameters are-
1)Earliest Date ,
2) Aging Period/buckets :- Weekly, Monthly, Annually or just 'One bucket' from earliest Date parameter above with Defalut 'One Bucket'
Please help.
Thanks,
Manisha
Edited by: Milind Jadhav on Oct 6, 2010 1:59 AM
Edited by: Milind Jadhav on Oct 6, 2010 2:09 AM
As mpautom says, there are only a couple of tables or views to consider here. The following will give you the latest completion time and date of each concurrent program together with the status at completion and parameters used. It should be straightforward for you to add in the creation date and any parameters you need.
Regards,
Jon
SELECT
fcr.request_id req_id
, fcp.concurrent_program_name conc_prg
, pt.user_concurrent_program_name usr_conc_prg
, TO_CHAR(fcr.actual_start_date, 'DD-MON-YY HH24:MI:SS') start_date
, TO_CHAR(fcr.actual_completion_date, 'DD-MON-YY HH24:MI:SS') end_date
, flv1.meaning phase
, flv2.meaning status
, fcr.argument_text parameters
FROM
(SELECT
concurrent_program_id
, max(actual_completion_date) as lastcompletedrun
FROM
fnd_concurrent_requests
WHERE 1=1
AND phase_code = 'C'
GROUP BY concurrent_program_id) innerq
JOIN fnd_concurrent_requests fcr ON (fcr.concurrent_program_id = innerq.concurrent_program_id AND fcr.actual_completion_date = innerq.lastcompletedrun)
JOIN fnd_concurrent_programs fcp ON (fcr.concurrent_program_id = fcp.concurrent_program_id AND fcr.program_application_id = fcp.application_id)
JOIN fnd_concurrent_programs_tl pt ON (fcp.concurrent_program_id = pt.concurrent_program_id AND fcp.application_id = pt.application_id AND pt.LANGUAGE = 'US')
JOIN fnd_lookup_values flv1 ON (fcr.phase_code = flv1.lookup_code AND flv1.lookup_type = 'CP_PHASE_CODE' AND flv1.LANGUAGE = 'US' AND flv1.view_application_id = 0)
JOIN fnd_lookup_values flv2 ON (fcr.status_code = flv2.lookup_code AND flv2.lookup_type = 'CP_STATUS_CODE' AND flv2.LANGUAGE = 'US' AND flv2.view_application_id = 0)
WHERE 1=1
ORDER BY pt.user_concurrent_program_name
Similar Messages
-
Query to find concurrent programs defined in each concurrent manager queue
We have got custom concurrent queues defined and have then included applications / programs under it.
This way we are seggregating the load across multiple queues and application servers.
As a check , i want to find what programs are running / actually scheduled under each queue.
I can see the same from the application frontend. How can I find the same form backend database.
AUHi,
Please section "How to find out which request is handle by which concurrent queue." under the following link:
http://raghuook.blogspot.com/2010/08/apps-dba-trobleshoot-scripts.html
Also see the following link:
Checking the status of all concurent managers from backend
Requests run by a specific Concurrent Manager/Queue within the date range
Hope this helps!
Best Regards -
Oracle Apps -Concurrent program schedule details
From which table that I can find concurrent program schedule details .
NB:-
I know select RESUBMIT_TIME, RESUBMIT_INTERVAL from FND_CONCURRENT_REQUESTS ,
RESUBMIT_TIME, RESUBMIT_INTERVAL will be the schedule details .
But the table FND_CONCURRENT_REQUESTS is get purged periodically , how can i find the master details of scheduling the concurrent.
Thanks in advance,
Arya Sreedhar.Give this a whirl ...
Regards,
Jon
SELECT req.request_id
, decode (prg.user_concurrent_program_name, 'Report Set', 'Report Set:' || req.description, prg.user_concurrent_program_name) AS name
, argument_text as parameters
, req.resubmit_interval
, nvl2 (req.resubmit_interval, 'Periodically', nvl2 (req.release_class_id, 'On specific days', 'Once')) AS schedule_type
, decode (nvl2 (req.resubmit_interval, 'Periodically', nvl2 (req.release_class_id, 'On specific days', 'Once')),
'Periodically', 'Every ' || req.resubmit_interval || ' ' || lower(req.resubmit_interval_unit_code) || ' from ' || lower(req.resubmit_interval_type_code) || ' of previous run',
'Once', 'At :' || to_char (req.requested_start_date, 'DD-MON-RR HH24:MI'), 'Every: ' || crc.class_info) as schedule
, fus.user_name as owner
, to_char(requested_start_date,'DD-MON-YYYY HH24:MI:SS') as next_submission
FROM
apps.fnd_concurrent_programs_tl prg
, apps.fnd_concurrent_requests req
, apps.fnd_user fus
, apps.fnd_conc_release_classes crc
WHERE 1=1
AND prg.application_id = req.program_application_id
AND prg.concurrent_program_id = req.concurrent_program_id
AND req.requested_by = fus.user_id
AND req.phase_code = 'P'
AND req.requested_start_date > sysdate
AND prg.language = 'US'
AND crc.release_class_id(+) = req.release_class_id
AND crc.application_id(+) = req.release_class_app_id
ORDER BY name -
Finding path of java concurrent program
Hi All
I am working with iRecruitment Recruiter responsibility.
Here I can create new vacancies.
After creating vacancies they should approved by one manager
When I create vacancy and submit that vacancy for approval
It stored in one table hr_api_transactions.
and when manager approved that particular vacancy then that vacancy
stored in another table per_all_vacancies.
But problem is that vacancy which stored in hr_api_transactions table
it removes from that table.
I want know who transfer that vacancy's information from hr_api_transactions to per_all_vacancies table resp.
I think there is some java concurrent program who transfers vacancy's information from one table to another table.
if there is no java concurrent program, then who do that work?Duplicate thread.
How to find code behind application
How to find code behind application -
Plsql query to find out the concurrent programs attaching a plsql package
I want to find all the concurrent programs attaching a particular package. Please provide me with the appropriate query to get that.
Hello,
1- First thing: we are talking about a SQL query (and not a PL/SQL query).
2- I would like to add an additional filter to the query of shazi as the query should show only PL/SQL packages
SELECT
fcp.CONCURRENT_PROGRAM_ID
,fcp.concurrent_program_name
, fcpt.user_concurrent_program_name
, DECODE(fe.execution_method_code
, 'I', 'PL/SQL'
,'P', 'Reports'
,'C', 'SQL Loader'
,'Q', 'SQL Plus'
,'K', 'Java'
,'H', 'OS executable'
,'B' , 'Req. Set Stage'
) EXECUTION_METHOD
,UPPER(EXECUTION_FILE_NAME) PACKAGE_BODY
from
fnd_concurrent_programs_tl fcpt
, fnd_executables fe
,fnd_concurrent_programs fcp
where 1=1
--and fcpt.concurrent_program_id = fcr.concurrent_program_id
and fe.executable_id = fcp.executable_id
and fcpt.concurrent_program_id = fcp.concurrent_program_id
and fe.execution_method_code = 'I' /* here's the additional filter */
--and fcpt.user_concurrent_program_name = :P_USER_CONC_PROGRAM_NAME
--fcp.concurrent_program_name = :P_CONC_PROGRAM_NAME /* using this filter would use an index */
Lalaina -
To find last run date of custom concurrent program in oracle apps
Hello Exports,
Can you pls tell me how to find last run date of custom concurrent program in oracle apps.( thr Backend query )
Thanks in advance,
Edited by: 981527 on Mar 7, 2013 3:01 AMtry the below:
select fcp.user_concurrent_program_name
,fcr.request_date
,fu.user_name
,fcr.actual_start_date
,fcr.actual_completion_date
,fcr.phase_code
,fcr.status_code
,fcr.argument1
,fcr.argument2
,fcr.argument3
from fnd_concurrent_programs_vl fcp
,fnd_concurrent_requests fcr
,fnd_user fu
where fcp.user_concurrent_program_name like 'Payroll Run'
and fcp.concurrent_program_id = fcr.concurrent_program_id
and fcr.requested_by = fu.user_id
order by fcr.actual_completion_date desc -
How to find the patches for perticular concurrent program
HI
How to find the patches for perticular concurrent program. suppose for one concurrent program we create the patch and applied now i want know the which patch applied for perticular concurrent program through back end.
Thank'sQuery the concurrent program in Sysadmin responsibility.
Note the concurrent executable.
Query the concurrent executable in Sysadmin.
Note the file name.
If it is a package, open the package in TOAD and note down the file name.
If it is a report/form, open it in form developer and note down the file name.
Go to patch find screen in metalink. In the advanced search screen, enter the file name and you will see patches that contain it.
Hope this answers your question
Sandeep Gandhi
Independent Consultant
513-325-9026 -
How can i find item category usage in abap program
HI, EXPERTS
I HEARD USAGE MAINTAINED IN ABAP PROGRAM .
ANY ONE KNOW WHERE I CAN FIND ABAP PROGRAM FOR ITEM CATEGORY USAGE??
THANKS.^
Edited by: jong seok Lee on Feb 2, 2010 10:01 AMHi,
Item Category Usage: An item categories usage is defined by SAP when creating a sales order, The system determines for example, that the usage refers to a text item as oppossed to a deliverable item when you enter text in the order item rather than a material number. Based on this usage, the system will use the item category determination to propose an item category.
You can also find the usage in Custoemer material info record (T.Code VD51), if you want to determine any customer specific item category you may use the usage field in Custoemr master info record.
You can devlop an user exit to determine the item category based upon usage field as well.
regrads
Vivek. -
Find out all custom concurrent program
Hi experts,
I am looking for the query that can bring me all custom concurrent programs. We did not follow the naming convention so that It is so difficult the find find out all custom concurrent programs. If you have that sql, please kindly share with me.
Thanks in advance.
HLThat is another question, probably the question was asking the custom tables, and I found out almost custom tables. Now, I am asking about custom concurrent programs. If I base on creation_date, it seems to me that I can get 60%-70% of custom concurrent programs. But I need all custom concurrent programs. Do you have the query that can list all standard current programs. Then I can exclude them on my list and I can get the expected result.The same way you got the list of custom table you can use to get the list of custom concurrent programs.
You can query the same tables/views and get the list of seeded concurrent programs (CREATED_BY in (-1, 0, 1, 2)). Please pay attention to the custom concurrent programs which were created by any of those users (ANONYMOUS, SYSADMIN, AUTOINSTAL, INITIAL_SETUP).
Thanks,
Hussein -
Unable to find Active Users Concurrent Program in Submit Requests Form
We applied a patch 9647331 on our development instance (R12.1.1). It completed succesfully. But when we are trying to submit ACTIVE USERS concurrent request, we are unable to find it in the Submit Requests Form.
However, we are able to submit the Active Users program using CONCSUB.
Not sure if the patch has done anything.
Please suggest.
Regards,
RA.We applied a patch 9647331 on our development instance (R12.1.1). It completed succesfully. But when we are trying to submit ACTIVE USERS concurrent request, we are unable to find it in the Submit Requests Form.From which responsibility?
Have you verified if the concurrent program is added to the Request Group which is linked to this responsibility?
Not sure if the patch has done anything. I do not think so. Was the patch applied successfully included all pre-reqs?
Thanks,
Hussein -
How to find a memory and CPU used by a specific concurrent program ?
Dear All ,
How to find a memory and CPU used by a specific concurrent program ?
Thanks.Hi,
How to find a memory and CPU used by a specific concurrent program ?
Could you please let us can we get the
memory used for a specific concurrent request .
Please refer scripts available at:
Concurrent Manager and program related scripts
Queries : Concurrent Managers/Processes
Thanks &
Best Regards, -
Error finding/creating AM from Java Concurrent Program
Hi All,
Here is what I am attempting to do in a Java concurrent program
--------------- Code Start - Error description in the code snippet comments ---------------
public void runProgram(CpContext pCpContext)
DBTransactionImpl mDBTransactionImpl
= new DBTransactionImpl(pCpContext.getJDBCConnection());
OAApplicationModule am = null;
// At this point I tried to call various methods on DBTransactionImpl
// And each method call, causes the CP to error with a different exception
// Calling findApplicationModule() causes the following exception
// java.lang.NullPointerException
// at oracle.jbo.server.DBTransactionImpl.findApplicationModule(DBTransactionImpl.java:4840)
// at xxicon.oracle.apps.xbol.pa.cp.XXIconImportUnitsFrmXls.runProgram(XXIconImportUnitsFrmXls.java:101)
// at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
am = mDBTransactionImpl.findApplicationModule(IMPORT_UNITS_AM_INS);
// Calling createApplicationModule() causes the following exception
// java.lang.NullPointerException
// at oracle.jbo.server.DBTransactionImpl.createApplicationModule(DBTransactionImpl.java:4954)
// at xxicon.oracle.apps.xbol.pa.cp.XXIconImportUnitsFrmXls.runProgram(XXIconImportUnitsFrmXls.java:109)
// at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
am = mDBTrx.createApplicationModule( IMPORT_UNITS_AM_INS
,IMPORT_UNITS_AM_DEF);
// Calling isConnected() causes the following exception
// java.lang.NullPointerException
// at oracle.jbo.server.DBTransactionImpl.isConnected(DBTransactionImpl.java:4335)
// at xxicon.oracle.apps.xbol.pa.cp.XXIconImportUnitsFrmXls.runProgram(XXIconImportUnitsFrmXls.java:65)
// at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
if (mDBTransactionImpl.isConnected())
// Log the fact that DBTrx is connected
--------------- Code End - Error description in the code snippet comments ---------------
Would someone be kind enough to tell me what is it that I am doing wrong here?
Thanks a ton!
KH
Message was edited by: Kiran
kiran.k.hegdeKiran,
How did you convert/cast the CpContext into an AppsContext to supply to createRootAM?
Would you maybe share some more code?
Update
No need for that, a simple
public void runProgram( CpContext ctx )
String amName;
String methodName;
OAApplicationModuleFactory amF = new OAApplicationModuleFactory();
OAApplicationModule am = amF.createRootOAApplicationModule( ctx, amName );
am.invokeMethod( methodName );
will do...
Message was edited by:
TyskJohan -
Report runs OK through concurrent program, but not when called through URL
We have a custom 6i report developed that works successfully 100% of the time when run through a concurrent program.
We are now attempting to integrate this into an OAF application. To do this, we build the necessary call to the reports server by reading different profile options, etc and come up with a URL like this:
http://ebsd777.xxxxx.com:8000/dev60cgi/rwcgi60?d777_APPS+report=XXMFG_ESPEC_REPORT.rdf+P_SPEC_ID=43+DESFORMAT=PDF
This report works 90% of the time when called like this, but the other 10%, we get the following error:
"Error: The requested URL was not found, or cannot be served at this time.
Incorrect usage."
Trying to find what the differences are between the reports that work and those that don't - found that reports which fail seem to extend out further to the right than the reports that do work. But, these reports still fit on standard letter paper in landscape format - as we can verify through the concurrent program call.
Is there some sort of report server setting or parameter which we can change to get this to work when called through the reports server URL?
Any thoughts would be appreciated!
Thanks,
CraigHi,
Please post the application release along with the database version and OS.
But when i call the same program through the pl/sql executable of another concurrent program , it does not print the pdf output by defaultHow do you call the program? What is the value of the number of copies profile option?
Please see if these docs help.
Note: 757901.1 - How To Restrict The Number Of Copies To 1?
Note: 729117.1 - How To Specify the Number of Copies to Print by Report?
Thanks,
Hussein -
Error in running a order import concurrent program
Hi,
Please tell me what type of error is this ,i am using user 'operations',and i have inserted data to the interface table successfully but while running the concurrent program ,i am getting this error.
Cause: FDPSTP failed due to ORA-20100: File o0085033.tmp creation for FND_FILE failed.
You will find more information on the cause of the error in request log.
ORA-06512: at "APPS.FND_FILE", line 396
ORA-06512Hi,
Please see old threads as this error was discussed many times in the forum before.
ORA-20100
http://forums.oracle.com/forums/search.jspa?threadID=&q=ORA-20100&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
Getting Error While Attaching Concurrent Program Output PDF file for POAPPRV Workflow
Hi All,
I am getting the below error when I am trying to attach concurrent program output to the PO Approval Notification.
An Error occurred in the following Workflow.
Item Type = POAPPRV
Item Key = 1040589-528378
User Key =945871
Error Name = WF_ERROR
Error Message = [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: [WFMLR_DOCUMENT_ERROR]' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK=
Wf_Notification.GetAttrblob(3604701, ZZ_PREVIOUS_PO_COMPARE, text/html)
WF_XML.GetAttachment(3604701, text/html)
WF_XML.GetAttachments(3604701, http://oraerp.am.corp.xxxx.com:8099/pls/DEV, 11283)
WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 3604701)
WF_XML.Generate(oracle.apps.wf.notification.send, 3604701)
WF_XML.Generate(oracle.apps.wf.notification.send, 3604701)
Wf_Event.setMessage(oracle.apps.wf.notification.send, 3604701, WF_XML.Generate)
Wf_Event.dispatch_internal()
Error Stack =
Activity ID = 190844
Activity Label = AL_NOTIFY_APPROVER_PROCESS:ZZ_PO_PO_APPROVE_ATTCH
Result Code = #MAIL
Notification ID = 3604701
There are several threads for this error however I cannot find any specific solution to the problem.
Please find the code below -
wf_engine.setitemattrdocument(itemtype=>itemtype,
itemkey=> itemkey,
aname=>'ZZ_PREVIOUS_PO_COMPARE',
documentid =>'PLSQLBLOB:zz_po_reqapproval_init1.xx_notif_attachments/' || to_char(l_request_id_prev_po)||':'||to_char(l_document_num));
-- here l_request_id_q_and_s is the request id of the program and l_document_num is the PO document number
PROCEDURE xx_notif_attachments(p_request_id IN VARCHAR2,
p_document_num IN VARCHAR2,
p_document IN OUT BLOB,
p_document_type IN OUT VARCHAR2) IS
v_lob_id NUMBER;
v_document_num VARCHAR2(15);
v_document_prefix VARCHAR2(100);
v_file_name VARCHAR2(500);
v_file_on_os BFILE;
v_temp_lob BLOB;
v_dest_offset NUMBER := 1;
v_src_offset NUMBER := 1;
v_out_file_name VARCHAR2(2000);
v_conc_prog_name VARCHAR2(500);
v_conc_req_id NUMBER;
CURSOR get_output_file(p_concurrent_request_id NUMBER) IS
SELECT cr.outfile_name, cp.concurrent_program_name
FROM fnd_concurrent_requests cr, fnd_concurrent_programs_vl cp
WHERE request_id = p_concurrent_request_id
AND cp.concurrent_program_id = cr.concurrent_program_id;
BEGIN
-- set_debug_context('xx_notif_attach_procedure');
v_conc_req_id := to_number(substr(p_request_id,
1,
instr(p_request_id, ':') - 1));
v_document_num := substr(p_request_id,
instr(p_request_id, ':') + 1,
length(p_request_id) - 2);
OPEN get_output_file(v_conc_req_id);
FETCH get_output_file
INTO v_out_file_name, v_conc_prog_name;
CLOSE get_output_file;
v_out_file_name := substr(v_out_file_name,
instr(v_out_file_name, '/', -1) + 1);
v_file_name := to_char(v_document_num) || '-Previous_PO_Rev.pdf';
utl_file.fcopy(src_location => 'APPS_OUT_DIR',
src_filename => v_out_file_name,
dest_location => 'PO_DATA_DIR',
dest_filename => v_file_name);
-- v_lob_id := to_number(v_document_id);
v_file_on_os := bfilename('PO_DATA_DIR', v_file_name);
dbms_lob.createtemporary(v_temp_lob, cache => FALSE);
dbms_lob.fileopen(v_file_on_os, dbms_lob.file_readonly);
dbms_lob.loadblobfromfile(dest_lob => v_temp_lob,
src_bfile => v_file_on_os,
amount => dbms_lob.getlength(v_file_on_os),
dest_offset => v_dest_offset,
src_offset => v_src_offset);
dbms_lob.fileclose(v_file_on_os);
p_document_type := 'application/pdf;name=' || v_file_name;
dbms_lob.copy(p_document, v_temp_lob, dbms_lob.getlength(v_temp_lob));
EXCEPTION
WHEN OTHERS THEN
wf_core.CONTEXT('ZZ_PO_REQAPPROVAL_INIT1',
'xx_notif_attachments',
v_document_num,
p_request_id);
RAISE;
END xx_notif_attachments;
Please help me find a to the above mentioned error.
Thanks,
SuvigyaThere are two ways to look at what error the PLSQLBLOB API is throwing.
1) Call your PLSQLBLOB API GNE_PO_CREATE_FILE_ATTACHMENT.Gne_Create_File_Attachment directly from a PLSQL block and verify that it returns the BLOB data successfully.
You could also call another WF API that in turn executes the PLSQLBLOB API internally. For example,
<pre>
declare
l_document blob;
l_doctype varchar2(240);
l_aname varchar2(90);
begin
dbms_lob.CreateTemporary(l_document, true, dbms_lob.Session);
-- 207046 - This is the notification id of your failed workflow
-- PO_REPORT - Document type attribute
-- 'text/html' - Content Type being generated for
Wf_Notification.GetAttrBLOB(207046, 'PO_REPORT', 'text/html', l_document, l_doctype, l_aname);
-- Print the size of the document here to verify it was fetched correctly
end;
</pre>
2) Turn on log for SYSADMIN user with following attributes.
Log Enabled = TRUE
Log Level = ERROR
Log Module = wf.plsql%
Restart the Workflow Deferred Agent Listener and Workflow Notification Deferred Agent Listener and run your workflow process. Search for log messages written for above context and you can identify the error at wf.plsql.WF_XML.GetAttachment module with message starting as "Error when getting BLOB attachment ->"
Hope this helps.
Vijay
Maybe you are looking for
-
Creating same files on Different FTP Locations
Hi All, My scenario is like this IDOC which is coming from SAP has to be sent to two FTP locations (XYZ20082210.dat both same structures)... Can any one please give me the best approach to handle this... I know i can do this by creating in two ways 1
-
Dashboards with BICS connectivity and Infoview (BO4.0 Information Platform)
Hello All, I have worked on Xcelsius 2008 with BICS connectivity to consume BEX Queries, and I'm aware that its not possible to export BICS based dashboards to BOE. But with the latest BO 4.0 release, I understand that BICS connectivity is inbuilt in
-
The error message "No more virtual tiles can be allocated" appears when I try to use the effects in the quick editing mode in my Elements 13. The baton OK has to be pressed several times for loading all effect patterns. The error returns when selecti
-
Youtube spacebar play/stop function
Ive noticed that you can use the spacebar and the left/right arrows to control the playback on youtube.com But this only works when i have taken my mouse to click the actual youtube video box or play button... Otherwise the spacebar will scroll down
-
Console on managed servers disabled
Console on a managed server is almost disabled. But in some circumstances it is good to have limited access. For example, viewing JNDI tree. If some bindings are not serializable, or admin server does not have the class files of those bindings, JNDI