我有一个查询,当我运行它时,我可以将结果很好地插入到需要进入的表中。
但是当我们将它作为MV刷新运行时:
dbms_mview.refresh(mv, atomic_refresh => transactional) ;
我们收到此错误:
Error report -
ORA-12008: error in materialized view refresh path
ORA-01722: invalid number
ORA-06512: at "LINK_OD_IREPORT.R_MV_IN_PLACE", line 26
ORA-06512: at line 1
12008. 00000 - "error in materialized view refresh path"
*Cause: Table SNAP$_<mview_name> reads rows from the view
MVIEW$_<mview_name>, which is a view on the master table
(the master may be at a remote site). Any
error in this path will cause this error at refresh time.
For fast refreshes, the table <master_owner>.MLOG$_<master>
is also referenced.
*Action: Examine the other messages on the stack to find the problem.
See if the objects SNAP$_<mview_name>, MVIEW$_<mview_name>,
<mowner>.<master>@<dblink>, <mowner>.MLOG$_<master>@<dblink>
still exist.
有谁知道这意味着什么? 我试过查询这些并说它们不存在: select * from $ SNAPSHOT_mv_name;
从MVIEW $ _mv_name;
中选择*