dbms_advisor [message #244711] |
Wed, 13 June 2007 20:59 |
adee_saleh
Messages: 30 Registered: May 2007 Location: Yemen
|
Member |
|
|
i need help for this problem please as fast as possible
i just want to know what is wrong with this code because it always give me the same error as the following
declare
begin_snap number;
end_snap number;
BEGIN
SELECT max(snap_id)INTO begin_snap FROM DBA_HIST_SNAPSHOT
WHERE trunc(end_interval_time, 'MI') <= TO_DATE('10:10 (06/05)',
'HH24:MI (MM/DD)');
SELECT min(snap_id) INTO end_snap FROM DBA_HIST_SNAPSHOT
WHERE end_interval_time <=TO_DATE('10:10 (06/10)',
'HH24:MI (MM/DD)') ;
DBMS_ADVISOR.create_task (
advisor_name => 'ADDM',
task_name => '9700_1032_AWR_SNAPSHOT',
task_desc => 'Advisor for snapshots 970 to 1032.');
DBMS_ADVISOR.set_task_parameter (
task_name => '9700_1032_AWR_SNAPSHOT',
parameter => 'START_SNAPSHOT', value => begin_snap);
DBMS_ADVISOR.set_task_parameter (
task_name => '9700_1032_AWR_SNAPSHOT',
parameter => 'END_SNAPSHOT',value=> end_snap);
DBMS_ADVISOR.execute_task(task_name => '9700_1032_AWR_SNAPSHOT');
end;
ORA 13709: ??? ????? ??????? ???????? "START_SNAPSHOT" ??? ???????.
ORA-06512: ??? "SYS.PRVT_ADVISOR", line 1283
ORA-06512: ??? "SYS.DBMS_ADVISOR", line 186
ORA-06512: ??? line 1
[Updated on: Wed, 13 June 2007 21:02] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|