ocrconfig -copy

Use the ocrconfig -copy command to copy an OCR backup file from one location to another.

Syntax

ocrconfig -copy source_file_name destination_file_name

Usage Notes

  • You must run this command as root.

  • The source_file_name must be a valid OCR backup file. For example:

    • /oradbocfs/crs/BACKUP00.ocr

    • d:\oracle\BACKUP01.ocr

    • +bkupdg:/aimev1/ocrbackup/day.ocr.260.739756845

    If you specify an Oracle ASM disk group, then ensure that the disk group exists and is mounted.

    Examples of valid destination_file_name values are:

    • /oradbocfs/crs/mybkp01.ocr

    • d:\oracle\mybkp01.ocr

    • +bkupdg:mybkp01

    Oracle ASM disk group names must be preceded by a plus sign (+).

Examples

To copy an OCR backup file from a file system to an Oracle ASM disk group:

# ocrconfig -copy /oradbocfs/crs/BACKUP00.ocr +bkupdg:mybkp01.ocr

To copy an OCR backup file from an Oracle ASM disk group to a file system:

$ ocrconfig -copy +bkupdg:/aimev1/ocrbackup/day.ocr.260.739756845 /oradbocfs/crs/mybkp01.ocr

To copy an OCR backup file from one Oracle ASM disk group to another Oracle ASM disk group:

$ ocrconfig -copy +bkupdg01:/aimev1/ocrbackup/day.ocr.260.739756845 +bkupdg02:mybkp01.ocr