32 PDBの再配置

この章では、PDBの再配置機能について説明します。内容は次のとおりです。

概要

Enterprise Manager Pluggable Database as a Serviceでは、既存のプラガブル・データベースを新しいプラガブル・データベース・プールに移行するためのサポートが提供されるようになりました。この機能を使用すると、データベース管理者は、既存のプラットフォームが廃止された場合、PDBを新しいプラットフォームに移行できるようになります。

前提条件

  • 宛先CDBは、ターゲットPDBと同じプラガブル・データベース・プールの一部であるか、ターゲットPDBとは異なるPaaSインフラストラクチャ・ゾーンのプラガブル・データベース・プールの一部である必要があります。

  • 宛先プラガブル・データベース・プールは、ターゲットPDBに関連付けられたサービス・テンプレートに追加する必要があります。

  • ソースと宛先プラガブル・データベース・プールのバージョンは同じである必要があります。

PDBの再配置: EMCLIコマンドおよび入力ファイルのプロパティ

この項では、EMCLIコマンドを使用してPDBを再配置する方法について説明します。

$ emcli db_cloud_maintenance -relocateService –input_file=”data:<absolute_path_to_input_file”

入力ファイルのプロパティ:

SRC_PDB_TARGET_NAME=<EM Target name of the PDB to be relocated>
DEST_CDB_TARGET_NAME=<EM Target name of the destination Target Container DB, optional, required when SELECT_TARGET_OPTION=RUNTIME is not used>
DEST_CDB_TARGET_TYPE=<oracle_database|rac_database>
STORAGE_LOCATION=<Optional, Storage location for destination PDB>
DEST_WORK_DIR=<Optional, absolute path to temporary work directory at destination>
SELECT_TARGET_OPTION=RUNTIME<Optional, needed if destination CDB needs to be selected automatically>
DEST_CDB_POOL_NAME=<Optional, Destination Pluggable Database Pool name needed only when SELECT_TARGET_OPTION parameter is specified>
USE_SAME_STORAGE_LOCATION=Y<Optional, needed in case PDB relocation is to be performed without moving PDB datafiles, target PDB datafile(s) storage location must also be accessible to destination Container DB>
WORKLOADS=<Optional>, to be specified if during relocate, the instance needs to be associated with the different workload size. The given  workload  must exist in the Service template.>
PDBAAS_CUSTOM_PRE_SCRIPTS_URN=<Optional>, if not specified, pre script configured in the Service Template associated with this instance will be selected>
PDBAAS_CUSTOM_POST_SCRIPTS_URN=<Optional>, if not specified, post script configured in the Service Template associated with this instance will be selected> 

ノート:

記憶域の場所が入力ファイルに含まれていない場合は、関連するサービス・テンプレートから取得されます。

これは、EM_SSA_ADMINISTRATORロール権限を持つEM管理者により開始される管理者主導型の操作です。