Oracle Error ORA-39703: server version and script version do not match

Oracle Error Message

ORA-39703: server version and script version do not match

Reason for the Error

An upgrade, downgrade, reload, or patch script was invoked, but the database instance version was not the version for which the script was intended.

Solution

Check that the correct ORACLE_HOME and ORACLE_SID environment variables are set. Also check that the SQL script is being invoked from the correct ORACLE_HOME.