2021. 1. 22. 12:33 오라클
패치작업 19.10.0.0.210119 (GI PSU 32226239)
패치작업 19.10.0.0.210119 (GI PSU 32226239)
OCW Patch Set Update : 19.10.0.0.210119 (32222571)
ACFS Patch Set Update : 19.10.0.0.210119 (32218663)
Database Patch Set Update : 19.10.0.0.210119 (32218454)
DBWLM Release Update : 19.0.0.0.0 (29340594)
Tomcat Release Update : 19.0.0.0.0 (32240590)
Oracle Grid Infrastructure Patch Set Update 19.10.0.0.210119
-------------------------------------
GRID_HOME, ORACLE_HOME 을 개별로 각각 할때
- grid 유저
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir <UNZIPPED_PATCH_LOCATION>/32226239/32218454
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir <UNZIPPED_PATCH_LOCATION>/32226239/32222571
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir <UNZIPPED_PATCH_LOCATION>/32226239/32218663
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir <UNZIPPED_PATCH_LOCATION>/32226239/29340594
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir <UNZIPPED_PATCH_LOCATION>/32226239/32240590
- oracle 유저
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir <UNZIPPED_PATCH_LOCATION>/32226239/32218454
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir <UNZIPPED_PATCH_LOCATION>/32226239/32222571
(oracle)
$ <ORACLE_HOME>/bin/srvctl stop home -o <ORACLE_HOME> -s <status file location> -n <node name>
(root 유저)
export GRID_HOME=/u01/app/19.3.0.0/grid
$GRID_HOME/crs/install/rootcrs.sh -prepatch -nonrolling
(grid 유저)
export GRID_HOME=/u01/grid/19.3.0.0
cd <UNZIPPED_PATCH_LOCATION>
$GRID_HOME/OPatch/opatch apply -oh $GRID_HOME -local ./32226239/32222571
$GRID_HOME/OPatch/opatch apply -oh $GRID_HOME -local ./32226239/32218663
$GRID_HOME/OPatch/opatch apply -oh $GRID_HOME -local ./32226239/32218454
$GRID_HOME/OPatch/opatch apply -oh $GRID_HOME -local ./32226239/29340594
$GRID_HOME/OPatch/opatch apply -oh $GRID_HOME -local ./32226239/32240590
(oracle 유저)
export ORACLE_HOME=$ORACLE_BASE/product/19.3.0.0
cd <UNZIPPED_PATCH_LOCATION>
./32226239/32222571/custom/scripts/prepatch.sh -dbhome $ORACLE_HOME
$ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local ./32226239/32222571
$ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local ./32226239/32218454
./32226239/32222571/custom/scripts/postpatch.sh -dbhome $ORACLE_HOME
(root 유저)
export GRID_HOME=/u01/grid/19.3.0.0
$GRID_HOME/rdbms/install/rootadd_rdbms.sh
$GRID_HOME/crs/install/rootcrs.sh -postpatch
(oracle)
$ <ORACLE_HOME>/bin/srvctl start home -o <ORACLE_HOME> -s <status file location> -n <node name>
- Loading Modified SQL Files into the Database
sqlplus /nolog
SQL> conect / as sysdba
SQL> startup
SQL> quit
cd $ORACLE_HOME/OPatch
./datapatch -verbose
### [롤백하는 경우] ###########
(oracle)
$ <ORACLE_HOME>/bin/srvctl stop home -o <ORACLE_HOME> -s <status file location> -n <node name>
GI Home
(root로)
$GRID_HOME/crs/install/rootcrs.sh -prepatch -rollback
(grid 유저로)
$GRID_HOME/OPatch/opatch nrollback -local -id 32222571,32218663,32218454,29340594,32240590 -oh $GRID_HOME
(oracle 유저로)
cd <UNZIPPED_PATCH_LOCATION>
./32226239/32222571/custom/scripts/prepatch.sh -dbhome $ORACLE_HOME (권한체크)
$ORACLE_HOME/OPatch/opatch nrollback -local -id 32222571,32218454 -oh /oracle/product/19.3.0.0
./32226239/32222571/custom/scripts/postpatch.sh -dbhome $ORACLE_HOME (권한체크)
Run post script
(root로)
$GRID_HOME/rdbms/install/rootadd_rdbms.sh
$GRID_HOME/crs/install/rootcrs.sh -postpatch -rollback
(oracle)
$ <ORACLE_HOME>/bin/srvctl start home -o <ORACLE_HOME> -s <status file location> -n <node name>
sqlplus /nolog
SQL> conect / as sysdba
SQL> startup
SQL> quit
cd $ORACLE_HOME/OPatch
./datapatch -verbose