{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Teradata Import Integration","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"teradata-import-integration","__idx":0},"children":["Teradata Import Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Teradata統合により、Teradata ServerからTreasure Dataへのデータのインポートが可能になります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure Dataの基本的な知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Teradata SQLの基本的な知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["実行中のTeradataインスタンス"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"新しい認証を作成する","__idx":2},"children":["新しい認証を作成する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Catalog"]},"に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Teradata"]},"を検索して選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2025-09-22-at-13.54.24.5d30937afd0315366a6d3a21b90713a0f11faa37f019e9dea6df06e1112faf9e.de62830b.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ダイアログが開きます。",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2025-09-22-at-13.59.50.f6b3ebecf738cd695dbc99f011ca71868b5c579bfe554bfe41f4ccdcdad8570d.743d8bf4.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定を入力します。"]},{"$$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":"strong","attributes":{},"children":["Parameters"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Host"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Teradataデータベースのホスト情報、例：IPアドレス。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Port"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["インスタンスの接続ポート。Teradataのデフォルトは1025です。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Username"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Teradataデータベースに接続するためのユーザー名。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Password"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Teradataデータベースに接続するためのパスワード。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OPTIONS"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["JDBC Connection options"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Teradataデータベースが必要とする特別なJDBC接続。次のJDBCオプションは無視されるため追加しないでください： - DBS_PORT（port設定を使用） - DATABASE（database設定を使用） - USER（user設定を使用） - PASSWORD（password設定を使用） - LOGMECH（現在TD2のみサポート）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["connection timeout"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ソケット接続のタイムアウト（秒単位）（デフォルトは300）。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Network timeout"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ネットワークソケット操作のタイムアウト（秒単位）（デフォルトは1800）。0はタイムアウトなしを意味します。"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["接続の名前を入力し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]},"を選択します。"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"クエリを検証する","__idx":3},"children":["クエリを検証する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["SQLクエリからデータをロードする場合は、クエリが有効なSELECTステートメントであることを確認してください。複数のステートメントはサポートされていません。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"新しい転送を作成する","__idx":4},"children":["新しい転送を作成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["接続を作成すると、自動的にAuthenticationsタブに移動します。作成した接続を探し、Sourceを選択します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"インポートタイプ","__idx":5},"children":["インポートタイプ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インポートのソースタイプを選択します。テーブル/ビュー全体をロードする（",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["table/view loading"]},"）か、SQLの結果をロードする（",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["query loading"]},"）かを選択します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"tableview-loading","__idx":6},"children":["Table/View Loading"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["テーブル/ビュー全体をロードする場合は、「Table/View」を選択し、ロードする「Table/View name」を入力します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2025-09-22-at-14.13.38.1ca1d9f600bea34154d7dcd98acee705314651e00e74e3e77ba2e57ba15cdcac.743d8bf4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"query-loading","__idx":7},"children":["Query Loading"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["SQLの結果をロードする場合は、「Query statement」を選択し、「SQL statement」にSQLクエリを入力します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["転送を作成する前に、クエリが有効なSELECTクエリであり、単一のステートメントであることを確認してください。QueryとIncrementalからデータを取得する場合、クエリステートメントはORDER BY句を除外する必要があります"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2025-09-22-at-14.13.46.1dd0f43843aed8ba2988e2b9768acb7cf8df9df8c5aab1d434f79845b46dbc83.743d8bf4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"incremental-loading","__idx":8},"children":["Incremental Loading"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Incremental Loadingは、自動増分IDカラムやタイムスタンプカラムなど、増加する一意のカラムを使用して、前回の実行後の新しいレコードのみをロードできます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["これを有効にするには、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Incremental Loading"]},"をチェックし、「Incremental Column Name」に増分するカラム名を指定します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["インクリメンタルカラムとしてサポートされているのは、INTEGERまたはBIGINT型とTIMESTAMP型のみです。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この値からインクリメンタルローディングを開始する場合は、Start Afterを入力します。インクリメンタルカラムがTimestamp型の場合、入力はyyyy-MM-dd'T'HH:mm:ss.SSSSSS形式のTimestamp文字列である必要があり、値はUTCタイムゾーンとして扱われます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"仕組み","__idx":9},"children":["仕組み"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このコネクタは、インクリメンタルカラムで順序付けられた最新のレコードである「last record」を記録します。次の実行では、last recordを使用して次のルールで構築されたクエリを実行してレコードをロードします："]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["テーブルローディングでは、すべてのフィールドがWHERE句で選択されます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT   * FROM   `${dataset}.${table}` WHERE   ${incremental_column} > ${value_of_last_record}\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリローディングでは、生のクエリがWHERE句でラップされます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT   * FROM   (${query}) embulk_incremental_ WHERE   ${incremental_column} > ${value_of_last_record}\n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-settings","__idx":10},"children":["Data Settings"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"を選択します。Data Settingsページが開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["必要に応じてデータ設定を編集するか、このページをスキップします。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2025-10-01-at-11.20.59.d819cf0f8af4a40ce0c72b848885d73b9d4ea020884c6da2ae5ae6d711a3e050.de62830b.png","alt":""},"children":[]}]},{"$$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":"strong","attributes":{},"children":["Parameters"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Rows per batch"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["非常に大きなデータセットはメモリの問題を引き起こし、その結果ジョブが失敗する可能性があります。このフラグを使用して、インポートジョブを行数でバッチに分割し、メモリの問題やジョブの失敗の可能性を減らします。無制限の場合は0に設定します。それ以外の場合、値は0より大きい必要があります"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-preview","__idx":11},"children":["Data Preview"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データソースを設定した後、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"を選択し、次に",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"をクリックして",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Generate Preview"]},"をクリックすると、ソースからのサンプル結果が表示されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2025-06-19-at-20.01.44.dcf46bfcd8a375d6920bf72da305e9137a1b2f13edb80368a3465a32fed59d70.743d8bf4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"transfer-to","__idx":12},"children":["Transfer to"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["プレビューから",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next"]},"を選択すると、データを転送するTreasure Dataのデータベースとテーブルを選択するように求められます。新しいデータベースを作成する場合は、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create new database"]},"を選択してデータベースに名前を付けます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create new table"]},"でも同様の手順を実行します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["既存のテーブルにレコードを追加するか、既存のテーブルを置き換えるかを選択します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["デフォルトのキーとは異なるパーティションキーシードを設定する場合は、「Partition key seed」から選択できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2025-06-19-at-20.04.48.211e037cc3ab299c70ea11abc8fc249b8df092b3e25887c57ab4b5d60b2a18b4.743d8bf4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"schedule","__idx":13},"children":["Schedule"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["SCHEDULEセクションでは、インポートジョブを1回限りの転送として指定するか、自動化された定期的な転送をスケジュールできます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["転送が実行された後、Databasesタブで転送の結果を確認できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"appendix","__idx":14},"children":["Appendix"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-conversion","__idx":15},"children":["Data Conversion"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Teradataのデータ型は、次の表に示すように、対応するTreasure Dataの型に自動的に変換されます。テーブル/ビューまたはクエリ結果のスキーマにサポートされていない型を含めると、エラーが発生します。"]},{"$$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":"Teradata Data Type"},"children":["Teradata Data Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"TD Data Type"},"children":["TD Data Type"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BYTEINT"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Long"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SMALLINT"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Long"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["INTEGER"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Long"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BIGINT"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Long"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["FLOAT"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Double"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DECIMAL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["CHAR"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["VARCHAR"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BYTE"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unsupport"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["VARBYTE"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unsupport"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["DATE"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TIME"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TIMESTAMP"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Timestamp"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["CLOB"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["BLOB"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Unsupport"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Structured UDT"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["INTERVAL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["XML"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["PERIOD"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["GEO"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"quotas-and-limits","__idx":16},"children":["Quotas and Limits"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Teradata Serverのクォータと制限。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cliでteradataコネクタを使用する","__idx":17},"children":["CLIでTeradataコネクタを使用する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["必要に応じて、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["TD Toolbelt"]},"を介してコネクタを使用できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CLIで",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tools/cli-and-sdks/quickstart"},"children":["TD Toolbelt"]},"をセットアップします。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"設定ファイルを作成する","__idx":18},"children":["設定ファイルを作成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ここでは「config.yml」と呼ばれる設定YAMLファイルを作成します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例：bigintegerデータ型のインクリメンタルカラムとlast_recordを設定したテーブルからのインポート"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n   type: teradata\n   host: xxx\n   options: {\"xxx\": \"xxx\"}\n   connect_timeout:300\n   socket_timeout:1800\n   user: xxx\n   port: 1025\n   password: xxxx\n   database: xxxxx\n   source_type: table_view\n   table: xxxx\n   fetch_rows: 10000\n   incremental: true\n   incremental_column: big_int_column\n   last_record: 100\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例：timestampデータ型のインクリメンタルカラムとlast_recordを設定したQueryからのインポート"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n   type: teradata\n   host: xxx\n   options: {\"xxx\": \"xxx\"}\n   connect_timeout:300\n   socket_timeout:1800\n   user: xxx\n   port: 1025\n   password: xxxx\n   database: xxxxx\n   source_type: query\n   query: |\n      SELECT * FROM tbl;  fetch_rows: 10000  incremental: true  incremental_column: created_at  last_record: '2025-08-26T12:10:42.010000'\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"parameters","__idx":19},"children":["Parameters"]},{"$$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":"Name"},"children":["Name"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":["Value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Default Value"},"children":["Default Value"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":["Required"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["コネクタタイプ"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["teradata"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["host"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Teradataサーバーホスト"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["port"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Teradataサーバーポート"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1025"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["options"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Teradata JDBCオプション"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string (ハッシュオブジェクト形式)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["connect_timeout"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Teradataログオンタイムアウト"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["300"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["socket_timeout"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ネットワークソケット操作のタイムアウト"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["number"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1800"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["database"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Teradataデータベース"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["source_type"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ソースインポート"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サポート値： - table_view - query"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["table"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["table"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["テーブル名"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["source_typeがtable_viewの場合は必須"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["query"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SQLステートメント"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["source_typeがqueryの場合は必須"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["incremental"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["インクリメンタルローディングを有効にするかどうか"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["true/false"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["false"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["incremental_column"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["インクリメンタルローディング用のカラム名 INTEGER、BIGINTまたはTIMESTAMPデータ型のみサポート"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["incrementalがtrueの場合は必須"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["last_record"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["この値からインクリメンタルインポートを開始します。カラムインクリメンタルがtimestampデータ型の場合、この値はyyyy-MM-dd'T'HH:mm:ss.SSSSSS形式に従う必要があり、UTCタイムゾーンとして扱われます"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["N/A"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"オプションpreview","__idx":20},"children":["（オプション）Preview"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["設定ファイルを検証するために、td ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tools/cli-and-sdks/api#td-connector-preview"},"children":["td connector:preview"]},"コマンドを実行します"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:preview config.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しいコネクタセッションを作成する","__idx":21},"children":["新しいコネクタセッションを作成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tools/cli-and-sdks/api#td-connector-create"},"children":["td connector:create"]},"を実行します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次の例では、Teradataコネクタを使用した日次インポートセッションが作成されます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td connector:create daily_teradata_import \\\n\"10 0 * * *\" td_sample_db td_sample_table config.yml\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"data-partition-key","__idx":22},"children":["Data Partition Key"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["コネクタセッションでは、結果データにデータパーティションキーとして使用される少なくとも1つのタイムスタンプカラムが必要であり、デフォルトでは最初のタイムスタンプカラムがキーとして選択されます。カラムを明示的に指定する場合は、「",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["--time-column"]},"」オプションを使用します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"$ td connector:create --time-column created_at \\\ndaily_teradata_import ...\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["結果データにタイムスタンプカラムがない場合は、次のようにフィルタ設定を追加して「",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["time"]},"」カラムを追加します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"in:\n   type: teradata\n   ...\nfilters:\n   - type: add_time\n     from_value:\n       mode: upload_time\n     to_column:\n       name: time\nout:\n   type: td\n","lang":"yaml"},"children":[]}]},"headings":[{"value":"Teradata Import Integration","id":"teradata-import-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"新しい認証を作成する","id":"新しい認証を作成する","depth":2},{"value":"クエリを検証する","id":"クエリを検証する","depth":2},{"value":"新しい転送を作成する","id":"新しい転送を作成する","depth":2},{"value":"インポートタイプ","id":"インポートタイプ","depth":3},{"value":"Table/View Loading","id":"tableview-loading","depth":3},{"value":"Query Loading","id":"query-loading","depth":3},{"value":"Incremental Loading","id":"incremental-loading","depth":3},{"value":"仕組み","id":"仕組み","depth":3},{"value":"Data Settings","id":"data-settings","depth":3},{"value":"Data Preview","id":"data-preview","depth":3},{"value":"Transfer to","id":"transfer-to","depth":3},{"value":"Schedule","id":"schedule","depth":3},{"value":"Appendix","id":"appendix","depth":2},{"value":"Data Conversion","id":"data-conversion","depth":3},{"value":"Quotas and Limits","id":"quotas-and-limits","depth":3},{"value":"CLIでTeradataコネクタを使用する","id":"cliでteradataコネクタを使用する","depth":2},{"value":"設定ファイルを作成する","id":"設定ファイルを作成する","depth":3},{"value":"Parameters","id":"parameters","depth":3},{"value":"（オプション）Preview","id":"オプションpreview","depth":4},{"value":"新しいコネクタセッションを作成する","id":"新しいコネクタセッションを作成する","depth":3},{"value":"Data Partition Key","id":"data-partition-key","depth":3}],"frontmatter":{"seo":{"title":"Teradata Import Integration"}},"lastModified":"2026-03-10T06:17:28.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/teradata-import-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}