Compare the implementation plans for SELECT and DELETE

Hello

Version: 10.2.0.3

I REMOVE slow running in the Production db. I can't import and data, or run the REMOVE to get the Plan. For now, I managed to get the history of the plan.

However I would like to know if it is reasonable to assume the plans to SELECT and DELETE the same?

Rgds,
Guenoun

Gugui wrote:
Hello

Version: 10.2.0.3

I REMOVE slow running in the Production db. I can't import and data, or run the REMOVE to get the Plan. For now, I managed to get the history of the plan.

However I would like to know if it is reasonable to assume the plans to SELECT and DELETE the same?

Rgds,
Guenoun

Do not understand your question.
Because I can very easy do a:

explain plan for
remove from... where...;

And then take a look at the plan generated in the PLAN_TABLE.

However, I guess that plans for a DELETE and a SELECT statement must be the same, because they need to finish work on the same data, in any case...
A simple test showed that I'm right.

   PLAN_ID OPERATION                      OPTIONS              OBJECT_TYPE                          COST CARDINALITY      BYTES
---------- ------------------------------ -------------------- ------------------------------ ---------- ----------- ----------
         3 DELETE STATEMENT                                                                       177714     7702839
         3 DELETE
         3 TABLE ACCESS                   FULL                 TABLE                              177714     7702839
         4 SELECT STATEMENT                                                                       179707     7702839 3928447890
         4 TABLE ACCESS                   FULL                 TABLE                              179707     7702839 3928447890

Tags: Database

Similar Questions

Maybe you are looking for