Migration of TABLESPACE and database files in Oracle databases 1. Moving TABLESPACE files 1. Modifying tablespaces to the OFFLINE state alter tablespace TS_PARTITION_000 OFFLINE; 2. Copy the tablespace to the new location. cp/opt/oracle/11g/dbs/TS_PARTITION_000/oradata/DTCDB/tbs/TS_PARTITION_000
3. Modify the TABLESPACE data file path alter tablespace TS_PARTITION_000 rename datafile '/opt/oracle/11g/dbs/TS_PARTITION_000' TO '/oradata/DTCDB/tbs/TS_PARTITION_000 '; 4. Change the TABLESPACE to the ONLINE status www.2cto.com alter tablespace TS_PARTITION_000 ONLINE; 5. Delete the original database file rm-rf/opt/oracle/11g/dbs/TS_PARTITION_000 corresponding to the tablespace. 2. Move the database file 1. Close the database shutdown immediate; 2. Copy the database file cp/opt/oracle/11g/dbs/dbfile. dbf/oradata/DTCDB/tbs/dbfile. dbf 3. mount the DATABASE by means of startup mount 4. Modify the database file path alter database rename file '/opt/oracle/11g/dbs/dbfile. dbf 'to'/oradata/DTCDB/tbs/dbfile. dbf'; 5. OPEN the database alter database open; author AttaGain