Oracle Error Message
RMAN-20244: can not change currently connected database db_unique_name
Reason for the Error
the user specified currently connected DB_UNIQUE_NAME value to unregister.
Solution
use the DB_UNIQUE_NAME other than connected target database’s DB_UNIQUE_NAME value.