Oracle Error ORA-01252: cannot prevent writes – file string in recovery manager backup

Oracle Error Message

ORA-01252: cannot prevent writes – file string in recovery manager backup

Reason for the Error

An attempt to make a tablespace read only or offline normal found that a recovery manager proxy backup is in progress. If the file is made offline or read-only, then the file header cannot be updated when the backup is complete.

Solution

Wait for the Recovery Manager backup to complete and retry this command.