ora-01555 snapshot too old. Query executed 4000s [message #652321] |
Tue, 07 June 2016 04:47 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
ashishkumarmahanta80
Messages: 231 Registered: October 2006 Location: kolkatta
|
Senior Member |
|
|
Dear All,
In alert log, ora error is appearing as "ORA-01555". And query's execution time is 4000s. When we generate xplain plan (dbms_xplan.display_awr) for that sql id, cost is appearing as 3(100%) with index range scan. But when we, generate xplain plan (dbms_xplan.display), it exeecute with the FTS (900000 cost).
What could be the reason? Do we need to ask application team to re-write the query?
select TXT_CUSTOMER_NAME "Customer Name", Txt_customer_cd "Customer ID"
from genmst_customer
where upper(TXT_customer_name) Like :"sys_B_0"
Below is the plan (without taking sql id)-
PLAN_TABLE_OUTPUT
1 Plan hash value: 1639122825
2
3 -------------------------------------------------------------------------------------------------------
4 | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop |
5 -------------------------------------------------------------------------------------------------------
6 | 0 | SELECT STATEMENT | | 5195K| 173M| 910K (1)| 03:02:05 | | |
7 | 1 | PARTITION RANGE ALL| | 5195K| 173M| 910K (1)| 03:02:05 | 1 | 6 |
8 |* 2 | TABLE ACCESS FULL | GENMST_CUSTOMER | 5195K| 173M| 910K (1)| 03:02:05 | 1 | 6 |
9 -------------------------------------------------------------------------------------------------------
10
11 Predicate Information (identified by operation id):
12 ---------------------------------------------------
13
14 2 - filter(UPPER("TXT_CUSTOMER_NAME") LIKE :sys_B_0)
Plan is not available with sql id.
Request you to clear my doubt? Which plan should I refer for the further tuning (dbms_xplan.display_awr or dbms_xplan.display)?
Regards,
Ashish
|
|
|
|
|
|
|