On Demand Alert vs Concurrent Program
Hi,
I am new to the e-Business Suite of tools and was wondering what the difference is between an Alert that you would define as "on demand" to run whenever the need arises, versus creating a concurrent program that you could create a request for whenever you need to run it? In general, when would an "on demand" alert be used versus a concurrent program? I'm asking because I have some SQL that I need executed every now and then (like once every 2-3 months) to spot check some numbers. I don't know if I should set this up as an On Demand alert or as a concurrent program. Would it be over-kill to create a concurrent program for this? Seems like more steps are necessary for concurrent programs.
Any help is greatly appreciated.
Hi,
Oracle Alert facilitates the flow of information within your organization by letting you create entities called alerts to monitor your business information and to notify you of the information you want.
Concurrent programs are executable file which you choose to run (or schedule) at certain time/date, but it does not notify you as Oracle Alert does.
You can find more details about Oracle Alert and Concurrent Programs in "Oracle Alert User's Guide" and "Oracle Applications System Administrator's Guide Documentation Set".
Applications Releases 11i and 12
http://www.oracle.com/technology/documentation/applications.html
Thanks,
Hussein
Similar Messages
-
How to set OEM alerts for concurrent programs
Hi,
We are using OEM 10g gridcontrol for monitoring.
i am new to OEM, now i have a task to set up alerts for concurrent programs(which are running more than 30mins).
can any one provide step by step process to setup alerts.
Thanks,Here is how to enable your alerts.
1. From the Mobile Email application, select the desired email account then press the center of the 5-way navigation pad to choose Select.
If prompted enter the username and password, then press the center of the 5-way navigation pad to choose Sign In.
2. Press the right soft key to choose Options.
3. Select Settings then press the center of the 5-way navigation pad to choose Select.
For AOL / AIM select Preferences.
4. Select the desired setting then press the right soft key to choose Save.
To disable the email alerts:
Select Disable or Never.
To enable email alerts:
Select Enable or Always.
To receive email during a desired time interval:
Select Only During then enter the desired time interval.
This setting may not be available on all handsets or accounts. Hope this helps -
Reg : Setup alerts for Concurrent Programs
Hi,
We are using OEM 10g gridcontrol for monitoring.
i am new to OEM, now i have a task to set up alerts for concurrent programs(which are running more than 30mins).
can any one provide step by step process to setup alerts.
Thanks,
ChandraI believe the "Concurrent Manager" is a product supported in the "E-Business" forum.
Can a moderator move the question there? (with other questions on this product)
I assume this is not related the Java's concurrency library. -
Shell i Register Alert as a concurrent program ?
Hi All,
I have requirement as below.
Need to create one alert by just passing any email account.
Create a concurrent program and call this alert
This concurrent program will be run manually.
where this concurrent program is going to store. i mean which table this information is getting stored.
please respond , bit urgent.
Thanks.You can create SQLPlus concurrent request where you can call the request for ALECDC
Here is an example.
Replace application ID and Alert ID
REQUEST_ID := FND_REQUEST.SUBMIT_REQUEST(
'ALR',
'ALECDC',
<alert name>,
TO_CHAR(:REQUEST.START_DATE, APP_DATE.canonical_DT_mask),
FALSE,
TO_CHAR(<your_application_id>),
TO_CHAR(<your alert id>),
'P',
CHR(0),
'', '', '', '', '', '', '', '', '', '');Edited by: DineshS on Jan 21, 2009 12:54 AM -
APP-ALR-04050 Alert was not able to submit concurrent program
Hi Friends,
Can someone please help me in solving the below issue?
I'm using Event alert for submitting a concurrent program based on insertion/updations on po_requisition_headers_all table. This alert is not working when I am creating a Purchase Requisition manually in Requisitions screen, it is not invoking the concurrent program. Check event alert is failing with the error 'APP-ALR-04050 Alert was not able to submit concurrent program'.
But when I am creating a PR using an interface then the alert is working fine and submitting program.
oracle version is R12.
Alert SQL query:
Select prh.segment1,
prh.org_id
into &p_in_pr_num,
&p_in_org_id
from po_requisition_headers_all prh
where prh.authorization_Status IN ('APPROVED','CANCELLED')
and prh.attribute_category = 'Sales Driven'
and prh.org_id = :ORG_ID
and orh.rowid = :ROWID
Kindy help me in resolving this issue. Thank you in advance.
Thanks
SravanaHi Sravana,
Are you running on 12.0 release? Please provide you environment details.
Please see:
Oracle Applications Technology Software Updates, Release 12.0.4 (Doc ID 466974.1)
Search for: ALERT WITH CONCURRENT REQUEST ACTION ERRORS WITH APP-ALR-4050
I suggest you raise an SR for the respective issue.
Thanks &
Best Regards, -
FS-CANT OPEN TEMPFILE issue in opening a concurrent program log file
Hi all,
I am working in Order Management authorization process in oracle apps 11i. After completion of order authorization , i did the shipping and delivery process in oracle Forms. During this Shipping and Delivery process the concurrent program gets error. (i.e status is : Completed -Error ).
Then i tried to open a concurrent program view log and view output file , but it shows following error in window.
Error: FS-CANT OPEN TEMPFILE.
I never did anything in server recently. But it throws the "FS-CANT OPEN TEMPFILE" error in forms while running the concurrent program.
Please Help How to resolve this issue.
Thanks
PrabuPl post details of OS, database and EBS versions, along with complete steps to reproduce the issue. Are there any errors in the database alert log or the concurrent manager log ? Has this ever worked before ? If so, what has changed since then ?
Pl see if these MOS Docs can help
"FS-CANT OPEN TEMPFILE" MESSAGE WHEN OPENING ANY VIEW LOGS OR OUTPUT LOGS [ID 462277.1]
Copy File functionality generates FS-CANT OPEN TEMPFILE [ID 780516.1]
FS-Cant Open Tempfile When Try to Send Output to Excel [ID 236311.1]
FS-CANT OPEN TEMPFILE in 11i
HTH
Srini -
How do you schedule an on-demand Alert?
I have created an on-demand Alert which I would like to execute every 60mins, how can I schedule this using concurrent manager?
Thanks,
ManishThanks for pointing out that part of the Alert users guide.
I have set the following values:
Frequency: Every N Calendar Days
Days: 1
Start Time: 07:00:00
End Time : 20:00:00
Check Interval: 01:00:00
I interpret this as follows: Run this Alert every day, starting at 7am in the morning, every 1 hour, till 8pm at night.
After saving this, should I see a scheduled concurrent request? Because I don't see any and since I set it up today morning, I have not seen any alert checks in the Alert History form.
Thanks for your continued participation,
Manish -
Concurrent programs schedule ended in error or fails
Gooday All,
As a system Administrator,how can you be notified if any concurrent programs schedule ended in error or fails?. Does Oracle have that capabilities. Is there any mechanism that need to be turn on.Hi;
Please check below thread:
concurrent ouput to email
concurrent ouput to email
Also see:
Note: 730657.1 - How To Send A Notification For A Failed Concurrent Request
Note: 466935.1 - How To Setup System Alerts That Show Each Cost Worker Where Transaction(s) Failed Costing
How to send R12 apps services errors and alerts into Email via OAM?
Regard
Helios -
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 -
Error while running the concurrent program
Hi All,
We ran a concurrent program to create XML report which completed in warning.
we got the following message in the log file.
[091907_050229025][][EXCEPTION] java.io.IOException: Bad file descriptor
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:260)
at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:408)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
at java.io.BufferedWriter.flush(BufferedWriter.java:236)
at oracle.apps.xdo.dataengine.XMLPGEN.closeStream(XMLPGEN.java:804)
at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:212)
at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:237)
at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:364)
at oracle.apps.xdo.oa.util.DataTemplate.processData(DataTemplate.java:236)
at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:293)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
Please suggest us how to resolve this issue.
Thanks in Advancedid u check view xml in diagnostic tab after submitting the request.
if ur xml file is generated(xml data file), then its a problem with your template.
regards
Ratnesh P -
Error while running a concurrent program.
Hi All,
I have written a plsql procedure and registered it with apps. When i run the program it is giving
FDPSTP failed due to ORA-20100: File l0137058.tmp creation for FND_FILE failed.
You will find more information on the cause of the error in request log.
I am not able to find out what is the problem with this. When i remove the FND_FILE.PUT_LINE statement from my code and execute it is executing properly without errors. Please suggest me what might be the problem. Also please suggest me where i can find this .tmp file or where i can find the request log.
Thanks and Regards,
MaheshMahesh,
On the instance where this concurrent program fails to run, please verify the following:
1) Make sure that APPLPTMP is set to a valid directory as shown above (Verify from the OS by issuing "echo $APPLPTMP" as applmgr user)
2) Make sure that both the applmgr user and the database user "oracle" have read/write permissions on $APPLPTMP
3) Make sure that APPLPTMP is the first entry in utl_file_dir (utl_file_dir is set in the init<SID>.ora file). To verify to what "utl_file_dir" is set:
SQL> connect / as sysdba
SQL> show parameter UTL_FILE_DIRPlease go through the first document referenced in my first reply (Note: 261693.1), it should be helpful.
Regards,
Hussein -
Issue in Java concurrent program for Digital Signature Stamping
Hi All,
Im calling a Java concurrent program which does digital signature stamping on the PDF report generated.Program able to able to read the PDF file as input and also digital signature stored as file in the application but
ends in error in create signature method , need help in this regard.
Error:
Parameter 0 is Request id of with out Digital signature file
Parameter 1 is employee id of approver
Parameter:0:99203256
Parameter:1:1414603
$$$$ start query fileinfo with callable statment
programName>>>>>>>>BTPOPORPXML
$$$$ Without digital Signature file Name $$$
$/inst_top/finprod/apps/FINPROD_CPNQERPAAPZP10/logs/appl/conc/out/BTPOPORPXML_99203256_1.PDF
PFX File Reading Start
PFX File Reading Ends
PFX File size is: 6460 Byte size is: 6460
Elements present
java.lang.NullPointerException
at
com.lowagie.text.pdf.PdfSignatureAppearance.getAppearance
(Unknown Source)
at
com.lowagie.text.pdf.PdfSignatureAppearance.preClose
(Unknown Source)
at
com.lowagie.text.pdf.PdfSignatureAppearance.preClose
(Unknown Source)
at com.lowagie.text.pdf.PdfStamper.close(Unknown
Source)
at
btvl.oracle.apps.po.digsig.BTVLDigSign.runProgram
(BTVLDigSign.java:151)
at oracle.apps.fnd.cp.request.Run.main
(Run.java:157)
Edited by: 999033 on May 16, 2013 7:20 PMHi Charls,
I have successfully implemented at our end in 11i. Pl.try at your end.
v_request_id := FND_REQUEST.SUBMIT_REQUEST (passed your arguments... );
COMMIT;
IF NVL( v_request_id , 0 ) = 0 THEN
DBMS_OUTPUT.PUT_LINE( 'Item Assignment to Organization Program Not Submitted');
p_status := 'FAILURE' ;
p_err_msg := 'ERROR RAISED AFTER SUBMITTING THE IMPORT ITEM ORG.ASSIGNMENT CONCURRENT REQUEST ... ' ;
ELSE
v_finished := FND_CONCURRENT.WAIT_FOR_REQUEST
request_id => v_request_id,
interval => 0,
max_wait => 0,
phase => v_phase,
status => v_status,
dev_phase => v_request_phase,
dev_status => v_request_status,
message => v_message
LOOP
EXIT WHEN ( UPPER(v_request_phase) = 'COMPLETE' OR v_phase = 'C');
END LOOP;
HTH
Sanjay -
Rtf template not showing as uploaded in concurrent program
Hello
I have created xml data definition and uploaded a rtf template. Then linked it to my concurrent program. But when i ran the concurrent program successfully all i get is the xml output. Upon closer inspection it shows that no template is uploaded. Yet in xml publisher it shows as uploaded.
so my question is: what can prevent a rtf template from attaching to a concurrent program?If you and send the template, it would be helpful.
kindly send it to [email protected]
Deepa -
Unable to generate XML's for BLOB datatypes from Concurrent program
Hi All,
I've a requirement to print images on rtf layout. Images are uploaded by end user through attahments men
there are getting stored in fnd_lobs tables.
for printing blob images we need to convert them into CLOB and generate XML's.
I've done the conversion through a function and calling the function in the select query which is generating XML when i run it from toad.
SELECT xmlgen.getXml(
'SELECT file_id,mob_getbase64String(file_data) photo
FROM fnd_lobs
WHERE file_id = 2490481'
,0
) FROM dual;
But the same thing we i registered as concurrent program (SQL*Plus) the program is running into error.
Output file
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
Invalid at the top level of the document. Error processing resource 'https://dbtdev5i.oracleoutsourcing.com/OA_CGI/FNDWRR.e...
Input truncated to 17 characters
^
Log file
Concurrent Manager encountered an error while running SQL*Plus for your concurrent request 10868311.
Review your concurrent request log and/or report output file for more detailed information.
Can anyone help me through on how to bypass this error and generate XML's.
Thanks in Advance
JanaHi Priya..,
I have changed the query and registered in apps and now i am able to generate XML's of the blob image and the same is getting printed on the tempate..
DECLARE
v_colb CLOB;
v_query VARCHAR2(1000);
BEGIN
v_query := 'SELECT file_id,mob_getbase64String(file_data) photo
FROM fnd_lobs fl,
fnd_documents_vl fd
WHERE fd.media_id = fl.file_id
AND (fd.end_date_active IS NULL
OR fd.end_date_active > SYSDATE)
AND fd.security_type = 2
AND fd.security_id = fnd_profile.value(''GL_SET_OF_BKS_ID'')';
--FND_FILE.put_line( FND_FILE.LOG,v_query);
v_colb := xmlgen.getxml (v_query, 0);
--DBMS_OUTPUT.put_line (v_query);
FND_FILE.put_line( FND_FILE.OUTPUT,v_colb);
END;
/
Maybe you are looking for
-
Text is selected one or two lines away from where cursor is located
I'm viewing a PDF in Adobe Digital Editions 4.0, and when I try to select text, it actually selects text 1-2 lines off from where the cursor (I-bar) is located. This makes highlighting text extremely difficult. The PDF was created in Acrobat from a
-
Hi, Is it possible to enable commenting in a pdf, via reader extensions without enabling the "attach a File as a Comment" or the "Record Audio Comment" options? Thx, João
-
Dear Experts, I am a bit lost here, one of our employee is doing manual reconciliation (via Banking >Bank Statements and External Reconciliation > Manual Reconciliation). as per the employee one time she saved the recon she was doing and when she ret
-
Safari Update required security code for validation
I have an I Phone 5 & 6. Received a request for a Safari update. First asked for phone number. None entered were accepted. Then asked to enter security code sent to you in order to complete validation. Did not receive a security code. Don't kno
-
Some futures in bpel which are not possible with ESB and vice versa
Can anyone please tell me some futures in bpel which are not possible with ESB and For some features available in ESB that are absence in BPEL?