2017. 4. 24. 09:43 오라클
GI PSU 작업 (20170418)
패치작업 11.2.0.4.1710418 (GI PSU 25476126)
ACFS PATCH SET UPDATE : 11.2.0.4.170418 (22502505)
OCW Patch Set Update : 11.2.0.4.170418 (23054319)
Database Patch Set Update : 11.2.0.4.170418 (24732075)
Oracle Grid Infrastructure Patch Set Update 11.2.0.4.170418 (Includes Database PSU 11.2.0.4.170418)
-------------------------------------
GRID_HOME, ORACLE_HOME 을 개별로 각각 할때
(root 유저)
$GRID_HOME/crs/install/rootcrs.pl -unlock (CRS 가 떠 있으면 script로 자동으로 내려버림)
(grid 유저)
export GRID_HOME=/oragrid/product/11.2.0.4
cd <UNZIPPED_PATCH_LOCATION>
$GRID_HOME/OPatch/opatch napply -oh $GRID_HOME -local ./25476126/23054319
$GRID_HOME/OPatch/opatch napply -oh $GRID_HOME -local ./25476126/22502505
$GRID_HOME/OPatch/opatch apply -oh $GRID_HOME -local ./25476126/24732075
(oracle 유저)
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0.4
cd <UNZIPPED_PATCH_LOCATION>
./25476126/23054319/custom/server/23054319/custom/scripts/prepatch.sh -dbhome $ORACLE_HOME (권한체크)
$ORACLE_HOME/OPatch/opatch napply -oh $ORACLE_HOME -local ./25476126/23054319/custom/server/23054319
$ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local ./25476126/24732075
./25476126/23054319/custom/server/23054319/custom/scripts/postpatch.sh -dbhome $ORACLE_HOME (권한체크)
(root 유저)
$GRID_HOME/rdbms/install/rootadd_rdbms.sh
$GRID_HOME/crs/install/rootcrs.pl -patch (script로 자동으로 CRS를 올려 버림)
### [롤백하는 경우] ###########
GI Home
(root로)
$GRID_HOME/crs/install/rootcrs.pl -unlock
(grid 유저로)
$GRID_HOME/OPatch/opatch rollback -local -id 23054319 -oh $GRID_HOME
$GRID_HOME/OPatch/opatch rollback -local -id 22502505 -oh $GRID_HOME
$GRID_HOME/OPatch/opatch rollback -local -id 24732075 -oh $GRID_HOME
(oracle 유저로)
cd <UNZIPPED_PATCH_LOCATION>
./25476126/23054319/custom/server/23054319/custom/scripts/prepatch.sh -dbhome $ORACLE_HOME (권한체크)
$ORACLE_HOME/OPatch/opatch rollback -local -id 23054319 -oh /oracle/product/11.2.0.4
$ORACLE_HOME/OPatch/opatch rollback -local -id 24732075 -oh /oracle/product/11.2.0.4
./25476126/23054319/custom/server/23054319/custom/scripts/postpatch.sh -dbhome $ORACLE_HOME (권한체크)
Run post script
(root로)
$GRID_HOME/rdbms/install/rootadd_rdbms.sh
$GRID_HOME/crs/install/rootcrs.pl -patch