- 最后登录
- 2015-4-22
- 在线时间
- 122 小时
- 威望
- 133
- 金钱
- 1304
- 注册时间
- 2012-2-22
- 阅读权限
- 50
- 帖子
- 144
- 精华
- 1
- 积分
- 133
- UID
- 254
|
5#
发表于 2012-4-23 15:44:59
- SQL>select * from table(dbms_xplan.display_awr('druk61dn87x31',null,null,'all'));
- PLAN_TABLE_OUTPUT
- ------------------------------------------------------------------------------------------------------------------------------------------------------
- SQL_ID druk61dn87x31
- --------------------
- SELECT R.GAME_ID, R.USER_ID, MIN(ROLE_ID) FROM
- LOG_USER_FIRST_LOGIN_INFO F, LOG_ROLE_FIRST_LOGIN R WHERE R.GAME_ID =
- F.GAME_ID AND R.USER_ID = F.USER_ID AND R.LOG_ID >= :B4 AND R.LOG_ID <
- :B3 AND F.LOG_ID >= :B2 AND F.LOG_ID < :B1 GROUP BY R.GAME_ID, R.USER_ID
- Plan hash value: 1773663456
- ----------------------------------------------------------------------------------------------------------------
- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
- ----------------------------------------------------------------------------------------------------------------
- | 0 | SELECT STATEMENT | | | | 8 (100)| |
- | 1 | HASH GROUP BY | | 1 | 40 | 8 (13)| 00:00:01 |
- | 2 | FILTER | | | | | |
- | 3 | NESTED LOOPS | | | | | |
- | 4 | NESTED LOOPS | | 1 | 40 | 7 (0)| 00:00:01 |
- | 5 | TABLE ACCESS BY INDEX ROWID| LOG_ROLE_FIRST_LOGIN | 1 | 23 | 4 (0)| 00:00:01 |
- | 6 | INDEX RANGE SCAN | LOG_ROLE_FIRST_LOGIN_PK | 1 | | 3 (0)| 00:00:01 |
- | 7 | INDEX RANGE SCAN | LOG_USER_FIRST_LOGIN_INFO_PK | 1 | | 2 (0)| 00:00:01 |
- | 8 | TABLE ACCESS BY INDEX ROWID | LOG_USER_FIRST_LOGIN_INFO | 1 | 17 | 3 (0)| 00:00:01 |
- ----------------------------------------------------------------------------------------------------------------
- Query Block Name / Object Alias (identified by operation id):
- -------------------------------------------------------------
- 1 - SEL$1
- 5 - SEL$1 / R@SEL$1
- 6 - SEL$1 / R@SEL$1
- 7 - SEL$1 / F@SEL$1
- 8 - SEL$1 / F@SEL$1
- SQL_ID druk61dn87x31
- --------------------
- SELECT R.GAME_ID, R.USER_ID, MIN(ROLE_ID) FROM
- LOG_USER_FIRST_LOGIN_INFO F, LOG_ROLE_FIRST_LOGIN R WHERE R.GAME_ID =
- F.GAME_ID AND R.USER_ID = F.USER_ID AND R.LOG_ID >= :B4 AND R.LOG_ID <
- :B3 AND F.LOG_ID >= :B2 AND F.LOG_ID < :B1 GROUP BY R.GAME_ID, R.USER_ID
- Plan hash value: 3342542580
- ----------------------------------------------------------------------------------------------------------------
- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
- ----------------------------------------------------------------------------------------------------------------
- | 0 | SELECT STATEMENT | | | | 7 (100)| |
- | 1 | HASH GROUP BY | | 1 | 40 | 7 (15)| 00:00:01 |
- | 2 | FILTER | | | | | |
- | 3 | NESTED LOOPS | | | | | |
- | 4 | NESTED LOOPS | | 1 | 40 | 6 (0)| 00:00:01 |
- | 5 | TABLE ACCESS BY INDEX ROWID| LOG_ROLE_FIRST_LOGIN | 1 | 23 | 4 (0)| 00:00:01 |
- | 6 | INDEX RANGE SCAN | LOG_ROLE_FIRST_LOGIN_PK | 1 | | 3 (0)| 00:00:01 |
- | 7 | INDEX UNIQUE SCAN | LOG_USER_FIRST_LOGIN_INFO_IX | 1 | | 1 (0)| 00:00:01 |
- | 8 | TABLE ACCESS BY INDEX ROWID | LOG_USER_FIRST_LOGIN_INFO | 1 | 17 | 2 (0)| 00:00:01 |
- ----------------------------------------------------------------------------------------------------------------
- Query Block Name / Object Alias (identified by operation id):
- -------------------------------------------------------------
- 1 - SEL$1
- 5 - SEL$1 / R@SEL$1
- 6 - SEL$1 / R@SEL$1
- 7 - SEL$1 / F@SEL$1
- 8 - SEL$1 / F@SEL$1
- SQL_ID druk61dn87x31
- --------------------
- SELECT R.GAME_ID, R.USER_ID, MIN(ROLE_ID) FROM
- LOG_USER_FIRST_LOGIN_INFO F, LOG_ROLE_FIRST_LOGIN R WHERE R.GAME_ID =
- F.GAME_ID AND R.USER_ID = F.USER_ID AND R.LOG_ID >= :B4 AND R.LOG_ID <
- :B3 AND F.LOG_ID >= :B2 AND F.LOG_ID < :B1 GROUP BY R.GAME_ID, R.USER_ID
- Plan hash value: 3930933548
- ----------------------------------------------------------------------------------------------------------------
- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
- ----------------------------------------------------------------------------------------------------------------
- | 0 | SELECT STATEMENT | | | | 8 (100)| |
- | 1 | HASH GROUP BY | | 1 | 40 | 8 (13)| 00:00:01 |
- | 2 | FILTER | | | | | |
- | 3 | NESTED LOOPS | | | | | |
- | 4 | NESTED LOOPS | | 1 | 40 | 7 (0)| 00:00:01 |
- | 5 | TABLE ACCESS BY INDEX ROWID| LOG_USER_FIRST_LOGIN_INFO | 1 | 17 | 4 (0)| 00:00:01 |
- | 6 | INDEX RANGE SCAN | LOG_USER_FIRST_LOGIN_INFO_PK | 1 | | 3 (0)| 00:00:01 |
- | 7 | INDEX RANGE SCAN | LOG_ROLE_FIRST_LOGIN_IX2 | 1 | | 2 (0)| 00:00:01 |
- | 8 | TABLE ACCESS BY INDEX ROWID | LOG_ROLE_FIRST_LOGIN | 1 | 23 | 3 (0)| 00:00:01 |
- ----------------------------------------------------------------------------------------------------------------
- Query Block Name / Object Alias (identified by operation id):
- -------------------------------------------------------------
- 1 - SEL$1
- 5 - SEL$1 / F@SEL$1
- 6 - SEL$1 / F@SEL$1
- 7 - SEL$1 / R@SEL$1
- 8 - SEL$1 / R@SEL$1
- 96 rows selected.
复制代码
- SQL> select * from table(dbms_xplan.display_awr('9z1aua1jnmzdn',null,null,'all'));
- PLAN_TABLE_OUTPUT
- ------------------------------------------------------------------------------------------------------------------------------------------------------
- SQL_ID 9z1aua1jnmzdn
- --------------------
- INSERT INTO LOG_NEVER_ENTER_USERS ( USER_ID, GATEWAY_ID, AUTHEN_TIME,
- GAME_ID ) SELECT R.USER_ID, R.GATEWAY_ID, R.FIRST_LOGIN_TIME, R.GAME_ID
- FROM LOG_USER_FIRST_LOGIN_INFO R WHERE R.GAME_ID = :B2 AND R.USER_ID =
- :B1 AND R.LOG_ID >= :B4 AND R.LOG_ID < :B3
- Plan hash value: 406914802
- --------------------------------------------------------------------------------------------------------------
- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
- --------------------------------------------------------------------------------------------------------------
- | 0 | INSERT STATEMENT | | | | 2 (100)| |
- | 1 | LOAD TABLE CONVENTIONAL | | | | | |
- | 2 | FILTER | | | | | |
- | 3 | TABLE ACCESS BY INDEX ROWID| LOG_USER_FIRST_LOGIN_INFO | 1 | 27 | 2 (0)| 00:00:01 |
- | 4 | INDEX UNIQUE SCAN | LOG_USER_FIRST_LOGIN_INFO_IX | 1 | | 1 (0)| 00:00:01 |
- --------------------------------------------------------------------------------------------------------------
- Query Block Name / Object Alias (identified by operation id):
- -------------------------------------------------------------
- 1 - SEL$1
- 3 - SEL$1 / R@SEL$1
- 4 - SEL$1 / R@SEL$1
- SQL_ID 9z1aua1jnmzdn
- --------------------
- INSERT INTO LOG_NEVER_ENTER_USERS ( USER_ID, GATEWAY_ID, AUTHEN_TIME,
- GAME_ID ) SELECT R.USER_ID, R.GATEWAY_ID, R.FIRST_LOGIN_TIME, R.GAME_ID
- FROM LOG_USER_FIRST_LOGIN_INFO R WHERE R.GAME_ID = :B2 AND R.USER_ID =
- :B1 AND R.LOG_ID >= :B4 AND R.LOG_ID < :B3
- Plan hash value: 2643623496
- --------------------------------------------------------------------------------------------------------------
- | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
- --------------------------------------------------------------------------------------------------------------
- | 0 | INSERT STATEMENT | | | | 4 (100)| |
- | 1 | LOAD TABLE CONVENTIONAL | | | | | |
- | 2 | FILTER | | | | | |
- | 3 | TABLE ACCESS BY INDEX ROWID| LOG_USER_FIRST_LOGIN_INFO | 1 | 30 | 4 (0)| 00:00:01 |
- | 4 | INDEX RANGE SCAN | LOG_USER_FIRST_LOGIN_INFO_PK | 1 | | 3 (0)| 00:00:01 |
- --------------------------------------------------------------------------------------------------------------
- Query Block Name / Object Alias (identified by operation id):
- -------------------------------------------------------------
- 1 - SEL$1
- 3 - SEL$1 / R@SEL$1
- 4 - SEL$1 / R@SEL$1
- 52 rows selected.
复制代码 |
|