Checking Job Status
Hi,
i am using 11.2.0.1 in windows 2008 server. i have a job id and i need to check how long the job took to run in my database which is scheduled at a particular time and whether the job has been run successfully or not.
Regards,
007
Edited by: 007 on Mar 29, 2012 7:58 AM
007 wrote:
Hi,
i am using 11.2.0.1 in windows 2008 server. i have a job id and i need to check how long the job took to run in my database which is scheduled at a particular time and whether the job has been run successfully or not.
Regards,
007
Edited by: 007 on Mar 29, 2012 7:58 AMquery dba_jobs
:03:28 SQL> desc dba_jobs
Name Null? Type
JOB NOT NULL NUMBER
LOG_USER NOT NULL VARCHAR2(30)
PRIV_USER NOT NULL VARCHAR2(30)
SCHEMA_USER NOT NULL VARCHAR2(30)
LAST_DATE DATE
LAST_SEC VARCHAR2(8)
THIS_DATE DATE
THIS_SEC VARCHAR2(8)
NEXT_DATE NOT NULL DATE
NEXT_SEC VARCHAR2(8)
TOTAL_TIME NUMBER
BROKEN VARCHAR2(1)
INTERVAL NOT NULL VARCHAR2(200)
FAILURES NUMBER
WHAT VARCHAR2(4000)
NLS_ENV VARCHAR2(4000)
MISC_ENV RAW(32)
INSTANCE NUMBER
Similar Messages
-
5 error while checking job status
Hi,
We are getting the following error when we are trying to check the status of the process chain through FM 'RSPC_API_CHAIN_GET_STATUS':
5 error while checking job status.
The real scenario is we are using an abap screen with a button on it. when the user clicks on the button we call the FM 'BP_EVENT_RAISE' to trigger the process chain. once the chain is triggered we are having an endless loop to monitor the status of the chain with FM 'RSPC_API_CHAIN_GET_STATUS' untill the chain status turns green ie G.
Now while monitoring the status it randomly throws me the above error. it seems to work sometimes and other times it gives the popup with the said error.
Can anybody help why we get the error.
Regards,
ShashankHi Shanshank,
Try to Debug the FM.
Rgds,
Ravi -
All timer jobs don't start (paused in check job status)
Hello,
Some bad things have happend to our SharePoint Server 2010. All timer jobs suddenly stopped running. The last time they ran successfully was 09/26/11. Since that time all jobs have been scheduled to run according to their schedule but don't actually run.
In the Check Job Status view there is a list of jobs scheduled to run 09/26/11 which are currently paused for some reasons, other jobs don't run at all.
Is it possible to unpause these jobs and let other jobs to run? Any ideas would be very much apprecaited. Thank you in advance.Hi,
Thanks for your post.
Pausable Timer Jobs
You can now create pausable timer jobs. This is done by inheriting from the
SPPausableJobDefinition and overriding Execute(SPJobState) instead of
Execute(Guid). You can then use the current job state (SPJobState) to store values which are retrieved when the job is resumed.
Running jobs on all content databases
Another new timer job derivative type is the SPContentDatabaseJobDefinition.This is a timer job specifically made to perform actions on content databases. The timer job is distributed on the WFE servers and each content database is only
processed by one job. Override the Execute(SPContentDatabase, SPJobState) to add your own processing. The job supports pausing.
Running jobs on all Site Collections
A really interesting new timer job type is the SPAllSitesJobDefinition. This one is derived from the SPContentDatabaseJobDefinition and has a method called
ProcessSite(SPSite, SPJobState) which you override to process the SPSite object. This could be very useful to build site inventories/directories.
Running job on a specific server
The SPServerJobDefinition is a pausable timer job that is designed to be targeted to a specific server (SPServer).
Running jobs for specific services
The SPServiceJobDefinition is another pausable timer job that runs a job on all servers where a specific
SPService has been provisioned. A very similar job is the
SPFirstAvailableServiceJobDefinition which runs the job on the first available server which has a specific SPService installed. If you would like to run a job an all servers you can easily use SPServiceJobDefinition. Then use the timer job service
(which is installed on all servers, except dedicated database servers) and pass
SPFarm.Local.TimerService as the SPService parameter in the constructor.
All of the new specific timer jobs are essentially smart derivatives of the SPJobDefinition but using these new abstract classes will certainly save you some time when you need to target your timer jobs.
I hope that helps. -
Hi SAPsimhas,
My requirement is as below.
I will loop through an internal table and create some files with background processing method.(JOB_OPEN,SUBMIT & JOB_CLOSE)
Now once this job is triggered I need to check the status for that job after maximum 10 mins. Its not neccessary that each job will take 10 mins. only,It can be finished in 2 mins also.
Once the job is finished then I will XCOM that file.
So my question is how to code such timer which will check the job status for that job? I have a FM BP_JOB_READ which returns the job status.
Reply is highly appriciated.Try this way
do.
call function 'SHOW_JOBSTATE'
exporting
jobcount = p_jobc
jobname = p_jobn
importing
aborted = v_aborted
finished = v_finished
ready = v_ready
running = v_running
scheduled = v_scheduled
exceptions
jobcount_missing = 1
jobname_missing = 2
job_notex = 3
others = 4.
if v_aborted eq 'X'.
exit.
endif.
if v_finished eq 'X'.
select single * from tbtcp into wa_tbtcp1
where jobname eq p_jobn
and jobcount eq p_jobc.
if sy-subrc eq 0.
move wa_tbtcp1-listident to p_spono.
endif.
exit.
endif.
if v_count le 10.
call function 'ENQUE_SLEEP'
exporting
seconds = 60.
v_count = v_count + 1.
endif.
enddo.
a® -
How to check the status of a job!!!
Hi,
i want to check the status of a job and also send a mail when a job is cancelled.
Is there any function module which does that , also i want check the jobs across various time periods and not of today....
Its urgent,
Answers will be rewarded,
Regards,
RohanHi Rohan,
You can get job information by <b>calling function "BP_JOB_READ".</b> If you pass the value btc_read_jobhead_only defined in LBTCHDEF, it will only return the
job header info into the export parameter JOB_READ_JOBHEAD. The job status
is set in JOB_READ_JOBHEAD-STATUS.
Alternatively, <b>you can just lookup table TBTCO</b>, the status is in
TBTCO-STATUS.
The values in STATUS are defined in LBTCHDEF as follows;
DATA:
BTC_RUNNING LIKE TBTCO-STATUS VALUE 'R',
BTC_READY LIKE TBTCO-STATUS VALUE 'Y',
BTC_SCHEDULED LIKE TBTCO-STATUS VALUE 'P',
BTC_RELEASED LIKE TBTCO-STATUS VALUE 'S',
BTC_ABORTED LIKE TBTCO-STATUS VALUE 'A',
BTC_FINISHED LIKE TBTCO-STATUS VALUE 'F',
BTC_PUT_ACTIVE LIKE TBTCO-STATUS VALUE 'Z',
BTC_UNKNOWN_STATE LIKE TBTCO-STATUS VALUE 'X'.
Thanks,
Vinay -
To check the status of a step inside a background jobs
Hi All,
i have a requirement where i have to check the status of a step(program)
inside a background job.
I tried with table TBTCP, but this will give the program status as P(scheduled)
always.
i know to find the status of a background job as whole, but how will we
find out the status of a program inside a job.
Could anyone please help?Use function module BP_JOBLOG_READ, result is an internal table of structure TBTC5,
Analyze this internal table, looking for message S550(00) at the beginning of a step.
Regards -
URGENT : Error 5 when checking the job status
Hello Forum,
While monitoring the Process Chains in BW 3.1, I got the following message in the <b>Information </b>Pop-up:
<b>Error 5 when checking the job status</b>
Could you please tell me what it means?
Thank you,
its my duty to assign points,
rajHi,
Are you able to view the log after refreshing and clicking the tick mark button on this message or is it not letting you go into the log itself.
Can you directly go to Log view thru Tcode RSPCM and see. Once you are inside try to find where exactly the process failed.
Thanks,
JituK -
RME-Compliance check job failed and Execution status display notattempted
Dear All,
We did a compliance check job schedule one time/a day.but unfortunately it failed as below:
Execution Summary
Pending : 0
NotAttempted : 361
Successfull : 0
Failed : 0
Partial Success : 0
How can i do?
Thanks!Use this document:
http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_resource_manager_essentials/4.0/user/guide/over.html -
Unable to get job status via BIP web service
Hi,
I'm scheduling a report job using the method scheduleReport of the ScheduleService web service. The method returns the jobId correctly, then I check the job status using getScheduledReportStatus.
Every time the method returns jobstatus = "Scheduled", but the report is finished. I noticed that BIP schedule a child job with different jobId (why?) and If I use it, the getScheduledReportStatus return a null status.
Using the method getScheduledJobInfo I have all the information, but how can I get the child jodId ?
Best regards,
AlessioHi Alessio
I know this was a long time ago but i was just taking a chance:
Quick question: did you get this to work? I can schedule a report using the ScheduleReport sevice, but when i query the status using getScheduledReportStatus, the status remains 'Scheduled', even after the job has run. The job also does not appear in the Job History of the report. The report is set to burst, which it does correctly.
Do you have any ideas?
Thanks very much. -
Hello,
I am facing following issue regarding web analytic service for specific date 2014-08-18:
Verified following services which are running and status was success on that specific date 2014-08-18 :
Web Analytics Service
Microsoft Usage Data Import
Microsoft SharePoint Foundation Usage Data Processing
Observed latest Web Analytics Setting as below :
LastAggregationDateId
20140817 - The date id of the last successfully completed data aggregation
LastAggregationTime
2014-08-18T00:00:13.210 - The time of the last successfully completed data aggregation
LastBestBetSuggestionAggregationDateId
20140818 - The date id of the last successfully completed best bet suggestion data aggregation. This date id should not be reset to an earlier date manually.
LastDataCopyTime
2014-08-17T23:59:09.693 - The last time the data were copied from the staging databases to this reporting database for aggregation
Above settings says that Data has not copied from Staging DB to Reporting DB on Date 2014-08-18
In order to verify the same I have checked as follow:
SELECT COUNT (*) FROM [dbo].[WATrafficAggregationByDate] WITH (NOLOCK)
WHERE [DateId] = 20140818
Above SQL Query has returned ZERO value.
Can anyone please let me know Why data has not been copied from staging DB to Reporting DB even timer job status is success ?
Your help will be much appreciated.
Thanks and Regards,
Dipti ChhatrapatiThe image itself has the answer
The user requests a page, and the action gets picked up by the Web Analytics service that runs on SharePoint.
The Web Analytics service logs this in the “.usage” files.
A Timer job called “Microsoft SharePoint Foundation Usage Data Import” by default runs every 30 minutes. It imports the logs into the staging database.
Each night the “Microsoft SharePoint Foundation Usage Data Processing” Timer job runs and transforms the data into the reporting database.
The last run time of the import from staging and the aggregation is logged in the Settings table in the Reporting database.
Usage and Health Data Collection Service Application collects Data about Usage and Health of your farm.
This information is used for Health Monitoring and this is also required for running the Web Analytics Service. If you do not have a Usage and Health Data Collection Service Application or your
Usage and Health Data Collection Proxy is stopped, you will not see any data in the Web Analytics Report
Regards Chen V [MCTS SharePoint 2010] -
How to determine the background job status?
Hi Gurus,
My program is as follows:
1. I have used FM job_open to open a new job.
2. SUBMIT to call another program which creates the file on application server.
3. FM job_close to trigger that job.
Now I want to determine the status of that triggered job (Not through SM37), Once I get a status for complete or cancelled I will be coding based on that.
So could you please help me out for the issue?
Thanks in advance.hi ,
check table TBTCO.
YES. u can check for STATUS = P- Schedule/S---Released
regards
Prabhu
Edited by: Prabhu Peram on Sep 18, 2008 6:43 PM -
Displaying Jobs Status and Logs without using SM37
Hello All,
First of all, thanks a lot for your time.
We're being asked by the Audit Team to remove tcode SM37 from our Job Roles. Although I agree with them that users should not have "change" or broad display access for the tcode, some of them need to check other user's Jobs status, as well as their Job Logs (which I have managed to restrict using auth. object S_BTCH_JOB).
My question is: do you know if there's any alternative way or a transaction different than SM37 to display other user's Jobs status and Job Logs?
We're providing SMX for user's own jobs, but I have not been able to find an alternative way than using a restricted version of SM37 for displaying other people's Jobs status and Job Logs.
Best regards,
CMPTYou can either create your own monitor locally ( see transaction RZ20) or develop it on your own (see FM BP_JOB_STATUS_GET).
If you want to use SM37 then you can add SHOW to S_BTCH_JOB but this might be problematic in combination with RELE (of their own jobs).
[SAP Note 568963|https://service.sap.com/sap/support/notes/568963] will be able to help you further.
Cheers,
Julius -
Campaign Element execution and job status
Hello SAP Gurus,
I have a requirement, where the Client wants to execute the Campaign Element. Is that possible?
He also says, the end user should execute the Campaign element level.
I tried doing that, but the Job status remains as "JOB NOT SCHEDULED".
*Is it a technical error or settings to be done at the back end ?
Kindly help me out.
Thanks in advance.
Regards,
Srinivasan RaghavendranHi Srinivasan,
You can execute Campaign elements individually but you have to make sure that u r all uppel level marketing Plan, Campaign should be released first, Job remains not scheduled due to various reasons. if u r running mail campaign then check the target group which u r assigning to campaign has email id maintained also check for mail form maintained.
For job please check Start date if u r running periodic job then the condition must be fullfilled, for test try running job with Start date as Immidiate
Regards,
DD's -
Function module to monitor Job Status (SM37)
Is there a function module or a table that I can use to monitor JOB STATUS in BW?
Thanks in advance!
Cristina.Hi Cristina,
they are two alike SM37 giving you back the result in a table; very powerful:
BP_JOB_SELECT_SM37B Select Background Requests
BP_JOB_SELECT_SM37C Extended Job Selection
goto se37 with one of these. Testing mode: enter A for dialog mode. Perform some selections and execute.
Check the result and how the system has populated the import parameters.
let me know if that's what you wanted
Olivier.
Message was edited by:
Olivier Cora -
Job status of Business Rules not reflecting correctly in Hyperion Planning
Hi,
In our Planning Web Application version 11.1.2.1 (Classic application), we have issue with the Business Rules not changing the job status from Processing to Complete.
Essentially giving an indication to users that the job is taking longer than expected.
Having noticed that behavior, when we cross check with Admin credentials (Application Logs ) HBR Launch.log. The End Time of the job is updated promptly.
We have couple of SRs Open with Oracle but they concluded it’s a bug and need to upgrade to 11.1.2.2. But currently we do not have any plans to upgrade to the latest version.
In order to force the Status change to mark it as Complete at the SQL Server backend.
We have to update the status table HYP_JOB_STATUS manually via database update.
But this is laborious process.
Did anyone encounter such issue? Please suggest a feasible option here ?
Thanks,
Venkat
Edited by: 947686 on Dec 18, 2012 6:21 AMHello Shiva,
We do not have any issue with calc rules; we are facing this issue with Business rules.
We have looked into the logs in both Applcation logs and Essbase logs nothing found strange except couple of .xcp files were generated in Essbase server. We have sent those .xcp files to Oracle for investigation. We have also noticed that Web Logic server was not hand shaking properly with Hyperion Server. Oracle responded with few application settings which we are already sycn with recommended settings.
We had the same issue in 8 months back and the same repeated now.
Thanks,
Venkat
Maybe you are looking for
-
I tried to delete one item from an email folder, my computer deleted the whole file and I cant find it anywhere. Any ideas?
-
Lumia 1020 Gallery Widget - How to Delete Sample P...
I've got the Nokia photo gallery widget pinned to the home screen of my phone. When the Black update installed, new sample photos were also installed and these sample photos show up on the gallery widget in the image preview. I was able to delete s
-
I have Microsoft Office 2007 installed on my computer. And when I start Analyser I don't see any SAP menu. Does BEx works with Excel 2007? Thanks, Olga
-
Captivate 7 | Interaction template | Not working on tablets
Hello, I have a problem with the interation templates provided in the Captivate 7. Opening a blank project, I have insert a tab interactive template (ref screenshot below) from the option Insert > Interaction. After publishing project to HTML 5 the o
-
I, trying to install adobe reader in a Sunblade 150 with solaris 10. After installation; when I want to run the application the following error is shown: bash-2.05# cd usr/local/adobe/Reader/sparcsolaris/bin bash-2.05# ./acroread ld.so.1: ./acroread: