- 论坛徽章:
- 0
|
如何查找ORACLE9I实体化视图抓数过程中的错误?
今天查看,实体化视图仍然报错,我看了,单独执行抓数的SQL没错,10分钟就完,为什么在实体化视图中运行后,在user_jobs表中看就发现有失败,因为oracle的作业失败16次就自动中断了,所以请大家帮忙给看看是什么原因。附SQL:
create materialized view M_ghsspxsmx
tablespace erp
refresh force
start with SysDate next trunc(SYSDATE)+1.5/24+1
as
select substr(wfd6101,1, xsrq,wfd6119 ghsbm,wfd6120 lbbm,wfd6104 hwbm,wfd6107 jyfs,wfd6103 mdbm,wfd6106 spbm,sum(decode
(wfd6102,'TH',-1*wfd6111t,'PT',-1*wfd6111t,wfd6111t)) xscb,sum(decode(wfd6102,'TH',-
1*wfd6112,'PT',-1*wfd6112,wfd6112)) jxsje,sum(decode(wfd6102,'TH',-
1*wfd6108,'PT',-1*wfd6108,wfd610 ) xssl from wfd061@scm_sl
where wfd6102='LS' or wfd6102='CS' or wfd6102='JS' or wfd6102='TH' or wfd6102='PT'
group by substr(wfd6101,1, ,wfd6119,wfd6120,wfd6104,wfd6107,wfd6103,wfd6106 |
|