同样也是两种方式
dbms_file_transfer或者rman
这个文章只是说了rman的方式,dbms_file_transfer方式可以参考"ASM与文件系统之间copy数据文件--ASM到文件系统"一文
GoalThis note will guide a DBA in moving a datafile currently located on file system to an ASM diskgroup.
SolutionHow to move a datafile from a file system to ASM
Moving a datafile from the file system can be achived in two ways.
i. While the database is shutdown (in mount stage).
ii. While the database is running (with the selected tablespace offline).
-------------------------------------------------------------------------------------------------------------------------------
i. While the database is shutdown (in mount stage).
Moving oracle datafile while the database is in mount stage is performed in the following way:
1. Shutdown and mount the database.
2. Ensure you have enough space in the ASM diskgroup to copy the datafile.
First identify the size of the datafile you wish to move.
3. Connect to RMAN and copy the datafile from the filesystem to the select ASM diskgroup.
4. Update the controlfile with the new location of the datafile.
5. The file is now if the new location.
SQL> select name from v$datafile;
6. The database may now be opened.
While the database is running (with the select tablespace offline).
In order to move a datafile on a running active database the tablespace where the datafile resides must be placed offline.
1. Identify the tablespace which contains the datafile and offline the tablespace.
6. After you have successfully completed the above steps (2 -5) place the tablespace online;
The datafile has now been successfully moved to the ASM diskgroup.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7191998/viewspace-1102030/ ,如需转载,请注明出处,否则将追究法律责任。