Schema Migration¶
スキーマのエラーを解決した後、pgAdmin、ToadEdge、PSQLクライアントなどのクライアントアプリケーションでスキーマを使用するか、スキーマをEDB Postgres Advanced Serverに移行できます。
Note!! Note
Toad EdgeとEDB Postgres Advanced Serverの併用の詳細については、「 Toad Edge for Postgres 」を参照してください。
スキーマを移行するには、次のオプションのいずれかを選択できます。に移行する:
既存のオンプレミスEDB Postgres Advanced Server
新しいオンプレミスEDB Postgres Advanced Server EDB Postgres Advanced Server on Cloud
Schema migration home page¶
図3-14:スキーマ移行ページ*
</ div>
既存のオンプレミスEDB Postgres Advanced Serverホストへの移行¶
WindowsまたはLinuxプラットフォーム上の既存のオンプレミスEDB Postgres Advanced Serverにスキーマを移行できます。
Windowsでのスキーマの移行¶
Existing on-premises EDB Postgres Postgres Advanced Serverオプションを選択します。
Existing on-premises EDB Postgres Advanced Server home page¶
図3-15:既存のオンプレミスEDB Postgres Advanced Serverページ*
1つ以上のスキーマを選択して、 EDB Postgres Advanced Serverに移行します。
Selecting schemas for migration¶
図3-16:移行するスキーマの選択*
Noteスキーマの互換性が100%でない場合、次のようにバナーが表示されます。必要な支援が必要な場合は、``Contact Us``フォームに記入してください。!! Noteスキーマの互換性が100%でない場合、次のようにバナーが表示されます。必要な支援が必要な場合は、
Contact Usフォームに記入してください。
The Contact Us form¶
図3-17:お問い合わせフォーム*
3.評価されたスキーマをダウンロードします。
Download the assessed schemas¶
図3-18:評価済みスキーマのダウンロード*
Windowsをクリックします。
Selecting Windows operating system¶
図3-19: Windowsオペレーティングシステムの選択*
5.スキーマをインポートするには、次のコマンドを実行します。
CLIで
\i c:\users\...\<project_name>.sql
cmd /シェルで
edb-psql -f <project_name>.sql
Note代わりに``pgAdmin``を使用することもできます。!! Note代わりに
pgAdminを使用することもできます。
変換されたスキーマは、ターゲットサーバーに移行されます。
A successful migration¶
図3-20:成功した移行*
Linuxでのスキーマの移行¶
Linux上の既存のオンプレミスEDB Postgres Advanced Serverにスキーマを移行するには、次の手順を実行します。
Existing on-premises EDB Postgres Advanced Serverオプションをクリックします。
Existing on-premises EDB Postgres Advanced Server home page¶
図3-21:既存のオンプレミスEDB Postgres Advanced Serverページ*
1つ以上のスキーマを選択して、 EDB Postgres Advanced Serverに移行します。
Selecting schemas for migration¶
図3-22:移行するスキーマの選択*
3.評価されたスキーマをダウンロードします。
Download the assessed schemas¶
図3-23:評価済みスキーマのダウンロード*
Linuxをクリックします。
Selecting Linux operating system¶
図3-24:Linuxオペレーティングシステムの選択*
5.スキーマをインポートするには、次のedb-psqlクライアントコマンドを呼び出します。
sudo su - enterprisedb
edb-psql edb
create database <database_name>;
\\connect <database_name>
\\i <project_name>.sql
Noteオプションで、インポートに``pgAdmin``クライアントを使用できます。!! Noteオプションで、インポートに
pgAdminクライアントを使用できます。
変換されたスキーマは、ターゲットサーバーに移行されます。
A successful schema migration¶
図3-25:成功したスキーマ移行*
</ div>
新しいオンプレミスEDB Postgres Advanced Serverインストールへの移行¶
新しいEDB Postgres Advanced ServerをオンプレミスでWindowsまたはLinuxプラットフォームにWindows、スキーマを移行できます。
Windowsでのスキーマの移行¶
Windows上の新しいオンプレミスEDB Postgres Advanced Serverにスキーマを移行するには、次の手順を実行します。
New on-premises EDB Postgres Postgres Advanced Serverオプションをクリックします。
New on-premises EDB Postgres Advanced Server home page¶
図3-26:新しいオンプレミスEDB Postgres Advanced Serverページ*
EDB Postgres Advanced Serverで移行する1つ以上のスキーマを選択します。
Selecting schemas for migration¶
図3-27:移行するスキーマの選択*
Windowsオペレーティングシステムを選択します。
Selecting Windows operating system¶
図3-28: Windowsオペレーティングシステムの選択*
Windows Installerをダウンロードします。
Downloading Windows installer¶
図3-29: Windowsインストーラのダウンロード*
5.インストール手順については、EDB Postgres Advanced Server Installation Guide for Windowsをクリックします。
View Windows installation guide¶
図3-30:成功したスキーマ移行*
6.評価されたスキーマをダウンロードします。
Downloading the assessed file¶
図3-31:評価済みファイルのダウンロード*
7.次のコマンドを実行して、スキーマをインポートできます。
-CLIで
\i c:\users\...\<project_name>.sql
-cmd /シェルで
edb-psql -f <project_name>.sql
Importing schemas into EDB Postgres Advanced Server¶
図3-32: EDB Postgres Advanced Serverへのスキーマのインポート*
Note!! Note * 代わりに
pgAdminを使用することもできます。
スキーマがターゲットサーバーに移行されます。
</ figure>
図3-33: EDB Postgres Advanced Serverへのスキーマのインポート*
Linuxでのスキーマの移行¶
LinuxでスキーマをオンプレミスEDB Postgres Advanced Serverに移行するには、次の手順を実行します。
New On-premises EDB Postgres Advanced Serverオプションをクリックします。
Migrating schemas home page¶
図3-34:スキーマページの移行*
EDB Postgres Advanced Serverで移行する1つ以上のスキーマを選択します。
Selecting schemas for migration¶
図3-35:移行するスキーマの選択*
Linuxオペレーティングシステムを選択します。
Selecting Linux operating system¶
図3-36:Linuxオペレーティングシステムの選択*
4.次のオプションのいずれかを選択して、 EDB Postgres Advanced Serverをインストールできます。
-リポジトリ-その他のオプション

