Copy File from Filesystem to ASM

In this exercise we will copy a file residing on a filesystem onto ASM disk.

 

SQL> create or replace directory asm_dir as '+FRA/BACKUP';

Directory created.



SQL> grant read, write on directory asm_dir to public;

Grant succeeded.


SQL> create or replace directory export_dump as '/filesystem/exportdump';

Directory created.

SQL> grant read,write on directory export_dump to public;

Grant succeeded.

— Copy file from Filesystem into ASM —

 

SQL> exec dbms_file_transfer.COPY_FILE('export_dump','backup_dump.dmp','asm_dir','backup_dump.dmp');

PL/SQL procedure successfully completed.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s