- 最后登录
- 2015-5-21
- 在线时间
- 100 小时
- 威望
- 0
- 金钱
- 345
- 注册时间
- 2012-12-19
- 阅读权限
- 10
- 帖子
- 99
- 精华
- 0
- 积分
- 0
- UID
- 824
|
9#
发表于 2013-1-30 14:50:28
Liu Maclean(刘相兵 发表于 2012-12-24 09:15
1. 学会怎么用code模式贴代码!
2. 学会怎么搜索askmaclean.com博客来学习!
刘大不好意思,我想要的参数它为什么没有呢?- SQL> set linesize 200 pagesize 1400
- SQL> r
- 1* select * from table(dbms_xplan.display_cursor('2hc2vdpftyarz',0,'ALLSTATS LAST'))
- PLAN_TABLE_OUTPUT
- ----------------------------------------------------------------------------------------------------
- --------------------------------------------------
- SQL_ID 2hc2vdpftyarz, child number 0
- -------------------------------------
- select /*+gather_plan_statistics*/ a.CUST_ACCOUNT_ID CUSTOMER_ID,
- a.ACCOUNT_NUMBER CUSTOMER_NUMBER, b.PARTY_NAME CUSTOMER_NAME,
- L_CLASS.MEANING CUSTOMER_CLASS_MEANING, a.CUSTOMER_CLASS_CODE
- CUSTOMER_CLASS_CODE, a.attribute5 From apps.HZ_CUST_ACCOUNTS a, apps.HZ_PARTIES
- b, apps.AR_LOOKUPS L_CLASS where 1 = 1 --a.ACCOUNT_NUMBER = '22970780' and
- a.PARTY_ID = b.PARTY_ID and a.status = 'A' and b.created_by_module <> 'Oracle
- Shipping' AND a.CUSTOMER_CLASS_CODE = L_CLASS.LOOKUP_CODE(+) AND
- L_CLASS.LOOKUP_TYPE(+) = 'CUSTOMER CLASS'
- Plan hash value: 4103669154
- -------------------------------------------------------------------------------------------------
- | Id | Operation | Name | E-Rows | OMem | 1Mem | Used-Mem |
- -------------------------------------------------------------------------------------------------
- |* 1 | HASH JOIN RIGHT OUTER | | 10361 | 789K| 789K| |
- | 2 | TABLE ACCESS BY INDEX ROWID| FND_LOOKUP_VALUES | 1 | | | |
- |* 3 | INDEX RANGE SCAN | FND_LOOKUP_VALUES_U1 | 1 | | | |
- |* 4 | HASH JOIN | | 10361 | 1464K| 1116K| |
- |* 5 | TABLE ACCESS FULL | HZ_CUST_ACCOUNTS | 10362 | | | |
- |* 6 | TABLE ACCESS FULL | HZ_PARTIES | 90233 | | | |
- -------------------------------------------------------------------------------------------------
- Predicate Information (identified by operation id):
- ---------------------------------------------------
- 1 - access("A"."CUSTOMER_CLASS_CODE"="LV"."LOOKUP_CODE")
- 3 - access("LV"."LOOKUP_TYPE"='CUSTOMER CLASS' AND "LV"."VIEW_APPLICATION_ID"=222 AND
- "LV"."SECURITY_GROUP_ID"=0 AND "LV"."LANGUAGE"=USERENV('LANG'))
- filter(("LV"."LANGUAGE"=USERENV('LANG') AND "LV"."SECURITY_GROUP_ID"=0))
- 4 - access("A"."PARTY_ID"="B"."PARTY_ID")
- 5 - filter("A"."STATUS"='A')
- 6 - filter("B"."CREATED_BY_MODULE"<>'Oracle Shipping')
- Note
- -----
- - Warning: basic plan statistics not available. These are only collected when:
- * hint 'gather_plan_statistics' is used for the statement or
- * parameter 'statistics_level' is set to 'ALL', at session or system level
- 已选择41行。
复制代码 我希望得到的Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | Reads |
这些不都是在'ALLSTATS LAST'里面应该包含了么?(statistics_level已经设置为all) |
|