Oracle Error ORA-39710: only connect AS SYSDBA is allowed when OPEN in UPGRADE mode

Oracle Error Message

ORA-39710: only connect AS SYSDBA is allowed when OPEN in UPGRADE mode

Reason for the Error

An attempt was made to connect to a database when the database was OPEN for UPGRADE or DOWNGRADE.

Solution

Try to connect again after the database upgrade or downgrade is complete.