Minimum down time to move tables in different tablespaces
Vicky, October 24, 2004 - 11:39 pm UTC
Thank you very much Tom for your fast reply. It helped me a lot.
Once again thanks.
What about Master Table?
Vicky, October 25, 2004 - 10:14 pm UTC
Dear Tom,
I implemented script that you provided it works fine. I had another question which is one of my tables is a Master table which is referenced by another tables so if I would use Materialised View to move it I wont be able to drop this old table as it is referenced by another tables. What should I do in this case?
Could you please provide me your expert solution?
Thanks in advance.
Vicky
October 26, 2004 - 7:46 am UTC
you would prevent updates to both the MASTER and the DETAIL table.
do the last sync (refresh)
you would drop table master cascade constraints;
alter table detail add constraint (with novalidate if you like, to make it really fast, in order to just repoint the constraint to the other new table -- since you know all of the primary keys are in fact there, it is a perfect copy)
Thanks Tom
Vicky, October 26, 2004 - 7:43 pm UTC
Thanks Tom for yout expert comment.
It is really helpful.