Oracle Apps: Simultaneous program: host: program state WARNING of return
HelloIs there a way we can send the ALERT status for the host in simultaneous program (shell script) function in Oracle applications.
Exit 0 <-success
Output 1 <-error
Output 2 <-returns ALWAYS State as ERROR
Thank you.
Yes, put something like the following in your shell script to define the status of implementation in custody:
MYSTATUS ='sqlplus-s $1 SET FIELD FEEDBACK OFF PAGESIZE 0
declare
l_result boolean;
number of l_session_id;
Start
fnd_global. INITIALIZE (l_session_id, null, null, null, null,-1, null, null, null, null, $4, null, null, null, null, null, null,-1);
l_result: = fnd_concurrent.set_completion_status ('WARNING', 'Log file review for more details.');
commit;
end;
/
"exit";
!`
Kind regards
Gareth
Tags: Oracle Applications
Similar Questions
-
Hi all!
How can I check if oracle.apps.jtf.cac.task.createTask event is raised when a task has been created?
This event fires whenever a task is created regardless of what process created the task? I mean if the task was created automatically when SR is created or if the task is created manually?
How can I manually test this professional event?
There are in our environment (EBS 11.5.10.2) following up to this professional event subscriptions:
CS_SR_SECURITY_UTIL. SECURE_SR_TASK_OWNER
jtf_task_wf_subscribe_pvt.create_task_notif_subs
CS_SR_CHILD_AUDIT_PKG.CS_SR_Audit_ChildEntities
I added the subscription xxcsf_002_wf_subscribe_pkg.create_task, calling (create_task) function in a DB package (xxcsf_002_wf_subscribe_pkg). The first thing I do, first and foremost, is logg in a custom table of the event of input in the function of package, but then which task is created in the form of "Enter the Service to request" nothing is recorded in the custom table.
What am I doing worng? Thanks in advance for the help!
PatriciaLook at the wf_deferred table (assuming that you use asynchronous process)
Select count (*) in wf_deferred
where corrid'art = 'APPS:oracle.apps.jtf.cac.task.createTask';If it returns the lines, you have events are triggered. You can take a look at the user_data and the State.
Thank you
Claire -
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 -
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-
-
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
-
How to stop simultaneous programs to the external server
Hello
Oracle R12.1.3 application
We have a database server node, an internal server and an external server. Now, I want to stop the concurrent program to the external server.
I changed the variable s_concstatus to disabled and ran autoconfig. But still the current simultaneous program to the external server. A few times the program simultaneous log file is created in external rather than internal server server.
Please tell the procedure how to stop the program contributing to the external server.
Is order I need to run autoconfig between server to affect you.
Please notify.
Thank you
I tried to change the variable s_concstatus to disabled but no luck.
It is set correctly on the internal node?
What happens if you start the CM on the node internal then? What is the bahvior?
Thank you
Hussein
-
How to enable and disable a simultaneous program to a Pl/sql Package
How to enable and disable a simultaneous program to a Pl/sql PackageI just want to know why this not prvent not the program to run, it updates the backend for open State helped N, but not in Frontend.
If you can advise on the same.
Did you use the API to change the ENABLED_FLAG of 'Y' "N"? If so, you commit the changes? What happens if you ask this program contributing to the application (simultaneous > program > set), can you confirm that it is disabled then if this has been done since the backend? The program remains active after the deactivation of the application it?
Thank you
Hussein -
Problem during execution of the xml in simultaneous program report
Hello
In EBS r12, we need to have a standard report output in excel.
I myself report output xml to create the xml template (.) Presentation of the RTF) using BI Publisher.
I created the. Available RTF and it works very well on my laptop using Bi Publisher... the XML load in it and I can get an overview of the xml data on layout with all formats (Excel, PDF...)
I downloaded the layout at EBS and he attributed to the standard State.
I changed the standard report out put in XML format
When I go to submit the request for a report, the model is assigned with report and everything seems OK.
But after I run the report.
The report ended with the warning state... and the output is only XML with error message:
This XML file does not appear to have any information of style associated with it. The document tree is shown below.
The log file says:
---------------------------------------------------------------------------
Options, AutoComplete, the request for enforcement.
(1) PUBLISH.
Post-processing of application 2350601 on node CLONE from April 13, 2011 09:03:47.
Post processing of request 2350601 failed to April 13, 2011 09:03:48 with the error message:
Failure of one or more shares of post-processing. For more details, see the OPP service log.
--------------------------------------
------------- 2) PRINT -------------
Does not print is not the output of this application because the post-processing has not.
--------------------------------------
End of query options AutoComplete.
The post-processing of the output assembly Manager log file shows that:
Model code: LATE_PAID
App model: SQLAP
Language: en
Territory: 00
Output type: EXCEL
[21/09/11 10:59:39] [UNEXPECTED] [1273372:RT4463274] java.io.FileNotFoundException: /data1/EBSR120/inst/apps/oravis_hschbscgn20076/logs/appl/conc/out/o4463274.out (no such file or directory)
at java.io.FileInputStream.open (Native Method)
at java.io.FileInputStream. < init > (FileInputStream.java:106)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:230)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:166)
[21/09/11 10:59:39] [1273372:RT4463274] Over the actions of post-processing to request 4463274.
[21/09/11 11:33:17] [OPPServiceThread0] Post-processing application 4463327.
[21/09/11 11:33:17] [1273372:RT4463327] The execution of the actions of post-processing for request 4463327.
[21/09/11 11:33:17] [1273372:RT4463327] From XML Publisher postprocessing action.
[21/09/11 11:33:17] [1273372:RT4463327]Hello
Thanks for your reply.
I got the output. This error was by the path of the invalid temporary directory in XML Publisher administrator. (Administration-> properties-> general)Thank you
Catherine -
FNDLOAD: How to remove a simultaneous program to a group of request
Hello
I want to delete a simultaneous program to a group of demand using utility FNDLOAD. Since the contaminated environment is Production (controlled environment) I don't want to manually remove group request simultaneous program. Is it possible to use the FNDLOAD utility to this effect or other means?
Environment: Oracle EBS R12.1.1
OS: Linux
Thank you
NitinHello
The control file for download application groups is afcpreqg.lct, although I'm not sure it will work properly when deleting groups demand simultaneous programs. A simpler option is to use the fnd_program.remove_from_group API.
It will be useful.
-
Simultaneous program is not not in the responsibility of OM
Hello
As per Doc-ID 113769.1 point-11 I have to run simultaneous program "Build rules of Sourcing" for error below.
((1) ' point and UOM not on prices' and ' 2) APP-Ontario-250271: updating online zero price is not allowed or not ", trying to enter an item on a command line client.
But I can't find the concurrent program in the responsibility of OM. How to add the same.
Thank you
Concerning
GSMHello
-Go to security > responsibility > ask
-Query the name of the Group of the request
-Add the concurrent program
-Click Save
-You should be able to view concurrent request then the responsibilityThank you
Hussein -
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 -
Password as a parameter when sending simultaneous program
Hello
I want to introduce a concurrent program, which has two parameters, the user name and password. I would like to hide the password from the competing newspaper. Is there a way to do this?
Any help is greatly appreciated.
Thank you!Hello
I'm sorry for not being clear in my previous post. I'm looking at the possibility for users to run their own sql scripts so that they do not have to go to every time the DBA to run something.
You can do this by registering for the concurrent program under the Group requested of the responsibilities they are assigned to users and they can submit them simultaneous program without going through the DBA.
I wanted to have a script SQL (registered as a simultaneous pgm), which any user can run giving their valid username and password.
Yet once, there is no point in passing the name of user and password that users have already been entered only when they connect to the application.
Users are not familiar with the performance of the SQL Scripts on sql plus, and this is why I wanted to give them the ability to run most frequently asked for sql script by this method.
If anyone would know the request_id, they can look at the log and find the password of another user who has the simultaneous programme, and so I wanted to know if there is a way to hide the password in the competing newspaper.
Creating a simultaneous PL/SQL program should be enough, and there is no point in passing the name of user/passowrd - see (Note: 73492.1 - creating a simultaneous program to PL/SQL in the Oracle Applications) for more details.
Kind regards
Hussein -
Periodical simultaneous program
Hi all
We have a simultaneous program.
And a setting of this concurrent program to a sequence.
We use the sql statement in the failed State, select double AAA_S.nextval.
For example,.
Running on first use, the parameter will be 1.
The second time running, the parameter will be 2.
....
When we put that competitor as a periodic competitor, we hope that it will get 1,2,3,... of the sequence as a parameter for each series.
But there are still, it get 1 for each series.
Ago any update for evil in our competitor?
How to meet this requirement?
Thanks in advance.
Best regards
ZhxiangHello
Please be (Note: 267047.1 - how to schedule A simultaneous who has a Process parameter increment).
Kind regards
Hussein -
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.
-
Simultaneous program output. EXCEL must replace .xls
Hi all
We have a custom report xmlp with exit excel. Thanks to simultaneous program delivery options, we send out that email.
E-mail from with an attachment. EXCEL format.
If some users not able to open it. So how do you change the .csv or .xls format?
Thank you
But it is not useful.
Anyway I got it by referring to the following Doc ID 1289476.1
Maybe you are looking for
-
printer problems with the new version of el capitan
Since I've updated, I can't print!
-
Windows mail message, Windows mail can compact your messages database.
I use windows mail and when I close windows mail, I me meassage windows mail can compact your message store, what is it? should I go for it, what it means?
-
Is the Dimension 8400 has any resale value?
I replaced the dimension of my Dell 8400 (Intel Pentium 4) wife, with a Dell XP 8700. My wife wants me to throw the 8400 in the Trash because it's too much space. Until I do, is there a market for old machines from dell? If Yes, where? The 8400 is in
-
BlackBerry Smartphones nimbuzz
How can I download nimbuzz on my blackberry?
-
Closes Media CC 2015.3 and deferred pending
Working from a small project file (2 MB). Everything worked very well.Has exported some EDL. Quit the project and began again to bring in the EDL, just to make sure they worked very well. They have been. Closed new project and reopened old project. E