Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
WebLogic Server for OCI 移行の手順
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
oracle4engineer
PRO
February 01, 2023
Technology
730
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
WebLogic Server for OCI 移行の手順
oracle4engineer
PRO
February 01, 2023
More Decks by oracle4engineer
See All by oracle4engineer
【Oracle AI SPOTLIGHT ウェビナー】分散した企業データをつなぎ、AIエージェントで業務に活かす
oracle4engineer
PRO
1
75
Deep Data Security 機能解説
oracle4engineer
PRO
3
1k
Autonomous AI Lakehouse - Live AI Hubから始めるセキュアなAIデータ活用 -
oracle4engineer
PRO
3
190
Oracle Database Security 詳細解説
oracle4engineer
PRO
2
280
【Oracle AI SPOTLIGHT ウェビナー】事例から見る!なぜOCIが選ばれたのか ― AI時代のクラウド戦略を紐解く ―
oracle4engineer
PRO
2
160
Oracle Cloud Infrastructure:2026年10月度サービス・アップデート
oracle4engineer
PRO
1
310
Kubernetesで作るLLM推論基盤(OCHaCafe Season 12 #1)
oracle4engineer
PRO
1
210
【Oracle AI Spotlight ウェビナー】AI活用を支えるデータ基盤とは ― いま押さえておきたい Oracle AI Database 26ai の注目機能
oracle4engineer
PRO
0
140
kagent で Kubernetes 運用を考える
oracle4engineer
PRO
1
520
Other Decks in Technology
See All in Technology
An Introduction to Context Ontology Accelerator (teaching AI agents what your data means)
inariku
PRO
1
100
現場を動かすAIエージェント#2_製造業現場でのAI活用から見た、ハマる罠と実践知
kintotechdev
2
190
公共システムAdventCalendar2026
toru_kubota
0
270
少ない人手 限られた予算 それでも守る 消せない・見つける・戻れる オールハザード型BCP on AWS / 20261107 Mitsutoshi Matsuo
shift_evolve
PRO
0
190
詳解 never 型 - ボトム型の性質を深掘り
nealle
0
160
内製アプリとClaudeスキルのセキュリティチェック、 Backlogの課題で回しています。
ayaka_egaaa
0
140
Building Audio Plugin Ecosystem for Android in 2026
atsushieno
2
160
FinOpsを導入してマルチプロダクトのコスト最適化を実現する
kworkdev
PRO
0
140
ライフワーク「猫でもわかるDirectConnect」
kentapapa
0
270
超⼩型・多⾔語検索モデル Bekko Embedding
hotchpotch
1
120
Maestro MCPとClaude Code Skillsによる自律的なE2Eテスト支援
asmz
0
430
会社説明資料_最新版
demaecan
0
32k
Featured
See All Featured
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
520
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
510
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.6k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
820
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
350
Mobile First: as difficult as doing things right
swwweet
225
10k
KATA
mclloyd
PRO
35
16k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Leo the Paperboy
mayatellez
10
2.4k
Skip the Path - Find Your Career Trail
mkilby
1
290
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
660
Transcript
WebLogic Server for OCI 移行の手順 WebLogic Deploy Toolingを用いたドメイン/アプリケーションの移行 日本オラクル株式会社 2023年2月
• 本資料では移行プロセスにおけるアプリケーションの再デプロイを解説 • セットアップとプロビジョニングは「WebLogic Server for OCIの汎用的な構成」資料にて解説 WebLogic Server for
OCI 移行の大まかなプロセス Copyright © 2023, Oracle and/or its affiliates. All rights reserved. 2 環境のセットアップ • コンパートメント • OCI Vault (Secret) • Network (VCN, Subnet) • Vault, Secret WebLogic Server for OCIのプロビジョニング • マーケットプレイス経 由でのプロビジョニン グ • 監視/管理の構成 アプリケーション移行 • 移行元からリソース を抽出 • WebLogic Server for OCIのドメインを 更新 本資料で主に解説
移行に際しての留意点 Copyright © 2023, Oracle and/or its affiliates. All rights
reserved. 3 移行元の管理サーバー/管理対象サーバー ⇒ 起動中/停止中に関わらず移行可能 移行先の管理サーバー/管理対象サーバー ⇒ 管理サーバーは起動中であることが必要 データベース ⇒ 起動中/停止中に関わらず移行可能
移行フェーズ パラメータ 補足/注意点 環境のセットアップ WebLogicの管理パスワード OCI Vault で管理 プロビジョニング バージョン
ノード数 管理サーバは1つ目のノードに配置 管理/管理対象サーバー名 <prefix>_adminserver <prefix>_server_<id> のように固定 ※<id>はノード数に応じて1, 2, 3 …のように連番 エディション リソース名プレフィクス ドメイン名は<prefix>_domain固定 WebLogic管理ユーザ名 アプリケーション移行 データベースのパスワード WebLogic Server for OCI 移行にまつわる主なパラメータ Copyright © 2023, Oracle and/or its affiliates. All rights reserved. 4
1. WDTを移行元ドメインにインストール 2. discoverDomainによるドメイン情報/リソースの抽出 3. 移行先ドメインにドメイン情報/リソースを移動 4. WDTを移行先ドメインにインストール 5. updateDomainの実行
WebLogic Deploy Toolingを用いた移行WebLogic Server for OCIへの移行 Copyright © 2023, Oracle and/or its affiliates. All rights reserved. 5 Source WebLogic Domain cluster JDBC #1 App #1 App #2 JDBC #1 source.properties source.zip source.yaml Discover Domain Target WebLogic Domain cluster MS1 AS MS2 JDBC #1 App #1 App #2 JDBC #1 WDT 既存のWebLogicドメイン 反映先のWebLogicドメイン MS1 AS MS2 Update Domain WDT 編集
1. WDTの最新バージョンを確認 1. https://github.com/oracle/weblogic-deploy-tooling/releases/ 2. JAVA_HOMEが設定されているかを確認 3. WDTのダウンロードとunzip 4. スクリプトの権限変更
1. WDTを移行元のドメインにインストール Copyright © 2023, Oracle and/or its affiliates. All rights reserved. 6 echo $JAVA_HOME wget -qO- https://github.com/oracle/weblogic-deploy- tooling/releases/download/release-<バージョン>/weblogic- deploy.zip | $JAVA_HOME/bin/jar xv chmod +x weblogic-deploy/bin/*.sh
1. MW_HOMEディレクトリの設定(例: /u01/app/oracle/middleware) 2. DOMAIN_HOMEディレクトリの設定 3. DOMAIN_TYPEの設定 4. discoverDomainの実行 2.
移行元でdiscoverDomainコマンドの実行 Copyright © 2023, Oracle and/or its affiliates. All rights reserved. 7 MW_HOME=<MW_HOME> DOMAIN_HOME=<DOMAIN_HOME> DOMAIN_TYPE=<WLS/JRF> weblogic-deploy/bin/discoverDomain.sh ¥ -oracle_home $MW_HOME ¥ -domain_home $DOMAIN_HOME ¥ -archive_file source.zip ¥ -model_file source.yaml ¥ -variable_file source.properties ¥ -domain_type $DOMAIN_TYPE ▪ discoverDomainによる成果物 • source.zip • wlsdeploy/applications/<app-name>.war のようなディレクトリ構造 • source.yaml • ドメインのメタデータ • source.properties • source.yamlで利用する変数を記載 • 環境変数やパスワードなどに利用
source.properties, source.yaml, source.zipを移行先のサーバに移動する 推奨: WDTのインストールに用いたzipファイル(weblogic-deply.zip)も同時に移動 例) 以下はscpコマンドを利用する例 1. 移行元IPの指定 2.
移行先IPの指定 3. 踏台サーバIPの指定 4. scpコマンドの実行 3. 移行先の管理サーバへファイルを転送 Copyright © 2023, Oracle and/or its affiliates. All rights reserved. 8 SOURCE_IP=<移行元WLSサーバのIP> ADMIN_SERVER_IP=<OCI上の管理サーバIP> BASTION_IP=<OCI上の踏み台サーバIP> scp -o “ProxyCommand ssh -i <踏台サーバ秘密鍵のパス> opc@$BASTION_IP -W %h:%p" <移行元ユーザ >@${SOURCE_IP}:~/source.* opc@${ADMIN_SERVER_IP}:~/
• source.propertiesのJDBC.<データソース名>.PasswordEncryptedに データベースのパスワードを入力 • source.propertiesのJDBC.<データソース名>.user.valueにデータベースの ユーザ名を入力(変更が必要な場合) ※source.yaml内で利用しないので、ほかのフィールドは空白で良い 4. WDTモデルファイル(source.properties)の編集 Copyright
© 2023, Oracle and/or its affiliates. All rights reserved. 9
resoucesとappDeploymentsフィールドのみを残す 1. domainInfoフィールドの全体を削除 2. topologyフィールドの全体を削除 ※ appDeploymentsのSourcePathはdicoverDomain時に 取得したsource.zip内のディレクトリ構造と同一 5. WDTモデルファイル(source.yaml)の編集
– resourcesとappDeployment Copyright © 2023, Oracle and/or its affiliates. All rights reserved. 10 削除
t3sチャネルを新規作成する例 topologyフィールドを利用して、ネットワークチャネルなどの設定を行 うことができる 例えばt3sチャネルを追加する場合、キャプチャのように • 移行先管理サーバー名 • t3s通信に利用するポート • 移行先管理サーバーの内部FQDNアドレス
• 移行先管理サーバーのIP(Privateでも可) を入力することで、新規チャネルを追加することができる 参考) topologyフィールドの活用 Copyright © 2023, Oracle and/or its affiliates. All rights reserved. 11
キャプチャの位置にStagingMode: stageの追加 ※これを追加しない場合、移行アプリケーションをサーバーそれぞれに 手動でデプロイを行う必要がある 6. WDTモデルファイルの編集 – StagingModeフィールドの追加 Copyright ©
2023, Oracle and/or its affiliates. All rights reserved. 12
移行先のWebLogicエディションに合わせTargetを編集 • Enterprise Edition • クラスター名を記述 • 例) <ドメイン接頭辞>_cluster •
Standard Edition • 管理対象サーバー名を「,」で繋いで記述 • 例) “<ドメイン接頭辞>_server_0,<ドメイン接頭辞>_1” • 「”」もしくは「’」で囲う 7. WDTモデルファイルの編集 – Targetの編集 Copyright © 2023, Oracle and/or its affiliates. All rights reserved. 13
DBCS 接続先DBのURL / ユーザー名 / パスワードは必要に応 じて変更 ※@@PROP:<プロパティのキー>@@の形式で、propertiesファイル内の変数 を利用できる ATP
• URLはDBCSの場合と異なり接続文字列に • Walletの配置先パスなど、Propertiesの値を必要に 応じて変更 8. WDTモデルファイル(source.yaml)の編集 – resources(JDBC) Copyright © 2023, Oracle and/or its affiliates. All rights reserved. 14
resoucesフィールド以下にはSelfTunigフィールドとしてワークマネー ジャの情報が記載されている ターゲットのクラスタ名など、適宜移行先の環境に合わせて修正する 参考: ワーク・マネージャーの移行 Copyright © 2023, Oracle and/or
its affiliates. All rights reserved. 15
1. 移行先の管理サーバに接続 2. 所有者の変更 3. リソースの移動 4. oracleユーザにスイッチ 9. 移行リソースの所有者変更
Copyright © 2023, Oracle and/or its affiliates. All rights reserved. 16 sudo mv source.* /home/oracle/ sudo su - oracle sudo chown oracle:oracle source.*
※「2. 移行元でdiscoverDomainコマンドの実行」 と同様の手順 ※「3. 移行先の管理サーバへファイルを転送」にてweblogic-deploy.zipも含めてファイルを移行した場合、unzipした後 に以下 3. の手順を行えばよい 1. JAVA_HOMEが設定されているかを確認
2. WDTのダウンロードとunzip 3. スクリプトの権限変更 10. 移行先の管理サーバにWDTをインストール Copyright © 2023, Oracle and/or its affiliates. All rights reserved. 17 echo $JAVA_HOME wget -qO- https://github.com/oracle/weblogic-deploy- tooling/releases/download/release-<バージョン>/weblogic- deploy.zip | $JAVA_HOME/bin/jar xv chmod +x weblogic-deploy/bin/*.sh
1. 環境変数の確認 2. updateDomainの実行 3. (任意) topologyセクションに変更を加える場合のみ再起動(restartDomainもしくはstop/startWebLogicの実行) が必要 11. updateDomain
の実行 Copyright © 2023, Oracle and/or its affiliates. All rights reserved. 18 echo $DOMAIN_HOME echo $MW_HOME weblogic-deploy/bin/updateDomain.sh ¥ -oracle_home $MW_HOME ¥ -domain_home $DOMAIN_HOME ¥ -model_file source.yaml ¥ -variable_file source.properties ¥ -archive_file source.zip ¥ -admin_url t3://$(hostname -i):9071
None