DBA Hub

📋Steps in this guide1/4

AutoUpgrade : Download and Install Oracle Database Software

This article describes how to download and install Oracle software using AutoUpgrade, including software patches.

oracle miscconfigurationintermediate
by OracleDba
14 views
1

Prerequisites

This article assumes we have followed the basic operating system prerequisites for an Oracle database installation. We need OpenJDK 11 installed on the server to use AutoUpgrade.

Code/Command (click line numbers to comment):

1
# dnf install -y java-11-openjdk
2

AutoUpgrade Setup

We create a directory to hold AutoUpgrade, and download the latest version. We make a directory to hold the keystore, and create a config file to allow us to generate a new keystore. We create a new keystore using AutoUpgrade. Entering the new keystore password when prompted. We add our user to the keystore. This is the MOS username and password. We exit, saving the keystore and converting it to auto-login. The wallet is now ready for use.

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
mkdir -p /u01/autoupgrade
cd /u01/autoupgrade
wget https://download.oracle.com/otn-pub/otn_software/autoupgrade.jar

mkdir keystore

cat > keystore.cfg <<EOF
global.global_log_dir=/u01/autoupgrade/logs
global.keystore=/u01/autoupgrade/keystore
EOF

$ java -jar ./autoupgrade.jar -config ./keystore.cfg -patch -load_password
Processing config file ...

Starting AutoUpgrade Patching Password Loader - Type help for available options
Creating new AutoUpgrade Patching keystore - Password required
Enter password:
Enter password again:
AutoUpgrade Patching keystore was successfully created

MOS>

MOS> add -user [email protected]
Enter your secret/Password:
Re-enter your secret/Password:
MOS>

MOS> exit
Save the AutoUpgrade Patching keystore before exiting [YES|NO] ? YES
Convert the AutoUpgrade Patching keystore to auto-login [YES|NO] ? YES

AutoUpgrade Patching Password Loader finished - Exiting AutoUpgrade Patching
$

$ ls keystore
cwallet.sso  cwallet.sso.lck  ewallet.p12  ewallet.p12.lck
$
3

Download Software using AutoUpgrade

We make the necessary directories for the download and installation. We create a file called "oracle26.cfg" with the following contents. For 26ai we can use a of 23 or 26. We will use this same file for creating the . Notice the reference to the keystore for MOS authentication. We download the 26ai software with the following command. We can see the software has been downloaded.

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
mkdir -p /u01/software
mkdir -p /u01/app/oracle/product/26.0.0/db_home1

global.global_log_dir=/u01/autoupgrade/logs
global.keystore=/u01/autoupgrade/keystore
install1.patch=RU,OPATCH,DPBP
install1.folder=/u01/software
install1.target_home=/u01/app/oracle/product/26.0.0/db_home1
install1.home_settings.oracle_base=/u01/app/oracle
install1.home_settings.edition=EE
install1.home_settings.inventory_location=/u01/app/oraInventory
install1.target_version=26
install1.download=yes

$ java -jar autoupgrade.jar -config oracle26.cfg -patch -mode download
AutoUpgrade Patching 26.2.260205 launched with default internal options
Processing config file ...
Loading AutoUpgrade Patching keystore
AutoUpgrade Patching keystore is loaded

Connected to MOS - Searching for specified patches

----------------------------------
Downloading files to /u01/software
----------------------------------
DATABASE RELEASE UPDATE 23.26.1.0.0 (GOLD IMAGE)
    File: p38743961_230000_Linux-x86-64.zip - VALIDATED

OPatch 12.2.0.1.49 for DB 23.0.0.0.0 (Jan 2026)
    File: p6880880_230000_Linux-x86-64.zip - VALIDATED

DATAPUMP BUNDLE PATCH 23.26.1.0.0
    File: p38842609_2326100DBRU_Generic.zip - VALIDATED
----------------------------------

$

$ ls -al /u01/software
total 2376512
drwxr-xr-x. 2 oracle oinstall        153 Feb 11 08:50 .
drwxr-xr-x. 5 oracle oinstall         52 Feb 11 08:20 ..
-rw-r--r--. 1 oracle oinstall 2406029980 Feb 11 08:27 p38743961_230000_Linux-x86-64.zip
-rw-r--r--. 1 oracle oinstall    2247142 Feb 11 08:27 p38842609_2326100DBRU_Generic.zip
-rw-r--r--. 1 oracle oinstall   25263282 Feb 11 08:27 p6880880_230000_Linux-x86-64.zip
-rw-r--r--. 1 oracle oinstall       1421 Feb 11 08:27 patches_info.json
$
4

