본문 바로가기

Oracle GoldenGate2

OGG for ORACLE 12.2 설치절차


개요

OGG for ORACLE 의 설치는 12.2 버전 이후로 크게 달라졌습니다.

GUI ( INSTALLER )  가 도입되었고, opatch 를 사용하면서 버전관리를 시작했습니다.

특히 opatch 정보가 없는 경우 SR 진행 시 문제가 될 수 있습니다.


설치파일

설치 파일은 베이스 파일과 패치 파일로 구성됩니다.

패치 파일은 베이스 파일의 릴리즈 날짜에 따라 패치 파일이 없을수도 있습니다.

    • V100692-01.zip
    • p26167658_12201170221_Linux-x86-64.zip


설치과정 요약

    • 설치파일 준비
    • 베이스 버전 설치
    • 베이스 버전 설치확인
    • 패치 적용
    • 패치 적용확인

여기서는 response file 을 사용하여 GUI 를 이용하지 않고, silent install 을 진행합니다.

설치파일 준비

베이스 파일과 배치 파일을 설치 할 디렉토리에 하부 디렉토리에 위치 시킵니다.

설치 될 위치에는 가능한 파일이 없는 상태가 좋습니다.

설치 위치에 디렉토리도 없는 상태가 베스트이지만 OGG 의 홈 디렉토리이기 때문에 설치파일과 같이 두었습니다.

cd /ogg

mkdir install_file

mv *.zip ./install_file/

베이스 버전 설치

베이스 엔진 파일인 V100692-01.zip 를 압축해제 합니다.

unzip V100692-01.zip

vi /ogg/install_file/fbo_ggs_Linux_x64_shiphome/Disk1/response/oggcore.rsp

Response file 의 다음 항목을 편집합니다.

INSTALL_OPTION=ORA11g
SOFTWARE_LOCATION=/ogg


cd /ogg/install_file/fbo_ggs_Linux_x64_shiphome/Disk1

./runInstaller -silent -responsefile /ogg/install_file/fbo_ggs_Linux_x64_shiphome/Disk1/response/oggcore.rsp

oraInventory 에 대한 쓰기 권한이 있어야 합니다.

이는 다른 오라클 제품정보와 같은 저장소에 관리된다는 걸 의미합니다.

/runInstaller -silent -responsefile /ogg/install_file/fbo_ggs_Linux_x64_shiphome/Disk1/response/oggcore.rsp

Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB. Actual 14683 MB Passed
Checking swap space: must be greater than 150 MB. Actual 24575 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2018-01-07_10-28-24PM. Please wait ...
(... 편집 ... ) [INS-75003] The specified directory /ogg is not empty.
CAUSE: The directory specified /ogg contains files.
ACTION: Clean up the specified directory or enter a new directory location.
[WARNING] [INS-75017] Cluster detected: Unable to determine if the specified software location is shared. 
It is recommended to install Oracle GoldenGate entirely on shared storage.
CAUSE: One or more cluster nodes may be unreachable or the specified software location may not be accessible from one or more nodes.
ACTION: Specify the software location on a shared storage.
You can find the log of this install session at:
/u01/app/oraInventory/logs/installActions2018-01-07_10-28-24PM.log
WARNING:OUI-10030:You have specified a non-empty directory to install this product. It is recommended to specify either an empty or a non-existent directory. You may, however, choose to ignore this message if the directory contains Operating System generated files or subdirectories like lost+found.
Do you want to proceed with installation in this Oracle Home?
The installation of Oracle GoldenGate Core was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2018-01-07_10-28-24PM.log' for more details.
Successfully Setup Software.

인스톨러를 실행하면 위와 같이 경고 메시지가 발생하는데 무시해도 좋습니다.

경고 메시지는 설치 경로에 파일이나 디렉토리가 존재한다는 것과, 설치 경로가 shared storage 가 아니라는 내용입니다.

베이스 버전 설치확인

버전의 확인은 opatch 명령으로 확인할 수 있습니다.

export ORACLE_HOME=/ogg

opatch lsinventory


