# Install a fresh Oracle Home

AutoUpgrade 26.5.260807 · patch / create_home

These are instructions, not an executed or database-validated run.

## Review before execution

- WARNING: install1: AUTO may fall back to individual patches. For 19c/21c, stage base-release media when a Gold Image is unavailable.

## 1. Verify the executable and profile

Run on: Execution host

Use a Java runtime supported by the actual AutoUpgrade build. On a new server, Java must be available before any Oracle home exists. Compare the returned build with 26.5.260807. Do not replace the JAR of a running/resumed job.

```sh
java -version
java -jar 'autoupgrade.jar' -patch -version
```

## 2. Prepare working directories

Run on: Execution host / Oracle software owner

Create only the staging, log and keystore paths. Oracle homes, OS groups and installation prerequisites need their own server preparation.

```sh
umask 077
mkdir -p '/home/oracle/autoupgrade/logs' '/home/oracle/autoupgrade/keystore' '/home/oracle/autoupgrade/patches'
```

## 3. Place and review the generated files

Run on: Execution host

Save the configuration below as install.cfg. Check paths, file ownership, intended media and the selected operation. ALIS does not upload files or run these commands.

```sh
cat 'install.cfg'
```

## 4. Load MOS credentials

Run on: Download host / Oracle software owner

Create or open the wallet at global.keystore. Enter wallet and MOS passwords only at the terminal prompts. This is an interactive session.

```sh
java -jar 'autoupgrade.jar' -patch -config 'install.cfg' -load_password
```

## 5. Complete the password-loader dialogue

Run on: MOS> console

Replace YOUR_MOS_USER if not supplied. Enter the MOS secret at the hidden prompt. list checks connectivity. On save/exit choose auto-login YES. CSI is optional for this profile; add it only when your support setup requires it. Auto-login SHARED must be an intentional cross-host choice.

```text
add -user YOUR_MOS_USER
list
save
exit
```

## 6. Download and inspect the media

Run on: Download host

This downloads software; it does not apply database changes. Review patch inventory/patches_info.json and keep companion metadata with the files. Oracle service availability and entitlements are checked here.

```sh
java -jar 'autoupgrade.jar' -patch -config 'install.cfg' -mode download
```

## 7. Check the installation source

Run on: Target software host

Use a matching-platform base release plus patches, an Oracle-supplied image, or the selected local Gold Image. AUTO can fall back. When offline, preserve the complete staged media directory. Custom GOLDIMAGE input is exclusive; its patch level is already baked in.

## 8. Create the Oracle home

Run on: Target host / Oracle software owner

Run on the installation platform. AutoUpgrade installs software and applies the chosen media. A software-only job does not create a database.

```sh
java -jar 'autoupgrade.jar' -patch -config 'install.cfg' -mode create_home
```

## 9. Complete privileged installation steps

Run on: root / installation administrator

Execute only the scripts and node order requested by AutoUpgrade. Inspect rootsh.log/rootsh.json at the path printed for this job. If target_home contains placeholders, use the resolved script paths from those outputs. Existing sudo configuration may let AutoUpgrade handle this step.

```sh
# Only if requested for this inventory
'/u01/app/oraInventory/orainstRoot.sh'
# Only if requested by AutoUpgrade
'/u01/app/oracle/product/dbhome_1/root.sh'
```

## 10. Verify the result

Run on: Operation owner

Inspect the final summary and reported log paths, Oracle inventory and SQL patch registry where a database was changed. Complete application, service and backup checks. A software-only home install creates no database. A listener is created only when configured.

## File: install.cfg

```properties
# Generated with ALIS
# AutoUpgrade profile: 26.5.260807
# Follow the generated runbook for this operation and execution host.

global.global_log_dir=/home/oracle/autoupgrade/logs
global.keystore=/home/oracle/autoupgrade/keystore

install1.folder=/home/oracle/autoupgrade/patches
install1.target_version=19
install1.patch=RU,OPATCH,OCW
install1.download=YES
install1.target_home=/u01/app/oracle/product/dbhome_1
install1.home_settings.oracle_base=/u01/app/oracle
install1.home_settings.edition=EE
install1.home_settings.inventory_location=/u01/app/oraInventory
```

## Recovery and diagnostics — separate from normal execution

### Inspect checks

Read available checks for this operation.

```text
java -jar 'autoupgrade.jar' -patch -listchecks
```

### Collect logs

Review archives before sharing them with support.

```text
java -jar 'autoupgrade.jar' -patch -config 'install.cfg' -zip
```

### Resume the same job

Use the same JAR, configuration, mode and recovery/log location. Do not clear recovery state.

```text
java -jar 'autoupgrade.jar' -patch -config 'install.cfg' -mode create_home
```

## Sources

- [Fresh-server installation](https://dohdatabase.com/2025/06/17/autoupgrade-new-features-install-oracle-home-on-brand-new-empty-server/)
- [MOS credentials and auto-login](https://mikedietrichde.com/2026/07/07/autoupgrade-patching-from-zero-to-hero-part-2-mos-credentials/)
- [Oracle-supplied Gold Images (26.2 behavior)](https://www.dbarj.com.br/en/2026/02/downloading-and-using-gold-image-with-autoupgrade/)
- [Create and use your own Gold Images](https://dohdatabase.com/2026/09/08/autoupgrade-new-features-create-and-use-your-own-gold-images/)
- [Patch and tool download examples](https://mikedietrichde.com/2026/07/09/autoupgrade-patching-from-zero-to-hero-part-4-download-examples/)
- [Changes in AutoUpgrade 26.4 / 26.5](https://mikedietrichde.com/2026/08/13/new-autoupgrade-version-26-5-is-available-plus-26-4/)
- [PDB refresh, source fixups and cutover](https://dohdatabase.com/2026/02/24/upgrade-oracle-database-19c-pdb-to-26ai-using-refreshable-clone-pdb/)
- [RAC rolling workflow](https://www.dbarj.com.br/en/2026/02/rac-rolling-mode-in-autoupgrade/)
- [Oracle upgrade parameter reference](https://docs.oracle.com/en/database/oracle/oracle-database/26/upgrd/upgrade-parameters-autoupgrade-config-file.html)
- [Oracle patch parameter reference](https://docs.oracle.com/en/database/oracle/oracle-database/26/upgrd/patch-parameters-autoupgrade-config-file.html)
- [Oracle command reference](https://docs.oracle.com/en/database/oracle/oracle-database/26/upgrd/autoupgrade-command-line-parameters.html)
