프린트 하기 URL 복사

OS 환경 : Oracle Linux 8.7 (64bit)

 

DB 환경 : Oracle Database 19.27.0.0

 

방법 : 오라클 19c Autoupgrade 이용 패치 다운로드 방법

autoupgrade 툴을 이용하면 업그레이드도 가능하지만, 패치파일을 손쉽게 다운로드 받을수도 있음
본문에서는 autoupgrade를 이용해 패치를 다운로드 받는 방법을 설명함

*autoupgrade.jar를 사용하는 서버에서 외부 통신이 가능해야 사용 가능함(또는 https_proxy 등을 연결해야 사용 가능함)

 

 

먼저 Autoupgrade 툴 최신 버전 다운로드
아래 링크 또는 AutoUpgrade Tool(KB123450)에서 다운로드 가능
https://www.oracle.com/database/upgrades

 

 

본문에서는 /home/oracle/autoupg 라는 폴더에서 autoupgrade.jar를 실행하여 패치를 다운로드 함

 

 

폴더 생성 후 autoupgrade.jar 파일 확인

1
2
3
4
5
6
$ mkdir -p /home/oracle/autoupg
$ ls -al
total 6868
drwxr-xr-x   4 oracle oinstall      95 May  9 18:52 .
drwx------. 19 oracle oinstall    4096 May  9 18:52 ..
-rw-r--r--   1 oracle dba      7016621 May  4 22:24 autoupgrade.jar

 

 

AutoUpgrade 설정 파일(Config) 생성

1
2
3
4
5
6
7
8
9
10
$ vi oracle.cfg
# 전역 설정
global.global_log_dir=/home/oracle/autoupg/logs
global.keystore=/home/oracle/autoupg/keystore
 
# 패치 다운로드 설정
patch1.patch=RECOMMENDED
patch1.folder=/oraimsi/media
patch1.target_version=19
patch1.download=yes

옵션 설명
global_log_dir : 로그가 저장될 경로
keystore : MOS 계정 정보를 저장할 암호화된 지갑 경로
folder : 패치가 저장될 디렉토리
target_version : RU를 받을 대상 버전
platform : 대상 OS 플랫폼, LINUX.X64가 기본값
download : 다운로드받을지 여부
patch :
- RECOMMENDED : 종합 패치 세트. RU, OPATCH, OJVM, DPBP를 모두 포함함
- RU : 최신 버전의 Release Update를 다운로드
- RU:x.y : 특정 버전의 RU를 지정(예: RU:19.24)
- OPATCH : 해당 버전에 맞는 최신 버전의 OPatch 도구를 다운로드
- OJVM : 지정한 RU 버전에 호환되는 Oracle Java VM 패치를 다운로드
- DPBP : Data Pump Bundle Patch를 해당 RU 버전에 맞춰 다운로드
- OCW : Grid Infrastructure 패치를 다운로드
- AHF : Autonomous Health Framework를 다운로드
- SQLCL : SQL Developer Command Line 툴을 다운로드
- patch-number(12345678) : one-off 패치를 다운로드
참고 : Autoupgrade : How to download patches with Autoupgrade ?(KB790461)

 

 

MOS 자격 증명 로드(Keystore 생성)

1
2
3
4
5
6
7
8
9
10
$ java -jar ./autoupgrade.jar -config ./oracle.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:   
PKI-01002: Invalid password. Passwords must have a minimum length of eight characters and contain alphabetic characters combined with numbers or special characters. 
Enter password:   <-- Keystore용 패스워드 지정
Enter password again:   <-- Keystore용 패스워드 재입력
AutoUpgrade Patching keystore was successfully created

본문에서는 임시로 Dhfkzmf1! 입력함

 

 

MOS 계정명/패스워드 입력

1
2
3
4
5
6
7
8
MOS> add -user test@mos_account.com
Enter your secret/Password:   <-- MOS 패스워드 입력
Re-enter your secret/Password:   <-- MOS 패스워드 재입력
MOS> exit
Save the AutoUpgrade Patching keystore before exiting [YES|NO] ? YES  <<--키를 저장할지 묻는 옵션 YES 입력
Convert the AutoUpgrade Patching keystore to auto-login [YES|NO] ? NO  <<-- Patch 다운로드시 Auto-login 묻는 옵션 NO 입력
 
