버전 비교

  • 이 줄이 추가되었습니다.
  • 이 줄이 삭제되었습니다.
  • 서식이 변경되었습니다.

...

패치 사전 준비

OS 환경 설정

코드 블럭
languagebash
titleroot 유저로 수행
linenumberstrue
export ORACLE_BASE=/u01/app/oracle
export GRID_HOME=/u01/app/12.2.0/grid
export DB_HOME=$ORACLE_BASE/product/12.2.0/db_1

...

코드 블럭
languagebash
titleroot 유저로 수행
$GRID_HOME/bin/crsctl stat res -t

...

Grid 패치

...

준비

GRID_HOME의 OPatch 파일 업데이트

...

코드 블럭
languagebash
titlegrid 유저로 수행
linenumberstrue
vi /tmp/patch_list_gihome.txt
# cat /tmp/patch_list_gihome.txt
$GRID_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_gihome.txt

Grid 패치

Grid 패치 사전 분석

root 유저로 수행
코드 블럭
languagebash
title
$GRID_HOME/OPatch/opatchauto apply <패치 압축 해제 경로>/27100009 -analyze

Grid 패치

코드 블럭
languagebash
titleroot 유저로 수행
$GRID_HOME/OPatch/opatchauto apply <패치 압축 해제 경로>/27100009

MTMTDB 업그레이드

MGMTDB 접속

코드 블럭
languagebash
titlegrid 유저로 수행
linenumberstrue
export ORACLE_SID=-MGMTDB
sqlplus / as sysdba

MGMTDB 패치 결과 확인

코드 블럭
titleMGMTDB 패치 내역 조회
select PATCH_ID, VERSION, ACTION, STATUS, ACTION_TIME from DBA_REGISTRY_SQLPATCH;

MGMTDB 업그레이드 적용

코드 블럭
languagebash
titlegrid 유저로 수행
linenumberstrue
cd $GRID_HOME/OPatch
./datapatch -verbose

DB 패치

...

준비

DB_HOME의 OPatch 파일 업데이트

코드 블럭
languagebash
titleroot 유저로 수행
linenumberstrue
$DB_HOME/OPatch/opatch version
mv $DB_HOME/OPatch $DB_HOME/OPatch.old
unzip <패치 다운로드 경로>/p6880880_122010_Linux-x86-64.zip -d $DB_HOME
chown -R grid:oinstall $DB_HOME/OPatch
ll $DB_HOME | grep OPatch
$DB_HOME/OPatch/opatch version

...

코드 블럭
languagebash
titleoracle 유저로 수행
linenumberstrue
vi /tmp/patch_list_dbhome.txt
# cat /tmp/patch_list_dbhome.txt
$DB_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_dbhome.txt

Database 생성 전 패치

Grid 패치

Grid 패치 사전 분석

코드 블럭
languagebash
titleroot 유저로 수행
$GRID_HOME/OPatch/opatchauto apply <패치 압축 해제 경로>/27100009 -analyze

Grid 패치

코드 블럭
languagebash
titleroot 유저로 수행
$GRID_HOME/OPatch/opatchauto apply <패치 압축 해제 경로>/27100009

MTMTDB 업그레이드

MGMTDB 접속

코드 블럭
languagebash
titlegrid 유저로 수행
linenumberstrue
export ORACLE_SID=-MGMTDB
sqlplus / as sysdba

MGMTDB 패치 결과 확인

코드 블럭
titleMGMTDB 패치 내역 조회
select PATCH_ID, VERSION, ACTION, STATUS, ACTION_TIME from DBA_REGISTRY_SQLPATCH;

MGMTDB 업그레이드 적용

코드 블럭
languagebash
titlegrid 유저로 수행
linenumberstrue
cd $GRID_HOME/OPatch
./datapatch -verbose

DB 패치

DB 패치 사전 분석

코드 블럭
languagebash
titleroot 유저로 수행
linenumberstrue
chown -R oracle:oinstall $DB_HOME
$DB_HOME/OPatch/opatchauto apply <패치 압축 해제 경로>/27100009 -oh $DB_HOME -analyze

...

코드 블럭
languagebash
titleroot 유저로 수행
$DB_HOME/OPatch/opatchauto apply <패치 압축 해제 경로>/27100009 -oh $DB_HOME

Database 생성 후 패치

패치 사전 분석

코드 블럭
languagebash
titleroot 유저로 수행
$GRID_HOME/OPatch/opatchauto apply <패치 압축 해제 경로>/27100009 -analyze

패치 적용

코드 블럭
languagebash
titleroot 유저로 수행
$GRID_HOME/OPatch/opatchauto apply <패치 압축 해제 경로>/27100009

패치 결과 확인

Grid 패치 결과 확인

코드 블럭
languagebash
titlegrid 유저로 수행
$GRID_HOME/OPatch/opatch lsinventory -detail

...