oracle goldengate studioセットアップガイド

79
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Oracle GoldenGate Studio 12.2 セットアップガイド ver.1.1 20165日本オラクル株式会社 クラウド&テクノロジー事業統括

Post on 15-Apr-2017

350 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Oracle GoldenGate Studio 12.2 セットアップガイド ver.1.1

2016年5月 日本オラクル株式会社 クラウド&テクノロジー事業統括

Page 2: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Safe Harbor Statement

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.

2

Page 3: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

はじめに

•本資料では、Oracle GoldenGate Studio R12.2.1 の環境構築から 動作確認までの一連の手順について説明します。

•本資料は製品マニュアルを補足する資料です。 手順の一例としてご活用ください。 – Fusion Middleware Installing Oracle GoldenGate Studio

• http://docs.oracle.com/goldengate/s1221/gg-studio/INGGT/toc.htm

3

Page 4: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

本ドキュメントの流れ

•本ドキュメントは下記の流れで、Oracle GoldenGate Studio のセットアップ方法を説明します。 – 1章:前提知識

– 2章:環境準備

– 3章:GoldenGate Studioのインストール

– 4章:GoldenGate Studioの設定

– 5章:GoldenGate Studioのアンインストール

– 6章:参考情報

4

Page 5: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Agenda

前提知識

事前の環境準備(メディアの用意)

Oracle GoldenGate Studioのインストール

Oracle GoldenGate Studioの設定

Oracle GoldenGate Studioのアンインストール

参考情報

5

1

2

3

4

5

6

Page 6: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Agenda

前提知識

事前の環境準備(メディアの用意)

Oracle GoldenGate Studioのインストール

Oracle GoldenGate Studioの設定

Oracle GoldenGate Studioのアンインストール

参考情報

6

1

2

3

4

5

6

Page 7: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Oracle GoldenGate関連ツールの歴史

Nov

R12.2

Oracle GoldenGate

2012 2013 2014 2015 2016 2009 2010 2011

Oct

R10.4 Aug

R11.1.1 Feb

R11.2.1 Sep

R12.1.2.0

May

R12.1.2.1

Director

Monitor

EM Plug-in May

R12.1.0.1 Sep

R12.1.0.2

Studio

NEW

Nov

R12.1.2 Oct

R2.x

Sep

R11.1.1 Jul

R11.2.1 Jun

R12.1.3

Apr

R11.1.1

Ma

na

gem

ent P

ack

構築用 (レガシー)

監視用

EM統合 監視

*FM統合、管理機能追加

*管理機能追加

*監視のみ

*監視のみ

*マルチバイト対応

*R11.1のBundled Patch

Jun

R11.2.1

2017

Jan

R12.2

Jun

R12.2

構築用 (次世代)

Fou

nd

atio

n Su

ite

Veridata

NEW

データ 比較

・Dec 2012

R11.2 ・Jun 2014

R12.1.3 ・Oct 2015

R12.2.1 ・Oct 2009

R3.x

Page 8: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 8

GoldenGate Studio概要

• GoldenGate Studioとは?

– GoldenGateによるレプリケーション環境をGUIで容易に構築するための製品

– 各種ウィザードにより容易にベストプラクティスに基づいたレプリケーション構成を自動作成

– レプリケーションフローやマッピング・競合検知・フィルタ設定などがGUIで容易に把握可能

– 各環境へ1クリックでデプロイ&再デプロイ

– 変化するビジネスニーズに応じて、容易に構成を変更

– 全ての変更履歴をリポジトリに安全に保管

• 既存GoldenGateユーザ様がGoldenGate Studioを導入するメリット

– デザインやデプロイに関わる作業時間を削減

– 従来手動で行っていた作業を、ウィザードや自動マッピング機能などにより一部自動化

– 個々の環境で設定を確認する必要がなくなり、レプリケーション環境の全体構成を可視化し、Studioから全ての環境の設定を行うことが可能

– 論理デザインと物理デザインが分離できるので、GoldenGateの詳細を知らない方でも論理デザインを作成可能

*GoldenGate Studio を使用する場合は、別途GoldenGate Foundation Suite ライセンスが必要です。

Page 9: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

GoldenGate Studioの特徴① デザインの再利用性

9

論理デザインと物理デザインの分離

Design

One Click Deploy

