![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
drop index my_materialize_view_column_idx; exec dbms_mview.refresh( 'my_materialized_view', 'C' ); create bitmap index my_materialize_view_column_idx on my_materialized_view(my_column); -- Unfortunately if the index is being used, then I get an error when I try to drop it. Is there a way to -- wait for a lock on the index before dropping it? That way the materialized view is still available (even without the columns) while it's refreshing. It would be convenient to rename a materialized view, yet that's not possible with my current knowledge. |
#3
| |||
| |||
|
|
exec dbms_mview.refresh( 'my_materialized_view', 'C', atomic_refresh => false ); this way, all indexes on the table are set unusable and the table gets truncated and loaded very fast with insert /*+append*/. afterwards the indizes will be rebuilded automatically. |
![]() |
| Thread Tools | |
| Display Modes | |
| |