1.1, switch temporary table space
(1) Create a new temporary tablespace
create temporary tablespace bpmvml_temp tempfile 'D:\app\alibao\oradata\bpmvml\bpmvml_temp.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local; |
(2) Modify the temporary tablespace of the bpmvml user
alter user bpmvml temporary tablespace bpmvml_temp; |
(3) Delete the original temporary tablespace
drop tablespace bpm_temp including contents and datafiles cascade constraints; |
1.2. Migration tablespace name
1.2.1. Modify the tablespace name
alter tablespace BPM rename to BPMVML; |
1.2.2. Modify the data file name of the tablespace
(1) Put the tablespace offline
alter tablespace BPMVML OFFLINE; |
(2) Manually move and modify the data file (.dbf) name, and then execute the following statement
method one alter tablespace BPMVML rename DATAFILE 'D:\app\alibao\oradata\bpm\BPM_DATA' TO 'D:\app\alibao\oradata\bpmvml\BPMVML_DATA'; Method Two alter database rename file 'D:\app\alibao\oradata\bpm\BPM_DATA.DBF' to 'D:\app\alibao\oradata\bpmvml\BPMVML_DATA.DBF'; |
(3) Put the tablespace online again
ALTER TABLESPACE BPMVML online; |