Oracle Interim Patch Installer version 11.2.0.3.17
Copyright (c) 2018, Oracle Corporation. All rights reserved.


Oracle Home : /ogg
Central Inventory : /u01/app/oraInventory
from : /ogg/oraInst.loc
OPatch version : 11.2.0.3.17
OUI version : 11.2.0.3.0
Log file location : /ogg/cfgtoollogs/opatch/opatch2018-01-07_22-35-45PM_1.log

Lsinventory Output file location : /ogg/cfgtoollogs/opatch/lsinv/lsinventory2018-01-07_22-35-45PM.txt

--------------------------------------------------------------------------------
Local Machine Information::
Hostname: .......
ARU platform id: 226
ARU platform description:: Linux x86-64

Installed Top-level Products (1):

Oracle GoldenGate Core 12.2.0.0.0
There are 1 products installed in this Oracle Home.


There are no Interim patches installed in this Oracle Home.


--------------------------------------------------------------------------------

OPatch succeeded.

패치 적용

cd /ogg/install_file

unzip p26167658_12201170221_Linux-x86-64.zip

export ORACLE_HOME=/ogg

cd /ogg/OPatch

./opatch apply /ogg/install_file/26167658

./opatch apply /ogg/install_file/26167658
Invoking OPatch 11.2.0.1.7

Oracle Interim Patch Installer version 11.2.0.1.7
Copyright (c) 2011, Oracle Corporation. All rights reserved.


Oracle Home : /ogg
Central Inventory : /u01/app/oraInventory
from : /etc/oraInst.loc
OPatch version : 11.2.0.1.7
OUI version : 11.2.0.3.0
Log file location : /ogg/cfgtoollogs/opatch/opatch2018-01-07_22-40-19PM.log

Applying interim patch '26167658' to OH '/ogg'
Verifying environment and performing prerequisite checks...

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 = '/ogg')


Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...

Patching component oracle.oggcore.ora11g, 12.2.0.0.0...
Patch 26167658 successfully applied
Log file location: /ogg/cfgtoollogs/opatch/opatch2018-01-07_22-40-19PM.log

패치 적용확인

opatch lsinventory

Oracle Interim Patch Installer version 11.2.0.3.17
Copyright (c) 2018, Oracle Corporation. All rights reserved.


Oracle Home : /ogg
Central Inventory : /u01/app/oraInventory
from : /ogg/oraInst.loc
OPatch version : 11.2.0.3.17
OUI version : 11.2.0.3.0
Log file location :/ogg/cfgtoollogs/opatch/opatch2018-01-07_22-41-07PM_1.log

Lsinventory Output file location : /ogg/cfgtoollogs/opatch/lsinv/lsinventory2018-01-07_22-41-07PM.txt

--------------------------------------------------------------------------------
Local Machine Information::
Hostname: ......
ARU platform id: 226
ARU platform description:: Linux x86-64

Installed Top-level Products (1):

Oracle GoldenGate Core 12.2.0.0.0
There are 1 products installed in this Oracle Home.


Interim patches (1) :

Patch 26167658 : applied on Sun Jan 07 22:40:39 KST 2018
Unique Patch ID: 21333797
Created on 31 May 2017, 16:03:08 hrs PST8PDT
Bugs fixed:
21254311, 22628312, 22466155, 21562399, 22910007, 22642576, 25096792
24826961, 24804392, 22912874, 24302758, 24414523, 23733399, 22959377
23514258, 21548970, 22266611, 23058710, 24744349, 24598011, 23755469
21131090, 22478792, 22830589, 22295723, 22993705, 23102612, 22458470
23750747, 21888279, 23267559, 22295940, 22730188, 25350730, 24439762
23661056, 23607346, 23641740, 23499047, 22352402, 23751229, 24345528
22514172, 23478103, 23587474, 21425179, 23763062, 23067041, 24359320
23275654, 23479013, 21763449, 22046726, 23133585, 22004485, 23608765
25087704, 24752349, 23108041, 22455149, 24310901, 21452073, 23580290
22257964, 22888353, 21805148, 21481506, 22553129, 23328064, 20656312


--------------------------------------------------------------------------------

OPatch succeeded.