Oracle Error RMAN-20013: error upgrading virtual private catalog

Oracle Error Message

RMAN-20013: error upgrading virtual private catalog

Reason for the Error

An error occurred while automatically upgrading a virtual private catalog.

Solution

Ensure that the virtual private catalog userid has all of the required privileges, such as being granted the RECOVERY_CATALOG_OWNER role.