如果數據庫處於非歸檔模式下
以下是實際操作的步驟示范
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
/opt/oracle/test
SQL> shutdown immediate;
Database closed
Database dismounted
ORACLE instance shut down
SQL> ! cp /opt/oracle/test
SQL> startup mount;
ORACLE instance started
Total System Global Area
Fixed Size
Variable Size
Database Buffers
Redo Buffers
Database mounted
SQL> select name from v$datafile;
NAME
/opt/oracle/oradata/conner/system
/opt/oracle/oradata/conner/undotbs
/opt/oracle/oradata/conner/users
/opt/oracle/test
SQL> alter database rename file
Database altered
SQL> alter database open;
Database altered
SQL> select name from v$datafile;
NAME
/opt/oracle/oradata/conner/system
/opt/oracle/oradata/conner/undotbs
/opt/oracle/oradata/conner/users
/opt/oracle/oradata/conner/test
SQL>
From:http://tw.wingwit.com/Article/program/Oracle/201311/17678.html