Deploy 開発、テスト、本番

Page 10: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

• 柔軟なレプリケーション構成 • 多様なプロセスの配置

– 例:基本的な構成(ソースとターゲットに配置)

– 例:ソースに負荷をかけないリモート構成

– 例:中間サーバを置く構成

GoldenGate Studioの特徴②柔軟な構成に対応 1:1のレプリケーションだけではなく、多様な構成に対応

一方向

双方向

ハブ&スポーク ソース、 ターゲット (デフォルト)

GG GG

ターゲットのみ (リモートソース)

GG

ソース、 ハブ、 ターゲット

GG GG GG

*最初にこれらの構成を選択後、追加・変更が可能

Page 11: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

GoldenGate Studioのアーキテクチャ

11

デプロイ ./dirtmp バックアップディレ

クトリ

./dirprm 設定ファイル用ディレクトリ

./diroby コマンドファイル用ディレクトリ

GLOBALS Globalファイルパラメータ

ggsci 表ロギングの追加 Capture/Pump/Replicat/初期ロードの起動・停止

監視(簡易版)

Oracle GoldenGate

Studio 12.2.1 (Java)

メトリック (REST via OGG Manager Port)

OGG Studio リポジトリ

(Oracle only)

Monitor Agent 12.2.1

GoldenGate 12.2.0

アクセスするGoldenGateコンポーネント

Page 12: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Agenda

前提知識

事前の環境準備(メディアの用意)

Oracle GoldenGate Studioのインストール

Oracle GoldenGate Studioの設定

Oracle GoldenGate Studioのアンインストール

参考情報

12

1

2

3

4

5

6

Page 13: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

本資料の環境情報

• 本資料で構築する環境は以下を使用しています。 • Oracle Linux Server Release 6.7 (64bit)

• JDK

• Oracle GoldenGate Studio R12.2.1.0.0 – 本資料では、Studioは専用のサーバにインストールします。

• Oracle GoldenGate Monitor Agent R12.2.1.0.0 – GoldenGateからの情報取得用のAgentとして必要です。

• Oracle Database 12.1.0.2.0 – 既に2台のサーバにソース用、ターゲット用のデータベースとしてOracle Database が用意されているものとします。

– リポジトリデータベースとして、Oracle Databaseが用意されているものとします。

• Oracle GoldenGate R12.2.0.1.0

–既に上記の2台のデータベース・サーバにGoldenGateがインストールされているものとします。

– インストールされた直後の状態(Managerのみ起動している状態)を想定しています。

13

Studio Server ホストA

ホストB

GoldenGate Monitor Agent

GoldenGate Monitor Agent リポジトリ

Oracle Database

OracleDB

OracleDB

GoldenGate Studio

GoldenGate

GoldenGate

Page 14: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

• 事前にGoldenGate StudioやリポジトリをインストールするOSやJavaバージョンがCertifyされているか、下記のCertification Matrixからご確認下さい。

– http://www.oracle.com/technetwork/middleware/fusion-middleware/documentation/fmw-1221certmatrix-2739738.xlsx

– この資料はマニュアルと異なり、新しいCertifyがあった場合などに、随時更新されます。

• Studio システム要件

– ClientタブのProduct Offering列で「Studio」を探します。Studioをインストールする予定のOSやJDKが要件に当てはまっているか確認します。

• Studioリポジトリ要件 • (GoldenGate Databaseタブではありません)

– Databaseタブの“Type of Use”=“Target DB for RCU”を探します。Studioのリポジトリをインストールする予定のデータベースやJDBCの要件に当てはまっているか確認します。

• Studioターゲット要件(GoldenGate側)

– SystemタブでMonitor Agentの要件を確認します。

– Databaseタブの“Type of Use”=“Application Data Access”で対応データベースを確認します。

Confidential – Oracle Internal/Restricted/Highly Restricted 14

要件の確認① Certify情報の確認

Page 15: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

要件の確認② Fusion Middlewareのシステム要件の確認 • システム要件の確認

– Fusion MiddlewareはGoldenGate Studioを含むOracleミドルウェア製品の総称です。Fusion Middlewareのマニュアルでシステム要件をご確認ください。

• http://docs.oracle.com/cd/E23104_01/sysreqs1221/sysrs.htm

– プロセッサ要件

– JDK要件

