タスク4 - Oracle GoldenGateのインストール
Oracle GoldenGate構成の一部となるOracle Exadata Database Service構成のすべてのノードに、Oracle GoldenGateソフトウェアをローカルにインストールします。すべてのノードでインストール・ディレクトリが同一であることを確認します。
このタスクを完了するには、次のステップを実行します。
- ステップ4.1 - ソフトウェアの解凍とインストール用のレスポンス・ファイルの作成
- ステップ4.2 - Oracle GoldenGateのインストール
- ステップ4-3 - Oracle GoldenGateへのパッチ適用
ステップ4.1 - ソフトウェアの解凍とインストール用のレスポンス・ファイルの作成
- 最初のデータベース・ノードの
oracle
OSユーザーとして、ソフトウェアを解凍します。[opc@exadb-node1 ~]$ sudo su - oracle [oracle@exadb-node1 ~]$ unzip /u02/app_acfs/goldengate/213000_fbo_ggs_Linux_x64_Oracle_services_shiphome.zip -d /u02/app_acfs/goldengate
このソフトウェアには、Oracle Databaseリリース21c以前のサポートされているリリースのレスポンス・ファイルの例が含まれています。レスポンス・ファイルは、すべてのデータベース・ノードへのOracle GoldenGateのインストールに同じファイルを使用できるように共有ファイル・システムにコピーして、次のパラメータを編集します。
INSTALL_OPTION=ora21c
SOFTWARE_LOCATION=/u02/app/oracle/goldengate/gg21c (recommended location)
- 最初のデータベース・ノードの
oracle
OSユーザーとして、インストール用のレスポンス・ファイルをコピーおよび編集します。[oracle@exadb-node1 ~]$ cp /u02/app_acfs/goldengate/fbo_ggs_Linux_x64_Oracle_services_shiphome/Disk1/response/oggcore.rsp /u02/app_acfs/goldengate [oracle@exadb-node1 ~]$ vi /u02/app_acfs/goldengate/oggcore.rsp # Before edit INSTALL_OPTION= SOFTWARE_LOCATION= # After edit INSTALL_OPTION=ora21c SOFTWARE_LOCATION=/u02/app/oracle/goldengate/gg21c
ステップ4.2 - Oracle GoldenGateのインストール
すべてのデータベース・ノードのoracle
OSユーザーとして、Oracle GoldenGateをインストールします。
[oracle@exadb-node1 ~]$ cd
/u02/app_acfs/goldengate/fbo_ggs_Linux_x64_Oracle_services_shiphome/Disk1/
[oracle@exadb-node1 ~]$ ./runInstaller -silent -nowait
-responseFile /u02/app_acfs/goldengate/oggcore.rsp
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 32755 MB Passed
Checking swap space: must be greater than 150 MB. Actual 16383 MB Passed
Preparing to launch Oracle Universal Installer from
/tmp/OraInstall2022-07-08_02-54-51PM. Please wait ...
You can find the log of this install session at:
/u01/app/oraInventory/logs/installActions2022-07-08_02-54-51PM.log
Successfully Setup Software.
The installation of Oracle GoldenGate Services was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2022-07-08_02-54-51PM.log'
for more details.
[oracle@exadb-node1 ~]$ cat
/u01/app/oraInventory/logs/silentInstall2022-07-08_02-54-51PM.log
The installation of Oracle GoldenGate Services was successful.
[oracle@exadb-node1 ~]$ ssh exadb-node2
[oracle@exadb-node2 ~]$ cd
/u02/app_acfs/goldengate/fbo_ggs_Linux_x64_Oracle_services_shiphome/Disk1
[oracle@exadb-node2 ~]$ ./runInstaller -silent -nowait
-responseFile /u02/app_acfs/goldengate/oggcore.rsp
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 32755 MB Passed
Checking swap space: must be greater than 150 MB. Actual 16383 MB Passed
Preparing to launch Oracle Universal Installer from
/tmp/OraInstall2022-07-08_03-54-51PM. Please wait ...
You can find the log of this install session at:
/u01/app/oraInventory/logs/installActions2022-07-08_03-54-51PM.log
Successfully Setup Software.
The installation of Oracle GoldenGate Services was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2022-07-08_03-54-51PM.log'
for more details.
[oracle@exadb-node1 ~]$ cat
/u01/app/oraInventory/logs/silentInstall2022-07-08_03-54-51PM.log
The installation of Oracle GoldenGate Services was successful.
ステップ4.3 - Oracle GoldenGateへのパッチ適用
すべてのデータベース・ノードでoracle
OSユーザーとして、最新のOPatchをインストールします。
[oracle@exadb-node1 ~]$ unzip -oq -d /u01/app/oracle/goldengate/gg21c
/u02/app_acfs/goldengate /p6880880_210000_Linux-x86-64.zip
[oracle@exadb-node1 ~]$ cat >> ~/.bashrc <<EOF
export ORACLE_HOME=/u01/app/oracle/goldengate/gg21c
export PATH=$ORACLE_HOME/OPatch:$PATH
EOF
[oracle@exadb-node1 ~]$. ~/.bashrc
[oracle@exadb-node1 ~]$ opatch lsinventory |grep 'Oracle GoldenGate Services'
Oracle GoldenGate Services 21.1.0.0.0
[oracle@gghub_prim1 Disk1]$ opatch version
OPatch Version: 12.2.0.1.37
oracle
OSユーザーとして、OPatchのprereq
を実行して、パッチの適用前に競合があるかどうかを検証します。
[oracle@exadb-node1 ~]$ unzip -oq -d /u02/app_acfs/goldengate
/u02/app_acfs/goldengate /p35214851_219000OGGRU_Linux-x86-64.zip
[oracle@exadb-node1 ~]$ cd /u02/app_acfs/goldengate/35214851/
[oracle@exadb-node1 35214851]$ opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Oracle Interim Patch Installer version 12.2.0.1.26
Copyright (c) 2023, Oracle Corporation. All rights reserved.
PREREQ session
Oracle Home : /u01/app/oracle/goldengate/gg21c
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/goldengate/gg21c/oraInst.loc
OPatch version : 12.2.0.1.26
OUI version : 12.2.0.9.0
Log file location : /u01/app/oracle/goldengate/gg21c/cfgtoollogs/opatch/opatch2023-04-21_13-44-16PM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
すべてのデータベース・ノードでoracle
OSユーザーとして、OPatchを使用してOracle GoldenGate Microservices Architechtureにパッチを適用します。
[oracle@exadb-node1 ~]$ cd /u02/app_acfs/goldengate/35214851/
[oracle@exadb-node1 35214851]$ opatch apply
Oracle Interim Patch Installer version 12.2.0.1.37
Copyright (c) 2023, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/goldengate/gg21c
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/goldengate/gg21c/oraInst.loc
OPatch version : 12.2.0.1.37
OUI version : 12.2.0.9.0
Log file location : /u01/app/oracle/goldengate/gg21c/cfgtoollogs/opatch/opatch2023-04-21_19-40-41PM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 35214851
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/goldengate/gg21c')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '35214851' to OH '/u01/app/oracle/goldengate/gg21c'
Patching component oracle.oggcore.services.ora21c, 21.1.0.0.0...
Patch 35214851 successfully applied.
Log file location: /u01/app/oracle/goldengate/gg21c/cfgtoollogs/opatch/opatch2023-04-21_19-40-41PM_1.log
OPatch succeeded.
[oracle@exadb-node1 35214851]$ opatch lspatches
35214851;