AutoUpgrade Patching Password Loader finished - Exiting AutoUpgrade Patching

 

 

키스토어 확인

1
2
3
4
5
6
7
$ ls -al keystore/
total 12
drwx------ 2 oracle oinstall   62 May  9 19:49 .
drwxr-xr-x 4 oracle oinstall   75 May  9 19:49 ..
-rw------- 1 oracle oinstall  512 May  9 19:49 apikey
-rw------- 1 oracle oinstall 4606 May  9 19:47 ewallet.p12
-rw------- 1 oracle oinstall    0 May  9 19:47 ewallet.p12.lck

 

 

패치 다운로드 실행(download 옵션 사용)

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
$ java -jar autoupgrade.jar -config oracle.cfg -patch -mode download
AutoUpgrade Patching 26.3.260401 launched with default internal options
Processing config file ...
Loading AutoUpgrade Patching keystore
Enter wallet password:  <<-- Keystore용 패스워드 입력(Dhfkzmf1!)
AutoUpgrade Patching keystore is loaded
 
Connected to MOS - Searching for specified patches
 
-----------------------------------
Downloading files to /oraimsi/media
-----------------------------------
DATABASE RELEASE UPDATE 19.31.0.0.0
    File: p39034528_190000_Linux-x86-64.zip - VALIDATED
 
OPatch 12.2.0.1.51 for DB 19.0.0.0.0 (Apr 2026)
    File: p6880880_190000_Linux-x86-64.zip - VALIDATED
 
DATAPUMP BUNDLE PATCH 19.31.0.0.0
    File: p39196236_1931000DBRU_Generic.zip - VALIDATED
 
OJVM RELEASE UPDATE 19.31.0.0.0
    File: p38906621_190000_Linux-x86-64.zip - VALIDATED
 
autoupgrade.jar 26.3 (April 2026)
    File: autoupgrade.jar - VALIDATED
-----------------------------------

patch=RECOMMENDED를 사용했기 때문에 최신RU, OPATCH, OJVM, DPBP, Autoupgrade 파일이 다운로드됨

 

 

파일 확인

1
2
3
4
5
6
7
8
9
10
$ ls -al /oraimsi/media/
total 2495888
drwx------  2 oracle oinstall        217 May  9 19:50 .
drwxr-xr-x 10 oracle dba             246 May  4 23:27 ..
-rw-r--r--  1 oracle oinstall    7016621 May  9 19:50 autoupgrade.jar
-rw-r--r--  1 oracle oinstall  129552958 May  9 19:50 p38906621_190000_Linux-x86-64.zip
-rw-r--r--  1 oracle oinstall 2279928555 May  9 19:49 p39034528_190000_Linux-x86-64.zip
-rw-r--r--  1 oracle oinstall    2796408 May  9 19:50 p39196236_1931000DBRU_Generic.zip
-rw-r--r--  1 oracle oinstall  136478629 May  9 19:50 p6880880_190000_Linux-x86-64.zip
-rw-r--r--  1 oracle oinstall       1849 May  9 19:50 patches_info.json

정상적으로 받아짐

 

 

patches_info.json 파일 확인

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
$ cat /oraimsi/media/patches_info.json
 
