Hello, When I execute the next procedure I recive this error:
ORA-12091: cannot online redefine table "PRUEBAS"."REGIONS" with materialized views.

I execute it this way:
begin
-- Call the procedure
pcn_organizar_tabla(ivaesquema => 'PRUEBAS',
ivatabla => 'REGIONS');
end;



create or replace procedure PCN_ORGANIZAR_TABLA (ivaEsquema in varchar2, ivaTabla in varchar2) is
cursor_id NUMBER;
stmt VARCHAR(900);
lvaSentencia VARCHAR(1000);
begin

lvaSentencia:='CREATE TABLE '||ivaEsquema||'.tmp_tabReorganizar AS SELECT * FROM '||ivaEsquema||'.'||ivaTabla;
DBMS_OUTPUT.put_line(lvaSentencia);
EXECUTE IMMEDIATE lvaSentencia;

dbms_redefinition.start_redef_table (ivaEsquema, ivaTabla,'tmp_tabReorganizar');
dbms_redefinition.finish_redef_table (ivaEsquema, ivaTabla,'tmp_tabReorganizar');
EXECUTE IMMEDIATE 'DROP TABLE tmp_tabReorganizar';
end;