Forums
Smart Notification
Scheduling SN report
Author
Messages
Greg Moeller
Veteran Member
Posts: 1498
2/29/2012 3:11 PM
Schedule report showing last run time, next run time, scheduled run time and name of infoset? Would really like to be able to associate this with the notifications as well, but would take the infoset scheduling as a start.
Anyone have a working example that they'd be willing to share?
Matthew Nye
Veteran Member
Posts: 514
2/29/2012 3:53 PM
what version are you on?
Chris Martin
Veteran Member
Posts: 277
2/29/2012 4:29 PM
This will get you the schedule name, last run time, and next run time:
select job_name, prev_fire_time, next_fire_time
from qrtz_triggers
Greg Moeller
Veteran Member
Posts: 1498
2/29/2012 4:46 PM
That is the table that I was missing!! Thanks much, Chris!
Patrick Dowd
Advanced Member
Posts: 25
2/29/2012 5:03 PM
LSN 10 will also give you Notification auditing capabilities. The same applies for Reporting Services 10.
Chris Martin
Veteran Member
Posts: 277
2/29/2012 5:23 PM
Greg - How did you map the schedule name to the infoset/notification?
Greg Moeller
Veteran Member
Posts: 1498
2/29/2012 8:08 PM
v 9.0.4.2.156 or something like that.
Chris: I haven't figured that completely out yet.... I'll let you know if I figure it out.
Greg Moeller
Veteran Member
Posts: 1498
2/29/2012 8:11 PM
How is the time stored here? We have an oracle db and I see things like 1245328740000 in the time fields? How do I get that into at least military time?
Chris Martin
Veteran Member
Posts: 277
2/29/2012 9:49 PM
I believe it's in "Unix Time", the # of milliseconds since 1/1/1970 at 00:00:00
Greg Moeller
Veteran Member
Posts: 1498
3/5/2012 2:50 PM
I tried using the unix time, but now am coming up with last run dates of sometime in 1945, which is not correct. Is there any other possibilities for how this is stored in Oracle, or do I just have something wrong in my formula? I'm using:
DateAdd("s",{QRTZ_TRIGGERS.PREV_FIRE_TIME},DateTime(1970,01,01,00,00,00))