ORA-12052: cannot fast refresh materialized view DCS_BIZ.MV_TMP_16
2014-02-14 17:04
513 查看
CREATE MATERIALIZED VIEW LOG ON tmp_mv1
WITH rowid
INCLUDING NEW VALUES;
SQL> create materialized view MV_TMP_16
2 refresh fast on demand
3 start with to_date('14-02-2014 17:03:16', 'dd-mm-yyyy hh24:mi:ss') next SYSDATE+ 3/1440
4 enable query rewrite
5 as
6 select SO.ID,so.name, CO.Pid,co.id as co_id
7 from tmp_mv1 SO, tmp_mv2 CO
8 where SO.ID= CO.pid;
create materialized view MV_TMP_16
refresh fast on demand
start with to_date('14-02-2014 17:03:16', 'dd-mm-yyyy hh24:mi:ss') next SYSDATE+ 3/1440
enable query rewrite
as
select SO.ID,so.name, CO.Pid,co.id as co_id
from tmp_mv1 SO, tmp_mv2 CO
where SO.ID= CO.pid
ORA-12052: cannot fast refresh materialized view DCS_BIZ.MV_TMP_16
解决方案:
create materialized view MV_TMP_16
refresh fast on demand
start with to_date('14-02-2014 17:03:16', 'dd-mm-yyyy hh24:mi:ss') next SYSDATE+ 3/1440
enable query rewrite
as
select SO.rowid arowid, CO.rowid browid, SO.ID,so.name, CO.Pid,co.id as co_id
from tmp_mv1 SO, tmp_mv2 CO
where SO.ID= CO.pid;
注:这里必须要加上rowid,否则就会报错
WITH rowid
INCLUDING NEW VALUES;
SQL> create materialized view MV_TMP_16
2 refresh fast on demand
3 start with to_date('14-02-2014 17:03:16', 'dd-mm-yyyy hh24:mi:ss') next SYSDATE+ 3/1440
4 enable query rewrite
5 as
6 select SO.ID,so.name, CO.Pid,co.id as co_id
7 from tmp_mv1 SO, tmp_mv2 CO
8 where SO.ID= CO.pid;
create materialized view MV_TMP_16
refresh fast on demand
start with to_date('14-02-2014 17:03:16', 'dd-mm-yyyy hh24:mi:ss') next SYSDATE+ 3/1440
enable query rewrite
as
select SO.ID,so.name, CO.Pid,co.id as co_id
from tmp_mv1 SO, tmp_mv2 CO
where SO.ID= CO.pid
ORA-12052: cannot fast refresh materialized view DCS_BIZ.MV_TMP_16
解决方案:
create materialized view MV_TMP_16
refresh fast on demand
start with to_date('14-02-2014 17:03:16', 'dd-mm-yyyy hh24:mi:ss') next SYSDATE+ 3/1440
enable query rewrite
as
select SO.rowid arowid, CO.rowid browid, SO.ID,so.name, CO.Pid,co.id as co_id
from tmp_mv1 SO, tmp_mv2 CO
where SO.ID= CO.pid;
注:这里必须要加上rowid,否则就会报错
相关文章推荐
- ORA-12032: cannot use rowid column from materialized view log on "DCS_BIZ"."TMP_12"
- ORA-23413: table "DCS_BIZ"."TMP_12" does not have a materialized view log
- ERROR at line 1: ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view
- impdp 导入物化视图(mv)时报错 :ORA-31685: Object type MATERIALIZED_VIEW
- ORA-12034: materialized view log on "SCOTT"."T_ROWID" younger than last refresh
- ORA-01445: Cannot Select ROWID from a Join View without a Key-Preserved Table
- Tuning 16 Using Materialized view
- How to refresh materialized view in oracle
- Test of MV FAST refresh with Sum and group
- Oracle Materialized View refresh
- OCI Error ORA-12096: error in materialized view log on "JTINFO"."TBL_USERID"
- Drop Materialized View with Fails with ORA-4020 and getting ORA-955 while Recreating MVIEW
- /tmp/OraInstall2012-12-11_02-16-11PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared o
- ORA-04063: view "DAILY.TMP_TBX_100_0_S4" 有错误
- xml无法显示(Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again la
- java.lang.String cannot be cast to com.alibaba.fastjson.JSONObject
- 误删用户OUTLN,启动报错 ORA-18008: cannot find OUTLN schema
- OUI-10022:The target area /oracle/oraInventory cannot be used because it is in an invalid state.
- ORA-12913: Cannot create dictionary managed tablespace
- Android错误:Cannot cast from View to Spinner