Oracle Solution for Error ora-39703

Solution for Oracle Error ORA-39703

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

What triggered 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.

What should we do to fix it:

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.