– メモリ・ディスク容量要件

– 製品固有のメモリ・ディスク容量要件

• Oracle Universal Installer Requirements(Studioのインストール時に使用)

• Repository Creation Utility

Confidential – Oracle Internal/Restricted/Highly Restricted 15

Page 16: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

要件の確認③ 関連製品との互換性の確認 • 互換性の確認

– 2.10 Oracle GoldenGate Studio Interoperability with Other Fusion Middleware Products • http://docs.oracle.com/middleware/1221/core/INTOP/interop_12c.htm#A1006528689

– Studioと互換性のあるGoldenGate及びGoldenGate Monitoring Agentのバージョンが記載されています。

Confidential – Oracle Internal/Restricted/Highly Restricted 16

Page 17: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

2. 文章を読み、輸出規制に受諾する場合は「受諾」ボタンを押します。

メディアのダウンロード(1/3)

1. Oracle Software Delivery Cloudにサインインします。

17

http://edelivery.oracle.com

Page 18: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

4. 「Oracle GoldenGate Monitor(12.2.1)」と「Oracle GoldenGate Studio(12.2.1)」を選択し「続行」を押します。

メディアのダウンロード(2/3)

3. 「製品」で、「Oracle GoldenGate Foundation Suite」とプラットフォームを選択して、「続行」を押します。

18

Page 19: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

メディアのダウンロード(3/3)

5. 「オラクル標準の条件及び規制」のライセンス契約を読み、受諾する場合はチェックして「続行」ボタンを押します。

19

6.「すべてダウンロード」をクリックして、3つのファイルをダウンロードします。

Page 20: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Agenda

前提知識

事前の環境準備(メディアの用意)

Oracle GoldenGate Studioのインストール

Oracle Database Studioの設定

Oracle GoldenGate Studioのアンインストール

参考情報

20

1

2

3

4

5

6

Page 21: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

JDKのインストール

• JDK 1.8(JDK 1.8.0_51以上、本例ではJDK 1.8.0_51 )をインストールします。

–事前に取得したJDK( jdk-8u51-linux-x64.tar.gz )をインストール

• # gunzip jdk-8u51-linux-x64.tar.gz

• # tar -xvf jdk-8u51-linux-x64.tar -C /usr/java/

–インストール後、環境変数(JAVA_HOMEとPATH)を設定

• export JAVA_HOME=/usr/java/jdk1.8.0_51

• export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH

21

OGG Studio サーバ

Page 22: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Oracle GoldenGate Studioのインストール(1/5)

1. 事前にインストール用ディレクトリを作成しておきます。また、メディア・パックを解凍し、インストーラを起動します。

• GoldenGate Studioをサーバにインストールします。

– リポジトリ用のDBは既に用意されているものとします。

22

OGG Studioサーバ

$mkdir -p /u01/app/Middleware/studio12c $ unzip V100586-01_1of2.zip $ unzip V100586-01_2of2.zip $ java -jar fmw_12.2.1.0.0_oggstudio_generic.jar

Studio Server ホストA

ホストB

GoldenGate Monitor Agent

GoldenGate Monitor Agent リポジトリ

Oracle Database

OracleDB

OracleDB

GoldenGate Studio

GoldenGate

GoldenGate

Page 23: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Oracle GoldenGate Studioのインストール(2/5)

23

2. ようこそ画面で「次」をクリックします。 3. 自動更新画面で、必要なオプションを選択し、 「次へ」をクリックします。 (本例では「自動更新をスキップ」を選択)

OGG Studio Server

Page 24: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Oracle GoldenGate Studioのインストール(3/5)

24

4. インストール場所画面でインストールする場所を入力し、「次」をクリックします。

5. インストール・タイプ画面で、「完全インストール」をチェックされているのを確認して、 「次」をクリックします。

OGG Studioサーバ

Page 25: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Oracle GoldenGate Studioのインストール(4/5)

25

6. 前提条件のチェック画面で、すべての条件を満たすことを確認し、「次」ボタンをクリックします。

7. インストール・サマリー画面で、インストール内容を確認の上、「インストール」ボタンをクリックします。

OGG Studio Server

Page 26: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

8. インストールの進行状況画面で、インストール完了したことを確認し、「次」をクリックします。

9. インストール完了画面で、内容を確認の上、「終了」をクリックします。