図3-37:Linuxリポジトリの選択
5.インストールプロシージャは、LinuxのEDB Postgres Advanced Server Installation Guideをクリックしてください。
Selecting Linux installation guide¶
図3-38:Linuxインストールガイドの選択*
6.評価されたスキーマをダウンロードします。
Downloading the assessed schemas¶
図3-39:評価済みスキーマのダウンロード*
7.スキーマをインポートするには、次のコマンドを実行します。
sudo su - enterprisedb
edb-psql edb
create database <database_name>;
\connect <database_name>
\i <project_name>.sql
Importing schemas into EDB Postgres Advanced Server¶
図3-40: EDB Postgres Advanced Serverへのスキーマのインポート*
Note!! Note * 代わりにpgAdminを使用することもできます。
変換されたスキーマは、ターゲットサーバーに移行されます。
A successful schema migration¶
図3-41:成功したスキーマ移行*
クラウドへの移行¶
EDB Postgres Advanced Serverのスキーマをクラウドに移行するには、次の手順を実行します。
EDB Postgres Advanced Server on Cloudオプションをクリックします。
EDB Postgres Advanced Server on Cloud¶
図3-42: EDB Postgres Advanced Server on Cloud *
1つ以上のスキーマを選択して、 EDB Postgres Advanced Serverに移行します。
Selecting schemas for migration¶
移行するスキーマの選択*
4.クラウドプラットフォームを選択します。例、IBM Cloud:
Selecting cloud option for migration¶
図3-43:移行のためのクラウドオプションの選択*
5.新しいクラスターを起動するには、Go to Cloudをクリックします。
Launching a cloud cluster¶
図3-44:クラウドクラスターの起動*
または、既存のクラスターを実行している場合は、Nextをクリックします。
Connectページで必要な接続の詳細を入力します。
Connecting to the cloud cluster¶
図3-45:クラウドクラスターへの接続*
Note``Edit Connection``をクリックして、接続の詳細を変更し、接続の詳細を再テストできます。!! Note
Edit Connectionをクリックして、接続の詳細を変更し、接続の詳細を再テストできます。
Test Connectionをクリックして、接続の詳細を確認します。
Verify the connection details¶
図3-46:接続の詳細を確認する*
8.接続が成功したら、Nextをクリックします。
A successful migration¶
図3-47:成功した移行*
変換されたスキーマは、ターゲットサーバーに移行されます。