How to copy a datafile from ASM to a file system not using RMAN
Posted tianlesoftware
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了How to copy a datafile from ASM to a file system not using RMAN相关的知识,希望对你有一定的参考价值。
How to move a datafile from a file system to ASM
How to move a datafile from ASM to the file system
http://www.cndba.cn/Dave/article/817
步骤如下:
1. Log onto the target database that is local to the ASM instance as the sys user.
2. create source directory within the target database.
SQL> create or replace directory SOURCE_DIR as +DGROUP1/V10ASM/datafile/;
Directory created.
(In this example +DGROUP1/V10ASM/datafile/ is the source directory where the datafile is located and where you wish to copy the file from.)
3. create destination directory within database.
SQL> create or replace directory ORACLE_DEST as /restore;
Directory created.
(In this example /restore is the destination directory where the datafile is to be copied to.)
4. Execute the dbms_file_transfer package.
SQL>
BEGIN
dbms_file_transfer.copy_file(source_directory_object =>
SOURCE_DIR, source_file_name => system.272.617284341,
destination_directory_object => ORACLE_DEST,
destination_file_name => system.dbf);
END;
/
PL/SQL procedure successfully completed.
(In this example system.272.617284341 is the file I wish to transfer and the destination file is system.dbf)
The file has now been copied to the /restore directory.
以上是关于How to copy a datafile from ASM to a file system not using RMAN的主要内容,如果未能解决你的问题,请参考以下文章
RMAN-06023: no backup or copy of datafile 16 found to restore
sh 使用SCP在系统之间传输文件 - 来自http://unix.stackexchange.com/questions/188285/how-to-copy-a-file-from-a-remot
python 可打印的pandas组(来自http://stackoverflow.com/questions/14734533/how-to-access-pandas-groupby-datafr
How to copy remote computer files quickly to local computer