I wouldn't think that dropping a 100GB tablespace would generate 100GB worth of redo, even if it is nearly full. I'm thinking that dropping a tablespace is unrecoverable, and thus redo would be minimal. However, you should really try it, on a test system of course.
drop tablespace mytablespace including contents and datafiles;
... if this is the case Oracle will:
1- drop all objects in the target tablespace(*)
2- drop any index or lob segment in other tablespaces that are related to dropped objects in the target tablespace.
3- drop target tablespace.
4- drop datafiles related to target tablespace.
As you might remember you do not have to worry about how much redo you are generating during a drop operation
(*) only exception is when some or the partitions of a partitioned object are sitting in target tablespace but not all of them. If this is the case -thanks god- Oracle would refuse to drop the tablespace .
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
(*) only exception is when some or the partitions of a partitioned object are sitting in target tablespace but not all of them. If this is the case -thanks god- Oracle would refuse to drop the tablespace .
i wonder why, when it can drop dependent structures, why not this?
Rgds
Abhay.
funky...
"I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."
"Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"
i wonder why, when it can drop dependent structures, why not this?
Well, this is actually a question for Angelo but I find current behavior as being a very nice feature to keep.
Other partitions of the same table/index are not actually "dependent structures", they are part of the same table/index structure, I would say they are "peer structures".
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Well when oracle can drop objects like index/lob/nested table?/etc (dependent structures), why not drop a logical object which is part of TS in question. When we are dropping a TS we would obiviously know what are the objects in it. And if we have taken a decesion to drop, then we know that we dont need those objects any more.
- Abhay.
funky...
"I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."
"Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Bookmarks