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 AM
try 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
Similar Messages
-
NoClassDefFoundError for Java Concurrent Program in Oracle Apps
Hi,
I am accessing the Oracle Apps application which is installed in local server(Within the network).
I am trying to execute Java Concurrent Program in oracle apps (in Windows XP Professional). I did the following.
1. Created the concurrent program executable with Execution file name
as AvailableProg and Execution File Path as
oracle.apps.fnd.cp.request (this is where AvailableProg resides)
and Method as Java Concurrent Program.
2. Created the concurrent program and set the Options as -cp JAVA_CON.
3. Created a environment variable JAVA_CON (In Windows XP) with the
values D:\apps.zip and
D:\oracle.apps.fnd.cp.request.AvailableProg.class.
4. Registered the concurrent program.
5. While I submitted the request I got the following error:
Exception in thread "main" java.lang.NoClassDefFoundError:
oracle/apps/fnd/cp/request/Run.
Can anybody help me in resolving this issue?
Is there any documents available in executing java concurrent programs?
Please do the needful..
Thank You....Hi
I am having the same issues. Here are the setup I have for all the variables:
$ echo $AF_CLASSPATH
/u001/oracle/deltacomn/util/jre/1.1.8/lib/rt.jar:/u001/oracle/deltacomn/util/jre/1.1.8/lib/i18n.jar:/u001/oracle/deltacomn/java/appsborg.zip:/u001/oracle/deltaora/8.0.6/forms60/java:/u001/oracle/deltacomn/java
$ echo $JAVA_TOP
/u001/oracle/deltacomn/java
$ echo $AFJVAPRG
/u001/oracle/deltacomn/util/jre/1.1.8/bin/jre
$ echo $CLASSPATH
/u001/oracle/deltacomn/util/jre/1.1.8/lib/rt.jar:/u001/oracle/deltacomn/util/jre/1.1.8/lib/i18n.jar:/u001/oracle/deltacomn/java/appsborg.zip:/u001/oracle/deltaora/8.0.6/forms60/java:/u001/oracle/deltacomn/java:/u001/oracle/deltaappl/ncr_custom/ncrx/1.0.0/java
Please help.
Thanks
AE -
How to add javaprocedure as Concurrent program in oracle apps environment.
Hello everyone,
please accept my apology if iam asking question in a wrong fourm.and guide to correct forum.
I have a javaprocedure.now i need to register it as a concurrent program in R11 apps env.
so,in the executable name i have a confusion ..that, should i have to give the function name or the java class name.
can anyone who registed a javaprocedure in apps evironment...give some idea please .java class name (case sensitive)
How to register and execute Java Concurrent Program ?in Oracle Applications R11i ? [ID 186301.1]
How To Create a Java Concurrent Program? [ID 827563.1] -
How to regiter java program as a concurrent program in oracle app 11i
Hi all
Can anyone in the group tell me how to regiter a java program that is developed as a concurrent program in oracle applications.
Thanx and Regards
VidhyaSee this Metalink ID 250964.1 for Java Concurrent Program
-
ADF: Calling concurrent program in Oracle Apps from ADF
Hi All,
I am using Jdev 11G...
I have a requirement to call a concurrent program which is in Oracle E-Business from ADF page.
i will have ADF page with one button, On click of that ADF button we need to call the concurrent program and show the output generated by the concurrent program from ADF.
Plz help me to get out of this.
Any answers will be really useful.
Thanks.Hi Frank,
Thanks for ur quick response.
That is a Report and the output of the report is generated by running concurrent program.
The output of the report is in pdf format.
So we need to call the report from ADF and show the pdf output.
Thanks..... -
Dynamically switch printer tray from concurrent program in Oracle Apps 11i
Hi All,
We have a requirement to dynamically switch printer tray from concurrent program .
In the application we had a printer "*Printer1*" defined ,the printer (physical) printer have two trays and it always pick paper from Lower tray
To test the functionality I created one more defination " *Printer2*" in the application .
For this second printer created one more PPd files Printer2PPD2 . In this Printer2PPD2 the value of DefaultInputSlot i gave as Upper,so that printer will pick paper from upper tray
As we are having the PASTA configuration hence in the "uiprint.txt" entered the definations for Printer2 and also mentioned the PPD file.
So in the concurrent program i selected Printer2 and executed the program.But instead of picking from upper tray it picked from lower tray.
I could know this because in upper tray I had counted the number of papers so if the paper would have been picked ,the count would have reduced by 1.
Please let me know the solution for this issue.
Thanks and Regards
JaydeepPlease refer following notes:
Dynamically Switching Printer Trays [ID 66402.1]
How to Specify a Printer Paper Tray With Pasta [ID 241086.1]
thanks -
How to find the last run date of the report..
please any one one help me
how to find last run date of the report...
for example if my report is zgrir...if i am exuted in last week
if want to find when it executed
last run date is req
please any one help me...The trasaction stat is limited because i want all the execution date even if it is 3 years ago.
I have tryied the transaction st03 but it is limited to 3 months ago.
check transaction STAT and it's report RSSTAT00.
U can copy RSSTAT00 into ZRSSTAT00 and modify corresponding.
*& Report ZDSAP *
REPORT ZDSAP .
DATA: d_ref TYPE REF TO data,
d_ref2 TYPE REF TO data ,
i_alv_cat TYPE TABLE OF lvc_s_fcat,
ls_alv_cat LIKE LINE OF i_alv_cat.
TYPES tabname LIKE dcobjdef-name .
parameter: p_tablen type tabname.
data: begin of itab occurs 0.
INCLUDE STRUCTURE dntab.
data: end of itab.
FIELD-SYMBOLS : <F_FS> TYPE table,
<F_FS1> TYPE TABLE,
<F_FS2> TYPE ANY,
<F_FS3> TYPE TABLE.
REFRESH itab.
CALL FUNCTION 'NAMETAB_GET'
EXPORTING
langu = sy-langu
tabname = p_tablen
TABLES
nametab = itab
EXCEPTIONS
no_texts_found = 1.
LOOP AT itab .
ls_alv_cat-fieldname = itab-fieldname.
ls_alv_cat-ref_table = p_tablen.
ls_alv_cat-ref_field = itab-fieldname.
APPEND ls_alv_cat TO i_alv_cat.
ENDLOOP.
internal table build
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING it_fieldcatalog = i_alv_cat
IMPORTING ep_table = d_ref .
ASSIGN d_ref->* TO <F_FS>.
SELECT * FROM (p_tablen) INTO CORRESPONDING FIELDS OF TABLE <F_FS>.
LOOP AT <F_FS> ASSIGNING <F_FS2>.
*your code goes here.
ENDLOOP. -
Help find the Last run date from previous month
Hi all
I am stuck trying to find the Last Run Date from the previous month.
select distinct(date_ran) from TABLE X where date_ran like '%/11-%' order by date_ran desc gives
"03/30/11-06:19
"03/25/11-03:01
"03/24/11-03:00
"03/23/11-03:00
"03/22/11-03:00
"03/21/11-03:00
"03/18/11-03:00
"03/17/11-00:00
"03/16/11-06:31
"02/15/11-07:42
"02/15/11-06:00
"02/14/11-08:19
Here the result I am trying to acheive is 02/15/11-07:42 ;Note the column date_ran is a VARCHAR2(255) and not a TIMESTAMP
I tried
select ADD_MONTHS(to_date(max(date_ran), 'MM/DD/YYYY-HH24:MI'),-1)
from daily_tests_a
where date_ran like '%/11-%'
order by date_ran desc
which returns 2/28/0011 6:19:00 AM and that is not the result I am looking for
Regards
SMKWelcome to the forum!
user2931503 wrote:
Hi all
I am stuck trying to find the Last Run Date from the previous month.
select distinct(date_ran) from TABLE X where date_ran like '%/11-%' order by date_ran desc gives
"03/30/11-06:19
"03/25/11-03:01
"03/24/11-03:00
"03/23/11-03:00
"03/22/11-03:00
"03/21/11-03:00
"03/18/11-03:00
"03/17/11-00:00
"03/16/11-06:31
"02/15/11-07:42
"02/15/11-06:00
"02/14/11-08:19
Here the result I am trying to acheive is 02/15/11-07:42 ;Note the column date_ran is a VARCHAR2(255) and not a TIMESTAMPThat's a very bad idea. Points in time should always be stored in DATE (or maybe TIMESTAMP) columns. If not, you're going to waste resources converting them to DATEs whenever you need them to behave like DATEs, and risk run-time errors because of bad data.
Normally, the "previous" month means the month before the current month. In April, the previous month is March.
By "previous" month, do you mean the 2nd latest month in the table? That is, this data contains data from February and March, 2011; March 2011 is the latest of those months, February 2011 is the next-to-last, and so is that why you want a date from February?
I tried
select ADD_MONTHS(to_date(max(date_ran), 'MM/DD/YYYY-HH24:MI'),-1)
from daily_tests_a
where date_ran like '%/11-%'
order by date_ran desc
which returns 2/28/0011 6:19:00 AM and that is not the result I am looking for
Regards
SMKTry this:
WITH got_real_date AS
SELECT TO_DATE ( SUBSTR (date_ran, 1, 14)
, 'MM/DD/RR-HH24:MI'
) AS real_date
FROM table_x
-- WHERE ... -- If you need any filtering, put it here
SELECT TO_CHAR ( MAX (real_date)
, 'MM/DD/RR-HH24:MI'
) AS last_date
FROM got_month_num
WHERE real_date < (
SELECT TRUNC (MAX (real_date), 'MONTH')
FROM got_real_date
;Edited by: Frank Kulash on Apr 5, 2011 3:59 PM -
How to get the last run date.
We intend to develop an incremental data load mapping using this strategy:
1) The mapping reads the date it was last run from an auxiliary table.
2) It selects from the source only those rows that were inserted or updated after said date.
3) Then, a post-mapping process updates the last run date in the auxiliary table, using SYSDATE.
The problem with this logic is that there is a gap: if the mapping starts running at 1:00 and ends at 2:00, the rows that are inserted in between will never be loaded.
Is there any way to get the value when the mapping started running? Is there a better way to do this?
Any help would be appreciated.
Juan AlgabaThere is always the possibility of some record updates slipping through the crack if you are depending on dates unless you are very carefull. All of the audit tasks that the OWB-generate code performes take time. Any pre- or post- process that needs to run takes time. So which date is the best cuttoff point to equate to "when the last run of the merge (or insert or update) statement completed"?
Plus, how do you handle reloads if the previous load failed and your mapping had incremental commits?
Is your source on another server? If so, are the dates in perfect synch? The audit tables populate with sysdate of your runtime schema. Is that the same as the sysdate on your source remote database?
I would qualify my query to look for all updates since the start of the last run that finished successfully - adjusted if neccesary for sysdate differences if it is on a remote schema. And make sure that your code handles any reloads gracefully in the event that this brings back data that you have already loaded once. .
Because we use Oracle Streams to load a local staging area, we also have custom code to dump the primary keys of all data changes to utility staging tables while streams is updating the local copy. So, our Person table has an st_Person_delta table that just holds the primary keys that have been updated by Streams since the last ETL run.
During datamart load we disable the streams apply to stabilize our environment, and join these lists of pk's to their source tables to drive our ETL. So we only select data where Streams has performed an update to the row since our last run. When we are done our ETL, we truncate the primary key staging tables, and then turn streams back on to start loading up our new delta into our staging tables again..
The ETL gets pretty complex though when many tables join together in one mapping and you need to check all possible source table deltas to see if any of them got updated to determine the delta for a given dimension or fact record, but it works great once you get it all done. -
Last run date & time & multiple files handling
Hi frnds,
i am working on an outbound interface in which i am retrieving data from custom db table,processing it with other db tables and writing the final output into a file into the application server and updating the custom db table.
Now i have an issue here when i am giving plant as input in selection screen (select-options), i should also get those plants from my custom table which have no last run date and time.
How to get that?
Next part of my question is for multiple plants entry,multiple files have to created in application server.
Presently, i have concatenated the file path n name.Do i need to loop the same with s_werks.Will it work
Also i used an internal table for update data storage.When multiple plants are their how to handle the updation.
Rgds,
SimranHi.
In ur reply i did'nt understood two things
1) this is how i'm doin the selection
select lt_run_dt
lt_run_tm
into table itab1
from z_table
where prog_name EQ sy-repid
AND plant IN s_werks
will it give me plants whose last_run_date and last_run_time are not in the z table?
2) If you are going with select-option from parameter, then if you have to write a FILE per PLANT. Then you can loop at plant->extract the data-> write to app server-update z table->end loop
Does that means:
loop at s_werks
open dataset
transfer
modify
endloop
Kindly clarify to solve this issue.
Rgds,
Simran -
BI Report information :Report technical name - Report name - Last run date
hi,
I want to know how we gather the information about the total reports present in production environment in following format.
Report technical name - Report name - Last run date
I know a table RSZCOMPDIR where we can find technical name and last run information, but this table does not give Report name.(description)
Is there any other table which can give me this information???Hi Amruta,
check the following forum link which is already posted . probably it will help.
[How to find out Query last used by whom|How to find out Query last used by whom]
Regards
Sree -
To find last updated date in sql developer for a procedure or a function
hi
how to to find last updated date in sql developer for a procedure or a function.
i m using sql developer version in 1.2I think you are in the wrong forum...
Anyway you can try
select * from
all_objects o
where o.object_type in ('FUNCTION','PROCEDURE');
you have there the created date, last DDL and timestamp -
Create a listing of reports with last run date and # of times run
Hi All,
I want to create a listing of reports with last run date and number of times report is run in the past 18 months.
If anybody can please help me with the query for the same.
Regards,
Sk
Edited by: user10989244 on Aug 18, 2009 7:12 AMHi Sk
Assuming you have the collection of statistics enabled, which it is out of the box, you can get the information you need from the EUL5_QPP_STATS table. This script will help:
SELECT
QPP.QS_DOC_OWNER WORKBOOK_OWNER,
QPP.QS_DOC_NAME WORKBOOK_NAME,
QPP.QS_DOC_DETAILS WORKSHEET_NAME,
QPP.QS_CREATED_BY RUN_BY,
TRUNC(MAX(QPP.QS_CREATED_DATE)) LAST_USED_DATE,
COUNT(QPP.QS_ID) TIMES_USED
FROM
EUL5_QPP_STATS QPP
WHERE
QPP.QS_CREATED_DATE >= ADD_MONTHS(SYSDATE, -18)
GROUP BY
QPP.QS_DOC_OWNER,
QPP.QS_DOC_NAME,
QPP.QS_CREATED_BY,
QPP.QS_DOC_DETAILS
ORDER BY 1,2,3;
Best wishes
Michael -
Calculating 60 days from last run date and sum a total for those 60 days
I need to calculate 60 days from last run date (I will create prompts), then take that number to sum a total of items.
Can someone be of assistance.Hi,
You can create a calculation to calculate 60 days before your run date. e.g. if rundate is your date item then the calculation will be:
rundate-60
Rod West -
How to find last login date of a sql login?
i want to disable the SQL Logins which are not logged in last 15 days. (I schedule a job every night to check and disable)
For this
i want to find last login date of all sql logins in an instance if the login didn't log in with in 15 days i want to disable them.
In SYS.SYSLOGINS table we can see all the logins and 'isntname' tells us if it is SQL login or windows login.
but where to find the last login date of SQL log in ?
Can any one help me?Hi HYDBA,
If you use SQL Server 2005 or later, you can only get the current logon data using
DMV likes:
select
max
(login_time)as
last_login_time, login_name
from
sys.dm_exec_sessions
group
by login_name;
Related to your question there are two options:
One is logon trigger,
which is used to get current login time and login name comparing with the data from
sys.dm_exec_sessions. If the current login time comparing with last login time is larger than 15 days, then prevent the current login.
Another one is to schedule a job, which is used to disable logon who’s current login time
comparing with last login time is larger than 15 days.
Hope it’s helpful for you.
Regards, Amber zhang
Maybe you are looking for
-
After setup I can't open itunes
After the setup I can't open itunes:( Please, help!
-
Firefox 4 will not go to the selected webpage; the round arrow keeps turning and nothing happens or sometime it works after a minute or so. Internet Explorer works fine.
-
Just go to google finance and get a stock quote on any stock and then the price comes up and you can choose to see the price history of different time periods, 1, 5, day one week, one month, etc. In the past when you hit the button for one of the cha
-
how long should i charge my nano for the first time
-
Why is my macbook making the cd startup sound every few hours or within the
first hour it's been on?