Home » RDBMS Server » Performance Tuning » full table scan (10.2.0.4)
full table scan [message #495436] Sat, 19 February 2011 02:35 Go to next message
sathik123
Messages: 37
Registered: December 2010
Location: chennai
Member
Hi
I am deleting row from the table.but it is taking long time.i have taken xplain plan report for selecting the row which i am going to delete.Below is report.kindly guide me what need to be done further.

SQL> select * from table (dbms_xplan.display);

PLAN_TABLE_OUTPUT
----------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------
Plan hash value: 4292193024

---------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
---------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | 9 | 105M (4)|352:21:59 |
| 1 | SORT AGGREGATE | | 1 | 9 | | |
|* 2 | FILTER | | | | | |
|* 3 | TABLE ACCESS FULL | ANR_ORDER_ERRORS | 638K| 5613K| 10647 (2)| 00:02:08 |
|* 4 | VIEW | index$_join$_002 | 1 | 9 | 174 (4)| 00:00:03 |
|* 5 | HASH JOIN | | | | | |
|* 6 | INDEX RANGE SCAN | COR_IDX1 | 1 | 9 | 180 (4)| 00:00:03 |
|* 7 | INDEX FAST FULL SCAN| COR_PK | 1 | 9 | 87 (3)| 00:00:02 |
---------------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

2 - filter( NOT EXISTS (SELECT /*+ */ 0 FROM (SELECT "ORBIT_NO"
"ORBIT_NO","MARKET" "MARKET",ROWID "ROWID" FROM "OCC_CON_ORDERS"
"indexjoin$_alias$_002","OCC_CON_ORDERS" "indexjoin$_alias$_001" WHERE "MARKET"='UB'
AND ROWID=ROWID AND LNNVL("ORBIT_NO"<>:B1)) "OCC_CON_ORDERS" WHERE "MARKET"='UB'))
3 - filter("MARKET"='UB')
4 - filter("MARKET"='UB')
5 - access(ROWID=ROWID)
6 - access("MARKET"='UB')
7 - filter(LNNVL("ORBIT_NO"<>:B1))
Re: full table scan [message #495438 is a reply to message #495436] Sat, 19 February 2011 03:25 Go to previous messageGo to next message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Rewrite the condition in the 3rd line of your query.

Also, Please read OraFAQ Forum Guide, especially "How to format your post?" section.
Make sure that lines of code do not exceed 80 characters when you format.
Indent the code, use code tags and align the columns in result.
Use the "Preview Message" button to verify.

Regards
Michel
Re: full table scan [message #495496 is a reply to message #495438] Sun, 20 February 2011 00:26 Go to previous message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Read http://www.orafaq.com/forum/mv/msg/84315/433888/102589/#msg_433888 and post the required information.

Regards
Michel
Previous Topic: Performance tuning of PL/SQL Procedure
Next Topic: Slow Sql query
Goto Forum:
  


Current Time: Thu Apr 25 10:07:45 CDT 2024