25
Copyright© CAC corporation. All Rights Reserved Oracle ExadataのAWS移行事例のご紹介

Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

  • Upload
    others

  • View
    17

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved

Oracle ExadataのAWS移行事例のご紹介

Page 2: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 2

Oracle Exadataの移行

アジェンダ ○お客様の声 ○PoCフェーズ

・移行診断 ・環境構築 ・データ移行 ・チューニング

○移行フェーズ ・業務/データ整理 ・運用管理

○まとめ

Page 3: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 3

お客様の声

性能

改修規模

コスト

移行方式

運用環境

データはどのように持っていくのか

クラウドでの運用はどうなるのか

移行しても現状のデータベースと同等のパフォーマンスを出せるのか

利用システムは、どの程度改修が必要なのか

コスト(ランニング、イニシャル)はどれぐらいか

不安

Page 4: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 4

お客様の声

性能

改修規模

コスト

PoCの実施 移行診断 環境構築

データ移行 チューニング

移行方式

運用環境

業務/データ整理

CACの不安解消策

Page 5: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 5

データベース移行のアプローチ

移行診断

環境構築

データ移行

チューニング

移行計画

業務/データ整理

運用管理

本番移行

1.PoCフェーズ

2.移行フェーズ

Page 6: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 6

PoCフェーズ

移行診断

Page 7: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 7

移行診断

蓄積 保存

Corporate data

center

Exadata

収集

AWS Direct

Connect

VPN connection

AWS DMS

Amazon S3

bucket with

objects

加工・分析

Amazon EMR

DWH

Amazon Redshift

データマート

RDS Aurora

PostgreSQL

AWS Glue

【AWSフルマネージド分析基盤】 【DWH分離】

AWS cloud

Oracle on EC2

Amazon Redshift

Amazon Athena

Redshift Spectrum

【クラウドネィティブ化】

【脱Oracle】

AWS cloud

RDS Aurora

PostgreSQL

Amazon Redshift

AWS Glue

Redshift Spectrum

【単純クラウド化】

AWS cloud

Oracle on EC2

Page 8: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 8

移行診断

PoCの事例

アプリ改修規模 Oracle On EC2へ

性能評価 重要処理をピックアップし確認

コスト 現行同等の構成でコスト概算

周辺システムについてはほぼオンプレ

データはRMANバックアップを利用

Page 9: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 9

PoCフェーズ

環境構築

Page 10: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 10

環境構築

ストレージ

EBSタイプ GP2

EC2とストレージ構成を決定→コスト概算

スナップショット量

HCC圧縮

現行容量

容量

EC2

CPU数 インスタンスタイプ決定 台数

冗長構成 コスト試算

AWS Calculator

サイズ

本数 インスタンスあたりの EBS性能値

3 IOPS/GBから 最大 10,000 IOPS

確認

確認

確認

Page 11: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 11

PoCフェーズ

データ移行

Page 12: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 12

データ移行

AWS Snowball*

data center

Exadata Backup Server

client Amazon S3

endpoints

OracleEE on EC2

データ移行 AWS Snowball Snowballクライアント クライアント端末が必要

設置場所 ラックマウントできないので注意

事前TESTコマンド実施推奨

Page 13: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 13

データ移行

ポイント:データ移行時間短縮

RMANリストア

バックアップデータの読み取りスループットを重視

最大スループット GP2:160MB/sec → ST1:500MB/sec

ST1ディスク

ブロックデバイスに対する先読み

ブロックデバイスに対する先読み 1Mibに設定

blockdev --setra 2048 <ディスクパス>

[参考]https://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/EBSPerformance.html

Page 14: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 14

データ移行

ポイント:データ移行時間短縮

再圧縮

Exadata固有の圧縮定義を変更する

再圧縮はAdvanced Compressionオプションが必要

並列実行

並列度をCPU負荷状況で調整

テーブル、パーティション、サブパーティション単位で実行

Page 15: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 15

データ移行

