|
最初由 husthxd 发布
[B]偶用windows2003 64bit,oracle10g还没有相关的补丁包.
ft. [/B]
哈哈,你惨了,看看这个,http://www.itpub.net/595519.html
TMD,我升级到102020后还是没解决:
[php]
1 confirm that the problem still exists
------------------------------------------------------------------------------
NCBI@BI>SELECT STARTUP_TIME FROM V$INSTANCE;
STARTUP_TIME
-------------------
2006-08-30 00:23:46
NCBI@BI>connect bi_data2/1@bi
Connected.
BI_DATA2@bi>truncate table fact_dailysale;
Table truncated.
BI_DATA2@bi>insert into fact_dailysale(csalestruid,pk_invcl,dbilldate,productline,nnumber)
2 select stg_so_apply.csalecorpid,m.pk_invcl,d.dbizdate,d.productline,
3 sum(nvl(d.noutnum,0.0)) as nnumber
4 from (select cgeneralhid,dbilldate
5 from stg_ic_general_h,stg_fi_bd_cubasdoc,stg_fi_bd_cumandoc
6 where stg_ic_general_h.ccustomerid = stg_fi_bd_cumandoc.pk_cumandoc
7 and stg_fi_bd_cumandoc.pk_cubasdoc = stg_fi_bd_cubasdoc.pk_cubasdoc
8 and stg_fi_bd_cubasdoc.drpnodeflag='N'
9 and stg_ic_general_h.dr = 0
10 and stg_ic_general_h.fbillflag = '3'
11 and stg_ic_general_h.cbilltypecode = '4C'
12 and stg_ic_general_h.dbilldate >= '2006-03-01') e,
13 stg_ic_general_b d,stg_so_apply ,stg_so_apply_b ,stg_fi_bd_invbasdoc m
14 where e.cgeneralhid = d.cgeneralhid and d.cfirstbillbid = stg_so_apply_b.pk_apply_b
15 and stg_so_apply.pk_apply = stg_so_apply_b.pk_apply
16 and m.pk_invbasdoc = d.cinvbasid
17 and stg_so_apply.dr = 0 and stg_so_apply_b.dr = 0 and d.dr = 0
18 and d.flargess = 'N'
19 group by stg_so_apply.csalecorpid,m.pk_invcl,d.dbizdate,d.productline;
3532 rows created.
BI_DATA2@bi> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bi
PL/SQL Release 10.2.0.2.0 - Production
CORE 10.2.0.2.0 Production
TNS for 64-bit Windows: Version 10.2.0.2.0 - Production
NLSRTL Version 10.2.0.2.0 - Production
BI_DATA2@bi>select count(*) from
2 (select stg_so_apply.csalecorpid,m.pk_invcl,d.dbizdate,d.productline,
3 sum(nvl(d.noutnum,0.0)) as nnumber
4 from (select cgeneralhid,dbilldate
5 from stg_ic_general_h,stg_fi_bd_cubasdoc,stg_fi_bd_cumandoc
6 where stg_ic_general_h.ccustomerid = stg_fi_bd_cumandoc.pk_cumandoc
7 and stg_fi_bd_cumandoc.pk_cubasdoc = stg_fi_bd_cubasdoc.pk_cubasdoc
8 and stg_fi_bd_cubasdoc.drpnodeflag='N'
9 and stg_ic_general_h.dr = 0
10 and stg_ic_general_h.fbillflag = '3'
11 and stg_ic_general_h.cbilltypecode = '4C'
12 and stg_ic_general_h.dbilldate >= '2006-03-01') e,
13 stg_ic_general_b d,stg_so_apply ,stg_so_apply_b ,stg_fi_bd_invbasdoc m
14 where e.cgeneralhid = d.cgeneralhid and d.cfirstbillbid = stg_so_apply_b.pk_apply_b
15 and stg_so_apply.pk_apply = stg_so_apply_b.pk_apply
16 and m.pk_invbasdoc = d.cinvbasid
17 and stg_so_apply.dr = 0 and stg_so_apply_b.dr = 0 and d.dr = 0
18 and d.flargess = 'N'
19 group by stg_so_apply.csalecorpid,m.pk_invcl,d.dbizdate,d.productline);
COUNT(*)
----------
12370
[/php] |
|