- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
4#
发表于 2012-5-14 17:58:44
- PLAN_TABLE_OUTPUT
- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- SQL_ID dspqhgc4aazr1, child number 0
- -------------------------------------
- SELECT /*+gather_plan_statistics*/
- DISTINCT v.fcompanyid, v.fperiodid
- FROM (SELECT vch.fcompanyid,
- vch.fperiodid,
- ve.faccountid,
- ve.fcurrencyid,
- SUM(ve.foriginalamount * ve.fentrydc) fdebitfor,
- SUM(ve.foriginalamount * (1 - ve.fentrydc)) fcreditfor
- FROM t_gl_voucherentry ve, t_gl_voucher vch
- WHERE (vch.fid = ve.fbillid AND vch.fbizstatus = 5)
- GROUP BY vch.fcompanyid,
- vch.fperiodid,
- ve.faccountid,
- ve.fcurrencyid) v,
- (SELECT forgunitid,
- fperiodid,
- faccountid,
- fcurrencyid,
- fdebitfor,
- fcreditfor,
- fendbalancefor
- FROM t_gl_accountbalance
- WHERE fbaltype = :tp) a
- WHERE (((((1 = 1 AND a.forgunitid = v.fcompanyid)
-
-
- Plan hash value: 2599172720
-
- --------------------------------------------------------------------------------------------------------------------------------------------
- | Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | Reads | OMem | 1Mem | Used-Mem |
- --------------------------------------------------------------------------------------------------------------------------------------------
- | 1 | HASH UNIQUE | | 1 | 13662 | 0 |00:00:36.74 | 842K| 571 | 1236K| 1236K| |
- |* 2 | HASH JOIN | | 1 | 2413K| 0 |00:00:36.74 | 842K| 571 | 130M| 7885K| 183M (0)|
- | 3 | VIEW | | 1 | 4828K| 770K|00:00:20.16 | 208K| 0 | | | |
- | 4 | HASH GROUP BY | | 1 | 4828K| 770K|00:00:16.31 | 208K| 0 | 154M| 7752K| 191M (0)|
- |* 5 | HASH JOIN | | 1 | 4828K| 4835K|00:00:21.47 | 208K| 0 | 113M| 8285K| 135M (0)|
- |* 6 | TABLE ACCESS FULL| T_GL_VOUCHER | 1 | 1007K| 1006K|00:00:04.03 | 62133 | 0 | | | |
- | 7 | TABLE ACCESS FULL| T_GL_VOUCHERENTRY | 1 | 4869K| 4870K|00:00:14.61 | 146K| 0 | | | |
- |* 8 | TABLE ACCESS FULL | T_GL_ACCOUNTBALANCE | 1 | 9682K| 9690K|00:00:48.45 | 633K| 571 | | | |
- --------------------------------------------------------------------------------------------------------------------------------------------
复制代码 |
|