1

in my application I need to refresh materialized view before select from it (in one sql statement)

I've tried following:

begin 
dbms_mview.refresh('MYMV');
end;

select * from MYMV 

Following errors occured: ORA-06550, PLS-00103

4
  • 1
    This cannot be done in one SQL statement, because the refresh is only possible from PL/SQL. Would be interesting to know why you need it.
    – HAL 9000
    Oct 23, 2013 at 10:40
  • I just need fresh data in select.
    – ziftech
    Oct 23, 2013 at 11:14
  • Why do you need to do it in a single SQL statement? Oct 23, 2013 at 12:54
  • External software restriction
    – ziftech
    Oct 25, 2013 at 7:25

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.