Oracle Solution for Error ora-01234

Solution for Oracle Error ORA-01234

ORA-01234: cannot end backup of file string - file is in use or recovery

What triggered the Error:

Attempted to end an online backup of file when the file is busy. Some operation such as recovery or rename may be active, or there may still be some instance that has the database open with this file online.

What should we do to fix it:

If there is an instance with the database open then the backup can be ended there by using the ALTER TABLESPACE command. Otherwise wait for the completion of the other operation.