在Oracle數據庫中
其實可以采用的方法有多種
采用offline的方式
第一步
alter tablespace tablespace_name offline;
第二步
第三步
當然這種方式同樣會影響期間的表空間使用
以下是簡單的示范步驟:
[oracle@jumper oracle]$ sqlplus
SQL*Plus: Release
Copyright (c)
Connected to:
Oracle
With the Partitioning option
JServer Release
SQL> archive log list;
Database log mode No Archive Mode
Automatic archival Enabled
Archive destination /opt/oracle/oradata/conner/archive
Oldest online log sequence
Current log sequence
SQL> select name from v$datafile;
NAME
/opt/oracle/oradata/conner/system
/opt/oracle/oradata/conner/undotbs
/opt/oracle/oradata/conner/users
SQL> alter tablespace users offline;
Tablespace altered
SQL> ! cp /opt/oracle/oradata/conner/users
SQL> alter tablespace users rename datafile
to
Tablespace altered
SQL> alter tablespace users online;
Tablespace altered
SQL> select name from v$datafile;
NAME
/opt/oracle/oradata/conner/system
/opt/oracle/oradata/conner/undotbs
/opt/oracle/oradata/users
當然還有一些其他的方法可以采用
From:http://tw.wingwit.com/Article/program/Oracle/201311/16699.html