26

Oracle GoldenGate Studioのインストール(5/5)

OGG Studioサーバ

Page 27: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

1. OGG Studio Server上で下記を実行します。

– RCUプログラムを起動します。

• cd /u01/app/Middleware/studio12c/oracle_common/bin/

• $ ./rcu

2. ようこそ画面で、「次」をクリックします。

27

RCUによるリポジトリスキーマの作成(1/5)

OGG Studioサーバ

Page 28: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

3. リポジトリの作成画面で「システム・ロードおよび製品ロード」を選択し、「次」をクリックします。

28

RCUによるリポジトリスキーマの作成(2/5)

4. データベース接続の詳細に必要な情報を記入し、「次」をクリックします。前提条件確認画面では「OK」を押します。

OGG Studioサーバ

* 必ずSysdba権限のあるユーザを指定してください。

Page 29: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

5. コンポーネントの選択画面で「Oracle GoldenGate」を選択し、「次」をクリックします。確認画面で「OK」を押します。

29

RCUによるリポジトリスキーマの作成(3/5)

6. スキーマ・パスワード画面で作成するスキーマのパスワードを入力し、「次」をクリックします。

OGG Studio Server

Page 30: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

7. カスタム変数画面でパスワードを入力し、「次」をクリックします。

30

RCUによるリポジトリスキーマの作成(4/5)

8. 表領域のマップ画面で内容を確認し、「次」をクリックします。

OGG Studioサーバ

Page 31: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

9. サマリー画面で内容を確認の上、「作成」をクリックします。

31

RCUによるリポジトリスキーマの作成(5/5)

10.完了サマリー画面で内容を確認の上、「次」をクリックします。

OGG Studioサーバ

Page 32: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Oracle GoldenGate Monitor Agentのインストール(1/5)

1. メディア・パックを解凍し、インストーラを起動します。

• GoldenGate と接続するためにGoldenGate Monitor Agentを同じサーバにインストールします。

• 本例では、ホストAとホストBにて既にOracle GoldenGateがインストール済みであることを前提とします。

32

GoldenGate 配置サーバ

$ mkdir -p /u01/app/Middleware/monagent $ unzip V78177-01.zip $ java -jar fmw_12.2.1.0.0_ogg.jar

Studio Server ホストA

ホストB

GoldenGate Monitor Agent

GoldenGate Monitor Agent リポジトリ

Oracle Database

OracleDB

OracleDB

GoldenGate Studio

GoldenGate

GoldenGate

Page 33: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Oracle GoldenGate Monitor Agentのインストール(2/5)

33

2. ようこそ画面で「次」をクリックします。 3. 自動更新画面で、必要なオプションを選択し 「次へ」をクリックします。 (本例では「自動更新をスキップ」を選択します。)

GoldenGate 配置サーバ

Page 34: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Oracle GoldenGate Monitor Agentのインストール(3/6)

34

4. インストール場所画面で、Monitor Agentをインストールするディレクトリを入力し、「次」をクリックします。

5. インストール・タイプ画面で、「Oracle GoldenGate エージェント」選択して、 「次へ」をクリックします。

GoldenGate 配置サーバ

Page 35: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Oracle GoldenGate Monitor Agentのインストール(4/5)

35

6. 前提条件のチェック画面で、すべての条件を満たすことを確認し、「次」ボタンをクリックします。

7. インストール・サマリー画面で、インストール内容を確認の上、「インストール」ボタンをクリックします。

GoldenGate 配置サーバ

Page 36: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

8. インストールの進行状況画面で、インストール完了したことを確認し、「次」をクリックします。

9. インストール完了画面で、内容を確認の上、「終了」をクリックします。

36

Oracle GoldenGate Monitor Agentのインストール(5/5)

GoldenGate 配置サーバ

Page 37: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Oracle GoldenGate Monitor Agentのデプロイ(1/3)

1. 下記のコマンドにてインストールしたMonoitor Agentを配置します。 •

• このステップでは、インストールしたMonitor Agentのモジュールから、Agentのインスタンスを作成します。

• 同じインストールから、複数のMonitorインスタンスを作成することが可能です。

– 複数のOracle DatabaseやPDBが同じサーバにある場合は、異なるデプロイ先ディレクトリを指定して複数のインスタンスを作成する必要があります。

37

