Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Job History only 7 days?

Job History only 7 days?

From: NetComrade <netcomradeNSPAM_at_bookexchange.net>
Date: Mon, 13 Aug 2007 14:06:54 -0400
Message-ID: <7971c39cgrlva0ginikdtu8v3626t1hk92@4ax.com>


Is there are a way to increase duration?

  select
  trunc(a.start_time) start_date
,b.target_name
,a.job_name as job_name
,a.end_time as end_time
,a.start_time as start_time
,a.status as status
,max(a.start_time) over (partition by a.job_name order by
trunc(a.start_time)) as last_time
  from mgmt$job_execution_history a, mgmt$job_targets b where   b.target_name IS NOT NULL
  )
 where
 start_time=last_time
 and start_date>trunc(sysdate)-8
 order by target_name, start_time
.......
We run Oracle 9iR2,10gR1/2 on RH4/RH3 and Solaris 10 (Sparc) remove NSPAM to email Received on Mon Aug 13 2007 - 13:06:54 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US