Oracle Error ORA-03298: cannot shrink datafile – file string is under hot backup

Oracle Error Message

ORA-03298: cannot shrink datafile – file string is under hot backup

Reason for the Error

Attempt to shrink a datafile while it is under hot backup. This is not allowed.

Solution

Retry shrinking the file after the hot backup completes.