GoldenGate 配置サーバ

$ cd /u01/app/Middleware/monagent/oggmon/ogg_agent (Agentインストールディレクトリ/oggmon/ogg_agentに移動) $ ./createMonitorAgentInstance.sh Please enter absolute path of Oracle GoldenGate home directory : /u01/app/ogg1 (GoldenGateがインストールされているディレクトリを指定) Please enter absolute path of OGG Agent instance : /u01/app/Middleware/monagent_1 (Agentインスタンスを作成するディレクトリを指定) Please enter unique name to replace timestamp in startMonitorAgent script (startMonitorAgentInstance_20160131161324.sh) : [Enter] Sucessfully created OGG Agent instance.

Page 38: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Oracle GoldenGate Monitor Agentのデプロイ(2/3)

3. Walletを作成します。Java Agentのパスワードを指定します。

2. 配置ファイル(Config.properties)を更新します。

– 下記の項目を更新

38

GoldenGate 配置サーバ

$ cd /u01/app/Middleware/monagent_1/cfg $ vi Config.properties

agent.type.enabled=OEM jagent.rmi.port=5559

$ cd /u01/app/Middleware/monagent_1/bin $ ./pw_agent_util.sh -jagentonly Please create a password for Java Agent:パスワード Please confirm password for Java Agent:パスワード 1 31, 2016 4:24:16 午後 oracle.security.jps.JpsStartup start 情報: JPSの初期化中です。 1 31, 2016 4:24:16 午後 oracle.security.jps.JpsStartup start 情報: Jpsが開始されました。 Wallet is created successfully.

Page 39: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

4. 【GoldenGate本体側の設定】 Datastoreを作成し、とユーザ別名を作成します。

※OGG Studioは現状「ggalias」という別名を利用するため、事前に設定しておく必要があります。

5. 【GoldenGate本体側の設定】 Jagentを起動します。

39

Oracle GoldenGate Monitor Agentのデプロイ(3/3)

GoldenGate 配置サーバ

$ cd /u01/app/ogg1 $ ./ggsci GGSCI > create datastore Profile 'Trace' added. 2016-01-31T08:27:25Z INFO OGG-06489 Datastore created GGSCI > add credentialstore Credential store created in ./dircrd/. GGSCI> alter credentialstore add user ggs@orcl password Welcome1 alias ggalias Credential store in ./dircrd/ altered.

GGSCI > edit params ./GLOBALS GGSCI >quit $ ./ggsci GGSCI >start mgr GGSCI >start jagent GGSCI > info all Program Status Group Lag at Chkpt Time Since Chkpt MANAGER RUNNING JAGENT RUNNING (起動していることを確認する)

ENABLEMONITORING (追記)

Page 40: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Agenda

前提知識

事前の環境準備(メディアの用意)

Oracle GoldenGate Studioのインストール

Oracle GoldenGate Studioの設定

Oracle GoldenGate Studioのアンインストール

参考情報

40

1

2

3

4

5

6

Page 41: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

1. OGG Studio Server上で下記のコマンドを実行してOGG Studio Serverを起動します。

–使用するJDK Homeを指定します。

2. インポート・プリファレンスの確認画面で、適切なオプションを選択します。本例では、最初のインストールなので「いいえ」をクリックします。

41

Oracle GoldenGate Studio の起動

OGG Studioサーバ

$ cd /u01/app/Middleware/studio12c/oggstudio/bin $ ./oggstudio

Page 42: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

リポジトリへの接続(1/3)

42

1. 初期化ページから、「リポジトリへの接続」をクリックします。

2. リポジトリ接続画面で、プラスをクリックします。

OGG Studio Screen

Page 43: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

リポジトリへの接続(2/3)

43

3. リポジトリ接続情報画面に、適切な情報を入力の上、「OK」をクリックします。

4. 新規ウォレット・パスワード画面で、適切なオプションを選択して、「OK」をクリックします。

任意の接続名を定義

RCU作成時に指定したパスワード

RCU作成時に指定したユーザ

RCU作成時に指定したパスワード

OGG Studio Screen

Page 44: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

リポジトリへの接続(3/3)

44

5. リポジトリ接続画面で、「OK」をクリックします。

6. 下記のページが表示されたら、リポジトリへの接続は完了です。

OGG Studio Screen

