9.2.3.5 Update Java Without Updating AHF

With this enhancement, you can update JRE without updating AHF.

  1. Check the Autonomous Health Framework, Oracle Trace File Analyzer, Oracle Orachk, and Java versions.
    For example:
    # ahfctl version -all
    AHF version: 24.7.0
    TFA version: 24.7.0
    ORACHK  VERSION: 24.7.0_20240714
    JAVA VERSION: 11.0.22
  2. Apply Java update.
    ahfctl applyupdate -updatefile <patch_zip>

    Where updatefile specifies the Java update file generated.

    For example:
    # ahfctl applyupdate -updatefile ahf_36840033_java_JDK11_MAIN_LINUX.X64_240318.11.0.23.B7.zip 
    This is a Java patch. Requires Java version comparison before proceeding.
    Java patch validation passed.
    Stopping TFA before applying JAVA Patch.
    
    Updated file /opt/oracle.ahf/jre
    Java patch applied successfully.
    Starting TFA post JAVA patch completion.
    
    .---------------------------------------------------------------------------------------------------------.
    | Host            | Status of TFA | PID   | Port  | Version    | Build ID              | Inventory Status |
    +-----------------+---------------+-------+-------+------------+-----------------------+------------------+
    | test-node       | RUNNING       | 15719 | 29063 | 24.7.0.0.0 | 240600020240715093016 | COMPLETE         |
    '-----------------+---------------+-------+-------+------------+-----------------------+------------------'
  3. Post update, check the Java version.
    For example:
    $ /opt/oracle.ahf/jre/bin/java --version
    java 11.0.23 2024-04-16 LTS
    Java(TM) SE Runtime Environment 18.9 (build 11.0.23+7-LTS-222)
  4. Post update, check the AHF, TFA, Oracle Orachk, and Java versions.
    For example:
    # ahfctl version -all
    AHF version: 24.7.0
    TFA version: 24.7.0
    ORACHK  VERSION: 24.7.0_20240714
    JAVA VERSION: 11.0.23
  • To rollback to previous Java version, run the ahfctl rollbackupdate -updateid <update_id> command.
    For example:
    $ /opt/oracle.ahf/jre/bin/java --version
    java 11.0.23 2024-04-16 LTS
    # ahfctl rollbackupdate -updateid JDK11_MAIN_LINUX.X64_240318.11.0.23.B7
    Java rollback started.
    Rollback files includes JRE directory. TFA needs to stop first.
    ===== ===== ===== ===== ===== ===== ===== ===== ===== ===== =====
    Stopping TFA before rolling back to original.
    Rolled-back file /opt/oracle.ahf
    Starting TFA post rollback completion.
    Java rollback completed.
    $ /opt/oracle.ahf/jre/bin/java -version
    java version "11.0.21" 2023-10-17 LTS
  • To query when Java was patched, run the ahfctl queryupdate -all command.
    For example:
    # ahfctl queryupdate -all
    Java Update
    Label: JDK11_MAIN_LINUX.X64_240318.11.0.23.B7
    Status: Applied
    Applied on: Wed Jul 24 19:36:24 2024
  • To query when the Java update was rolled back, run the ahfctl queryupdate -all command.
    For example:
    # ahfctl queryupdate -all
    No AHF framework updates applied
    TFA version: 24.7.0
    ORACHK  VERSION: 24.7.0_20240714
    AHF version: 24.7.0
    JAVA VERSION: 11.0.22