Hi Craig,
unfortunately i have not the actual version of dbms_inmemory_advisor at hand, but here is the corresponding code snippet of my version related to your error.
BEGIN
SELECT DHS.BEGIN_INTERVAL_TIME INTO ADD_HIST_STATISTICS.CAPTURE_WINDOW_START
FROM DBA_HIST_SNAPSHOT DHS, IMADVISOR_DBID_INSTANCE_NUM IDIN
WHERE TID = IDIN.TASK_ID
AND DHS.DBID = IDIN.DBID
AND DHS.INSTANCE_NUMBER = IDIN.INSTANCE_NUMBER
AND DHS.SNAP_ID = ADD_HIST_STATISTICS.START_SNAP_ID;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RAISE_APPLICATION_ERROR (-20001, 'No such DBA_HIST_SNAPSHOT.SNAP_ID for this database instance: START_SNAP_ID='||START_SNAP_ID);
WHEN OTHERS THEN
RAISE;
END;
BEGIN
SELECT DHS.END_INTERVAL_TIME INTO ADD_HIST_STATISTICS.CAPTURE_WINDOW_END
FROM DBA_HIST_SNAPSHOT DHS, IMADVISOR_DBID_INSTANCE_NUM IDIN
WHERE TID = IDIN.TASK_ID
AND DHS.DBID = IDIN.DBID
AND DHS.INSTANCE_NUMBER = IDIN.INSTANCE_NUMBER
AND DHS.SNAP_ID = ADD_HIST_STATISTICS.END_SNAP_ID;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RAISE_APPLICATION_ERROR (-20001, 'No such DBA_HIST_SNAPSHOT.SNAP_ID for this database instance: END_SNAP_ID='||END_SNAP_ID);
WHEN OTHERS THEN
RAISE;
END;
Just cross-check this in your own environment.
Regards
Stefan