일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- oracle goldengate
- adg
- 데이터베이스
- oracle installation
- 사일런트모드
- Installation
- ORACLE19C
- 오지지
- Oracle 19c
- Database
- 티베로
- 오라클설치
- ogg
- OracleGoldenGate
- 19c
- ActiveDataGuard
- DataGuard
- Opatch
- 디비투
- goldengate
- 데이터가드
- 오라클아키텍쳐
- 오라클
- SILENTMODE
- Oracle
- oracle recovery
- linux
- 오라클구조
- SSH
- diskgroup
- Today
- Total
DoubleDBDeep
[ORACLE] 19.3 -> 19.17 Grid & Oracle Database Patch | 오라클 19.17 수동 및 자동 패치 본문
[ORACLE] 19.3 -> 19.17 Grid & Oracle Database Patch | 오라클 19.17 수동 및 자동 패치
DBCAMI 2023. 4. 26. 13:05OS / ORACLE ENVIRONMENT | |
EDITION | EE |
RAC | RAC 2 NODE |
VERSION | Oracle Database19c |
SERVER | Linux 7.9 (5.4.17-2102.201.3.el7uek.x86_64) |
GI_HOME | /u01/app/19c/grid |
ORACLE_SID | rac1, rac2 |
ORACLE_BASE | /u01/app/oracle |
ORACLE_HOME | /u01/app/oracle/product/19.0.0/dbhome_1 |
oraInventory | /u01/app/oraInventory |
1. OPatch 버전 업 - 두 노드 / GI_HOME, ORACLE_HOME 모두 진행해야 함.
- node 1 / grid
[rac1|root:/root]> mv $GI_HOME/OPatch $GI_HOME/OPatch_old
[rac1|root:/root]> chown grid:oinstall /u01/app/19c/grid
[rac1|root:/root]> asm
Last login: Wed Apr 26 09:28:12 KST 2023
[+ASM1|grid:/home/grid]> cd /media/patch/
[+ASM1|grid:/media/patch]> ls -al
total 2672424
drwxr-xr-x. 2 oracle oinstall 93 Apr 25 13:11 .
drwxr-xr-x. 5 oracle oinstall 44 Apr 25 13:08 ..
-rw-r--r--. 1 oracle oinstall 2610825269 Apr 25 13:11 19.17_p34416665_190000_Linux-x86-64.zip
-rw-r--r--. 1 oracle oinstall 125734641 Apr 25 13:11 p6880880_190000_Linux-x86-64.zip
[+ASM1|grid:/media/patch]> unzip p6880880_190000_Linux-x86-64.zip -d $GI_HOME
[+ASM1|grid:/media/patch]> opatch version
OPatch Version: 12.2.0.1.33
OPatch succeeded.
- node 1 / database
[rac1|root:/root]> mv $ORACLE_HOME/OPatch $ORACLE_HOME/OPatch_old
[rac1|oracle:/home/oracle]> cd /media/patch/
[rac1|oracle:/media/patch]> ls -al
total 2672424
drwxr-xr-x. 2 oracle oinstall 93 Apr 25 13:11 .
drwxr-xr-x. 5 oracle oinstall 44 Apr 25 13:08 ..
-rw-r--r--. 1 oracle oinstall 2610825269 Apr 25 13:11 19.17_p34416665_190000_Linux-x86-64.zip
-rw-r--r--. 1 oracle oinstall 125734641 Apr 25 13:11 p6880880_190000_Linux-x86-64.zip
[rac1|oracle:/media/patch]> unzip p6880880_190000_Linux-x86-64.zip -d $ORACLE_HOME
[rac1|oracle:/media/patch]> opatch version
OPatch Version: 12.2.0.1.33
OPatch succeeded.
[rac1|oracle:/media/patch]> which opatch
/u01/app/oracle/product/19.0.0/dbhome_1/OPatch/opatch
Auto Patch - 두 노드 모두 진행해야 함
[rac1|oracle:/root]> cd /media/patch/
[rac1|oracle:/media/patch]> ls -al
-rw-r--r--. 1 oracle oinstall 2610825269 Apr 25 13:11 19.17_p34416665_190000_Linux-x86-64.zip
[rac2|root:/media/patch]> unzip 19.17_p34416665_190000_Linux-x86-64.zip
[rac1|oracle:/media/patch]> ls -al
-rw-r--r--. 1 oracle oinstall 2610825269 Apr 25 13:11 19.17_p34416665_190000_Linux-x86-64.zip
drwxr-x---. 8 oracle oinstall 4096 Oct 17 2022 34416665
-rw-rw-r--. 1 oracle oinstall 1762911 Oct 19 2022 PatchSearch.xml
# grid
export PATH=$PATH:/u01/app/19c/grid/OPatch
opatchauto apply /media/patch/34416665 -oh /u01/app/19c/grid
logout
# oracle
export PATH=$PATH:/u01/app/oracle/product/19c/db_1/OPatch
opatchauto apply /media/patch/34416665 -oh /u01/app/oracle/product/19.0.0/dbhome_1
[rac2|root:/media/patch]> export PATH=$PATH:/u01/app/19c/grid/OPatch
[rac2|root:/media/patch]> opatchauto apply /media/patch/34416665 -oh /u01/app/19c/grid
OPatchauto session is initiated at Wed Apr 26 10:36:20 2023
System initialization log file is /u01/app/19c/grid/cfgtoollogs/opatchautodb/systemconfig2023-04-26_10-36-29AM.log.
Session log file is /u01/app/19c/grid/cfgtoollogs/opatchauto/opatchauto2023-04-26_10-36-36AM.log
The id for this session is NGCA
Executing OPatch prereq operations to verify patch applicability on home /u01/app/19c/grid
Patch applicability verified successfully on home /u01/app/19c/grid
Executing patch validation checks on home /u01/app/19c/grid
Patch validation checks successfully completed on home /u01/app/19c/grid
Performing prepatch operations on CRS - bringing down CRS service on home /u01/app/19c/grid
Prepatch operation log file location: /u01/app/oracle/crsdata/rac2/crsconfig/crs_prepatch_apply_inplace_rac2_2023-04-26_10-38-30AM.log
CRS service brought down successfully on home /u01/app/19c/grid
Start applying binary patch on home /u01/app/19c/grid
Binary patch applied successfully on home /u01/app/19c/grid
Performing postpatch operations on CRS - starting CRS service on home /u01/app/19c/grid
Postpatch operation log file location: /u01/app/oracle/crsdata/rac2/crsconfig/crs_postpatch_apply_inplace_rac2_2023-04-26_10-50-46AM.log
CRS service started successfully on home /u01/app/19c/grid
OPatchAuto successful.
--------------------------------Summary--------------------------------
Patching is completed successfully. Please find the summary as follows:
Host:rac2
CRS Home:/u01/app/19c/grid
Version:19.0.0.0.0
Summary:
==Following patches were SUCCESSFULLY applied:
Patch: /media/patch/34416665/33575402
Log: /u01/app/19c/grid/cfgtoollogs/opatchauto/core/opatch/opatch2023-04-26_10-43-10AM_1.log
Patch: /media/patch/34416665/34419443
Log: /u01/app/19c/grid/cfgtoollogs/opatchauto/core/opatch/opatch2023-04-26_10-43-10AM_1.log
Patch: /media/patch/34416665/34428761
Log: /u01/app/19c/grid/cfgtoollogs/opatchauto/core/opatch/opatch2023-04-26_10-43-10AM_1.log
Patch: /media/patch/34416665/34444834
Log: /u01/app/19c/grid/cfgtoollogs/opatchauto/core/opatch/opatch2023-04-26_10-43-10AM_1.log
Patch: /media/patch/34416665/34580338
Log: /u01/app/19c/grid/cfgtoollogs/opatchauto/core/opatch/opatch2023-04-26_10-43-10AM_1.log
OPatchauto session completed at Wed Apr 26 11:00:51 2023
[rac2|root:/root]> export PATH=$PATH:$ORACLE_HOME/OPatch
[rac2|root:/root]> opatchauto apply /media/patch/34416665 -oh /u01/app/oracle/product/19.0.0/dbhome_1
OPatchauto session is initiated at Wed Apr 26 12:53:03 2023
System initialization log file is /u01/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/opatchautodb/systemconfig2023-04-26_12-53-13PM.log.
Session log file is /u01/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/opatchauto/opatchauto2023-04-26_12-53-22PM.log
The id for this session is P2FY
Executing OPatch prereq operations to verify patch applicability on home /u01/app/oracle/product/19.0.0/dbhome_1
Patch applicability verified successfully on home /u01/app/oracle/product/19.0.0/dbhome_1
Executing patch validation checks on home /u01/app/oracle/product/19.0.0/dbhome_1
Patch validation checks successfully completed on home /u01/app/oracle/product/19.0.0/dbhome_1
Verifying SQL patch applicability on home /u01/app/oracle/product/19.0.0/dbhome_1
No sqlpatch prereq operations are required on the local node for this home
No step execution required.........
Preparing to bring down database service on home /u01/app/oracle/product/19.0.0/dbhome_1
No step execution required.........
Performing prepatch operation on home /u01/app/oracle/product/19.0.0/dbhome_1
Prepatch operation completed successfully on home /u01/app/oracle/product/19.0.0/dbhome_1
Start applying binary patch on home /u01/app/oracle/product/19.0.0/dbhome_1
Binary patch applied successfully on home /u01/app/oracle/product/19.0.0/dbhome_1
Performing postpatch operation on home /u01/app/oracle/product/19.0.0/dbhome_1
Postpatch operation completed successfully on home /u01/app/oracle/product/19.0.0/dbhome_1
Preparing home /u01/app/oracle/product/19.0.0/dbhome_1 after database service restarted
No step execution required.........
Trying to apply SQL patch on home /u01/app/oracle/product/19.0.0/dbhome_1
No sqlpatch operations are required on the local node for this home
SQL patch applied successfully on home /u01/app/oracle/product/19.0.0/dbhome_1
OPatchAuto successful.
--------------------------------Summary--------------------------------
Patching is completed successfully. Please find the summary as follows:
Host:rac2
RAC Home:/u01/app/oracle/product/19.0.0/dbhome_1
Version:19.0.0.0.0
Summary:
==Following patches were SKIPPED:
Patch: /media/patch/34416665/34428761
Reason: This patch is not applicable to this specified target type - "rac_database"
Patch: /media/patch/34416665/33575402
Reason: This patch is not applicable to this specified target type - "rac_database"
Patch: /media/patch/34416665/34580338
Reason: This patch is not applicable to this specified target type - "rac_database"
==Following patches were SUCCESSFULLY applied:
Patch: /media/patch/34416665/34419443
Log: /u01/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/opatchauto/core/opatch/opatch2023-04-26_12-55-19PM_1.log
Patch: /media/patch/34416665/34444834
Log: /u01/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/opatchauto/core/opatch/opatch2023-04-26_12-55-19PM_1.log
OPatchauto session completed at Wed Apr 26 13:02:54 2023
Time taken to complete the session 9 minutes, 52 seconds
Manual Patch (Doc ID : 2246888.1)
- unzip 34416665 까지는 동일함.
- 1 node 완료 후 2 node 진행
1) CRS 중지 - root
crsctl stop crs
2) root script (prepatch) - root
$GI_HOME/crs/install/rootcrs.sh -prepatch
[rac1|root:/root]> $GI_HOME/crs/install/rootcrs.sh -prepatch
Using configuration parameter file: /u01/app/19c/grid/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/oracle/crsdata/rac1/crsconfig/crs_prepatch_rac1_2023-04-26_09-57-01AM.log
Oracle Clusterware active version on the cluster is [19.0.0.0.0]. The cluster upgrade state is [NORMAL]. The cluster active patch level is [724960844].
2023/04/26 09:58:27 CLSRSC-4012: Shutting down Oracle Trace File Analyzer (TFA) Collector.
2023/04/26 10:00:06 CLSRSC-4013: Successfully shut down Oracle Trace File Analyzer (TFA) Collector.
2023/04/26 10:00:08 CLSRSC-347: Successfully unlock /u01/app/19c/grid
2023/04/26 10:00:09 CLSRSC-671: Pre-patch steps for patching GI home successfully completed.
3) patch GI_HOME - grid
-> PATCH 원하는 것만 지정하여 할 수 잇음
$GI_HOME/OPatch/opatch apply -oh $GI_HOME -local /media/patch/34416665/33575402
$GI_HOME/OPatch/opatch apply -oh $GI_HOME -local /media/patch/34416665/34419443
$GI_HOME/OPatch/opatch apply -oh $GI_HOME -local /media/patch/34416665/34428761
$GI_HOME/OPatch/opatch apply -oh $GI_HOME -local /media/patch/34416665/34444834
$GI_HOME/OPatch/opatch apply -oh $GI_HOME -local /media/patch/34416665/34580338
Oracle Interim Patch Installer version 12.2.0.1.33
Copyright (c) 2023, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/19c/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/19c/grid/oraInst.loc
OPatch version : 12.2.0.1.33
OUI version : 12.2.0.7.0
Log file location : /u01/app/19c/grid/cfgtoollogs/opatch/opatch2023-04-26_10-02-24AM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 33575402
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/19c/grid')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '33575402' to OH '/u01/app/19c/grid'
Patching component oracle.wlm.dbwlm, 19.0.0.0.0...
Patch 33575402 successfully applied.
Log file location: /u01/app/19c/grid/cfgtoollogs/opatch/opatch2023-04-26_10-02-24AM_1.log
OPatch succeeded.
[+ASM1|grid:/media/patch/34416665]> $GI_HOME/OPatch/opatch apply -oh $GI_HOME -local /media/patch/34416665/34419443
Oracle Interim Patch Installer version 12.2.0.1.33
Copyright (c) 2023, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/19c/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/19c/grid/oraInst.loc
OPatch version : 12.2.0.1.33
OUI version : 12.2.0.7.0
Log file location : /u01/app/19c/grid/cfgtoollogs/opatch/opatch2023-04-26_10-03-40AM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 34419443
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/19c/grid')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '34419443' to OH '/u01/app/19c/grid'
ApplySession: Optional component(s) [ oracle.ctx, 19.0.0.0.0 ] , [ oracle.dbdev, 19.0.0.0.0 ] , [ oracle.marvel, 19.0.0.0.0 ] , [ oracle.network.gsm, 19.0.0.0.0 ] , [ oracle.odbc.ic, 19.0.0.0.0 ] , [ oracle.precomp.common.core, 19.0.0.0.0 ] , [ oracle.rdbms.ic, 19.0.0.0.0 ] , [ oracle.rdbms.oci, 19.0.0.0.0 ] , [ oracle.rdbms.tg4db2, 19.0.0.0.0 ] , [ oracle.sdo, 19.0.0.0.0 ] , [ oracle.options.olap.api, 19.0.0.0.0 ] , [ oracle.xdk, 19.0.0.0.0 ] , [ oracle.sdo.companion, 19.0.0.0.0 ] , [ oracle.ons.eons.bwcompat, 19.0.0.0.0 ] , [ oracle.oraolap.api, 19.0.0.0.0 ] , [ oracle.rdbms.tg4msql, 19.0.0.0.0 ] , [ oracle.rdbms.scheduler, 19.0.0.0.0 ] , [ oracle.oid.client, 19.0.0.0.0 ] , [ oracle.mgw.common, 19.0.0.0.0 ] , [ oracle.ctx.atg, 19.0.0.0.0 ] , [ oracle.xdk.xquery, 19.0.0.0.0 ] , [ oracle.ons.cclient, 19.0.0.0.0 ] , [ oracle.rdbms.tg4sybs, 19.0.0.0.0 ] , [ oracle.network.cman, 19.0.0.0.0 ] , [ oracle.net.cman, 19.0.0.0.0 ] , [ oracle.options.olap, 19.0.0.0.0 ] , [ oracle.rdbms.hs_common, 19.0.0.0.0 ] , [ oracle.rdbms.tg4tera, 19.0.0.0.0 ] , [ oracle.rdbms.drdaas, 19.0.0.0.0 ] , [ oracle.rdbms.dv, 19.0.0.0.0 ] , [ oracle.rdbms.hsodbc, 19.0.0.0.0 ] , [ oracle.rdbms.lbac, 19.0.0.0.0 ] , [ oracle.rdbms.tg4ifmx, 19.0.0.0.0 ] , [ oracle.oraolap, 19.0.0.0.0 ] , [ oracle.odbc, 19.0.0.0.0 ] , [ oracle.xdk.companion, 19.0.0.0.0 ] , [ oracle.precomp.common, 19.0.0.0.0 ] , [ oracle.precomp.lang, 19.0.0.0.0 ] , [ oracle.jdk, 1.8.0.191.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.ordim.jai, 19.0.0.0.0...
Patching component oracle.bali.jewt, 11.1.1.6.0...
Patching component oracle.bali.ewt, 11.1.1.6.0...
Patching component oracle.help.ohj, 11.1.1.7.0...
Patching component oracle.perlint, 5.28.1.0.0...
Patching component oracle.rdbms.locator, 19.0.0.0.0...
Patching component oracle.perlint.expat, 2.0.1.0.4...
Patching component oracle.rdbms.rsf, 19.0.0.0.0...
Patching component oracle.rdbms.util, 19.0.0.0.0...
Patching component oracle.rdbms, 19.0.0.0.0...
Patching component oracle.assistants.acf, 19.0.0.0.0...
Patching component oracle.assistants.deconfig, 19.0.0.0.0...
Patching component oracle.assistants.server, 19.0.0.0.0...
Patching component oracle.blaslapack, 19.0.0.0.0...
Patching component oracle.buildtools.rsf, 19.0.0.0.0...
Patching component oracle.dbjava.ic, 19.0.0.0.0...
Patching component oracle.dbjava.jdbc, 19.0.0.0.0...
Patching component oracle.dbjava.ucp, 19.0.0.0.0...
Patching component oracle.duma, 19.0.0.0.0...
Patching component oracle.javavm.client, 19.0.0.0.0...
Patching component oracle.ldap.owm, 19.0.0.0.0...
Patching component oracle.ldap.rsf, 19.0.0.0.0...
Patching component oracle.ldap.security.osdt, 19.0.0.0.0...
Patching component oracle.network.rsf, 19.0.0.0.0...
Patching component oracle.ons, 19.0.0.0.0...
Patching component oracle.ons.ic, 19.0.0.0.0...
Patching component oracle.oracore.rsf, 19.0.0.0.0...
Patching component oracle.rdbms.crs, 19.0.0.0.0...
Patching component oracle.rdbms.dbscripts, 19.0.0.0.0...
Patching component oracle.rdbms.deconfig, 19.0.0.0.0...
Patching component oracle.rdbms.rsf.ic, 19.0.0.0.0...
Patching component oracle.rhp.db, 19.0.0.0.0...
Patching component oracle.sdo.locator.jrf, 19.0.0.0.0...
Patching component oracle.sqlplus, 19.0.0.0.0...
Patching component oracle.sqlplus.ic, 19.0.0.0.0...
Patching component oracle.tfa, 19.0.0.0.0...
Patching component oracle.wwg.plsql, 19.0.0.0.0...
Patching component oracle.ldap.ssl, 19.0.0.0.0...
Patching component oracle.network.client, 19.0.0.0.0...
Patching component oracle.ldap.rsf.ic, 19.0.0.0.0...
Patching component oracle.ldap.client, 19.0.0.0.0...
Patching component oracle.nlsrtl.rsf, 19.0.0.0.0...
Patching component oracle.rdbms.install.common, 19.0.0.0.0...
Patching component oracle.oraolap.dbscripts, 19.0.0.0.0...
Patching component oracle.ctx.rsf, 19.0.0.0.0...
Patching component oracle.precomp.rsf, 19.0.0.0.0...
Patching component oracle.sdo.locator, 19.0.0.0.0...
Patching component oracle.xdk.rsf, 19.0.0.0.0...
Patching component oracle.xdk.parser.java, 19.0.0.0.0...
Patching component oracle.install.deinstalltool, 19.0.0.0.0...
Patching component oracle.javavm.server, 19.0.0.0.0...
Patching component oracle.dbtoolslistener, 19.0.0.0.0...
Patching component oracle.rdbms.rman, 19.0.0.0.0...
Patching component oracle.rdbms.install.plugins, 19.0.0.0.0...
Patching component oracle.network.listener, 19.0.0.0.0...
Patching component oracle.ovm, 19.0.0.0.0...
Patching component oracle.jdk, 1.8.0.201.0...
Patch 34419443 successfully applied.
Sub-set patch [29517242] has become inactive due to the application of a super-set patch [34419443].
Please refer to Doc ID 2161861.1 for any possible further required actions.
Log file location: /u01/app/19c/grid/cfgtoollogs/opatch/opatch2023-04-26_10-03-40AM_1.log
OPatch succeeded.
[+ASM1|grid:/media/patch/34416665]> $GI_HOME/OPatch/opatch apply -oh $GI_HOME -local /media/patch/34416665/34428761
Oracle Interim Patch Installer version 12.2.0.1.33
Copyright (c) 2023, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/19c/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/19c/grid/oraInst.loc
OPatch version : 12.2.0.1.33
OUI version : 12.2.0.7.0
Log file location : /u01/app/19c/grid/cfgtoollogs/opatch/opatch2023-04-26_10-06-10AM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 34428761
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/19c/grid')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '34428761' to OH '/u01/app/19c/grid'
Patching component oracle.usm, 19.0.0.0.0...
Patch 34428761 successfully applied.
Sub-set patch [29517247] has become inactive due to the application of a super-set patch [34428761].
Please refer to Doc ID 2161861.1 for any possible further required actions.
Log file location: /u01/app/19c/grid/cfgtoollogs/opatch/opatch2023-04-26_10-06-10AM_1.log
OPatch succeeded.
[+ASM1|grid:/media/patch/34416665]> $GI_HOME/OPatch/opatch apply -oh $GI_HOME -local /media/patch/34416665/34444834
Oracle Interim Patch Installer version 12.2.0.1.33
Copyright (c) 2023, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/19c/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/19c/grid/oraInst.loc
OPatch version : 12.2.0.1.33
OUI version : 12.2.0.7.0
Log file location : /u01/app/19c/grid/cfgtoollogs/opatch/opatch2023-04-26_10-10-22AM_1.log
Verifying environment and performing prerequisite checks...
--------------------------------------------------------------------------------
Start OOP by Prereq process.
Launch OOP...
Oracle Interim Patch Installer version 12.2.0.1.33
Copyright (c) 2023, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/19c/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/19c/grid/oraInst.loc
OPatch version : 12.2.0.1.33
OUI version : 12.2.0.7.0
Log file location : /u01/app/19c/grid/cfgtoollogs/opatch/opatch2023-04-26_10-10-36AM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 34444834
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/19c/grid')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '34444834' to OH '/u01/app/19c/grid'
ApplySession: Optional component(s) [ oracle.has.db.cvu, 19.0.0.0.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.rdbms, 19.0.0.0.0...
Patching component oracle.has.common, 19.0.0.0.0...
Patching component oracle.has.crs, 19.0.0.0.0...
Patching component oracle.has.cvu, 19.0.0.0.0...
Patching component oracle.has.rsf, 19.0.0.0.0...
Patching component oracle.xag, 19.0.0.0.0...
Patching component oracle.has.db, 19.0.0.0.0...
Patching component oracle.rhp.crs, 19.0.0.0.0...
Patching component oracle.rhp.common, 19.0.0.0.0...
Patching component oracle.has.common.cvu, 19.0.0.0.0...
Patching component oracle.has.crs.cvu, 19.0.0.0.0...
Patching component oracle.rhp.db, 19.0.0.0.0...
Patch 34444834 successfully applied.
Sub-set patch [29585399] has become inactive due to the application of a super-set patch [34444834].
Please refer to Doc ID 2161861.1 for any possible further required actions.
Log file location: /u01/app/19c/grid/cfgtoollogs/opatch/opatch2023-04-26_10-10-36AM_1.log
OPatch succeeded.
[+ASM1|grid:/media/patch/34416665]> $GI_HOME/OPatch/opatch apply -oh $GI_HOME -local /media/patch/34416665/34580338
Oracle Interim Patch Installer version 12.2.0.1.33
Copyright (c) 2023, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/19c/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/19c/grid/oraInst.loc
OPatch version : 12.2.0.1.33
OUI version : 12.2.0.7.0
Log file location : /u01/app/19c/grid/cfgtoollogs/opatch/opatch2023-04-26_10-11-58AM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 34580338
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/19c/grid')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '34580338' to OH '/u01/app/19c/grid'
Patching component oracle.tomcat.crs, 19.0.0.0.0...
Patch 34580338 successfully applied.
Sub-set patch [29401763] has become inactive due to the application of a super-set patch [34580338].
Please refer to Doc ID 2161861.1 for any possible further required actions.
Log file location: /u01/app/19c/grid/cfgtoollogs/opatch/opatch2023-04-26_10-11-58AM_1.log
OPatch succeeded.
4) patch ORACLE_HOME - oracle
- prepatch ~ patch ~ postpatch
/media/patch/34416665/34444834/custom/scripts/prepatch.sh -dbhome $ORACLE_HOME
/media/patch/34416665/34419443/custom/scripts/prepatch.sh -dbhome $ORACLE_HOME
$ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local /media/patch/34416665/34444834
$ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local /media/patch/34416665/34419443
/media/patch/34416665/34444834/custom/scripts/postpatch.sh -dbhome $ORACLE_HOME
[rac1|oracle:/home/oracle]> /media/patch/34416665/34444834/custom/scripts/prepatch.sh -dbhome $ORACLE_HOME
/media/patch/34416665/34444834/custom/scripts/prepatch.sh completed successfully.
[rac1|oracle:/home/oracle]> /media/patch/34416665/34419443/custom/scripts/prepatch.sh -dbhome $ORACLE_HOME
[rac1|oracle:/home/oracle]> $ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local /media/patch/34416665/34444834
Oracle Interim Patch Installer version 12.2.0.1.33
Copyright (c) 2023, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/19.0.0/dbhome_1
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/19.0.0/dbhome_1/oraInst.loc
OPatch version : 12.2.0.1.33
OUI version : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/opatch/opatch2023-04-26_10-16-42AM_1.log
Verifying environment and performing prerequisite checks...
--------------------------------------------------------------------------------
Start OOP by Prereq process.
Launch OOP...
Oracle Interim Patch Installer version 12.2.0.1.33
Copyright (c) 2023, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/19.0.0/dbhome_1
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/19.0.0/dbhome_1/oraInst.loc
OPatch version : 12.2.0.1.33
OUI version : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/opatch/opatch2023-04-26_10-16-47AM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 34444834
Do you want to proceed? [y|n]
Y
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/19.0.0/dbhome_1')
Is the local system ready for patching? [y|n]
Y
User Responded with: Y
Backing up files...
Applying interim patch '34444834' to OH '/u01/app/oracle/product/19.0.0/dbhome_1'
ApplySession: Optional component(s) [ oracle.has.crs, 19.0.0.0.0 ] , [ oracle.has.cvu, 19.0.0.0.0 ] , [ oracle.xag, 19.0.0.0.0 ] , [ oracle.rhp.crs, 19.0.0.0.0 ] , [ oracle.has.crs.cvu, 19.0.0.0.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.rdbms, 19.0.0.0.0...
Patching component oracle.has.common, 19.0.0.0.0...
Patching component oracle.has.rsf, 19.0.0.0.0...
Patching component oracle.has.db, 19.0.0.0.0...
Patching component oracle.rhp.common, 19.0.0.0.0...
Patching component oracle.has.common.cvu, 19.0.0.0.0...
Patching component oracle.has.db.cvu, 19.0.0.0.0...
Patching component oracle.rhp.db, 19.0.0.0.0...
Patch 34444834 successfully applied.
Sub-set patch [29585399] has become inactive due to the application of a super-set patch [34444834].
Please refer to Doc ID 2161861.1 for any possible further required actions.
Log file location: /u01/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/opatch/opatch2023-04-26_10-16-47AM_1.log
OPatch succeeded.
[rac1|oracle:/home/oracle]> $ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local /media/patch/34416665/34419443
Oracle Interim Patch Installer version 12.2.0.1.33
Copyright (c) 2023, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/19.0.0/dbhome_1
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/19.0.0/dbhome_1/oraInst.loc
OPatch version : 12.2.0.1.33
OUI version : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/opatch/opatch2023-04-26_10-17-43AM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 34419443
Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/19.0.0/dbhome_1')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '34419443' to OH '/u01/app/oracle/product/19.0.0/dbhome_1'
ApplySession: Optional component(s) [ oracle.network.gsm, 19.0.0.0.0 ] , [ oracle.rdbms.ic, 19.0.0.0.0 ] , [ oracle.rdbms.tg4db2, 19.0.0.0.0 ] , [ oracle.tfa, 19.0.0.0.0 ] , [ oracle.options.olap.api, 19.0.0.0.0 ] , [ oracle.sdo.companion, 19.0.0.0.0 ] , [ oracle.ons.eons.bwcompat, 19.0.0.0.0 ] , [ oracle.rdbms.tg4msql, 19.0.0.0.0 ] , [ oracle.oid.client, 19.0.0.0.0 ] , [ oracle.ons.cclient, 19.0.0.0.0 ] , [ oracle.rdbms.tg4sybs, 19.0.0.0.0 ] , [ oracle.network.cman, 19.0.0.0.0 ] , [ oracle.net.cman, 19.0.0.0.0 ] , [ oracle.options.olap, 19.0.0.0.0 ] , [ oracle.rdbms.tg4tera, 19.0.0.0.0 ] , [ oracle.rdbms.tg4ifmx, 19.0.0.0.0 ] , [ oracle.xdk.companion, 19.0.0.0.0 ] , [ oracle.jdk, 1.8.0.191.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.ordim.jai, 19.0.0.0.0...
Patching component oracle.bali.jewt, 11.1.1.6.0...
Patching component oracle.bali.ewt, 11.1.1.6.0...
Patching component oracle.help.ohj, 11.1.1.7.0...
Patching component oracle.perlint, 5.28.1.0.0...
Patching component oracle.rdbms.locator, 19.0.0.0.0...
Patching component oracle.perlint.expat, 2.0.1.0.4...
Patching component oracle.rdbms.rsf, 19.0.0.0.0...
Patching component oracle.rdbms.util, 19.0.0.0.0...
Patching component oracle.rdbms, 19.0.0.0.0...
Patching component oracle.assistants.acf, 19.0.0.0.0...
Patching component oracle.assistants.deconfig, 19.0.0.0.0...
Patching component oracle.assistants.server, 19.0.0.0.0...
Patching component oracle.blaslapack, 19.0.0.0.0...
Patching component oracle.buildtools.rsf, 19.0.0.0.0...
Patching component oracle.ctx, 19.0.0.0.0...
Patching component oracle.dbdev, 19.0.0.0.0...
Patching component oracle.dbjava.ic, 19.0.0.0.0...
Patching component oracle.dbjava.jdbc, 19.0.0.0.0...
Patching component oracle.dbjava.ucp, 19.0.0.0.0...
Patching component oracle.duma, 19.0.0.0.0...
Patching component oracle.javavm.client, 19.0.0.0.0...
Patching component oracle.ldap.owm, 19.0.0.0.0...
Patching component oracle.ldap.rsf, 19.0.0.0.0...
Patching component oracle.ldap.security.osdt, 19.0.0.0.0...
Patching component oracle.marvel, 19.0.0.0.0...
Patching component oracle.network.rsf, 19.0.0.0.0...
Patching component oracle.odbc.ic, 19.0.0.0.0...
Patching component oracle.ons, 19.0.0.0.0...
Patching component oracle.ons.ic, 19.0.0.0.0...
Patching component oracle.oracore.rsf, 19.0.0.0.0...
Patching component oracle.precomp.common.core, 19.0.0.0.0...
Patching component oracle.rdbms.crs, 19.0.0.0.0...
Patching component oracle.rdbms.dbscripts, 19.0.0.0.0...
Patching component oracle.rdbms.deconfig, 19.0.0.0.0...
Patching component oracle.rdbms.oci, 19.0.0.0.0...
Patching component oracle.rdbms.rsf.ic, 19.0.0.0.0...
Patching component oracle.rhp.db, 19.0.0.0.0...
Patching component oracle.sdo, 19.0.0.0.0...
Patching component oracle.sdo.locator.jrf, 19.0.0.0.0...
Patching component oracle.sqlplus, 19.0.0.0.0...
Patching component oracle.sqlplus.ic, 19.0.0.0.0...
Patching component oracle.wwg.plsql, 19.0.0.0.0...
Patching component oracle.ldap.ssl, 19.0.0.0.0...
Patching component oracle.network.client, 19.0.0.0.0...
Patching component oracle.xdk, 19.0.0.0.0...
Patching component oracle.ldap.rsf.ic, 19.0.0.0.0...
Patching component oracle.ldap.client, 19.0.0.0.0...
Patching component oracle.nlsrtl.rsf, 19.0.0.0.0...
Patching component oracle.rdbms.install.common, 19.0.0.0.0...
Patching component oracle.oraolap.dbscripts, 19.0.0.0.0...
Patching component oracle.oraolap.api, 19.0.0.0.0...
Patching component oracle.rdbms.scheduler, 19.0.0.0.0...
Patching component oracle.mgw.common, 19.0.0.0.0...
Patching component oracle.ctx.rsf, 19.0.0.0.0...
Patching component oracle.precomp.rsf, 19.0.0.0.0...
Patching component oracle.ctx.atg, 19.0.0.0.0...
Patching component oracle.sdo.locator, 19.0.0.0.0...
Patching component oracle.xdk.xquery, 19.0.0.0.0...
Patching component oracle.xdk.rsf, 19.0.0.0.0...
Patching component oracle.xdk.parser.java, 19.0.0.0.0...
Patching component oracle.install.deinstalltool, 19.0.0.0.0...
Patching component oracle.javavm.server, 19.0.0.0.0...
Patching component oracle.rdbms.hs_common, 19.0.0.0.0...
Patching component oracle.rdbms.drdaas, 19.0.0.0.0...
Patching component oracle.rdbms.dv, 19.0.0.0.0...
Patching component oracle.dbtoolslistener, 19.0.0.0.0...
Patching component oracle.rdbms.rman, 19.0.0.0.0...
Patching component oracle.rdbms.hsodbc, 19.0.0.0.0...
Patching component oracle.rdbms.lbac, 19.0.0.0.0...
Patching component oracle.rdbms.install.plugins, 19.0.0.0.0...
Patching component oracle.oraolap, 19.0.0.0.0...
Patching component oracle.network.listener, 19.0.0.0.0...
Patching component oracle.odbc, 19.0.0.0.0...
Patching component oracle.ovm, 19.0.0.0.0...
Patching component oracle.precomp.common, 19.0.0.0.0...
Patching component oracle.precomp.lang, 19.0.0.0.0...
Patching component oracle.jdk, 1.8.0.201.0...
Patch 34419443 successfully applied.
Sub-set patch [29517242] has become inactive due to the application of a super-set patch [34419443].
Please refer to Doc ID 2161861.1 for any possible further required actions.
Log file location: /u01/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/opatch/opatch2023-04-26_10-17-43AM_1.log
OPatch succeeded.
[rac1|oracle:/home/oracle]> /media/patch/34416665/34444834/custom/scripts/postpatch.sh -dbhome $ORACLE_HOME
Reading /u01/app/oracle/product/19.0.0/dbhome_1/install/params.ora..
Reading /u01/app/oracle/product/19.0.0/dbhome_1/install/params.ora..
Found uninstantiated /u01/app/oracle/product/19.0.0/dbhome_1/crs/sbs/srvctl.sbs file, copying to /u01/app/oracle/product/19.0.0/dbhome_1/bin/srvctl
Parsing file /u01/app/oracle/product/19.0.0/dbhome_1/bin/srvctl
Parsing file /u01/app/oracle/product/19.0.0/dbhome_1/bin/srvconfig
Parsing file /u01/app/oracle/product/19.0.0/dbhome_1/bin/cluvfy
Parsing file /u01/app/oracle/product/19.0.0/dbhome_1/bin/kfod
Verifying file /u01/app/oracle/product/19.0.0/dbhome_1/bin/srvctl
Verifying file /u01/app/oracle/product/19.0.0/dbhome_1/bin/srvconfig
Verifying file /u01/app/oracle/product/19.0.0/dbhome_1/bin/cluvfy
Verifying file /u01/app/oracle/product/19.0.0/dbhome_1/bin/kfod
Reapplying file permissions on /u01/app/oracle/product/19.0.0/dbhome_1/bin/srvctl
Reapplying file permissions on /u01/app/oracle/product/19.0.0/dbhome_1/bin/srvconfig
Reapplying file permissions on /u01/app/oracle/product/19.0.0/dbhome_1/bin/cluvfy
Reapplying file permissions on /u01/app/oracle/product/19.0.0/dbhome_1/bin/kfod
Reapplying file permissions on /u01/app/oracle/product/19.0.0/dbhome_1/bin/diskmon.bin
Reapplying file permissions on /u01/app/oracle/product/19.0.0/dbhome_1/bin/lsnodes
Reapplying file permissions on /u01/app/oracle/product/19.0.0/dbhome_1/bin/osdbagrp
Reapplying file permissions on /u01/app/oracle/product/19.0.0/dbhome_1/bin/rawutl
Reapplying file permissions on /u01/app/oracle/product/19.0.0/dbhome_1/srvm/admin/ractrans
Reapplying file permissions on /u01/app/oracle/product/19.0.0/dbhome_1/srvm/admin/getcrshome
Reapplying file permissions on /u01/app/oracle/product/19.0.0/dbhome_1/bin/crsdiag.pl
Postpatch completed successfully
5) root script (postpatch) - root
$GI_HOME/crs/install/rootcrs.sh -postpatch
[rac1|root:/root]> $GI_HOME/crs/install/rootcrs.sh -postpatch
Using configuration parameter file: /u01/app/19c/grid/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/oracle/crsdata/rac1/crsconfig/crs_postpatch_apply_inplace_rac1_2023-04-26_10-21-44AM.log
2023/04/26 10:21:54 CLSRSC-329: Replacing Clusterware entries in file 'oracle-ohasd.service'
Redirecting to /bin/systemctl restart rsyslog.service
Oracle Clusterware active version on the cluster is [19.0.0.0.0]. The cluster upgrade state is [ROLLING PATCH]. The cluster active patch level is [724960844].
CRS-2672: Attempting to start 'ora.drivers.acfs' on 'rac1'
CRS-2676: Start of 'ora.drivers.acfs' on 'rac1' succeeded
2023/04/26 10:24:39 CLSRSC-4015: Performing install or upgrade action for Oracle Trace File Analyzer (TFA) Collector.
2023/04/26 10:24:39 CLSRSC-672: Post-patch steps for patching GI home successfully completed.
6) crs 시작 - root
crsctl start crs
7) database patch (DB 존재 시 /// 여기선 DB가 없어서 안함) - oracle
예시 ))
export ORACLE_SID=rac1
cd $ORACLE_HOME/OPatch
./datapatch -verbose
확인
- rac1 (node 1)
[rac1|root:/root]> asm
Last login: Wed Apr 26 10:25:40 KST 2023
[+ASM1|grid:/home/grid]> opatch lspatches
34580338;TOMCAT RELEASE UPDATE 19.0.0.0.0 (34580338)
34444834;OCW RELEASE UPDATE 19.17.0.0.0 (34444834)
34428761;ACFS RELEASE UPDATE 19.17.0.0.0 (34428761)
34419443;Database Release Update : 19.17.0.0.221018 (34419443)
33575402;DBWLM RELEASE UPDATE 19.0.0.0.0 (33575402)
OPatch succeeded.
[+ASM1|grid:/home/grid]> exit
logout
[rac1|root:/root]> ora
Last login: Wed Apr 26 10:13:42 KST 2023 on pts/0
[rac1|oracle:/home/oracle]> opatch lspatches
34419443;Database Release Update : 19.17.0.0.221018 (34419443)
34444834;OCW RELEASE UPDATE 19.17.0.0.0 (34444834)
OPatch succeeded.
- rac2 (node 2)
[+ASM2|grid:/home/grid]> opatch lspatches
34580338;TOMCAT RELEASE UPDATE 19.0.0.0.0 (34580338)
34444834;OCW RELEASE UPDATE 19.17.0.0.0 (34444834)
34428761;ACFS RELEASE UPDATE 19.17.0.0.0 (34428761)
34419443;Database Release Update : 19.17.0.0.221018 (34419443)
33575402;DBWLM RELEASE UPDATE 19.0.0.0.0 (33575402)
OPatch succeeded.
[+ASM2|grid:/home/grid]> exit
logout
[rac2|root:/root]> ora
Last login: Wed Apr 26 13:02:53 KST 2023
[rac2|oracle:/home/oracle]> opatch lspatches
34444834;OCW RELEASE UPDATE 19.17.0.0.0 (34444834)
34419443;Database Release Update : 19.17.0.0.221018 (34419443)
OPatch succeeded.
'ORACLE > Administration' 카테고리의 다른 글
[ORACLE] SCAN IP 재설정 및 SCAN IP NAME(Interface명) 변경 (0) | 2023.05.03 |
---|---|
[ORACLE] dbca Node Sellection 에서 모든 노드가 뜨지 않는 경우 해결 (0) | 2023.05.03 |
[ORACLE] 18c -> 19c RAC AutoUpgrade.jar 를 사용한 업그레이드 (0) | 2023.04.19 |
[ORACLE] ASM administration (0) | 2023.03.22 |
[ORACLE] 19c RAC 환경 listener.ora 리스너 수정 및 오렌지 연결 (0) | 2023.03.22 |