JPETLEV,
We’re at XIR2 looking to upgrade to 4 (probably end up at 3.x). In R2, we use the Activity universe which points to the Audit database. Every day at 10 a.m., a report containing schedule success/Failures gets sent to our tier 1 business support. They go in and reschedule the failures or try to figure out why the failure occured.
However, I don’t believe this will work in v4.0. Especially since I had heard the audit database is different/non-existent.
In the short-term, I’ve copied the code for our report which you could run against XI R2. Warning It is neither pretty nor efficient. We had to only keep 6 months of data max otherwise this query would interfere with the process that loads data into the audit database. Since then we’ve created a poor-man’s replications of the audit database and only keep a week of data in it. This query could run for up to 30 minutes easily.
HTH
SELECT
CONVERT(CHAR (100), SERVER_PROCESS.Server_FullName),
CONVERT(CHAR (100), SERVER_PROCESS.Server_FullName),
avg(AUDIT_EVENT.Duration),
max(AUDIT_EVENT.Duration),
CONVERT(CHAR (50), EVENT_TYPE.Event_Type_Description),
rtrim(CONVERT(CHAR (20), AUDIT_EVENT.User_Name)),
DATEADD(HH, -6, AUDIT_EVENT.Start_Timestamp),
CONVERT(CHAR (100), DERIVED_OBJECT_NAME.Detail_Text),
AUDIT_EVENT.Duration,
CONVERT(CHAR (100), DETAIL_TYPE.Detail_Type_Description),
CONVERT(VarCHAR (4000), AUDIT_DETAIL.Detail_Text)
FROM
SERVER_PROCESS,
AUDIT_EVENT,
EVENT_TYPE,
(
select
AUDIT_EVENT.Server_CUID, AUDIT_EVENT.Event_ID, AUDIT_DETAIL.Detail_Text as Detail_Text
from
AUDIT_EVENT, AUDIT_DETAIL
where
(AUDIT_EVENT.Server_CUID = AUDIT_DETAIL.Server_CUID) and
(AUDIT_EVENT.Event_ID = AUDIT_DETAIL.Event_ID) and
(AUDIT_DETAIL.Detail_Type_ID = 3)
) DERIVED_OBJECT_NAME,
DETAIL_TYPE,
AUDIT_DETAIL
WHERE
( SERVER_PROCESS.Server_CUID=AUDIT_EVENT.Server_CUID )
AND ( AUDIT_EVENT.Event_Type_ID=EVENT_TYPE.Event_Type_ID )
AND ( DETAIL_TYPE.Detail_Type_ID=AUDIT_DETAIL.Detail_Type_ID )
AND ( AUDIT_DETAIL.Event_ID=AUDIT_EVENT.Event_ID and AUDIT_DETAIL.Server_CUID=AUDIT_EVENT.Server_CUID )
AND ( AUDIT_EVENT.Event_ID=DERIVED_OBJECT_NAME.Event_ID and AUDIT_EVENT.Server_CUID=DERIVED_OBJECT_NAME.Server_CUID )
AND ( SERVER_PROCESS.Application_Type_ID IN (12, 13, 15, 17, 18, 19) )
AND
( AUDIT_EVENT.Start_Timestamp BETWEEN DATEADD(HH, 6, DATEADD(DD, DATEDIFF(DD, 0, GETDATE()), 0)) AND DATEADD(HH, 6, DATEADD(DD, DATEDIFF(DD, 0, DATEADD(DD, 1, GETDATE())), 0)) )
GROUP BY
CONVERT(CHAR (100), SERVER_PROCESS.Server_FullName),
CONVERT(CHAR (100), SERVER_PROCESS.Server_FullName),
CONVERT(CHAR (50), EVENT_TYPE.Event_Type_Description),
rtrim(CONVERT(CHAR (20), AUDIT_EVENT.User_Name)),
DATEADD(HH, -6, AUDIT_EVENT.Start_Timestamp),
CONVERT(CHAR (100), DERIVED_OBJECT_NAME.Detail_Text),
AUDIT_EVENT.Duration,
CONVERT(CHAR (100), DETAIL_TYPE.Detail_Type_Description),
CONVERT(VarCHAR (4000), AUDIT_DETAIL.Detail_Text)
tmcd (BOB member since 2005-10-02)