|
|
Re: Solaris 9, 10g - move all object from one tablespace to another [message #144893 is a reply to message #144877] |
Fri, 28 October 2005 13:14 |
nmacdannald
Messages: 460 Registered: July 2005 Location: Stockton, California - US...
|
Senior Member |
|
|
so to create a script I would:
1) spool move-objects
2) set linesize 100
3) set pagesize 0
4) select 'alter table ' || table_name || ' move tablespace DATA_61;' from dba_all_tables where tablespace_name = 'DATA_01'
order by table_name;
commit;
exit
5) edit the spooled file to take out the select and commit statements.
6) run the spooled file
7) take tablespace DATA_01 offline
remove tablespace DATA_01
9) delete the supporting datafiles
10) do a hot backup
Is that about it?
[Updated on: Fri, 28 October 2005 13:15] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: Solaris 9, 10g - move all object from one tablespace to another [message #145337 is a reply to message #144900] |
Wed, 02 November 2005 10:11 |
Sanjay Bajracharya
Messages: 279 Registered: October 2001 Location: Florida
|
Senior Member |
|
|
You read my mind.
In your case, I would go with the relocation of the datafiles in the new mount point (where there are tons of extra space than before).
1. take backup
2. backup control file to trace
3. take tablespace offline (normal) - follow link Mahesh stated
4. relocate datafiles ..(all steps carefully)
5. bring tablespace online
6. backup control file to trace, again
7. take backup, again
this will be faster than moving object at individual level.
|
|
|