スキーマの移行

スキーマのエラーを解決した後、pgAdmin、ToadEdge、PSQLクライアントなどのクライアントアプリケーションでスキーマを使用するか、スキーマをEDBPostgresAdvancedServerに移行できます。

注:EDBPostgresAdvancedServerでToadEdgeを使用する方法の詳細については、ToadEdge®forPostgresを参照してください。

スキーマを移行するには、次のオプションのいずれかを選択できます。に移行する:

  • 既存のオンプレミスEDBPostgresAdvancedServer

  • 新しいオンプレミスEDBPostgresAdvancedServer

  • EDBPostgresAdvancedServeronCloud

schema migration home page

スキーマ移行のホームページ

既存のオンプレミスEDBPostgresAdvancedServerホストへの移行

WindowsまたはLinuxプラットフォーム上の既存のオンプレミスEDBPostgresAdvancedServerにスキーマを移行できます。

Windowsでのスキーマの移行

  1. Existing on-premise EDB Postgres Postgres Advanced Server オプションを選択します:

existing epas on-prem home page

既存のオンプレミスEDBPostgresAdvancedServerホームページ

  1. 1つ以上のスキーマを選択して、EDBPostgresAdvancedServerに移行します。

existing epas on-prem select schemas

移行するスキーマの選択

注釈

スキーマの互換性が100%でない場合、次のようにバナーが表示されます。必要な支援が必要な場合は、 Contact Us フォームに記入してください。

existing epas contact us form

お問い合わせフォーム

  1. 評価されたスキーマをダウンロードします。

existing epas download assessed schemas

評価されたスキーマをダウンロード

  1. Windows をクリックします:

existing epas windows selection

Windowsオペレーティングシステムの選択

  1. スキーマをインポートするには、次のコマンドを実行します。

  • CLIで

\i c:\users\...\<project_name>.sql
  • cmd/shellで

edb-psql -f <project_name>.sql

注釈

代わりに pgAdmin を使用することもできます。

変換されたスキーマは、ターゲットサーバーに移行されます。

existing epas schema migrated successfully

成功した移行

Linuxでのスキーマの移行

Linux上の既存のオンプレミスEDBPostgresAdvancedServerにスキーマを移行するには、次の手順を実行します。

  1. Existing on-premise EDB Postgres Advanced Server オプションをクリックします:

existing epas home page_linux

既存のオンプレミスEDBPostgresAdvancedServerホームページ

  1. 1つ以上のスキーマを選択して、EDBPostgresAdvancedServerに移行します。

existing epas schema selection

移行するスキーマの選択

  1. 評価されたスキーマをダウンロードします。

existing epas downloading assessed schemas

評価されたスキーマをダウンロード

  1. Linux をクリックします:

existing epas selecting linux

Linuxオペレーティングシステムの選択

  1. スキーマをインポートするには、次の edb-psql クライアントコマンドを呼び出します:

    sudo su - enterprisedb
    edb-psql edb
    create database <database_name>;
    \\connect <database_name>
    \\i <project_name>.sql
    

注釈

オプションで、インポートに pgAdmin クライアントを使用できます。

変換されたスキーマは、ターゲットサーバーに移行されます。

existing epas successful schema migration

スキーマ移行の成功

新しいオンプレミスEDBPostgresAdvancedServerインストールへの移行

新しいEDBPostgresAdvancedServerをオンプレミスでWindowsまたはLinuxプラットフォームにインストールし、スキーマを移行できます。

Windowsでのスキーマの移行

Windowsで新しいオンプレミスEDBPostgresAdvancedServerにスキーマを移行するには、次の手順を実行します。

  1. New on-premise EDB Postgres Postgres Advanced Server オプションをクリックします。

new epas home page

新しいオンプレミスEDBPostgresAdvancedServerホームページ

  1. EDBPostgresAdvancedServerで移行する1つ以上のスキーマを選択します。

new epas select schemas

移行するスキーマの選択

  1. Windows オペレーティングシステムを選択します。

new epas installtion on Windows

Windowsオペレーティングシステムの選択

  1. Windows Installer をダウンロードします。

new epas windows installer

Windowsインストーラーのダウンロード

  1. インストール手順については、EDBPostgres™AdvancedServerInstallationGuideforWindowsをクリックしてください。

new epas windows installation guide

Windowsインストールガイドを表示

  1. 評価されたスキーマをダウンロードします。

new epas download assessed schemas

評価済みファイルのダウンロード

  1. 次のコマンドを実行して、スキーマをインポートできます。

    • CLIで

    \i c:\users\...\<project_name>.sql
    
    • cmd/shellで

    edb-psql -f <project_name>.sql
    
new epas importing schemas on windows

スキーマをEDBPostgresAdvancedServerにインポート

注釈

代わりに pgAdmin を使用することもできます。

スキーマがターゲットサーバーに移行されます。

new epas mig success

Linuxでのスキーマの移行

スキーマをLinuxのオンプレミスEDBPostgresAdvancedServerに移行するには、次の手順を実行します。

  1. New On-premise EDB Postgres Advanced Server オプションをクリックします。

migration portal home page

スキーマのホームページの移行

  1. EDBPostgresAdvancedServerで移行する1つ以上のスキーマを選択します。

migration portal home page

移行するスキーマの選択

  1. Linux オペレーティングシステムを選択します。

migration portal home page

Linuxオペレーティングシステムの選択

  1. 次のオプションのいずれかを選択して、EDBPostgresAdvancedServerをインストールできます。

    • リポジトリ

    • その他のオプション

    new epas schema selection

    Linuxリポジトリの選択

  2. インストール手順の詳細については、Linuxの場合は EDB Postgres™ Advanced Server Installation Guide をクリックしてください:

migration portal home page

Linuxインストールガイドの選択

  1. 評価されたスキーマをダウンロードします。

migration portal home page

評価されたスキーマのダウンロード

  1. スキーマをインポートするには、次のコマンドを実行します。

sudo su - enterprisedb
edb-psql edb
create database <database_name>;
\connect <database_name>
 \i <project_name>.sql
importing schemas on epas

スキーマをEDBPostgresAdvancedServerにインポート

注釈

代わりにpgAdminを使用することもできます。

変換されたスキーマは、ターゲットサーバーに移行されます。

migration portal home page

スキーマ移行の成功

クラウドへの移行

EDBPostgresAdvancedServerのスキーマをクラウドに移行するには、次の手順を実行します。

  1. EDB Postgres Advanced Server on Cloud オプションをクリックします:

cloud home page

クラウド上のEDBPostgresAdvancedServer

  1. 1つ以上のスキーマを選択して、EDBPostgresAdvancedServerに移行します。

epas cloud schema selection

移行するスキーマの選択

  1. クラウドプラットフォームを選択します。たとえば、 IBM Cloud:

cloud epas selecting cloud option

移行用のクラウドオプションの選択

  1. 新しいクラスターを起動するには、 Go to Cloud をクリックします:

epas cloud cluster

クラウドクラスターの起動

または、既存のクラスターを実行している場合は、 Next をクリックします。

  1. Connect ページで必要な接続の詳細を入力します:

epas cloud connection

クラウドクラスターへの接続

注釈

Edit Connection をクリックして、接続の詳細を変更し、接続の詳細を再テストできます。

  1. Test Connection をクリックして、接続の詳細を確認します:

verifying cloud connection details

接続の詳細を確認

  1. 接続が成功したら、 Next をクリックします:

cloud epas successful migration

成功した移行

変換されたスキーマは、ターゲットサーバーに移行されます。