ポイント:データ移行時間短縮

リビルドインデックス

並列実行

並列度をCPU負荷状況で調整

テーブル、パーティション、サブパーティション単位で実行

Page 16: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 16

PoCフェーズ

チューニング

Page 17: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 17

チューニング

SQL文にヒント句を追加して最適な実行計画を利用する

Oracle on EC2では性能が劣化することがある

Exadataの性能に依存したSQL

チューニング

SMARTSCAN

→非常に高速なので多く利用

→INDEXを利用し改善効果を確認

Page 18: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 18

移行フェーズ

業務/データ整理

Page 19: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 19

業務/データ整理

不要(重複)データ

現行データ

削除検討

OLTP系データ

OLTP系

DWH系

DWH系データ

比較的

直近状態が必要 システム停止しにくい データ量小

事前移行が可能 システム停止しやすい データ量大

統合データベース利用のExadata内に 混在しているデータを整理する

不要(重複)

Page 20: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 20

業務/データ整理

並行稼働 →ExadataとAWSの両方を更新

移行データ 方法

OLTP系 ・システム停止してエクスポート/インポート

DWH系 ・過去分データ移行RMANバックアップリストア ・必要差分をエクスポート/インポート

移行リハーサル

→作業精度向上

→過去分データ移行も兼ねる

整理したデータ毎に移行方法を決める

上記に加えて下記も検討

Page 21: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 21

移行フェーズ

運用管理

Page 22: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 22

運用管理

お客様のシステム運用業務の負担軽減を実現する自社開発の「eC+管理コンソール」と、AWS認定エンジニアで構成された「サービスデスク窓口」をベーシックサービスとして提供します。

処理

enterpriseCloud+管理コンソール

eC+VPC管理サーバー

問合せ/ 作業依頼

操作

・分かりやすい管理画面 ・スケジューリング機能 ・グループ権限設定機能

自動監視

eC+サービスデスク

VPC環境の設計/構築は無償

メール通知

お客様

お客様サーバー

お客様サーバー

enterpriseCloud+ VPC お客様VPC

サービス概要

Amazon VPC初期構築

ベーシック監視サービス

entepriseCloud+管理コンソール

グループ権限設定機能

自動監視機能

サービスデスク

オールインワン監視サービス

ログ分析サービス

電話連絡サービス

定型作業代行サービス

Page 23: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 23

まとめ PoCの実施、業務/データ整理

性能

改修規模

コスト

PoC実施 移行診断 環境構築

データ移行 チューニング

移行方式

運用環境

業務/データ整理

CACの不安解消策

Page 24: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved 24

まとめ 段階的進化を皆様と共に

蓄積 保存

Corporate data

center

Exadata

AWS cloud

Oracle on EC2

AWS cloud

Oracle on EC2

Amazon Redshift

Amazon Athena

Redshift Spectrum

収集

AWS Direct

Connect

VPN connection

AWS DMS

Amazon S3

bucket with

objects

加工・分析

Amazon EMR

DWH

Amazon Redshift

データマート

RDS Aurora

PostgreSQL

【単純クラウド化】 【DWH分離】 【クラウドネィティブ化】

AWS Glue

【AWSフルマネージド分析基盤】

AWS cloud

RDS Aurora

PostgreSQL

Amazon Redshift

AWS Glue

Redshift Spectrum

【脱Oracle】

Page 25: Oracle Exadata AWS移行事例のご紹介 · Exadata AWS cloud Oracle on EC2 AWS cloud Oracle on EC2 Amazon Redshift Amazon Athena Redshift Spectrum 収集 AWS Direct Connect VPN

Copyright© CAC corporation. All Rights Reserved

本資料は、著作権法により保護されています。 株式会社シーエーシーによる事前の許可なく、本資料のいかなる部分も、 無断転写、複製、複写、他社への公開を禁じます。 本資料に記載されている会社名商品名は、各社の商標または登録商標です。

ご清聴ありがとうございました