First take the tablespace offline
alter tablespace "HMA_TM_PROD_GEN2_DATA" offline normal
Copy or mv the datafile or rename it
mv -i /oracle/oradata1/hma_tm_prod_gen2_data_03.dbf /oracle/oradata1/shsub/hma_tm_prod_gen2_data_03.dbf
Bring the tablespace back online
alter tablespace "HMA_TM_PROD_GEN2_DATA" online
Enjoy!
alter tablespace "HMA_TM_PROD_GEN2_DATA" offline normal
Copy or mv the datafile or rename it
mv -i /oracle/oradata1/hma_tm_prod_gen2_data_03.dbf /oracle/oradata1/shsub/hma_tm_prod_gen2_data_03.dbf
Bring the tablespace back online
alter tablespace "HMA_TM_PROD_GEN2_DATA" online
Enjoy!
No comments:
Post a Comment