{
    "patchFolder": "/oraimsi/media",
    "patches": [
        {
            "description": "DATABASE RELEASE UPDATE 19.31.0.0.0",
            "platform": "Linux x86-64",
            "releaseUpdate": "19.31.0.0.0",
            "files": [
                {
                    "name": "p39034528_190000_Linux-x86-64.zip",
                    "checksum": "75658FA419B126ECBEF3F9ECA9F5F2183D4727E6",
                    "checksum-256": "3FDDF4FDE259AECF85E50BF043183F3F9456FADD23A538BDDA58442A6713DAD9"
                }
            ]
        },
        {
            "description": "OPatch 12.2.0.1.51 for DB 19.0.0.0.0 (Apr 2026)",
            "platform": "Linux x86-64",
            "files": [
                {
                    "name": "p6880880_190000_Linux-x86-64.zip",
                    "checksum": "1E989EE091FC45B6E0CA7FEEA55B2FA9A9B9ACD9",
                    "checksum-256": "31E03F01B8FF6833E5C6601C3CEAFC4277D9C43239EA933DB736D5E2F4EC2516"
                }
            ]
        },
        {
            "description": "DATAPUMP BUNDLE PATCH 19.31.0.0.0",
            "files": [
                {
                    "name": "p39196236_1931000DBRU_Generic.zip",
                    "checksum": "E711E3024AA6C4C336D7291CE1E7D0419C311C52",
                    "checksum-256": "F39745219BCC9D8BC8FD1262EF787FF742F7F84F6C59A817B1F014ADA49B778F"
                }
            ]
        },
        {
            "description": "OJVM RELEASE UPDATE 19.31.0.0.0",
            "platform": "Linux x86-64",
            "files": [
                {
                    "name": "p38906621_190000_Linux-x86-64.zip",
                    "checksum": "372ACC72DF8EA4648A9EA78588A44F014AB0589F",
                    "checksum-256": "BE75D5038DEA26F0EA4F81C6623A1521962BBD3307286C1E0D1FAB8039690361"
                }
            ]
        }
    ]

패치파일의 메타정보가 들어가 있음

 

 

다운로드 받은 다른 폴더로 이동

1
2
3
$ cd /oraimsi/media
$ mkdir -p 19c_patch
$ mv * 19c_patch

 

 

26ai 버전 패치 다운로드 시도(patch1.target_version=19만 26으로 수정함)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$ java -jar autoupgrade.jar -config oracle.cfg -patch -mode download
AutoUpgrade Patching 26.3.260401 launched with default internal options
Processing config file ...
Loading AutoUpgrade Patching keystore
Enter wallet password:  <<-- Keystore용 패스워드 입력
AutoUpgrade Patching keystore is loaded
 
Connected to MOS - Searching for specified patches
 
-----------------------------------
Downloading files to /oraimsi/media
-----------------------------------
DATABASE RELEASE UPDATE 23.26.2.0.0
    File: p39099680_230000_Linux-x86-64.zip - VALIDATED
 
OPatch 12.2.0.1.51 for DB 23.0.0.0.0 (Apr 2026)
    File: p6880880_230000_Linux-x86-64.zip - VALIDATED
 
DATAPUMP BUNDLE PATCH 23.26.2.0.0
    File: p39227161_2326200DBRU_Generic.zip - VALIDATED
 
autoupgrade.jar 26.3 (April 2026)
    File: autoupgrade.jar - VALIDATED
-----------------------------------

patch=RECOMMENDED를 사용했기 때문에 최신RU(Gold Image), OPATCH, DPBP, Autoupgrade 파일이 다운로드됨
참고로 patch=RU 입력시 19c는 RU가 다운로드 되고, 26ai는 Gold Image가 다운로드됨
만약 26ai 일반 RU를 다운로드 받고 싶은 경우 autoupgrade에서는 다운로드가 안되는것 같고 mos에서 받야하 하는듯함(KB106822 또는 KA958)

 

 

파일 확인

1
2
3
4
5
6
7
8
9
10
$ ls -al /oraimsi/media/
total 2433696
drwx------  3 oracle oinstall        193 May  9 20:01 .
drwxr-xr-x 10 oracle dba             246 May  4 23:27 ..
drwxr-xr-x  2 oracle oinstall        217 May  9 20:00 19c_patch
-rw-r--r--  1 oracle oinstall    7016621 May  9 20:01 autoupgrade.jar
-rw-r--r--  1 oracle oinstall 2457466941 May  9 20:01 p39099680_230000_Linux-x86-64.zip
-rw-r--r--  1 oracle oinstall    2254761 May  9 20:01 p39227161_2326200DBRU_Generic.zip
-rw-r--r--  1 oracle oinstall   25351666 May  9 20:01 p6880880_230000_Linux-x86-64.zip
-rw-r--r--  1 oracle oinstall       1409 May  9 20:01 patches_info.json

정상적으로 받아짐

 

 

다운로드 받은 다른 폴더로 이동

1
2
3
$ cd /oraimsi/media
$ mkdir -p 26ai_patch
$ mv p* autoupgrade.jar 26ai_patch

 

 

추가로 나머지 옵션 테스트(patch1.patch=AHF,OCW,SQLCL 를 사용함)

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
$ java -jar autoupgrade.jar -config oracle.cfg -patch -mode download
AutoUpgrade Patching 26.3.260401 launched with default internal options
Processing config file ...
Loading AutoUpgrade Patching keystore
Enter wallet password:
AutoUpgrade Patching keystore is loaded
 
Connected to MOS - Searching for specified patches
 
-----------------------------------
Downloading files to /oraimsi/media
-----------------------------------
PLACEHOLDER - DOWNLOAD LATEST AHF (TFA and ORACHK/EXACHK)
    File: AHF-LINUX_v26.3.0.zip - VALIDATED
 
GI RELEASE UPDATE 19.31.0.0.0
    File: p39036936_190000_Linux-x86-64.zip - VALIDATED
 
sqlcl-latest.zip 26.1.0.086.1709 (April 2026)
    File: sqlcl-latest.zip - 100%
There were conditions found preventing AutoUpgrade Patching from successfully running
 
*Downloading files
Download failed
*The downloaded file sqlcl-latest.zip 26.1.0.086.1709 (April 2026) did not have the expected checksum*

sqlcl을 제외하곤 grid와 AHF가 잘 받아짐

 

 

파일 확인

1
2
3
4
5
6
7
8
$ ls -al
total 4392884
drwx------  4 oracle oinstall        111 May  9 20:11 .
drwxr-xr-x 10 oracle dba             246 May  4 23:27 ..
drwxr-xr-x  2 oracle oinstall        217 May  9 20:00 19c_patch
drwxr-xr-x  2 oracle oinstall        176 May  9 20:09 26ai_patch
-rw-r--r--  1 oracle oinstall  300589304 May  9 20:10 AHF-LINUX_v26.3.0.zip
-rw-r--r--  1 oracle oinstall 4197719787 May  9 20:11 p39036936_190000_Linux-x86-64.zip

잘 받아짐

 

 

참고1. My Oracle Support에 접속하기 위해 프록시가 필요한 경우 https_proxy, http_proxy, no_proxy와 같은
Linux 환경 변수를 설정하여 AutoUpgrade가 Oracle Support에 연결할 수 있도록 할 수 있다고함

 

 

결론 :
autoupgrade 툴을 이용해 패치파일을 손쉽게 다운로드 할 수 있음
만약 설정 파일의 folder 파라미터로 정의한 디렉토리에 패치가 이미 존재하는 경우 해당 패치의 다운로드는 스킵됨
참고로 patch=RU 입력시 19c는 RU가 다운로드 되고, 26ai는 Gold Image가 다운로드됨
만약 26ai 일반 RU를 다운로드 받고 싶은 경우 autoupgrade에서는 다운로드가 안되는것 같고 mos에서 받야하 하는듯함(KB106822 또는 KA958)

 

 

참조 : 

오라클 26ai autoupgrade를 이용해 엔진 설치 방법 ( https://positivemh.tistory.com/1373 )

autoupgrade Download query failed ( https://positivemh.tistory.com/1372 )

Exception while loading the AutoUpgrade Patching keystore - CommonException [Loading auto-login keystore failed] ( https://positivemh.tistory.com/1371 )

Autoupgrade : How to download patches with Autoupgrade ?(KB790461)
AutoUpgrade Tool(KB123450)
Autoupgrade : How to install Oracle Home using Autoupgrade ?(KB753244)

https://www.dbarj.com.br/en/2026/02/downloading-and-using-gold-image-with-autoupgrade/
https://dohdatabase.com/2024/10/30/how-to-patch-oracle-database-with-one-command/
https://oracle-base.com/articles/misc/autoupgrade-download-and-install-oracle-database-software
https://docs.oracle.com/en/database/oracle/oracle-database/19/upgrd/autoupgrade-patching.html#GUID-291AF989-ACB9-42CE-8FC5-617A70D57A4E
https://docs.oracle.com/en/database/oracle/oracle-database/21/upgrd/autoupgrade-patching.html#GUID-B4169A36-FA3F-430E-B5FE-E72082D0B6AD
https://docs.oracle.com/en/database/oracle/oracle-database/26/upgrd/autoupgrade-patching.html#GUID-B4169A36-FA3F-430E-B5FE-E72082D0B6AD