Page 45: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

ホストA

ホストB

• 事前に用意してあるデータベース・サーバを登録します。

• 本資料では、ホストAとホストBのデータベースを登録します。

1. 「新規…」ボタンを押します。

– または「ファイル」→「新規」を押します。

Confidential – Oracle Internal/Restricted/Highly Restricted 45

データ・サーバー接続の定義(1/3)

Studio Server

GoldenGate Monitor Agent

GoldenGate Monitor Agent リポジトリ

Oracle Database

OracleDB

OracleDB

GoldenGate Studio

GoldenGate

GoldenGate

OGG Studio Screen

Page 46: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

データ・サーバー接続の定義(2/3)

46

2. 新規ギャラリ画面に、「データ・サーバー接続」を選択し、「OK」をクリックします。

3. ソースDBの接続情報を入力して、「接続のテスト」をクリックして、成功したら、「OK」をクリックします。

DBのGGユーザ

OGG Studio Screen

Page 47: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

データ・サーバー接続の定義(3/3)

47

4. 「リソース」ウィンドウにて、定義じたDB接続が表示されたのを確認します。

5. 同じように「新規」のシンボルをクリックして、ターゲットDBを定義します。

OGG Studio Screen

Page 48: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

• 事前に用意してあるGoldenGateインスタンスを登録します。

• 本資料では、ホストAとホストBのGoldenGateインスタンスを登録します。

1. 再び「新規」ボタンを押して、新規ギャラリ画面で「GoldenGateインスタンス接続」を選択し、「OK」をクリックします。

Confidential – Oracle Internal/Restricted/Highly Restricted 48

GoldenGateインスタンス接続の定義(1/2)

ホストA

ホストB

Studio Server

GoldenGate Monitor Agent

GoldenGate Monitor Agent リポジトリ

Oracle Database

OracleDB

OracleDB

GoldenGate Studio

GoldenGate

GoldenGate

OGG Studio Screen

Page 49: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

2. ソースGG接続情報を入力して、「GoldenGateへの接続のテスト」をクリックし、成功したら、「OK」をクリックします。

3. 「リソース」ウィンドウにて、定義じたDB接続が表示されたのを確認します。

4. 同じように「新規」のシンボルをクリックして、ホストBのGoldenGateを定義します。

49

GoldenGateインスタンス接続の定義(2/2)

AgentのConfig.propertiesファイルに ← 記載したjagent.usernameパラメータの値

← pw_agent_util.sh で指定したパスワード ← AgentのConfig.propertiesファイルに 記載したjagent.rmi.portの値

OGG Studio Screen

Page 50: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

前提知識:GoldenGate Studioの用語 • プロジェクト

– GoldenGateレプリケーション・ソリューションのコンテナ。1つのプロジェクトは複数のソリューションを含む。

• ソリューション

– GoldenGateでサポートされる論理デザイン(例:一方向、双方向など)

– 1つ以上の物理デザイン(デプロイメント・プロファイル)とマッピング・グループを含む。

• デプロイメント・プロファイル

– レプリケーションの物理的な属性を定義するもの。(例:GGの配置場所、DBサーバの属性など)

• マッピング・グループ

50

*各ウィンドウの配置は自由に変更できます。

Page 51: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

前提知識:ソリューション

• ビジネスニーズに合わせて論理デザインを作成

• GoldenGateでサポートされる構成のテンプレートを提供

51

GoldenGateの詳細を知らなくても論理デザインが可能

テンプレートによる迅速なデザイン 一方向

双方向

ハブ&スポーク

論理デザイン

ソリューション・ウィザード

Page 52: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

• Capture/Replicatプロセスの配置に関わる8つのテンプレートを提供

ソース、 ハブ (リモートターゲット)

シングル ホスト

ソース、 ハブ、 ターゲット

ハブ ターゲット (リモートソース)

ソースのみ (リモートターゲット)

ハブのみ (リモートソース、 リモートターゲット)

ソース、 ターゲット (デフォルト)

ターゲットのみ (リモートソース)

前提知識:デプロイメント・プロファイル

52

デプロイメント・プロファイル・ウィザードにより物理デザインを選択

ニーズに応じて様々な構成を選択可能

• ソースやターゲットの上で稼働させるか? • リモートCaptureやリモートReplicatを使用するか? • Hubサーバにもプロセスを配置するか?

