Saturday, December 27, 2025

Downloading Oracle Patches with AutoUpgrade

 Reference: The Easiest Way to Download 19.27 Release Update

Prerequisites

  • AutoUpgrade JAR file (autoupgrade.jar)
  • Java 11 (AutoUpgrade Patching requires Java 11, not Java 21)
  • My Oracle Support (MOS) account credentials

Steps

1. Switch to Java 11

AutoUpgrade Patching requires Java 11:

export JAVA_HOME=$(/usr/libexec/java_home -v 11)

To make this permanent, add to ~/.zprofile:

vi ~/.zprofile
# Add the export command above

2. Create AutoUpgrade Configuration File

Create autoupgrade_keystore.cfg with your patch requirements:

vi autoupgrade_keystore.cfg

global.global_log_dir=/Users/donghua/logs
global.keystore=/Users/donghua/autoupgrade_keystore
global.folder=/Users/donghua/Software_Repo/Oracle/19.29
patch1.platform=LINUX.X64
patch1.patch=RU:19.29,OPATCH,OJVM

3. Set Up MOS Credentials

Initialize the keystore and store your MOS credentials:

java -jar autoupgrade.jar -config autoupgrade_keystore.cfg -patch -load_password

Follow the prompts:

  1. Create keystore password (enter twice)
  2. Type add -user <your-email@youremail.com>
  3. Enter your MOS password (twice)
  4. Type save
  5. Convert to auto-login: YES
  6. Type exit

4. Create Download Directory

mkdir ~/Software_Repo/Oracle/19.29

5. Download Patches

java -jar autoupgrade.jar -config autoupgrade_keystore.cfg -patch -mode download

This will:

  • Connect to MOS
  • Search for specified patches
  • Download to the configured directory
  • Validate downloaded files

Example Output

Downloaded patches for 19.29:

  • p38291812_190000_Linux-x86-64.zip - DATABASE RELEASE UPDATE 19.29.0.0.0
  • p38194382_190000_Linux-x86-64.zip - OJVM RELEASE UPDATE 19.29.0.0.0
  • p6880880_190000_Linux-x86-64.zip - OPatch 12.2.0.1.48

All files are validated after download.

No comments:

Post a Comment