Migration Failure

If the database is left in restricted mode because migration fails, use the following command as SYSDBA to set the database back to unrestricted mode:

ALTER SYSTEM DISABLE RESTRICTED SESSION;