GG GG

GG

GG

GG

GG GG GG

GG GG

GG GG

GG

物理デザイン

デプロイメント・プロファイル・ウィザード

Page 53: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

プロジェクトの作成

53

1. 新規ギャラリ画面で、「プロジェクト」を選択し、「OK」をクリックします。

2. 新規GoldenGateプロジェクトの画面で、任意のプロジェクト名を入力して、「OK」をクリックします。

• 「ソリューション・ウィザードに進む」をチェックしたままで次に進みます。

OGG Studio Screen

Page 54: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

ソリューションの作成

54

1. 新規GoldenGateソリューションの作成画面にて、任意のソリューション名を入力して、「次」をクリックします。

2. 本資料では「一方向」を選択して「終了」をクリックします。

– 「デプロイメント・プロファイル・ウィザードに進む」をチェックして次に進みます。

OGG Studio Screen

Page 55: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

デプロイメント・プロファイルの作成(1/2)

55

1. 新規GoldenGateデプロイメント・プロファイルの作成画面にて、任意の名前を入力して、「次」をクリックします。

2. 本資料では、デプロイメント・テンプレート画面にて、「ソース、ターゲット」を選択して、「次」をクリックします。

OGG Studio Screen

Page 56: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

デプロイメント・プロファイルの作成(2/2)

56

3. 物理リソース画面にて、先ほど作成したソースとターゲットのDBとGoldenGateへの接続を選んで、「次」をクリックします。

4. デプロイメント・オプション画面にて、すべてのオプションをチェックして、「終了」をクリックします。

OGG Studio Screen

Page 57: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

マッピング・グループの作成(1/5)

57

• ソースとターゲットの表をマッピングします。ここでは、既に両方のDBに同じ構造の表が用意されていることとします。

1. 左側のマッピング・グループを右クリックして、「新規」をクリックします。

2. マッピング・グループのプロパティの定義画面にて、名前を入力して、「OK」をクリックします。

OGG Studio Screen

Page 58: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

マッピング・グループの作成(2/5)

58

3. 右側のリソースパネルで、「データベース」→「sourceDB」 → 「他のユーザー」 から、レプリケーション対象テーブルを選びます。

4. 選んだテーブルを真ん中のマッピング画面のソース側にドラッグ&ドロップすると、マッピング対象になります。

OGG Studio Screen

Page 59: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

マッピング・グループの作成(3/5)

59

5. 同じ方法で、ターゲットの対象テーブルをドラッグして、マッピングのターゲット対象に追加します。

6. 「AutoMap」をクリックすると、ターゲットのマップ元に自動的にソースの表明が表示されます。

OGG Studio Screen

*手動でマッピングすることも可能です。

Page 60: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

マッピング・グループの作成(4/5)

60

7. マップ元の表名をダブルクリックすると、テーブルの列が表示されます。

8. 「AutoMap」をクリックすると、マップ元に自動的に対応する列が表示されます。

OGG Studio Screen

*手動でマッピングすることも可能です。

Page 61: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

マッピング・グループの作成(5/5)

61

9. ソリューションパネルのソリューション名をクリックして、作成したマップを真中の矢印にトラックします。

10. 保存ボタンをクリックして、マッピング情報を保存します。

OGG Studio Screen

黒い点線から、赤い実線の矢印に変わります。

Page 62: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

ソリューションのデプロイ

62

1. 左側のソリューションパネルのプロファイル名をクリックします。

2. 真中の「デプロイメント・ビュー」の白い部分で右クリックして、ポップアップメニューの「デプロイ」を選択します。

OGG Studio Screen

Page 63: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

動作確認(1/2)

63

1. 【ソース側】OGGプロセス情報を確認します。全てRUNNINGであれば、各プロセスは正常にデプロイされ起動しています。

2. 【ターゲット側】OGGプロセス情報を確認します。全てRUNNINGであれば、各プロセスは正常にデプロイされ起動しています。

GGSCI > info all Program Status Group Lag at Chkpt Time Since Chkpt MANAGER RUNNING JAGENT RUNNING EXTRACT RUNNING C01AA 00:00:09 00:00:06 EXTRACT RUNNING P02#### 00:00:00 00:00:09 EXTRACT RUNNING P02AABB 00:00:00 00:00:06

