日期:2014-05-16 浏览次数:20377 次
使用 dbms_file_transfer 包在asm 和文件系统间拷贝文件
SQL> CREATE DIRECTORY dgb AS '+DATA/dbfiles';
SQL> CREATE DIRECTORY loc AS '/u01/app/oracle/oradata/db';
SQL> BEGIN
2 DBMS_FILE_TRANSFER.COPY_FILE('loc','tmp.dbf','dgb','tmp.dbf');
3 END;
4 /
注意:
1.拷贝的文件应是512 bytes的倍数
2.拷贝的文件应<=2t
3.Transferring a file is not transactional. To guarantee consistency, bring files offline when the database is in use.
4.2进制传输