- 最后登录
- 2014-8-8
- 在线时间
- 14 小时
- 威望
- 0
- 金钱
- 90
- 注册时间
- 2013-4-3
- 阅读权限
- 10
- 帖子
- 37
- 精华
- 0
- 积分
- 0
- UID
- 1007
|
3#
发表于 2013-4-19 11:23:39
跑了 结果是这个
Enter value for sqlid: 5712nr1b46uuu
old 21: ('&SQLID') order by s.snap_id
new 21: ('5712nr1b46uuu') order by s.snap_id
SnapId PLAN_HASH_VALUE Date timepaypaypay No. of execpay LIO/exec CPUTIM/exec ETIME/execpay PIO/exec ROWs/exec
---------- --------------- ------------------------------ ----------- --------------- ----------- ----------- ----------- -----------
20064pay4237979237 04/12/13_0100_0200paypaypay 2974pay 57252.48pay 1.07pay 1.20pay .00 350.86
20065pay4237979237 04/12/13_0200_0300paypaypay 626pay 57363.51pay 1.06pay 1.14pay .00 2018.53
20088pay4237979237 04/13/13_0100_0200paypaypay 2967pay 57255.38pay 1.03pay 1.09pay .00 146.90
20089pay4237979237 04/13/13_0200_0300paypaypay 633pay 57475.02pay 1.03pay 1.10pay .00 836.02
20112pay4237979237 04/14/13_0100_0200paypaypay 2933pay 57275.47pay .64pay .78pay 11.51 132.95
20113pay4237979237 04/14/13_0200_0300paypaypay 657pay 57382.21pay .62pay .62pay .00 726.74
20136pay4237979237 04/15/13_0100_0200paypaypay 2132pay 57284.28pay .95pay10.35pay 616.50 455.36
20137pay4237979237 04/15/13_0200_0301paypaypay 476pay 57726.54pay .93pay10.45pay 650.67 2498.42
20160pay4237979237 04/16/13_0100_0200paypaypay 2933pay 57394.42pay 1.05pay 1.20pay .99 551.81
20161pay4237979237 04/16/13_0200_0300paypaypay 647pay 57502.74pay 1.05pay 1.16pay .00 3054.34
20184pay4237979237 04/17/13_0100_0200paypaypay 2859pay 57456.96pay .71pay 1.00pay 19.21 608.79
20185pay4237979237 04/17/13_0200_0300paypaypay 652pay 57565.15pay .70pay .70pay .32 3279.45
20208pay4237979237 04/18/13_0100_0200paypaypay 2893pay 57488.15pay .68pay .78pay 6.92 434.85
20209pay4237979237 04/18/13_0200_0300paypaypay 678pay 57592.82pay .67pay .67pay .00 2291.13
20232pay4237979237 04/19/13_0101_0200paypaypay 2881pay 57531.07pay 1.03pay 1.13pay .53 177.94
20233pay4237979237 04/19/13_0200_0300paypaypay 714pay 57631.60pay 1.03pay 1.09pay .00 896.23
16 rows selected.
SQL> select plan_table_output from table (dbms_xplan.display_awr('&sql_id',null,null,
2 'ADVANCED +PEEKED_BINDS'));
Enter value for sql_id: 5712nr1b46uuu
old 1: select plan_table_output from table (dbms_xplan.display_awr('&sql_id',null,null,
new 1: select plan_table_output from table (dbms_xplan.display_awr('5712nr1b46uuu',null,null,
PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------
SQL_ID 5712nr1b46uuu
--------------------
select transactio0_.ID as ID18_, transactio0_.ACTION_SEQ as ACTION2_18_,
transactio0_.CREDIT_RATIO_SEQ as CREDIT3_18_,
transactio0_.DEBIT_RATIO_SEQ as DEBIT4_18_, transactio0_.DEBIT_SEQ as
DEBIT5_18_, transactio0_.CREDIT_SEQ as CREDIT6_18_, transactio0_.ORDER_ID
as ORDER7_18_, transactio0_.SERVICE_FLAG as SERVICE8_18_,
transactio0_.SERVICE_DATE as SERVICE9_18_, transactio0_.SERVICE_PERSON as
SERVICE10_18_, transactio0_.AMOUNT as AMOUNT18_, transactio0_.CURRENCY as
CURRENCY18_, transactio0_.EXCHANGE_RATE as EXCHANGE13_18_,
transactio0_.REVERSE_FLAG as REVERSE14_18_, transactio0_.RELATING_SEQ as
RELATING15_18_, transactio0_.TRANS_ID as TRANS16_18_,
transactio0_.TRANS_STATUS as TRANS17_18_, transactio0_.BEGIN_DATE as
BEGIN18_18_, transactio0_.END_DATE as END19_18_, transactio0_.DEBIT_FEE
as DEBIT20_18_, transactio0_.CREDIT_FEE as CREDIT21_18_,
transactio0_.SELLER_URL as SELLER22_18_, transactio0_.OPER_SOURCE as
OPER23_18_, transactio0_.COMMODITY_INFO as COMMODITY24_18_,
transactio0_.SELLER_PARAM as SELLER25_18_, transactio0_.DES_FLAG as
DES26_18_, transactio0_.MAC as MAC18_, transactio0_.VERSION as
VERSION18_, transactio0_.CREATE_USER as CREATE29_18_,
transactio0_.CREATE_TIME as CREATE30_18_, transactio0_.UPDATE_USER as
UPDATE31_18_, transactio0_.UPDATE_USER_SYSTEM as UPDATE32_18_,
transactio0_.UPDATE_TIME as UPDATE33_18_, transactio0_.TRADE_TYPE as
TRADE34_18_, transactio0_.BANK_SEQ as BANK35_18_, transactio0_.CARD_NO as
CARD36_18_, transactio0_.BANK_NAME as BANK37_18_,
transactio0_.BANK_PROV_SEQ as BANK38_18_, transactio0_.BANK_CITY_SEQ as
BANK39_18_, transactio0_.PERSON_NAME as PERSON40_18_,
transactio0_.PERSON_MAIL as PERSON41_18_, transactio0_.PERSON_PHONE as
PERSON42_18_, transactio0_.PERSON_MOBILE as PERSON43_18_,
transactio0_.REMARK as REMARK18_, transactio0_.ACCOUNT_BANK_SEQ as
ACCOUNT45_18_, transactio0_.VERIFY_CODE as VERIFY46_18_,
transactio0_.BARCODE as BARCODE18_, transactio0_.AUDIT_TRANS as
AUDIT48_18_, transactio0_.encryptCode as encrypt49_18_,
transactio0_.PURPOSE as PURPOSE18_, transactio0_.INSIDE_STATUS as
INSIDE51_18_, transactio0_.BANK_RESPONSE as BANK52_18_,
transactio0_.DOWNLOADSTATE as DOWNLOA53_18_, transactio0_.OPERATOR_SEQ as
OPERATOR54_18_, transactio0_.BANK_INFO_SEQ as BANK55_18_,
transactio0_.VOUCHER_CODE as VOUCHER56_18_, transactio0_.VNV_ACCOUNT_ID
as VNV57_18_, transactio0_.BATCH_NO as BATCH58_18_ from TRANSACTION
transactio0_ where transactio0_.END_DATE>=:1 and
transactio0_.END_DATE<=:2 and transactio0_.ACTION_SEQ<>5
Plan hash value: 4237979237
----------------------------------------------------------------------------------
| Id | Operationpay | Namepay | Rows | Bytes | Cost (%CPU)| Timepay |
----------------------------------------------------------------------------------
| 0 | SELECT STATEMENT |paypay |pay |pay | 8092 (100)| pay |
| 1 | FILTER pay |paypay |pay |pay |pay | pay |
| 2 | TABLE ACCESS FULL| TRANSACTION | 966 | 611K| 8092 (1)| 00:01:38 |
----------------------------------------------------------------------------------
Query Block Name / Object Alias (identified by operation id):
-------------------------------------------------------------
1 - SEL$1
2 - SEL$1 / TRANSACTIO0_@SEL$1
Outline Data
-------------
/*+
BEGIN_OUTLINE_DATA
IGNORE_OPTIM_EMBEDDED_HINTS
OPTIMIZER_FEATURES_ENABLE('10.2.0.1')
ALL_ROWS
OUTLINE_LEAF(@"SEL$1")
FULL(@"SEL$1" "TRANSACTIO0_"@"SEL$1")
END_OUTLINE_DATA
*/
71 rows selected.
|
|