Create Patched ORACLE_HOME

We create a patched 26ai using the following command. We need to run the root scripts as instructed. The "status.log" file contains the following information. For more information see: - About the Oracle AutoUpgrade Utility Hope this helps. Regards Tim...

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
$ java -jar autoupgrade.jar -config oracle26.cfg -patch -mode create_home
AutoUpgrade Patching 26.2.260205 launched with default internal options
Processing config file ...
Loading AutoUpgrade Patching keystore
AutoUpgrade Patching keystore is loaded
+-----------------------------------------+
| Starting AutoUpgrade Patching execution |
+-----------------------------------------+
Type 'help' to list console commands
patch> Job 100 completed
------------------- Final Summary --------------------
Number of databases            [ 1 ]

Jobs finished                  [1]
Jobs failed                    [0]
Jobs restored                  [0]
Jobs pending                   [0]

# Run the root.sh script as root for the following jobs:
For create_home_1 -> /u01/app/oracle/product/26.0.0/db_home1/root.sh

Please check the summary report at:
/u01/autoupgrade/logs/cfgtoollogs/patch/auto/status/status.html
/u01/autoupgrade/logs/cfgtoollogs/patch/auto/status/status.log
$

# /u01/app/oracle/product/26.0.0/db_home1/root.sh

==========================================
   AutoUpgrade Patching Summary Report
==========================================
[Date]           Wed Feb 11 08:51:19 UTC 2026
[Number of Jobs] 1
==========================================
[Job ID] 100
==========================================
[DB Name]                create_home_1
[Version Before AutoUpgrade Patching] 23.0.0.0.0
[Version After AutoUpgrade Patching]  23.26.1.0.0
------------------------------------------
[Stage Name]    PENDING
[Status]        SUCCESS
[Start Time]    2026-02-11 08:48:58
[Duration]      0:00:00
[Log Directory] /u01/autoupgrade/logs/create_home_1/100/pending
------------------------------------------
[Stage Name]    PREACTIONS
[Status]        SUCCESS
[Start Time]    2026-02-11 08:48:58
[Duration]      0:00:00
[Log Directory] /u01/autoupgrade/logs/create_home_1/100/preaction
------------------------------------------
[Stage Name]    EXTRACT
[Status]        SUCCESS
[Start Time]    2026-02-11 08:48:58
[Duration]      0:00:32
[Log Directory] /u01/autoupgrade/logs/create_home_1/100/extract
------------------------------------------
[Stage Name]    DBTOOLS
[Status]        SUCCESS
[Start Time]    2026-02-11 08:49:31
[Duration]      0:00:00
[Log Directory] /u01/autoupgrade/logs/create_home_1/100/dbtools
------------------------------------------
[Stage Name]    INSTALL
[Status]        SUCCESS
[Start Time]    2026-02-11 08:49:31
[Duration]      0:01:28
[Log Directory] /u01/autoupgrade/logs/create_home_1/100/install
------------------------------------------
[Stage Name]    OH_PATCHING
[Status]        SUCCESS
[Start Time]    2026-02-11 08:50:59
[Duration]      0:00:19
[Log Directory] /u01/autoupgrade/logs/create_home_1/100/opatch
------------------------------------------
[Stage Name]    OPTIONS
[Status]        SUCCESS
[Start Time]    2026-02-11 08:51:19
[Duration]      0:00:00
[Log Directory] /u01/autoupgrade/logs/create_home_1/100/options
------------------------------------------
[Stage Name]    ROOTSH
[Status]        SUCCESS
[Start Time]    2026-02-11 08:51:19
[Duration]      0:00:00
[Log Directory] /u01/autoupgrade/logs/create_home_1/100/rootsh
------------------------------------------
[Stage Name]    POSTACTIONS
[Status]        SUCCESS
[Start Time]    2026-02-11 08:51:19
[Duration]      0:00:00
[Log Directory] /u01/autoupgrade/logs/create_home_1/100/postaction
------------------------------------------

Comments (0)

Please to add comments

No comments yet. Be the first to comment!