Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: QSM-00781 on DBMS_ADVISOR.TUNE_MVIEW
Robbert van der Hoorn 寫道:
> 1) Do you have the ADVISOR role?
> 2) MV's on DUAL are impossible, for DUAL has no primary key.
> 3) Don't assign anything to name. It's returned.
> 4) Try this one (works for me):
>
> log in as system
> set serveroutput on
>
> run this:
>
> declare
> name varchar2(30);
> mv_sql varchar2(1000);
> begin
> mv_sql := 'create materialized view mvtest as select seq, topic, info from
> help where seq=1';
> DBMS_ADVISOR.TUNE_MVIEW(NAME, mv_sql);
> dbms_output.put_line(name);
> END;
> /
>
> Robbert van der Hoorn
I also get the same error with Morgan's sample. I have neither SH schema nor the HELP table. But I've created the tables and made sure the CREATE MV statements do work.
According to DBMS_ADVISOR docs, there are 4 possible values for EXECUTION_TYPE. But the error message listed two only, missing out the ones related to MV. Can this be the cause / symptom of the problem? Received on Thu Oct 05 2006 - 20:51:52 CDT
![]() |
![]() |