{"id":3802,"date":"2019-03-13T18:46:33","date_gmt":"2019-03-13T09:46:33","guid":{"rendered":"https:\/\/itport.cloud\/?p=3802"},"modified":"2019-03-13T18:46:34","modified_gmt":"2019-03-13T09:46:34","slug":"post-3802","status":"publish","type":"post","link":"https:\/\/itport.cloud\/?p=3802","title":{"rendered":"(\u6700\u7d42\u56de\uff09Autonomous Database\u306b\u30c7\u30fc\u30bf\u3092\u30ed\u30fc\u30c9"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"e79baee6aca1-1\">\u76ee\u6b21<\/h2>\n\n\n\n<p><a href=\"#adwc9_1\">\u524d\u56de\u306e\u4f5c\u696d\u3068\u4eca\u56de\u306e\u4f5c\u696d\u306b\u3064\u3044\u3066<\/a><br><a href=\"#adwc9_2\">\u30d0\u30b1\u30c3\u30c8\u304b\u3089\u30c7\u30fc\u30bf\u3092\u30ed\u30fc\u30c9<\/a><br><a href=\"#adwc9_3\">\u30ed\u30fc\u30c9\u3057\u305f\u7d50\u679c\u306e\u78ba\u8a8d<\/a><br><a href=\"#adwc9_4\">\u6700\u5f8c\u306b<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"adwc9_1\">\u524d\u56de\u306e\u4f5c\u696d\u3068\u4eca\u56de\u306e\u4f5c\u696d\u306b\u3064\u3044\u3066<\/h2>\n\n\n\n<p>\u524d\u56de\u306f\u3001Autonomous Data Warehouse\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u3001\u30ed\u30fc\u30c9\u7528\u306e\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u3001\u30ed\u30fc\u30c9\u7528\u306e\u30c7\u30fc\u30bf\u3092\u6e96\u5099\u3057\u307e\u3057\u305f\u3002<br><br>\u4eca\u56de\u306f\u3001\u5b9f\u969b\u306b\u30c7\u30fc\u30bf\u3092\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u4f5c\u6210\u304b\u3089\u7d9a\u3044\u305f\u74b0\u5883\u69cb\u7bc9\u7de8\u3067\u3059\u304c\u3001\u4eca\u56de\u304c\u6700\u7d42\u56de\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"adwc9_2\">\u30d0\u30b1\u30c3\u30c8\u304b\u3089\u30c7\u30fc\u30bf\u3092\u30ed\u30fc\u30c9<\/h2>\n\n\n\n<p>\u524d\u56de\u4f5c\u6210\u3057\u305f\u30d0\u30b1\u30c3\u30c8\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u304b\u3089DB\u306b\u30c7\u30fc\u30bf\u3092\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u7c21\u5358\u306a\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\nCREATE TABLE adwc_user.BAND (\n    id           \u3000\u3000NUMBER      \u3000\u3000\u3000\u3000\u3000  NOT NULL,\n    name             VARCHAR2(20)           NOT NULL,\n    inst             VARCHAR2(20)           NOT NULL );\n<\/pre><\/div>\n\n\n<p>\u3053\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u30d0\u30b1\u30c3\u30c8\u304b\u3089\u30c7\u30fc\u30bf\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\u307e\u305a\u306f\u3001\u516c\u5f0f\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u5023\u3063\u3066\u300c|\u300d\u533a\u5207\u308a\u3067\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; gutter: false; title: ; notranslate\" title=\"\">\n1|\"Anthony\"|\"vocal\"|\n2|\"Flea\"|\"bass\"|\n3|\"Chad\"|\"dram\"|\n4|\"Frusciante\"|\"guitar\"|\n<\/pre><\/div>\n\n\n<p>dbms_cloud\u30d1\u30c3\u30b1\u30fc\u30b8\u306ecopy_data\u30d7\u30ed\u30b7\u30fc\u30b8\u30e3\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u524d\u56de\u3001\u8cc7\u683c\u60c5\u5831\u3092\u683c\u7d0d\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u305fcreate_credential\u3068\u540c\u3058\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\nbegin\n dbms_cloud.copy_data(\n    table_name =>'BAND',\n    credential_name =>'OBJ_STORE_CRED',\n    file_uri_list =>'https:\/\/swiftobjectstorage.&#x5B;region name].oraclecloud.com\/v1\/&#x5B;tenant name]\/&#x5B;backet_name]\/&#x5B;file_name]',\n    format => json_object('ignoremissingcolumns' value 'true', 'removequotes' value 'true')\n );\nend;\n\/\n<\/pre><\/div>\n\n\n<p>\u307e\u305a\u3053\u3053\u3067\u3001\u300cAuthorization failed for URI\u300d\u306e\u30a8\u30e9\u30fc\u3067\u8a70\u307e\u308a\u307e\u3057\u305f\u3002\u30d0\u30b1\u30c3\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u969b\u306b\u8a8d\u8a3c\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3044\u308b\u3088\u3046\u3067\u3001\u539f\u56e0\u3068\u3057\u3066\u306f\u3001\u524d\u56de\u4f5c\u6210\u3057\u305f\u8a8d\u8a3c\u60c5\u5831\uff08&#8217;OBJ_STORE_CRED&#8217;)\u306e\u30e6\u30fc\u30b6\u540d\u3092\u9593\u9055\u3048\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\nbegin\n  DBMS_CLOUD.create_credential (\n    credential_name => 'OBJ_STORE_CRED',\n    username => '&#x5B;name]',\n    password => '&#x5B;Auth Token]'\n  ) ;\nend;\n\/\n<\/pre><\/div>\n\n\n<p>\u3053\u306e\u90e8\u5206\u3067\u300cname\u300d\u306b\u5165\u308c\u308b\u306e\u306f\u3001[adwc_user]\u3067\u3082\u306a\u304f\u3001[admin]\u3067\u3082\u306a\u304f\u3001\u30c6\u30ca\u30f3\u30c8\u306e\u4e0b\u306e\u300c\u30e6\u30fc\u30b6\u540d\u300d\u3067\u3057\u305f\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u767b\u9332\u3057\u305f\u969b\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306b\u306a\u3063\u3066\u3044\u308b\u65b9\u304c\u5927\u534a\u304b\u3068\u601d\u3044\u307e\u3059\u3002\u843d\u3061\u7740\u3044\u3066\u8003\u3048\u308b\u3068\u5f53\u305f\u308a\u524d\u306a\u306e\u3067\u3059\u304c\u3001\u6ce8\u610f\u304c\u5fc5\u8981\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"adwc9_3\">\u30ed\u30fc\u30c9\u3057\u305f\u7d50\u679c\u306e\u78ba\u8a8d<\/h2>\n\n\n\n<p>\u65e9\u901f\u3001select \u3059\u308b\u3068\u5024\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; gutter: false; title: ; notranslate\" title=\"\">\n        ID NAME                 INST                \n---------- -------------------- --------------------\n         1 Anthony              vocal               \n         2 Flea                 bass                \n         3 Chad                 dram                \n         4 Frusciante           guitar    \n<\/pre><\/div>\n\n\n<p>\u7d9a\u3044\u3066\u3001\u30ab\u30f3\u30de\u533a\u5207\u308a\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; gutter: false; title: ; notranslate\" title=\"\">\n1,\"Neville\",\"key\",\n2,\"Porter\",\"bass\",\n3,\"Nocentelli\",\"gutar\",\n4,\"Joe\",\"perc\",\n\n<\/pre><\/div>\n\n\n<p>\u305d\u306e\u307e\u307e\u8a66\u3059\u3068\u300cReject limit reached\u300d\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f\u3002\u305d\u3053\u3067\u3001format\u306e\u5f15\u6570\u3092\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<br>\u203bformat =&gt; json_object(&#8216;type&#8217; value &#8216;csv&#8217;)\u306b\u5909\u66f4<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; first-line: 1; gutter: false; title: ; notranslate\" title=\"\">\n        ID NAME                 INST                \n---------- -------------------- --------------------\n         1 Neville              key                 \n         2 Porter               bass                \n         3 Nocentelli           gutar               \n         4 Joe                  perc                \n<\/pre><\/div>\n\n\n<p>\u7121\u4e8b\u306b\u683c\u7d0d\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\n    format => json_object('ignoremissingcolumns' value 'true', 'removequotes' value 'true')\n<\/pre><\/div>\n\n\n<p>\u3053\u306e\u90e8\u5206\u3092\u53d6\u308a\u8fbc\u307f\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u306e\u5f62\u5f0f\u306b\u5408\u308f\u305b\u3066\u3044\u304f\u5f62\u3067\u3059\u3002\u8a18\u8ff0\u306e\u4ed5\u65b9\u306f\u3001\u4e0b\u306e\u30ea\u30f3\u30af\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"linkcard\"><div class=\"lkc-external-wrap\"><a class=\"lkc-link no_icon\" href=\"https:\/\/docs.oracle.com\/en\/cloud\/paas\/autonomous-data-warehouse-cloud\/user\/dbmscloud-reference.html#GUID-52C9974C-D95E-4E41-AFBD-0FC4065C029A\" data-lkc-id=\"19\" target=\"_blank\" rel=\"external noopener\"><div class=\"lkc-card\"><div class=\"lkc-content\"><figure class=\"lkc-thumbnail\"><img decoding=\"async\" class=\"lkc-thumbnail-img\" src=\"https:\/\/s.wordpress.com\/mshots\/v1\/https%3A%2F%2Fdocs.oracle.com%2Fen%2Fcloud%2Fpaas%2Fautonomous-data-warehouse-cloud%2Fuser%2Fdbmscloud-reference.html%23GUID-52C9974C-D95E-4E41-AFBD-0FC4065C029A?w=100\" width=\"100px\" height=\"108px\" alt=\"\" \/><\/figure><div class=\"lkc-title\">Using Oracle Autonomous Data Warehouse<\/div><div class=\"lkc-url\" title=\"https:\/\/docs.oracle.com\/en\/cloud\/paas\/autonomous-data-warehouse-cloud\/user\/dbmscloud-reference.html#GUID-52C9974C-D95E-4E41-AFBD-0FC4065C029A\">https:\/\/docs.oracle.com\/en\/cloud\/paas\/autonomous-data-warehouse-cloud\/user\/dbmscloud-reference.html#GUID-52C9974C-D95E-4E41-AFBD-0FC4065C029A<\/div><div class=\"lkc-excerpt\">This section provides information about the DBMS_CLOUD and DBMS_CLOUD_ADMIN packages you use with Oracle Autonomous Data Warehouse.<\/div><div class=\"lkc-more\">more<\/div><\/div><div class=\"lkc-info\"><div class=\"lkc-favicon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.google.com\/s2\/favicons?domain=docs.oracle.com\" alt=\"\" width=\"16\" height=\"16\" \/><\/div><div class=\"lkc-domain\">Oracle Help Center<\/div><\/div><div class=\"clear\"><\/div><\/div><\/a><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"adwc9_4\">\u6700\u5f8c\u306b<\/h2>\n\n\n\n<p>\u5168\uff19\u56de\u3092\u901a\u3057\u3066\u3001\u300c\u30a2\u30ab\u30a6\u30f3\u30c8\u767b\u9332\u2192Autonomous Data Warehouse\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4f5c\u6210\u2192\u30c7\u30fc\u30bf\u306e\u30ed\u30fc\u30c9\u300d\u3068\u3044\u3046\u4e00\u9023\u306e\u6d41\u308c\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u5927\u5e45\u306b\u6a2a\u9053\u306b\u9038\u308c\u305f\u308a\u3001\u8a70\u307e\u3063\u305f\u308a\u3057\u305f\u305f\u3081\uff19\u56de\u3068\u3044\u3046\u9577\u5c3a\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u3001ADWC\u306e\u74b0\u5883\u69cb\u7bc9\u7de8\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u306e\u56de\u3067\u7d42\u4e86\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u8aad\u3093\u3067\u3044\u305f\u3060\u304d\u8aa0\u306b\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002\u6b21\u56de\u9023\u8f09\u306f\u3001Oracle Cloud\u306eCompute\u306e\u90e8\u5206\u304b\u3089\u3001\u30a4\u30f3\u30d5\u30e9\u69cb\u7bc9\u7de8\u3092\u304a\u9001\u308a\u3057\u307e\u3059\u3002\u305d\u306e\u969b\u306f\u3001AWS\u3068\u306e\u6bd4\u8f03\u306a\u3069\u3082\u5165\u308c\u3064\u3064\u691c\u8a3c\u3092\u884c\u3044\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u76ee\u6b21 \u524d\u56de\u306e\u4f5c\u696d\u3068\u4eca\u56de\u306e\u4f5c\u696d\u306b\u3064\u3044\u3066\u30d0\u30b1\u30c3\u30c8\u304b\u3089\u30c7\u30fc\u30bf\u3092\u30ed\u30fc\u30c9\u30ed\u30fc\u30c9\u3057\u305f\u7d50\u679c\u306e\u78ba\u8a8d\u6700\u5f8c\u306b \u524d\u56de\u306e\u4f5c\u696d\u3068\u4eca\u56de\u306e\u4f5c\u696d\u306b\u3064\u3044\u3066 \u524d\u56de\u306f\u3001Autonomous Data Warehouse\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u3001\u30ed\u30fc\u30c9\u7528\u306e\u30d0\u30b1\u30c3\u30c8\u3092\u4f5c\u6210\u3001\u30ed\u30fc\u30c9\u7528\u306e\u30c7\u30fc\u30bf\u3092\u6e96\u5099\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u3001\u5b9f\u969b\u306b\u30c7\u30fc\u30bf\u3092\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u4f5c\u6210\u304b\u3089\u7d9a\u3044\u305f\u74b0\u5883\u69cb\u7bc9\u7de8\u3067\u3059\u304c\u3001\u4eca\u56de\u304c\u6700\u7d42\u56de\u3068\u306a\u308a\u307e\u3059\u3002 \u30d0\u30b1\u30c3\u30c8\u304b\u3089\u30c7\u30fc\u30bf\u3092\u30ed\u30fc\u30c9 \u524d\u56de\u4f5c\u6210\u3057\u305f\u30d0\u30b1\u30c3\u30c8\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u304b\u3089DB\u306b\u30c7\u30fc\u30bf\u3092\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u7c21\u5358\u306a\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u308a\u307e\u3057\u305f\u3002 CREATE TABLE adwc_user.BAND ( id \u3000\u3000NUMBER \u3000\u3000\u3000\u3000\u3000 NOT NULL, name VARCHA&hellip;","protected":false},"author":2,"featured_media":3824,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[17],"class_list":{"0":"post-3802","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-oraclecloud","8":"tag-season1"},"_links":{"self":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/3802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3802"}],"version-history":[{"count":29,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/3802\/revisions"}],"predecessor-version":[{"id":3844,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/posts\/3802\/revisions\/3844"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=\/wp\/v2\/media\/3824"}],"wp:attachment":[{"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itport.cloud\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}