infra検証 blog

oracle成分多めです。

Oracle GoldenGate 12.3.0.1.0 構築検証その1(12.1.0.2EE 非CDB OracleLinux6.5)

はじめに

 今回、OGGの構築検証を行うにあたり、マニュアルで確認した箇所、考えたことについて整理して記載しようと思います。

OS設定、Oracleバイナリインストール、インスタンス作成までは終わっているものとします。(OGGの設定部分はしっかり書きます。)

 

構成

 今回は以下のような最小構成での検証を目指します。

f:id:macchi09:20180103225626p:plain

インスタンス名:ORCL

リスナー名:LISTENER

 

構築について

[済]① OSインストール・設定(Oracleインストール事前準備含む)

[済]② Oracle 12.1.0.2インストール

[済]③ インスタンス・リスナー作成

[ ]④ Oracle GoldenGate 12.3.0.1.0インストール

[ ]⑤ Oracle GoldenGate 設定

[ ]⑥ Oracle GoldenGate 簡易動作確認

 

Oracle GoldenGate 12.3.0.1.0インストール

インストールはソース/ターゲット側の両方に行います。

インストーラはいつも通りに起動できるかと思います。

ここでは特にハマらないかと思います。

f:id:macchi09:20180103235452j:plain

 

OUIが起動します。

DBのバージョンと同じラジオボタンを選択します。

f:id:macchi09:20180103235546j:plain

 

以下、インストールディレクトリ、ORACLE_HOME、OGG Managerのポートを入力します。

f:id:macchi09:20180103235754j:plain

 

もう終わりです。

最後確認してインストールを開始します。

f:id:macchi09:20180103235924j:plain

 

インストール時間が短く、一瞬で終わりました。

f:id:macchi09:20180104000126j:plain

 

インストール後の確認

OGGのパスを通します。oracleユーザの.bash_profileに追記します

### for Oracle GolodenGate

export OGG_HOME=/u01/app/ogg
export PATH=${OGG_HOME}:${PATH}
export LD_LIBRARY_PATH=${OGG_HOME}:${LD_LIBRARY_PATH}

 

何をするわけではありませんが、ggsciコマンドとINFO ALLを実行します。

※MANAGERがSTOPとなっています。インストール時にStart Managerにチェック入れていたはずですが、手動でとめたかもしれません。

f:id:macchi09:20180104000254j:plain

 スクリーンショットにはありませんが、ログファイルは${OGG_HOME}/ggserr.logです。

ggserr.logというわりにINFOもERRORログも出るようですのでしっかり見ましょう。

同期の際のログも出ているようです。

 

レスポンスファイルの中身

そのまま貼ります。

[oracle@node1 ~]$ cat oggcore.rsp

####################################################################
## Copyright(c) Oracle Corporation 2016. All rights reserved. ##
## ##
## Specify values for the variables listed below to customize ##
## your installation. ##
## ##
## Each variable is associated with a comment. The comment ##
## can help to populate the variables with the appropriate ##
## values. ##
## ##
## IMPORTANT NOTE: This file should be secured to have read ##
## permission only by the oracle user or an administrator who ##
## own this installation to protect any sensitive input values. ##
## ##
####################################################################

#-------------------------------------------------------------------------------
# Do not change the following system generated value.
#-------------------------------------------------------------------------------
oracle.install.responseFileVersion=/oracle/install/rspfmt_ogginstall_response_schema_v12_1_2


################################################################################
## ##
## Oracle GoldenGate installation option and details ##
## ##
################################################################################

#-------------------------------------------------------------------------------
# Specify the installation option.
# Specify ORA12c for installing Oracle GoldenGate for Oracle Database 12c and
# ORA11g for installing Oracle GoldenGate for Oracle Database 11g
#-------------------------------------------------------------------------------
INSTALL_OPTION=ORA12c

#-------------------------------------------------------------------------------
# Specify a location to install Oracle GoldenGate
#-------------------------------------------------------------------------------
SOFTWARE_LOCATION=/u01/app/ogg

#-------------------------------------------------------------------------------
# Specify true to start the manager after installation.
#-------------------------------------------------------------------------------
START_MANAGER=true

#-------------------------------------------------------------------------------
# Specify a free port within the valid range for the manager process.
# Required only if START_MANAGER is true.
#-------------------------------------------------------------------------------
MANAGER_PORT=7809

#-------------------------------------------------------------------------------
# Specify the location of the Oracle Database.
# Required only if START_MANAGER is true.
#-------------------------------------------------------------------------------
DATABASE_LOCATION=/u01/app/oracle/product/12.1.0/dbhome_1


################################################################################
## ##
## Specify details to Create inventory for Oracle installs ##
## Required only for the first Oracle product install on a system. ##
## ##
################################################################################

#-------------------------------------------------------------------------------
# Specify the location which holds the install inventory files.
# This is an optional parameter if installing on
# Windows based Operating System.
#-------------------------------------------------------------------------------
INVENTORY_LOCATION=/u01/app/oraInventory

#-------------------------------------------------------------------------------
# Unix group to be set for the inventory directory.
# This parameter is not applicable if installing on
# Windows based Operating System.
#-------------------------------------------------------------------------------
UNIX_GROUP_NAME=oinstall

 

参考

Oracle® Fusion Middleware Oracle DatabaseのためのOracle GoldenGateのインストールおよび構成12c (12.2.0.1)

https://docs.oracle.com/cd/E74358_01/gg-winux/GIORA/toc.htm

※12.3用に日本語マニュアルがまだないようでしたので、 一つ古いマニュアルを確認しました。