RMAN-04039
SET CATALOG MAINTENANCE string is not allowed if already connected to catalog
Cause
Maintenance mode cannot be set while connected to the catalog.
Action
Retry the command without establishing a connection to the catalog.