{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["img"]},"type":"markdown"},"seo":{"title":"Data Tank 1.0 から 2.0 への移行","description":"Treasure AI Data Tank から Data Tank 2.0 への移行ガイド。機能の違い、Integration の変更、Authentication の更新について説明します。","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"data-tank-10-から-20-への置き換え","__idx":0},"children":["Data Tank 1.0 から 2.0 への置き換え"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この記事では、Data Tank を Data Tank 2.0 に置き換える際の Integration に関する変更点について説明します。Treasure Data はセキュリティと機密データの保護への取り組みの一環として、手順を開始する前にドキュメント全体をご確認いただくことを推奨します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"data-tank-と-data-tank-20-の機能の違い","__idx":1},"children":["Data Tank と Data Tank 2.0 の機能の違い"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このセクションでは、Data Tank と Data Tank 2.0 の機能の差異について説明します。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"機能"},"children":["機能"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"ステータス"},"children":["ステータス"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Data Tank 1.0"},"children":["Data Tank 1.0"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Data Tank 2.0"},"children":["Data Tank 2.0"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エンドポイント"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["差異あり"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["静的 IP アドレス"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ライタエンドポイント URI。関連する IP アドレスは固定できません"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データベース名"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["差異あり"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["datatank"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["aciddb"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["アクセス制御（ロールとスキーマ）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["差異あり"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Treasure Data が ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tank_user"]}," および ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tank_integration_user"]}," アカウントを提供"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ユーザーとスキーマは ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Management UI"]}," で作成（アカウントは ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Access Keys"]}," と呼ばれます）。アクセス制御は UI 内で管理"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DDL ステートメント"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["差異あり"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["追加コマンド不要"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DDL 実行前に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SET ROLE _owner_aciddb_<schema_name>"]}," を実行する必要があります"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SSL 暗号化"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["差異あり"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["強制されない"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["すべての接続で SSL が必要"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["メンテナンスウィンドウ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["差異あり"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["定期的なウィンドウなし。必要に応じてサポートが調整"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["お客様が週次メンテナンスウィンドウを定義。その時間帯にパッチが適用されます（",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/control-panel/datatank/understanding-data-tank-2-0-maintenance"},"children":["Data Tank 2.0 のメンテナンスについて"]},"を参照）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["IP Allowlist のサイズ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["差異あり"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["制限なし"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["最大 200 件の IP アドレス"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エンジン動作の差異"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["差異あり"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["PostgreSQL 12 ベース"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Aurora PostgreSQL 12.13 ベース。一部エンジンの差異があります"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["カスタムポート番号"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["非対応"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["デフォルト 5432。サポート経由でカスタマイズ可能"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ポート 5432 に固定"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ポートフォワーディング"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["非対応"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サポートがポート 80、443、または 5439 を追加可能"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["非対応"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["IPv6 Allowlist"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["非対応"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["IPv6 をサポート"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["IPv6 は非対応"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["拡張機能"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["非対応"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["plpgsql"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pgcrypto"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cstore_fdw"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mysql_fdw"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tds_fdw"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["foreign_table_exposer"]}," がデフォルトでインストール済み"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["plpgsql"]}," と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pgcrypto"]}," のみ利用可能。",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SERVER"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FOREIGN DATA WRAPPER"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["FOREIGN TABLE"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["USER MAPPING"]}," オブジェクトは移行できません"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Management UI"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["新機能"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["利用不可"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["設定、ロール、スキーマの管理およびモニタリングのための Web インターフェース"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ログ収集"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["新機能"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["利用不可"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["PostgreSQL ログを ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Management UI"]}," で確認可能"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["モニタリング"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["新機能"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DataDog リンク経由でダッシュボードを提供"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Management UI"]}," でダッシュボードを直接利用可能"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Data Tank 2.0（Aurora PostgreSQL 12.13）でサポートされている拡張機能の完全なリストについては、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.aws.amazon.com/AmazonRDS/latest/AuroraPostgreSQLReleaseNotes/AuroraPostgreSQL.Extensions.html#AuroraPostgreSQL.Extensions.12"},"children":["AWS Aurora PostgreSQL 拡張機能ドキュメント"]},"を参照してください。"]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/migration-from-data-tank-1-0-to-2-0-2024-04-16.bade5080991c01a24b3a336144f24f449f1a256aafadc04a7ab7ed4038ac9e21.f97e5221.png","alt":"Data Tank 1.0 から 2.0 への移行概要","framed":false,"withLightbox":true},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Management UI では、データベース設定の構成、スキーマおよびアクセスキーの作成・管理、ログやダッシュボードの確認を単一のインターフェースから行うことができます。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"レガシーモニタリング"},"children":["レガシーモニタリング"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Management UI モニタリング"},"children":["Management UI モニタリング"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/datadogmonitoring.aa8164483e488c4971542e235e70da5215549003e3099c9e97f2a76af31c11d0.f97e5221.png","alt":"レガシー DataDog モニタリングダッシュボード","framed":false,"withLightbox":true},"children":[]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/migration-from-data-tank-1-0-to-2-0-2024-04-16-2.4f0928af37c1403009a75ba08db9bf6a8f55ba8085a6b3baa22bff33034a0229.f97e5221.png","alt":"Management UI モニタリングダッシュボード","framed":false,"withLightbox":true},"children":[]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"data-tank-の-integration-を-data-tank-20-の-integration-に変更する","__idx":2},"children":["Data Tank の Integration を Data Tank 2.0 の Integration に変更する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の 2 つの機能を使用して、Data Tank からレコードをインポートしたり、Hive/Trino クエリの結果を Data Tank にエクスポートしたりすることができます。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/postgresql-import-integration"},"children":["PostgreSQL からのインポート"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/int/postgresql-export-integration"},"children":["PostgreSQL へのエクスポート"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["これらの Integration を使用するには、ほとんどの場合、事前に Authentication を作成する必要があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"data-tank-の-authentications","__idx":3},"children":["Data Tank の Authentications"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Authentications"]}," がデフォルトで用意されています。以下の両方の ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Authentications"]}," において、データベースユーザーとして ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tank_integration_user"]}," が使用されます。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["datatank"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["datatank_cstore"]}]}]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/migration-from-data-tank-1-0-to-2-0-2024-04-10-2.fcbf369e85e3caa08ebc1749ba47fdc7132c321122db485c9add5d9ac44da233.f97e5221.png","alt":"Data Tank のデフォルト Authentications","framed":false,"withLightbox":true},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ユーザー定義の Authentications を作成することもできます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-tank-20-の-authentications","__idx":4},"children":["Data Tank 2.0 の Authentications"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Authentications はデフォルトでは用意されていません。新しい Authentications を作成する必要があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-tank-からのインポート","__idx":5},"children":["Data Tank からのインポート"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Data Tank からインポートするには、Bulk Load ジョブを実行する必要があります。このタイプのジョブを実行するには、以下のいずれかを使用します。Data Tank を Data Tank 2.0 に置き換える場合は、インポート元を Data Tank から Data Tank 2.0 に変更する必要があります。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Sources（Treasure コンソール）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["CLI（Toolbelt、Workflow の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td_load>"]}," オペレーター）"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"sources","__idx":6},"children":["Sources"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Data Tank 用の既存の ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Sources"]}," がある場合、Treasure コンソールで Authentication に接続されている Sources を以下のように確認できます。画像の赤い矢印は、",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["databank"]}," という名前の Authentication に関連付けられている Sources の数を指しています。"]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/migration-from-data-tank-1-0-to-2-0-2024-04-10-1.12586b5e3f7b3dc023279740ce5d4eace1b20a002d1c174db96dfe12901e5003.f97e5221.png","alt":"Treasure コンソールで Authentication に接続されている Sources","framed":false,"withLightbox":true},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["既存の Source が Data Tank 2.0 からインポートする場合、各 Source の Authentication は置き換えられないため、Data Tank 2.0 用の Authentication に関連付けられた新しい Source が必要です。Data Tank 2.0 からインポートする新しい Source を作成する際は、既存の Source のスケジュール実行を停止することを推奨します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"clitd-toolbelt","__idx":7},"children":["CLI（TD Toolbelt）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Authentication を使用して Plazma DB にインポートするために CLI を使用する場合、以下のように YAML ファイルで ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td_authentication_id"]}," オプションを使用します。インポート元を変更するには、このオプションに設定されている Authentication ID を変更する必要があります。また、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["database"]}," オプションなど他のオプションも変更する必要があります。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: postgresql\n  td_authentication_id: <your_authentication_id>\n  ...\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["YAML ファイルで ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td_authentication_id"]}," オプションを使用していない場合、以下の例のように Authentication の代わりに Data Tank の認証情報が指定されています。その場合は、Data Tank 2.0 の認証情報に置き換えてください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n  type: postgresql\n  host: xx.xxx.xxx.xxx\n  user: tank_integration_user\n  password: xxxxx\n  ...\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"hivetrino-の結果を-data-tank-にエクスポートする","__idx":8},"children":["Hive/Trino の結果を Data Tank にエクスポートする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の機能のいずれかを使用して、Hive/Trino ジョブの結果を Data Tank にエクスポートできます。これらの機能を使用して Data Tank にエクスポートしている場合は、エクスポート先を Data Tank 2.0 に変更する必要があります。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソールのクエリエディター"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Workflow の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td_run>"]}," オペレーター"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Workflow の ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td>"]}," オペレーター"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["CLI（Toolbelt）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["REST API"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"treasure-コンソールのクエリエディター","__idx":9},"children":["Treasure コンソールのクエリエディター"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下のように ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export Results"]}," を選択してエクスポート設定を構成できます。次に、既存の設定を置き換えるために新しい ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Authentication"]}," で再設定する必要があります。既存のエクスポート設定を削除したら、Data Tank 2.0 用の ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Authentication"]}," を使用して新しいエクスポート設定を行ってください。"]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/migration-from-data-tank-1-0-to-2-0-2024-04-16-3.2ed05744854cbe023aa3ae20f4ba2eac2eb286bd5efc31e5d20f93707fe2cd6e.f97e5221.png","alt":"クエリエディターでの Export Results 設定","framed":false,"withLightbox":true},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["DDL が必要な場合は、以下のように ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Set Role"]}," オプションに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["_owner_<database_name>_<schema_name>"]}," を設定する必要があります。"]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/setroleaciddb.9b26bc3e92b291ebfdf78fa6fb46bb8a61d22a3888be9561a7403997d55e6266.f97e5221.png","alt":"DDL 用の Set Role オプション設定","framed":false,"withLightbox":true},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"workflow-の-td_run-オペレーター","__idx":10},"children":["Workflow の td_run> オペレーター"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このワークフローオペレーターは既存の保存済みクエリを呼び出します。そのため、クエリエディターの場合と同じ操作を行う必要があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"workflow-の-td-オペレーター","__idx":11},"children":["Workflow の td> オペレーター"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このワークフローオペレーターでは、以下のように ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["result_connection"]}," パラメーターに ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Authentication"]}," 名を指定します。このパラメーターを Data Tank 2.0 用の ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Authentication"]}," に置き換えるとともに、他のパラメーターも変更してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+export_task:\n  td>: queries/sample.sql\n  result_connection: data_tank # Authentication 名\n  result_settings:\n    database: datatank\n    table: ...\n    ...\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["また、DDL が必要な場合は、以下のように ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["set_role"]}," オプションを指定する必要があります。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+export_task:\n  td>: queries/sample.sql\n  result_connection: <your_authentication_name>\n  result_settings:\n    database: aciddb\n    table: ...\n    schema: <schema_name>\n    set_role: _owner_aciddb_<schema_name>\n    ...\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["result_connection"]}," に Authentication を指定しない場合は、以下のように ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["result_connection"]}," と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["result_settings"]}," の代わりに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["result_url"]}," パラメーターを使用してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"+export_task:\n  td>: queries/sample.sql\n  result_url: postgresql://tank_integration_user:xxx@......\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この場合、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["result_url"]}," パラメーターの値を変更してください。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["また、DDL ステートメントが必要な場合は、クエリパラメーターとして ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["set_role=_owner_aciddb_<schema_name>"]}," を追加してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"エクスポート用-clitoolbelt","__idx":12},"children":["エクスポート用 CLI（Toolbelt）"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CLI では、エクスポート情報を URL 形式で指定します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["たとえば、以下のように ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td query"]}," コマンドを使用してクエリの結果を Data Tank にエクスポートできます。エクスポート情報を ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-r"]}," オプションに直接指定するため、Data Tank 2.0 の設定を指定してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query -d kazzy_test -w -r \"postgresql://tank_integration_user:<password>@<ip_address>/datatank/<table_name>?mode=replace\" \"SELECT 1 AS col1;\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"workflow-の-pg-オペレーターを使用して-data-tank-に接続する","__idx":13},"children":["Workflow の pg> オペレーターを使用して Data Tank に接続する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["以下の例のように、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pg>"]}," オペレーターを使用して Workflow から Data Tank で任意のクエリステートメントを実行できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"_export:\n  pg:\n    host: ....\n    port: 5432\n    database: datatank\n    user: tank_integration_user\n    schema: public\n\n+access_data_tank:\n  pg>: queries/sample.sql\n  ...\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Data Tank 2.0 でクエリステートメントを実行するには、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pg>"]}," オペレーターのオプションに設定されている値を変更する必要があります。DDL を使用する場合は、DDL ステートメントの前に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SET ROLE"]}," ステートメントを追加する必要があります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"サードパーティツールを使用して-data-tank-に接続する","__idx":14},"children":["サードパーティツールを使用して Data Tank に接続する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["サードパーティツールを使用して Data Tank に接続するには、ツールに接続情報を指定します。接続情報を Data Tank 2.0 のものに置き換えてください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"参考資料","__idx":15},"children":["参考資料"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/control-panel/datatank/about-data-tank-2-0"},"children":["Data Tank 2.0 について"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/control-panel/datatank/about-integrating-data-tank-2-0-with-plazma-db"},"children":["Data Tank 2.0 と Plazma DB の Integration"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/control-panel/datatank/understanding-data-tank-2-0-maintenance"},"children":["Data Tank 2.0 のメンテナンスについて"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/control-panel/datatank/managing-data-tank-2-0-with-the-management-ui"},"children":["Management UI を使用した Data Tank 2.0 の管理"]}]}]}]},"headings":[{"value":"Data Tank 1.0 から 2.0 への置き換え","id":"data-tank-10-から-20-への置き換え","depth":1},{"value":"Data Tank と Data Tank 2.0 の機能の違い","id":"data-tank-と-data-tank-20-の機能の違い","depth":2},{"value":"Data Tank の Integration を Data Tank 2.0 の Integration に変更する","id":"data-tank-の-integration-を-data-tank-20-の-integration-に変更する","depth":2},{"value":"Data Tank の Authentications","id":"data-tank-の-authentications","depth":2},{"value":"Data Tank 2.0 の Authentications","id":"data-tank-20-の-authentications","depth":3},{"value":"Data Tank からのインポート","id":"data-tank-からのインポート","depth":3},{"value":"Sources","id":"sources","depth":3},{"value":"CLI（TD Toolbelt）","id":"clitd-toolbelt","depth":3},{"value":"Hive/Trino の結果を Data Tank にエクスポートする","id":"hivetrino-の結果を-data-tank-にエクスポートする","depth":2},{"value":"Treasure コンソールのクエリエディター","id":"treasure-コンソールのクエリエディター","depth":3},{"value":"Workflow の td_run> オペレーター","id":"workflow-の-td_run-オペレーター","depth":3},{"value":"Workflow の td> オペレーター","id":"workflow-の-td-オペレーター","depth":3},{"value":"エクスポート用 CLI（Toolbelt）","id":"エクスポート用-clitoolbelt","depth":3},{"value":"Workflow の pg> オペレーターを使用して Data Tank に接続する","id":"workflow-の-pg-オペレーターを使用して-data-tank-に接続する","depth":2},{"value":"サードパーティツールを使用して Data Tank に接続する","id":"サードパーティツールを使用して-data-tank-に接続する","depth":2},{"value":"参考資料","id":"参考資料","depth":2}],"frontmatter":{"seo":{"title":"Data Tank 1.0 から 2.0 への移行","description":"Treasure AI Data Tank から Data Tank 2.0 への移行ガイド。機能の違い、Integration の変更、Authentication の更新について説明します。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/control-panel/datatank/replacing-data-tank-1-0-with-2-0","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}