How to dump or extract a raw block from a file stored in ASM diskgroup (Doc ID 603962.1)

Last updated on JULY 19, 2011

Applies to:

Oracle Server - Enterprise Edition - Version: 10.1.0.3 to 11.2.0.2 - Release: 10.1 to 11.2
Information in this document applies to any platform.

Goal

To provide a simple mechanism to extract a particular block from a datafile stored in an ASM diskgroup. 

When database files are stored in file systems or raw devices, it is possible to use dd command to extract the particular block from the particular file.

$ dd if=<file name> of=<new file> bs=<block_size> skip=<block of interest> count=1


When database files are stored in ASM, this is not possible because external tools like dd command can not be execute directly on the ASM files.  In addition, in order to extract the block using dd command, is required to identify the specific location on the disk where  the block  is located.  This requires running extra steps that make the procedure complex and exposed to errors.

The procedure can be used to extract blocks from any file stored in ASM.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms