How long did job run?

2002-09-05 Thread Vladimir Barac



Hello to everyone

Is it possible to find LAST execution 
time of a job?

DBA_JOBS has column TOTAL_TIME, but I 
need something like "last time".

Thanks


Re: How long did job run?

2002-09-05 Thread Jan Pruner

LAST_DATE or LAST_SEC  from USER_JOBS

JP

On Thursday 05 September 2002 10:43, you wrote:
 Hello to everyone

 Is it possible to find LAST execution time of a job?

 DBA_JOBS has column TOTAL_TIME, but I need something like last time.

 Thanks

-- 
 Pruner Jan
   [EMAIL PROTECTED]
 http://jan.pruner.cz/
-
Only Robinson Crusoe had all his work done by Friday
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Jan Pruner
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



RE: How long did job run?

2002-09-05 Thread Naveen Nahata



SELECT 
to_char(LAST_DATE, 'DD-MON- HH:MI:SS')FROM DBA_JOBS WHERE job = 
job_id. This will give you the last date and the time when a particular job was 
successfully executed

Naveen

  -Original Message-From: Vladimir Barac 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, September 05, 2002 2:13 
  PMTo: Multiple recipients of list ORACLE-LSubject: How 
  long did job run?
  Hello to everyone
  
  Is it possible to find LAST execution 
  time of a job?
  
  DBA_JOBS has column TOTAL_TIME, but I 
  need something like "last time".
  
  Thanks


Re: How long did job run?

2002-09-05 Thread Jack van Zanen

Hi

I think in your job you have to add some code that does an entry in a table
before and after  it runs

so if you schedule a procedure than you can add some code to the procedure

before:
insert into table table values (  scheduled procedure , sysdate,null)
commit;

after:
update table set end_time = sysdate where name = 'scheduled
procedure' and end_time is null;
commit;



Jack


   

  Vladimir Barac 

  [EMAIL PROTECTED]To:   Multiple recipients of list 
ORACLE-L [EMAIL PROTECTED]   
  Sent by: cc:   (bcc: Jack van 
Zanen/nlzanen1/External/MEY/NL)
  [EMAIL PROTECTED] Subject:  How long did job run? 

   

   

  05-09-2002 10:43 

  Please respond to

  ORACLE-L 

   

   




Hello to everyone

Is it possible to find LAST execution time of a job?

DBA_JOBS has column TOTAL_TIME, but I need something like last time.

Thanks


===
De informatie verzonden in dit e-mailbericht is vertrouwelijk en is
uitsluitend bestemd voor de geadresseerde. Openbaarmaking,
vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan
derden is, behoudens voorafgaande schriftelijke toestemming van Ernst 
Young, niet toegestaan. Ernst  Young staat niet in voor de juiste en
volledige overbrenging van de inhoud van een verzonden e-mailbericht, noch
voor tijdige ontvangst daarvan. Ernst  Young kan niet garanderen dat een
verzonden e-mailbericht vrij is van virussen, noch dat e-mailberichten
worden overgebracht zonder inbreuk of tussenkomst van onbevoegde derden.

Indien bovenstaand e-mailbericht niet aan u is gericht, verzoeken wij u
vriendelijk doch dringend het e-mailbericht te retourneren aan de verzender
en het origineel en eventuele kopieën te verwijderen en te vernietigen.

Ernst  Young hanteert bij de uitoefening van haar werkzaamheden algemene
voorwaarden, waarin een beperking van aansprakelijkheid is opgenomen. De
algemene voorwaarden worden u op verzoek kosteloos toegezonden.
=
The information contained in this communication is confidential and is
intended solely for the use of the individual or entity to whom it is
addressed. You should not copy, disclose or distribute this communication
without the authority of Ernst  Young. Ernst  Young is neither liable for
the proper and complete transmission of the information contained in this
communication nor for any delay in its receipt. Ernst  Young does not
guarantee that the integrity of this communication has been maintained nor
that the communication is free of viruses, interceptions or interference.

If you are not the intended recipient of this communication please return
the communication to the sender and delete and destroy all copies.

In carrying out its engagements, Ernst  Young applies general terms and
conditions, which contain a clause that limits its liability. A copy of
these terms and conditions is available on request free of charge.
===






--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Jack van Zanen
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP

RE: How long did job run?

2002-09-05 Thread Jorma . Vuorio



You 
can find it from last_date column from that table:

SQL alter session set nls_date_format='dd.mm. 
hh24:mi:ss';

SQL select LAST_DATE from dba_jobs;

LAST_DATE---05.09.2002 
12:39:31
HTH

Jorma

-Original Message-From: ext Vladimir Barac 
[mailto:[EMAIL PROTECTED]]Sent: 05 September, 2002 11:43To: 
Multiple recipients of list ORACLE-LSubject: How long did job 
run?
Hello to everyone

Is it possible to find LAST execution 
time of a job?

DBA_JOBS has column TOTAL_TIME, but I 
need something like "last time".

Thanks


RE: How long did job run?

2002-09-05 Thread Scott . Shafer

SQL desc dba_jobs;
 NameNull?Type
 ---  
 JOB NOT NULL NUMBER
 LOG_USERNOT NULL VARCHAR2(30)
 PRIV_USER   NOT NULL VARCHAR2(30)
 SCHEMA_USER NOT NULL VARCHAR2(30)
 LAST_DATEDATE
 LAST_SEC VARCHAR2(8)
 THIS_DATEDATE
 THIS_SEC VARCHAR2(8)
 NEXT_DATE   NOT NULL DATE
 NEXT_SEC VARCHAR2(8)
 TOTAL_TIME   NUMBER
 BROKEN   VARCHAR2(1)
 INTERVALNOT NULL VARCHAR2(200)
 FAILURES NUMBER
 WHAT VARCHAR2(4000)
 NLS_ENV  VARCHAR2(4000)
 MISC_ENV RAW(32)
 INSTANCE NUMBER

SQL 

You need to look more carefully.  There is a column called LAST_DATE.

Scott Shafer
San Antonio, TX
210.581.6217


 -Original Message-
 From: Vladimir Barac [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, September 05, 2002 3:43 AM
 To:   Multiple recipients of list ORACLE-L
 Subject:  How long did job run?
 
 Hello to everyone
  
 Is it possible to find LAST execution time of a job?
  
 DBA_JOBS has column TOTAL_TIME, but I need something like last time.
  
 Thanks
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



Re: How long did job run?

2002-09-05 Thread Tim Gorman



DoesAUDIT SESSION tracks jobs run from 
DBMS_JOB? If so, then that makes an OK job history (including elapsed time 
as well as logical I/O and physical I/O consumed)...

  - Original Message - 
  From: 
  Vladimir Barac 
  
  To: Multiple recipients of list ORACLE-L 
  
  Sent: Thursday, September 05, 2002 2:43 
  AM
  Subject: How long did job run?
  
  Hello to everyone
  
  Is it possible to find LAST execution 
  time of a job?
  
  DBA_JOBS has column TOTAL_TIME, but I 
  need something like "last time".
  
  Thanks