on 04-25-2016 8:28 AM
Hi All,
I am looking at Oracle Database In-Memory as an option for the business and have run into a problem with the IM Advisor.
I have run the IM Advisor perfectly fine on our DEV environment which is running 12c but wanted to know the results from our Production environment by way of exporting and importing AWR Statistics as per the Whitepaper
However when I have imported the AWR stats from production and passed in the start and end snapshot ids from production into dbms_inmemory_advisor.add_hist_statistics but it complained :-
ORA-20001: No such DBA_HIST_SNAPSHOT.SNAP_ID for this database instance:
I've checked DBA_HIST_SNAPSHOT and sure enough those snapshot ids exist but with the DBID from production, which I am assuming is what the error is all about.
Now I am no Oracle DBA but I can follow instructions. Have I misread these instructions or is there something else that needs to be done?
Thanks
Craig
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Craig,
as i said i can not troubleshoot this issue as i don't have the SAP scripts and current version of dbms_inmemory_advisor at hand.
Is table IMADVISOR_DBID_INSTANCE_NUM maybe maintained by script imadvisor_awr_augment_import.sql? Or maybe by PL/SQL calls that are called by this script?
Just look through the post steps after importing the AWR data.
Regards
Stefan
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.