Typically, you start the AutoUpgrade JAR file in the Oracle home from which you are upgrading. However, the Oracle home must contain Java 8.
The AutoUpgrade utility is a Java 8 release JAR file, which is available in Oracle Database Oracle homes in releases after Oracle Database 12c Release 1 (188.8.131.52). The path to the Java version in the Oracle home is
Oracle-home is the Source database Oracle home (the earlier Oracle Database release that you are upgrading). For example:
The result should be a Java 8 version. For example:
[oracle@sales]$ $ORACLE_HOME/jdk/bin/java -version build.version 20191125 build.date 2019/11/25 17:49:18 build.max_target_version 19 build.type production-19.7.2
When you upgrade Oracle Database 11g Release 2 (184.108.40.206) or earlier releases, you can use AutoUpgrade. However, because Java 8 is not available in the Oracle Database Oracle homes for Oracle Database 11g Release 2 and earlier releases, you must start AutoUpgrade from the Java release in the Target Oracle home (the Oracle home to which you are upgrading), or install Java 8 in your Source Oracle home.
A successful response to
autoupgrade.jar -version should be similar to the following:
[oracle@sales ~]$ $ORACLE_HOME/jdk/bin/java -jar autoupgrade.jar -version build.version 20190201 build.date 2019/02/01 11:50:22 build.label RDBMS_PT.AUTOUPGRADE_LINUX.X64_190131.1800
If your you attempt to start AutoUpgrade with a Java release earlier than Java 8. then the following error occurs:
$ORACLE_HOME/jdk/bin/java -jar autoupgrade.jar -version Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at ...