{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"ジョブのデータベースを選択する","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":"ジョブのデータベースを選択する","__idx":0},"children":["ジョブのデータベースを選択する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data の各ジョブにはデータベースがあります。ジョブとデータベースの間には1対1の対応関係があります。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure コンソール"]}," を開きます。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Jobs"]}," に移動します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2023-5-9_13-39-38.f0d4dc509ab56031e80acf68b171a69ad7af376059433355552602f4074daa78.b40d6bf5.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ジョブを選択し、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Details"]}," を選択します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2023-5-9_13-46-54.74dc76645d9fce64c194ec67695c47d0bbd00235ec4b9c88f2712ab632cf5a31.b40d6bf5.png","alt":""},"children":[]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ジョブアクティビティへのアクセス許可","__idx":1},"children":["ジョブアクティビティへのアクセス許可"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ジョブアクティビティを表示するには、データベース権限が必要です。権限の付与や取り消しには注意が必要です。例えば、あるユーザーにクエリジョブの結果を見せたくない場合は、そのジョブのデータベースへの権限をユーザーに付与しないでください。ただし、クエリが参照するデータベースへの権限のみをユーザーから取り消した場合でも、ユーザーがジョブのデータベースに対する表示権限を持っている限り、ジョブの結果は表示できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"hivepresto-ジョブのデータベースを選択する","__idx":2},"children":["Hive/Presto ジョブのデータベースを選択する"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"treasure-コンソール-での-hivepresto-ジョブ","__idx":3},"children":["Treasure コンソール での Hive/Presto ジョブ"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソール を開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Queries"]}," に移動します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2023-5-10_12-27-57.b627946fe2eb565e192b0f51b3f7540eedc942f72c63bf35883fcad176e272fa.b40d6bf5.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ジョブのデータベースを選択します。"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["選択されたデータベースは、クエリステートメントのデータベースのデフォルトになります。選択されたデータベース配下のテーブルを参照する際は、'... FROM ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<database_name>"]},".",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<table_name>"]},"...' の代わりに '... FROM ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<table_name>"]},"...' のようにデータベース名を省略できます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"workflow-経由での-hivepresto-ジョブ","__idx":4},"children":["Workflow 経由での Hive/Presto ジョブ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Workflow 経由で Hive/Presto ジョブを実行する際、td>: オペレーターでジョブのデータベースを指定できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["[Copy Code](<javascript:void(0)>)Code"]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["+run_query:"," ","td>:"," ","query: \"SELECT * FROM sample_datasets.nasdaq LIMIT 1;\""," ","database: blog_test"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"バルクロードジョブでのデータベースの選択","__idx":5},"children":["バルクロードジョブでのデータベースの選択"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["バルクロードジョブでは、データベースがインポートの宛先となります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"treasure-コンソール-でのバルクロードジョブ","__idx":6},"children":["Treasure コンソール でのバルクロードジョブ"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure コンソール"]}," を開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub"]}," > ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Sources"]}," に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Placement を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データベースを選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2023-5-10_13-28-25.09f063aed6c61ea9c52e9f8f752033c4b7896b727ad9ae32007947d79b89f30e.b40d6bf5.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"workflow-経由でのバルクロードジョブ","__idx":7},"children":["Workflow 経由でのバルクロードジョブ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Workflow 経由でバルクロードジョブを実行する際、td_load>: オペレーターでジョブのデータベースを指定できます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["[Copy Code](<javascript:void(0)>)Code"]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["+import_bulk_load:"," ","td_load>: config/import.yml"," ","database: blog_test"," ","table: dest_table"]}]},"headings":[{"value":"ジョブのデータベースを選択する","id":"ジョブのデータベースを選択する","depth":1},{"value":"ジョブアクティビティへのアクセス許可","id":"ジョブアクティビティへのアクセス許可","depth":2},{"value":"Hive/Presto ジョブのデータベースを選択する","id":"hivepresto-ジョブのデータベースを選択する","depth":2},{"value":"Treasure コンソール での Hive/Presto ジョブ","id":"treasure-コンソール-での-hivepresto-ジョブ","depth":3},{"value":"Workflow 経由での Hive/Presto ジョブ","id":"workflow-経由での-hivepresto-ジョブ","depth":3},{"value":"バルクロードジョブでのデータベースの選択","id":"バルクロードジョブでのデータベースの選択","depth":2},{"value":"Treasure コンソール でのバルクロードジョブ","id":"treasure-コンソール-でのバルクロードジョブ","depth":3},{"value":"Workflow 経由でのバルクロードジョブ","id":"workflow-経由でのバルクロードジョブ","depth":3}],"frontmatter":{"seo":{"title":"ジョブのデータベースを選択する"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/job-management/selecting-a-database-for-a-job","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}