프린트 하기

OS 환경 : Oracle Linux 7.7 (64bit)

 

DB 환경 : Oracle Database 19.19.0.0

 

방법 : 오라클 19c opatch 시 silent 옵션

opatch를 이용해 패치를 할때 일반적으로 패치를 계속 진행할건지, local 노드에만 패치할건지를 y/n으로 물어봄

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
$ $ORACLE_HOME/OPatch/opatch apply 35050331
Oracle Interim Patch Installer version 12.2.0.1.46
Copyright (c) 2025, Oracle Corporation.  All rights reserved.
 
 
Oracle Home       : /app/oracle/product/19c
Central Inventory : /app/oraInventory
   from           : /app/oracle/product/19c/oraInst.loc
OPatch version    : 12.2.0.1.46
OUI version       : 12.2.0.7.0
Log file location : /app/oracle/product/19c/cfgtoollogs/opatch/opatch2025-09-21_16-55-29PM_1.log
 
Verifying environment and performing prerequisite checks...
 
--------------------------------------------------------------------------------
Start OOP by Prereq process.
Launch OOP...
 
Oracle Interim Patch Installer version 12.2.0.1.46
Copyright (c) 2025, Oracle Corporation.  All rights reserved.
 
 
Oracle Home       : /app/oracle/product/19c
Central Inventory : /app/oraInventory
   from           : /app/oracle/product/19c/oraInst.loc
OPatch version    : 12.2.0.1.46
OUI version       : 12.2.0.7.0
Log file location : /app/oracle/product/19c/cfgtoollogs/opatch/opatch2025-09-21_16-55-39PM_1.log
 
Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   35050331
 
Do you want to proceed? [y|n]
y  <<--- y 입력필요
User Responded with: Y
All checks passed.
 
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/app/oracle/product/19c')
 
 
Is the local system ready for patching? [y|n]
y  <<--- y 입력필요
User Responded with: Y
Backing up files...

 

 

하지만 아래와 같이 silent 옵션을 사용하면 y를 자동으로 입력해줌

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
$ $ORACLE_HOME/OPatch/opatch apply 35042068 -silent
Oracle Interim Patch Installer version 12.2.0.1.46
Copyright (c) 2025, Oracle Corporation.  All rights reserved.
 
 
Oracle Home       : /app/oracle/product/19c
Central Inventory : /app/oraInventory
   from           : /app/oracle/product/19c/oraInst.loc
OPatch version    : 12.2.0.1.46
OUI version       : 12.2.0.7.0
Log file location : /app/oracle/product/19c/cfgtoollogs/opatch/opatch2025-09-21_16-57-24PM_1.log
 
Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   35042068
 
Do you want to proceed? [y|n]
Y (auto-answered by -silent) <<<---
User Responded with: Y
All checks passed.
 
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/app/oracle/product/19c')
 
 
Is the local system ready for patching? [y|n]
Y (auto-answered by -silent) <<<---
User Responded with: Y
Backing up files...

 

 

결론 : 여러개 인터림 패치를 적용할 경우 silent 옵션을 사용하면 편하게 작업할 수 있음

 

 

참조 :