转移 Oracle 的表空间

1.将表空间置于只读

只读状态可以使数据仍然可为用户访问.

ALTER tablespace tablespace_name READ ONLY;

2.物理拷贝文件

3.将表空间offline

ALTER tablespace tablespace_name offline;

4.rename数据文件

ALTER DATABASE RENAME file 'old_dir_file' TO 'new_dir_file';

5.将表空间联机

ALTER tablespace tablespace_name online;

6.将表空间置于read write模式

ALTER tablespace tablespace_name READ WRITE;

Tags: ,

Leave a Reply