Tuesday, August 3, 2021

Why and How to copy file from ASM to filesystem and from filesystem to ASM

 

 Why ?

If you are using oracle ASM filesystem you will need to copy files from non ASM ( normal filesystem) to ASM file system, ASM will be used in RAC GRID and RAC one node DB. Revert is true as well .

How ?

Below are commands to copy files from ASM to filesystem and from filesystem to ASM  :

1- To copy files from ASM to filesystem use the below:

ASMCMD> cp +DATA/ORCL/FILE /path/to/filesytem/orcl_xyz.dbf_tmp                                       

copying +DATA/ORCL/FILE /path/to/filesytem/orcl_xyz.dbf_tmp

2- To copy file from filesystem to ASM use the below:

ASMCMD> cp /path/to/filesytem/orcl_xyz.dbf_tmp '+DATA/ORCL/FILE'

copying /path/to/filesytem/orcl_xyz.dbf_tmp +DATA/ORCL/FILE

No comments:

Post a Comment

Why and How to install Grid 19c on RHEL 8?

  Why ? Simply we will be requested to install Oracle Grid RAC DB on Redhat RHEL 8, below is my note for this installation . How ? 1-  OS in...