Call the simultaneous program
HelloCould you suggest me a logic on the below:
============================================
I've written a procedure/package (program main competitor).
In this (procedure above), I have to call a child simultaneous program 5 times (these 5 programs must run in parallel).
That is to say... I'll call him through FND_REQUEST. SUBMIT_REQUEST.
1 Conc socekt child will be setting = 1
.
. Simillarly
.
5th child Conc socekt will be setting = 5
I thought I had TO LOOP 1.5 and then call FND_REQUEST. SUBMIT_REQUEST.
Exactly how call.
Could you thow some thoughts.
Database: 10g
Thank you
something
declare
v_request_id number;
begin
for i in 1 .. 5 loop
v_request_id := fnd_request.submit_request(application => ,
program => ,
description => NULL,
start_time => NULL,
sub_request => FALSE,
argument1 => i);
if v_request_id > 0 then
fnd_file.put_line(fnd_file.log, 'successfully submitted');
commit;
else
fnd_file.put_line(fnd_file.log, 'not submitted');
rollback;
end if;
end loop;
end;
Tags: Oracle Applications
Similar Questions
-
Error in what concerns while calling the simultaneous OFA program
Hi all
I call the concurrent program in the OPS page. So I wrote the code and I imported packages also correctly. But still, am getting error in the following code.
OADBTransaction tx = (OADBTransaction) getDBTransaction ();
java.sql.Connection pConncection = tx.getJdbcConnection ();
ConcurrentRequest cr = new ConcurrentRequest (pConncection);
String applnName = "CBRSE"; Application that contains the concurrent program
String cpName = "Open regulations report by user; The simultaneous program name
String cpDesc = "open case State by user (Seagate); simultaneous description of the program
Vector cpArgs = new Vector();
cpArgs.addElement (headerID);
cr.addLayout(applnName,cpName,"en","US","PDF"); XML Layout Editor.
requestId = cr.submitRequest (applnName, cpName, cpDesc, null, false, cpArgs); -JDev appears error in this line.
TX.Commit ();
return requestId;I imported the package as:
import com.sun.java.util.collections.Vector;
Import oracle.apps.fnd.cp.request.ConcurrentRequest;
Import oracle.apps.fnd.cp.request.RequestSubmissionException;Kindly help me in this.
Thank you and best regards,
Myvizhi
Hello
You pass bad parameter of class vector in the call.
Correct call should be sub type:
submitRequest (java.lang.String p1, p2, p3, p4, p5 Boolean java.lang.String, java.lang.String, java.lang.String, java.util.Vector p6)
cpArgs must be of type java.util.Vector
Kind regards
Sandeep M.
-
Oracle Apps-details of the simultaneous program schedule
Which table I can find the details of the simultaneous program schedule.
NB: -.
I know that select RESUBMIT_TIME, RESUBMIT_INTERVAL from FND_CONCURRENT_REQUESTS,
RESUBMIT_TIME, RESUBMIT_INTERVAL will be the details of the schedule.
But the table fnd_concurrent_requests is get purged periodically, how can I find the Masters details of scheduling of the competitor.
Thanks in advance,
Arya mutima.This gives a whirlwind...
Kind regards
JonSELECT req.request_id
, decode (prg.user_concurrent_program_name, 'Report Set', ' report:' | req.description, prg.user_concurrent_program_name) AS the name
argument_text as parameters
req.resubmit_interval
, nvl2 (req.resubmit_interval, "Periodically", nvl2 (req.release_class_id, "the specific days", "Once")) AS schedule_type
, decode (nvl2 (req.resubmit_interval, "Periodically", nvl2 (req.release_class_id, "the specific days", "Once")),)
"Periodically", "every" | Req.resubmit_interval | ' ' || Lower (Req.resubmit_interval_unit_code) | 'from ' | Lower (Req.resubmit_interval_type_code) | "from the previous run,"
'Once', ' to:' | '. TO_CHAR (req.requested_start_date, ' HH24 DD-MON-RR '), ' each: ' | Annex CRC.class_info)
fus.user_name as owner
, to_char (requested_start_date, "HH24:MI:SS MON-DD-YYYY) as next_submission
Of
PRG apps.fnd_concurrent_programs_tl
apps.fnd_concurrent_requests req
apps.fnd_user was
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 = 'en '.
AND crc.release_class_id (+) = req.release_class_id
AND crc.application_id (+) = req.release_class_app_id
ORDER BY name -
Installer for the simultaneous program defined with the parameters - Script SQL
I wrote a very simple sql script and I want to save it as a simultaneous Oracle program. I have included a parameter field in the sql script to allow the entry of a value to determine the number of days prior to the script. The script runs correctly in SQL * Plus, but when I try to record it as a competitor Oracle program I get the following errors below:
Although when I save this as a simultaneous program and set the configuration setting and run the simultaneous program and enter the number in the parameter field, work ends with an ERROR with the following:This works in SQL* PLUS SELECT emp_id, amount FROM tblSalaries WHERE hire_date > SYSDATE-&Days; Enter value for Days: 7 old 3: hire_date > SYSDATE-&Days new 3: hire_date > SYSDATE-7 And it provides my results....
If I put single quotes around '& days', in line 3, I get a different error:Enter value for Days: EXEC FND_CONC_STAT.COLLECT; hire_date > SYSDATE-EXEC FND_CONC_STAT.COLLECT; and * ERROR at line 3: ORA-00933: SQL command not properly ended
Do you know what could be the problem?ERROR at line 3: ORA-01722: invalid number
Thanks for the review!You can try one of these approaches-
1. replace '& days' in your script with "& 1"- or-".
2. Add the following to your script at the beginning
Days := &1;
PL see the developer's Guide Application for your specific version http://www.oracle.com/technology/documentation/applications.html EBS
HTH
Srini -
Error on the definition of the stored procedure in the simultaneous program
Hello
I created a stored procedure and wanted it attached to the concurrent program. The purpose of this stored procedure when you run it in simultaneous program, the system retrieves the data from the csv file downloaded from the server, then it will insert in the tables of SO / the Interface API. Below, the error occurred.
* Starts * 18 April 2012 18:18:42
Error ORACLE 6550 in FDPSTP
Cause: FDPSTP failed due to the ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in the call to 'SPKO1 '.
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Steps I did to set the stored proc
< < simultaneous executable program > >
Executable: RDRAGON_SO_IMPORT
Short name: RDRAGON_SO_IMPORT
Application: Order management
Method of execution: PL/SQL, stored procedure
Run file name: SPKO1
< < concurrent program - set > >
Program: RDRAGON SO IMPORT
Short name: RDRAGON_SO_IMPORT
Application: Order management
Name of executable: RDRAGON_SO_IMPORT
Method: PL/SQL, stored procedure
Format: text
No set
-Here are my stored procedure-
CREATE OR REPLACE PROCEDURE APPS. SPKO1 IS
FH UTL_FILE. TYPE_DE_FICHIER;
v_line VARCHAR2 (32767).
v_source_id NUMBER (10);
v_created_by NUMBER (10);
v_creation_date DATE;
v_org_id NUMBER (10);
v_orig_sys_docref VARCHAR2 (50);
V_Customer VARCHAR2 (360);
v_customer_prev VARCHAR2 (360);
v_sold_to_org NUMBER (10);
v_orig_line_ref NUMBER (10);
v_item_code VARCHAR2 (2000);
v_ordered_qty NUMBER (10);
v_selling_price NUMBER (10);
v_count NUMBER (10);
v_stat NUMBER;
/******************************************************************************
NAME: SPKO
PURPOSE:
REVISIONS:
Worm Date Description of the author
--------- ---------- --------------- ------------------------------------
1.0 16/04/2012 administrator 1. Created this procedure.
NOTES:
Keywords to replace automatically available Auto:
Object name: SPKO
SYSDATE: 16/04/2012
Date and time: 16/04/2012, 17:55:42 and 16/04/2012 17:55:42
Username: admin (set in Options of TOAD, editor of the procedure)
Name of the table: (defined in the dialog box "New PL/SQL object")
******************************************************************************/
BEGIN
v_source_id: = 6;
v_created_by: = - 1;
v_org_id: = 204;
v_customer_prev: = null;
v_orig_line_ref: = 0;
v_stat: = 0;
SELECT header_id in (DE) v_orig_sys_docref
Select header_id
of OE_ORDER_HEADERS_ALL
creation_date desc order
) WHERE ROWNUM = 1;
FH: = UTL_FILE. FOPEN ('XXANDDIR2', 'myfile1.csv', 'R', 32767);
< < file_read_lines > >
LOOP
BEGIN
UTL_FILE. GET_LINE (fh, v_line);
V_Customer: = LTRIM (RTRIM (REGEXP_SUBSTR (v_line, "[^,] +' 1, 1") ',' "') ','" ');
v_creation_date: = LTRIM (RTRIM (REGEXP_SUBSTR (v_line, "[^,] +' 1, 2") ',' "') ','" ');
v_item_code: = LTRIM (RTRIM (REGEXP_SUBSTR (v_line, "[^,] +' 1, 3") ',' "') ','" ');
v_ordered_qty: = LTRIM (RTRIM (REGEXP_SUBSTR (v_line, "[^,] +' 1, 4") ',' "') ','" ');
v_selling_price: = LTRIM (RTRIM (REGEXP_SUBSTR (v_line, "[^,] +' 1, 5") ',' "') ','" ');
v_orig_line_ref: = (v_orig_line_ref + 1);
If v_stat = 0 then
v_orig_sys_docref: = (v_orig_sys_docref + 1);
end if;
SELECT hca.cust_account_id from v_sold_to_org
OF hz_cust_accounts AOB.
HP hz_parties
WHERE hca.party_id = hp.party_id
AND hca.request_id is null
AND hp.party_name = v_customer;
If v_stat = 0 then
INSERT INTO OE_HEADERS_IFACE_ALL)
order_source_id,
orig_sys_document_ref,
org_id,
CREATION_DATE,
created_by,
last_update_date,
last_updated_by,
operation_code,
sold_to_org_id,
booked_flag)
VALUES)
v_source_id,
('TEST' | v_orig_sys_docref).
v_org_id,
v_creation_date,
v_created_by,
v_creation_date,
v_created_by,
"INSERT."
v_sold_to_org,
'Y') ;
commit;
end if;
INSERT INTO OE_LINES_IFACE_ALL)
order_source_id,
orig_sys_document_ref,
orig_sys_line_ref,
inventory_item,
org_id,
ordered_quantity,
unit_selling_price,
unit_list_price,
CREATION_DATE,
created_by,
last_update_date,
last_updated_by,
operation_code)
VALUES)
v_source_id,
('TEST' | v_orig_sys_docref).
v_orig_line_ref,
v_item_code,
v_org_id,
v_ordered_qty,
v_selling_price,
v_selling_price,
v_creation_date,
v_created_by,
v_creation_date,
v_created_by,
"INSERT");
commit;
v_customer_prev: = v_customer;
If v_customer_prev = v_customer then
v_stat: = 1;
on the other
v_stat: = 0;
end if;
-DBMS_OUTPUT. Put_line ('Col1: ' | v_source_id |', Col2: ' | v_creation_date |', Col3: ' | v_created_by |', Col4: ' | v_updated_date |', Col5: ' | v_updated_by);
EXCEPTION
WHEN NO_DATA_FOUND THEN
OUTPUT file_read_lines;
END;
END LOOP;
SELECT count (*) in the OE_HEADERS_IFACE_ALL v_count;
DBMS_OUTPUT. Put_line (' record Total inserted successfully: ' | v_count);
UTL_FILE. FCLOSE (FH);
END SPKO1;
/
But when I run the stored procedure using TOAD his work.
Help, please. This is my first time to attach the stored procedure in the concurrent program.
Thank you very much.
Kind regards
Diane
Published by: peopsquik08 on April 18, 2012 03:58as clive_t solier
>
You must explicitly reference the settings out
>Try
DECLARE VFILE VARCHAR2(32767); V_SOURCE_ID NUMBER; -- ERRBUF VARCHAR2(200); RETCODE NUMBER; BEGIN VFILE := 'myfile1.csv'; V_SOURCE_ID := 6; --APPS.OMORDERLOADER.SPKO1 ( VFILE, V_SOURCE_ID ); --COMMIT; APPS.OMORDERLOADER.SPKO1( ERRBUF => ERRBUF, RETCODE => RETCODE, VFILE => VFILE, V_SOURCE_ID => V_SOURCE_ID ); END;
but the code above to test your proc
to run concurrent SQL, you can use fnd_submit.submit_program
-
Hello
In my report, I use "OE_ORDER_HEADERS_V" seen in my dataset query. This view is specific operating unit (OR) so I use "USER_EXIT" forwards the report commands and after triggers report correctly.
Despite decisions above two configurations when I ran my simultaneous front end program get a blank report.
Please help solve this.
Thank you
Sandeep.G
Hi all
Solved the problem!
Reason: I write custom report (XXKES) application where I diddn t verified my profile (mo: operational unit).
who is 912.
And my responsibility to the OM is in 204 OR so, it is resolved by changing the profile OR my custom to 204 application.
Then you do this custom App. Make sure that your other applications of coordination also have same OU profile.
Concerning
Sandeep.G
-
Can someone explain the simultaneous program "Purge idle Sessions".
A bit of my environment:
E-Business R12
Oracle Enterprise DB 10.2.0.4.0
Split Architecture components:
Server 1 / DB Node (Redhat 5.5 32-bit)
2 server / applications node
Throughout the day I have to run the top on my apps server command to identify the runaway form sessions that use 100% cpu. I run a kill-9 on them. I wonder if demand for "Purge idle Sessions" doing something in the same direction?Please see (advice and requests for Session Timeout [402674.1 ID] troubleshooting forms), under '3. Confirm that the good ICX_SESSION is updated. "he explains what this concurrent program. You can also search site MOS Icxdltmp.sql which is called by this concurrent program.
Thank you
Hussein -
The simultaneous program based on the different parameter values.
The PO report runs as a concurrent program, but this should launch another program to run after his execution based on his number of purchase order as a parameter to the next competitor program.
When executing this report IN., it must check for mail electronic vendor id and sends the output of this report to the respective suppliers.
Any help would be appreciated.
A very urgent need.
Thank you
Atul
Published by: Atul July 11, 2011 16:10Cause: FDPSTP failed due to the ORA-29280: invalid directory path
ORA-06512: at "SYS." UTL_FILE.Search MOS for "ORA-29280: invalid directory path" and "UTL_FILE" and go through the docs.
Thank you
Hussein -
Based on the simultaneous program host: ask your comments
Hi all
We record as concurrent programs shell scripting in Oracle EBS as shown in the Note: 147455.1, 266268.1 etc.
Some parameters of entry to these scripts are used by Oracle EBS to prog_name, req_id, login_id userid etc. and that is why we should use them for our own use.
According to Note: 266268.1
As of Oracle Applications 11.5.9, the order of DEFAULT settings is as:
FCP_REQID = FCP_LOGIN 154870 = "APPS /...» "FCP_USERID = 1109 FCP_USERNAME = 'CELESTINA '.
FCP_PRINTER = "noprint" FCP_SAVE_OUT = FCP_NUM_COPIES Y = 0 < /i >
However, if I include the following line in my shell script
echo $1 < /b > < b >
then applications user name and password is displayed in plain text, the concurrent request log file (my version of the EBS is 11.5.10.2).
Would like to know your comments on the aspects of security.
Thank you
OusseniHello
Please see if (Note: 377858.1 - use encrypt to prevent Apps Pwd being displayed in Log/Sql Script) and (Note: 1015582.102 - USERID/PASSWD printed in newspapers by operating a host program) help.
Thank you
Hussein -
Call the concomitant BPEL with Oracle Apps adapter Custom program
Hello
Can anyone help to call custom program simultaneous BPEL using oracle apps adapter
Currently, I'll call you my personalized using fnd_request.submit_request API program successfully, but I won't use it
I can directly call the "GLLEZL" program, but it is a program of stadnard
Please let me know how to call custom program concureent of BPEL using OA.
Thanks and greetings
606686Your approach seems to be okay.
It would be better to wrap it in the api plsql and call for SOA.Prasanna-
-
the log output to a master simultaneous program log file
I run a simultaneous (cc1) program that calls a simultaneous program (cc2) XML editor and the production of a file.
I implemented an afterReport trigger to return some report details that are required to be recorded in the log file of cc1.
I am passing the value of request of CE1 in CE2.
In My_PKG.after_report, I can write the information easily to write to the usage of CE2 log file...</dataStructure> <dataTrigger name="afterReport" source="My_PKG.after_report(:TOTAL_DR,:TOTAL_CR,:TOTAL_ROWS,:CC1_REQ_ID)"/> </dataTemplate>
.. .as is the program running simultaneously.fnd_file.put_line(fnd_file.log,'total_dr: ' || to_char(total_dr));
but... anyone know if it is possible to write this detail in the log file of cc1 while still under the control of cc2?
Thanks in advance,
Gus...I don't think you can do it with standard features, but (in theory!), it would be possible to write custom code to determine the name of the log created by the concurrent request of parent and use utl_file file add / to write about it.
HTH
Srini -
How to create simultaneous program of type PL/SQL stored procedure?
I have the procedure to reset sequence as below:
CREATE OR REPLACE PROCEDURE DEV_RESET_XX IS
V_NEXT_VAL1 NUMBER;
BEGIN
RUN IMMEDIATELY "ALTER SEQUENCE DEV_RECEIPT_S1 MINVALUE 0';"
RUN IMMEDIATELY "SELECT DEV_RECEIPT_S1. DOUBLE NEXTVAL ' IN V_NEXT_VAL1;
RUN IMMEDIATELY "ALTER SEQUENCE DEV_RECEIPT_S1 INCREMENT BY ' |" -V_NEXT_VAL1;
RUN IMMEDIATELY "SELECT DEV_RECEIPT_S1. DOUBLE NEXTVAL ' IN V_NEXT_VAL1;
RUN IMMEDIATELY "ALTER SEQUENCE INCREMENT DEV_RECEIPT_S1 1 ';"
END DEV_RESET_XX;
And if I run this query don't use PL/SQL, no problem and success.
EXEC DEV_RESET_XX
And then I want to create simultaneous program for this procedure.
1. create the executable program
-Methods: PL/SQL, stored procedure
2. create the simultaneous program
-Call the executable program
-Nothing parameter
3. assign the application group to receive
And then I try to run this competitor.
But, status complete error.
Help, please.
Thank you.
Hello
To save pl sql program, we have two required parameters. ERRBUFF and RETCODE
Steps to create a concurrent program of type PL/SQL stored procedure. Techmandate.com
No need to create these parameters in the simultaneous program window. Just use those in your procedure.
hope this will help you
-
How to call the quote istore functionality
Hello
We need call model of print quote istore functionality, like print model quote oracle quoting.
Thank you
LSP.Hello
Please check this path, for the simultaneous program pdf files.
* $LOG_HOME/appl/conc/out *.
Thank you
OS3 -
XML editor &; simultaneous program
Hi all
I have a simultaneous and multiple program model rtf which related to the definition of a given.
Depends on parameters selected in the simultaneous program is possible by default for another model.
Is there a way for her to do?
Thank you
You could attach a control break file to your data definition which reads the parameter and uses the appropriate model. Note: depending on your simultaneous program, may have to tweak it a bit to get the parameter if poster in the xml output it produces to burst on this subject.
-
The simultaneous output file is XML if the result of the Template is set to Excel. Why?
Hello
A simultaneous program that I run is supposed to give the result in the form of an Excel spreadsheet.
The model has the default output Type: Excel. And the output format of simultaneous program: XML.
Currently, it returns the output as XML data in the definition of data in a new tab in the browser. What should I check to make sure that the Excel output is obtained and that the model is obtained as a result
PS: Using the model for WORD generator plugin. And apply the XML obtained my rtf file-> I get the expected result. Overview: PDF
Why it does not work using the simultaneous program?
Thank you in advance,
ATP
Answer: I solved the above problem by using the following steps.
The part of the publication of the log file is missing. Once this has been noticed a the OPP service log gave more details. There was a certain Ref that wasn't.
So returned to watch the RTF, since it was the breaking point, and it has been identified.It details of the agenda were not visible without loading an XML. When I double click on without load the XML file I got an error "compiler error. Hidden module Module_EditFF... »
After searching on Google, the answer was clear: Oracle Applications: in the hidden module compilation error: Module_editFF in Oracle BI Publisher
My BI editor caused me trouble in the last days and sanitation of and re - install it works like a charm.
Problem solved. Loaded my RTF using the new organization. Double click on the field element and set the details I wanted by using the 'Add a text to help..' button and using the bar of tabs 'State' and the (F1) Key "help".
Reloaded the model ran simultaneous program ==> Excel output.
Voila!
Maybe you are looking for
-
Hello I have a 27 "iMac late 2015, retina - 5 k, bought a few months ago and El Capitan (OS X 10.11.5) running I recently bought a 10 Windows in order to create a dual boot. Of course, as I write here, it did not work. I tried everything I could. Fir
-
BlackLight without graphics (MBP mid-2012)
Long time lurker, first time poster. Hello everyone. I own a Macbook Pro, mid-2012 model (101), processor intel i5. Last summer, I upgraded the RAM 16 GB and 2 TB HARD drive. Earlier, I noticed my MBP ran hot and strangled more often than usual. I se
-
How can I format Macbook Pro OS X Yosemite 10.10.5? Could you give me the steps of formatting?
-
I have a RT31P2 router (used for vonage). I just got a computer with windows 7 and cannot connect to intern him using my RT31P2. In the windows network and sharing screen 7 does not recognize my RT31P2 router, it just says: 'unidentified network '. W
-
Antennas of the blackBerry Smartphones Paratek on Dtek60?
Hello I wonder if my new Dtek60 has as the Priv Paratek antennas, passport, etc. Z30 do? Furthermore, what about the Dtek50? See you soon,. Dave M