{"id":2900,"date":"2015-12-17T00:46:22","date_gmt":"2015-12-16T15:46:22","guid":{"rendered":"https:\/\/www.climb.co.jp\/blog_dbmoto\/?p=2900"},"modified":"2019-06-10T15:48:34","modified_gmt":"2019-06-10T06:48:34","slug":"dbmoto%e3%83%ac%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%81%ab%e5%bf%85%e8%a6%81%e3%81%aaoracle-12cpdbcdb%e6%a8%a9%e9%99%90","status":"publish","type":"post","link":"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/2900","title":{"rendered":"DBMoto\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5fc5\u8981\u306aOracle 12c(PDB\/CDB)\u6a29\u9650"},"content":{"rendered":"<p>\u30de\u30eb\u30c1\u30c6\u30ca\u30f3\u30c8\u7528Oracle 12c\u3092DBMoto\u3067\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001PDB\u3068CDB\u30e6\u30fc\u30b6\u305d\u308c\u305e\u308c\u306b\u5fc5\u8981\u306a\u6a29\u9650\u304c\u7570\u306a\u308a\u307e\u3059\u3002\u8a73\u7d30\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3059\u3002<br \/>\nPDB\u30e6\u30fc\u30b6\u540d\u3092\u300cdbmotoP\u300d\u3001CDB\u30e6\u30fc\u30b6\u3092\u300cc##dbmotoC\u300d\u3068\u3057\u305f\u5834\u5408\u306e\u4f8b\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u203b<span style=\"color: #ff0000;\">2019\/06\/10 \u4e00\u90e8\u4fee\u6b63\u3057\u307e\u3057\u305f<\/span>\u3002<\/p>\n<p>\u30de\u30eb\u30c1\u30c6\u30ca\u30f3\u30c8\u3067\u306f\u306a\u3044PDB\u306a\u3057\u306eOracle 12c\u306b\u5fc5\u8981\u306a\u6a29\u9650\u306f\u4e0b\u8a18\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<br \/>\n<a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/560\" target=\"_blank\" rel=\"noopener noreferrer\">DBMoto\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5fc5\u8981\u306aOracle\u30e6\u30fc\u30b6\u6a29\u9650<\/a><\/p>\n<h2><span style=\"text-decoration: underline;\"><strong>\u25cf\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u8907\u88fd\u5143\u30bd\u30fc\u30b9\u7528<\/strong><\/span><\/h2>\n<p><strong>\u25c7PDB\u30e6\u30fc\u30b6<\/strong><br \/>\n\/\/ \u30e6\u30fc\u30b6\u4f5c\u6210<br \/>\ncreate user dbmotoP identified by dbmotoP;<\/p>\n<p>\/\/ DB\u63a5\u7d9a\u30aa\u30fc\u30d7\u30f3<br \/>\ngrant create session to dbmotoP;<\/p>\n<p>\/\/ \u53c2\u7167\u6a29\u9650<br \/>\ngrant select any table to dbmotoP;<\/p>\n<p>\/\/ \u30b5\u30d7\u30ea\u30e1\u30f3\u30bf\u30eb\u30ed\u30ae\u30f3\u30b0\u8a2d\u5b9a\u6642\u306e\u5fc5\u8981\u6a29\u9650<br \/>\ngrant alter database to dbmotoP;<br \/>\ngrant execute on sys.dbms_logmnr_d to dbmotoP;<br \/>\ngrant select on sys.v_$parameter to dbmotoP;<br \/>\ngrant select on sys.v_$log to dbmotoP;<br \/>\ngrant select on sys.v_$logfile to dbmotoP;<br \/>\ngrant select on sys.V_$logmnr_contents to dbmotoP;<br \/>\ngrant select on sys.V_$thread to dbmotoP;<br \/>\ngrant select on sys.V_$archive_dest to dbmotoP;<br \/>\ngrant select on sys.v_$archived_log to dbmotoP;<br \/>\ngrant select any transaction to dbmotoP;<br \/>\ngrant select on cdb_pdbs to dbmotoP;<br \/>\ngrant logmining to dbmotoP;<br \/>\ngrant select on sys.v_$database to dbmotoP;<br \/>\ngrant select on sys.v_$containers to dbmotoP;<br \/>\ngrant select on DBA_LOG_GROUPS to dbmotoP;<br \/>\ngrant select on DBA_LOG_GROUP_COLUMNS to dbmotoP;<br \/>\ngrant EXECUTE_CATALOG_ROLE to dbmotoP;<\/p>\n<p>\/\/ \u30b7\u30f3\u30af\u30ed\u30ca\u30a4\u30bc\u30fc\u30b7\u30e7\u30f3\u4f7f\u7528\u6642<br \/>\ngrant select on sys.aud$ to dbmotoP;<\/p>\n<p><strong>\u25c7CDB\u30e6\u30fc\u30b6<\/strong><br \/>\n\u203b\u30e6\u30fc\u30b6\u4f5c\u6210\u3001\u6a29\u9650\u4ed8\u4e0e\u306fCDB\u3067\u5b9f\u65bd\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\/\/ \u30e6\u30fc\u30b6\u4f5c\u6210<br \/>\ncreate user c##dbmotoC identified by dbmotoC;<\/p>\n<p>\/\/ DB\u63a5\u7d9a\u30aa\u30fc\u30d7\u30f3<br \/>\ngrant create session to c##dbmotoC container=ALL;;<\/p>\n<p>\/\/ Redo\u30ed\u30b0\u53c2\u7167\u6a29\u9650<br \/>\ngrant alter database to c##dbmotoC container=ALL;<br \/>\ngrant execute on sys.dbms_logmnr_d to c##dbmotoC container=ALL;<br \/>\ngrant select on sys.v_$parameter to c##dbmotoC container=ALL;<br \/>\ngrant select on sys.v_$log to c##dbmotoC container=ALL;<br \/>\ngrant select on sys.v_$logfile to c##dbmotoC container=ALL;<br \/>\ngrant select on sys.V_$logmnr_contents to c##dbmotoC container=ALL;<br \/>\ngrant select on sys.V_$thread to c##dbmotoC container=ALL;<br \/>\ngrant select on sys.V_$archive_dest to c##dbmotoC container=ALL;<br \/>\ngrant select on sys.v_$archived_log to c##dbmotoC container=ALL;<br \/>\ngrant select any transaction to c##dbmotoC container=ALL;<br \/>\ngrant select on cdb_pdbs to c##dbmotoC container=ALL;<br \/>\ngrant logmining to c##dbmotoC container=ALL;<br \/>\ngrant select on sys.v_$database to c##dbmotoC container=ALL;<br \/>\ngrant select on sys.v_$containers to c##dbmotoC container=ALL;<br \/>\ngrant select on DBA_LOG_GROUPS to c##dbmotoC container=ALL;<br \/>\ngrant select on DBA_LOG_GROUP_COLUMNS to c##dbmotoC container=ALL;<br \/>\ngrant EXECUTE_CATALOG_ROLE to c##dbmotoC container=ALL;<br \/>\nalter user c##dbmotoC set container_data=ALL container=current;<\/p>\n<p>\/\/ \u30b7\u30f3\u30af\u30ed\u30ca\u30a4\u30bc\u30fc\u30b7\u30e7\u30f3\u4f7f\u7528\u6642<br \/>\ngrant select on sys.aud$ to c##dbmotoC;<\/p>\n<h2><span style=\"text-decoration: underline;\"><strong>\u25cf\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u8907\u88fd\u5148\u30bf\u30fc\u30b2\u30c3\u30c8\u7528<\/strong><\/span><\/h2>\n<p>\u203bCDB\u30e6\u30fc\u30b6\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><strong>\u25c7PDB\u30e6\u30fc\u30b6<\/strong><br \/>\n\/\/ \u30e6\u30fc\u30b6\u4f5c\u6210<br \/>\n&gt;create user dbmoto identified by dbmoto;<\/p>\n<p>\/\/ DB\u63a5\u7d9a\u30aa\u30fc\u30d7\u30f3<br \/>\n&gt;grant create session to dbmoto;<\/p>\n<p>\/\/ \u53c2\u7167\u30fb\u7de8\u96c6\u6a29\u9650<br \/>\n&gt;grant select any table to dbmoto;<br \/>\n&gt;grant insert any table to dbmoto;<br \/>\n&gt;grant update any table to dbmoto;<br \/>\n&gt;grant delete any table to dbmoto;<\/p>\n<p>\/\/ TRUNCATE\u6a29\u9650<br \/>\n&gt;grant drop any table to dbmoto;<br \/>\n&gt;grant alter any table to dbmoto;<\/p>\n<p>\/\/ \u30bf\u30fc\u30b2\u30c3\u30c8\u30c6\u30fc\u30d6\u30eb\u4f5c\u6210\u30a6\u30a3\u30b6\u30fc\u30c9\u4f7f\u7528\u6642\u306e\u307f\u5fc5\u8981<br \/>\n&gt;grant create any table to dbmoto;<br \/>\n&gt;grant unlimited tablespace to dbmoto;<\/p>\n<p><strong>\u25cfDBMoto\u3067\u306e\u8a2d\u5b9a\u7b87\u6240\u306b\u3064\u3044\u3066<\/strong><\/p>\n<p>\u307e\u305a\u901a\u5e38\u306e\u30e6\u30fc\u30b6\u8a2d\u5b9a\u753b\u9762\u3067\u306fPDB\u30e6\u30fc\u30b6\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u63a5\u7d9a\u5148\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3082PDB\u7528\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2015\/12\/20151217-01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2901\" src=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2015\/12\/20151217-01-300x226.png\" alt=\"20151217-01\" width=\"300\" height=\"226\" srcset=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2015\/12\/20151217-01-300x226.png 300w, https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2015\/12\/20151217-01.png 605w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u306b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u8a2d\u5b9a\u753b\u9762\u306b\u3066\u30b5\u30d7\u30ea\u30e1\u30f3\u30bf\u30eb\u30ed\u30ae\u30f3\u30b0\u3092\u8a2d\u5b9a\u3059\u308b\u969b\u306f\u307e\u305a\u78ba\u8a8d\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u3001\u6b21\u306b\u30ed\u30b0\u8a2d\u5b9a\u306e\u6a2a\u306e\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2015\/12\/20151217-02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2902\" src=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2015\/12\/20151217-02-300x226.png\" alt=\"20151217-02\" width=\"300\" height=\"226\" srcset=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2015\/12\/20151217-02-300x226.png 300w, https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2015\/12\/20151217-02.png 605w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3053\u3053\u3067\u306fCDB\u30e6\u30fc\u30b6\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30b5\u30fc\u30d0\u3082CDB\u7528\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2015\/12\/20151217-03.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2903\" src=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2015\/12\/20151217-03-253x300.png\" alt=\"20151217-03\" width=\"253\" height=\"300\" srcset=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2015\/12\/20151217-03-253x300.png 253w, https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2015\/12\/20151217-03.png 422w\" sizes=\"auto, (max-width: 253px) 100vw, 253px\" \/><\/a><\/p>\n<p>\u6700\u5f8c\u306b\u30b5\u30d7\u30ea\u30e1\u30f3\u30bf\u30eb\u30ed\u30ae\u30f3\u30b0\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3059\u308b\u3053\u3068\u3067\u30b5\u30d7\u30ea\u30e1\u30f3\u30bf\u30eb\u30ed\u30ae\u30f3\u30b0\u304c\u6709\u52b9\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2015\/12\/20151217-04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2904\" src=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2015\/12\/20151217-04-300x226.png\" alt=\"20151217-04\" width=\"300\" height=\"226\" srcset=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2015\/12\/20151217-04-300x226.png 300w, https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-content\/uploads\/2015\/12\/20151217-04.png 605w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30de\u30eb\u30c1\u30c6\u30ca\u30f3\u30c8\u7528Oracle 12c\u3092DBMoto\u3067\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001PDB\u3068CDB\u30e6\u30fc\u30b6\u305d\u308c\u305e\u308c\u306b\u5fc5\u8981\u306a\u6a29\u9650\u304c\u7570\u306a\u308a\u307e\u3059\u3002\u8a73\u7d30\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3059\u3002 PDB\u30e6\u30fc\u30b6\u540d\u3092\u300cdbmotoP\u300d\u3001CDB\u30e6\u30fc\u30b6\u3092\u300cc##dbmotoC\u300d &hellip; <a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/2900\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2900","post","type-post","status-publish","format-standard","hentry","category-syniti"],"_links":{"self":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/2900","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/comments?post=2900"}],"version-history":[{"count":7,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/2900\/revisions"}],"predecessor-version":[{"id":4557,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/2900\/revisions\/4557"}],"wp:attachment":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/media?parent=2900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/categories?post=2900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/tags?post=2900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}