Moving datafiles for database using ASM
Individual datafile(s): 1. Take the datafile(s) in question offline. (example) alter database datafile 6 offline; 2. Login to ASM via asmcmd. Then copy the datafiles from current diskgroup to destination diskgroup. (example) asmcmd> cp +DG01/svc_ctm.dbf +DG01/prmrydb/datafile/svc_ctm.dbf asmcmd> copy datafile ' +DG01/svc_ctm.dbf' to '+DG01'; 3. Login to database via sqlplus and rename the datafiles. (example) ALTER DATABASE RENAME FILE '+DG01/svc_ctm.dbf' to '+DG01/prmrydb/datafile/svc_ctm.dbf'; 4. Login to RMAN or sqlplus to recover the datafile(s) and place datafile(s) online. (example) rman target / RECOVER DATAFILE 6; SQL 'alter database datafile 6 online'; ---------------------------------------------- Individual tablespace(s): You can complete the following steps all within RMAN: connect target / run{...