GGSCI > info all Program Status Group Lag at Chkpt Time Since Chkpt MANAGER RUNNING JAGENT RUNNING REPLICAT RUNNING R01BB 00:09:51 00:05:27

GoldenGate 配置サーバ

Page 64: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

動作確認(2/2)

64

3. 【ソース側】DBにテストテーブルにデータをインサートします。

4. 【ターゲット側】DBのデータ情報を確認して反映されていれば成功です。

SQL> insert into demo.sample values(1,'山本', sysdate); 1行が作成されました。 SQL> commit; コミットが完了しました。

SQL> select * from demo.sample; 製品番号 名前 更新日時 ---------- ------------------------------ -------- 1 山本 16-02-03

GoldenGate 配置サーバ

Page 65: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Agenda

前提知識

事前の環境準備(メディアの用意)

Oracle GoldenGate Studioのインストール

Oracle GoldenGate Studioの設定

Oracle GoldenGate Studioのアンインストール

参考情報

65

1

2

3

4

5

6

Page 66: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

RCUスキーマの削除(1/5)

66

1. 下記のコマンドでRCUツールを起動します。

2.ようこそ画面で、「次」をクリックします。

OGG Studioサーバ

$ /u01/app/Middleware/studio12c/oracle_common/bin/rcu

Page 67: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

RCUスキーマの削除(2/5)

67

3. リポジトリの削除を選択し、「次」をクリックします。

4.DBの情報を記入し、「次」をクリックします。

OGG Studioサーバ

Page 68: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

RCUスキーマの削除(3/5)

68

5. チェックが終わりましたら、「OK」をクリックします。

6.削除するスキーマを選んで、「次」をクリックします。

OGG Studioサーバ

Page 69: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

RCUスキーマの削除(4/5)

69

7. チェックが終わりましたら、「OK」をクリックします。

8.サマリー画面で内容を確認の上、「削除」をクリックします。

OGG Studioサーバ

Page 70: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

RCUスキーマの削除(5/5)

70

9.完了サマリー画面d、内容を確認の上、閉じるをクリックします。

10.RCUスキーマの削除が完了しました。

OGG Studioサーバ

Page 71: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

OGG Studioのアンインストール(1/3)

71

1. 下記のコマンドでアンインストールツールを起動します。

2.ようこそ画面で、「次」をクリックします。

OGG Studioサーバ

$ /u01/app/Middleware/studio12c/oui/bin/deinstall.sh

Page 72: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

OGG Studioのアンインストール(2/3)

72

3.アンインストール・サマリー画面で、内容

を確認の上、「アンインストール」をクリックします。

4.アンインストールの進行状況画面で、「次」をクリックします。

OGG Studio Server

Page 73: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

OGG Studioのアンインストール(3/3)

73

5. アンインストール完了画面で、「終了」をクリックします。

6.下記のコマンドでディレクトリを削除します。

7.OGG Studioのアンインストールが完了しました。

OGG Studioサーバ

$ rm -rf /u01/app/Middleware/studio12c

Page 74: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Agenda

前提知識

事前の環境準備(メディアの用意)

Oracle GoldenGate Studioのインストール

Oracle Database Studioの動作確認

Oracle GoldenGate Studioのアンインストール

参考情報

74

1

2

3

4

5

6

Page 75: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

参考情報

• GoldenGate Studioのデータシート(英語) – http://www.oracle.com/technetwork/middleware/goldengate/overview/ds-

oggstudio-12-2-1-0-2868485.pdf

• GoldenGate Studioのマニュアル(英語) – http://docs.oracle.com/goldengate/s1221/gg-studio/index.html

• GoldenGateの開発者ライセンス用メディアダウンロード – http://www.oracle.com/technetwork/middleware/goldengate/downloads/index.html

75

Page 76: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Document Control

Author

Oracle Asia Research & Development Center • 黄 明

• 梁 国賢

• 楊 帆

Reviewer

日本オラクル株式会社 • 谷川 信朗

• 後藤 陽介

• 舟橋 直美

76

変更履歴

Date Version

2016/3 1.0 Created.

2016/5 1.1 Certification matrixの変更に対応

Page 77: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |

Page 78: Oracle GoldenGate Studioセットアップガイド

Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 78

Page 79: Oracle GoldenGate Studioセットアップガイド