{"id":560,"date":"2014-01-30T14:40:24","date_gmt":"2014-01-30T05:40:24","guid":{"rendered":"http:\/\/www.climb.co.jp\/blog_dbmoto\/?p=560"},"modified":"2021-10-28T12:29:21","modified_gmt":"2021-10-28T03:29:21","slug":"oracle%e3%81%a7%e3%81%ae%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%a7%e5%bf%85%e8%a6%81%e3%81%aa%e6%a8%a9%e9%99%90%e3%80%90%e3%83%aa%e3%82%a2%e3%83%ab%e3%82%bf","status":"publish","type":"post","link":"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/560","title":{"rendered":"DBMoto\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5fc5\u8981\u306aOracle\u30e6\u30fc\u30b6\u6a29\u9650"},"content":{"rendered":"<p>DBMoto\u3067\u4f7f\u7528\u3059\u308bOracle\u30e6\u30fc\u30b6\u306b\u5fc5\u8981\u306a\u6a29\u9650\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3059\u3002<br \/>\n\u30e6\u30fc\u30b6\u540d\u3092\u300cdbmoto\u300d\u3068\u3057\u305f\u5834\u5408\u306e\u4f8b\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u203b<span style=\"color: #ff0000;\">2017\/06\/29 \u4e00\u90e8\u4fee\u6b63\u3057\u307e\u3057\u305f<\/span>\u3002<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>\u25cf\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u8907\u88fd\u5143\u30bd\u30fc\u30b9\u7528<\/strong><\/span><\/p>\n<p>\/\/ \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\u6a29\u9650<br \/>\n&gt;grant select any table to dbmoto;<\/p>\n<p>\/\/ \u30b5\u30d7\u30ea\u30e1\u30f3\u30bf\u30eb\u30ed\u30ae\u30f3\u30b0\u8a2d\u5b9a<br \/>\n&gt;grant alter database to dbmoto;<br \/>\n&gt;grant select on sys.v_$database to dbmoto;<\/p>\n<p>\u203bAWS \u306eRDS\u3067\u306f\u4e0a\u8a18alter database\u306e\u6a29\u9650\u3092\u4ed8\u4e0e\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u4ee3\u308f\u308a\u306bPL\/SQL\u306e\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092SQL PLUS\u7b49\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\nexec rdsadmin.rdsadmin_util.alter_supplemental_logging(&#8216;ADD&#8217;,&#8217;PRIMARY KEY&#8217;);<br \/>\nexec rdsadmin.rdsadmin_util.alter_supplemental_logging(&#8216;ADD&#8217;,&#8217;UNIQUE&#8217;);<br \/>\n\u53c2\u8003URL\uff1a<a href=\"http:\/\/docs.aws.amazon.com\/ja_jp\/AmazonRDS\/latest\/UserGuide\/Appendix.Oracle.CommonDBATasks.html#Appendix.Oracle.CommonDBATasks.AddingSupplementalLogging\">http:\/\/docs.aws.amazon.com\/ja_jp\/AmazonRDS\/latest\/UserGuide\/Appendix.Oracle.CommonDBATasks.html#Appendix.Oracle.CommonDBATasks.AddingSupplementalLogging<\/a><\/p>\n<p>\/\/ \u6700\u5c0f\u30ec\u30d9\u30eb\u306e\u30b5\u30d7\u30ea\u30e1\u30f3\u30bf\u30eb\u30ed\u30ae\u30f3\u30b0\u306e\u8a2d\u5b9a\u3067\u306f\u3055\u3089\u306b\u4e0b\u8a18\u304c\u5fc5\u8981<br \/>\n\u203b\u901a\u5e38\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30ec\u30d9\u30eb\u3092\u63a8\u5968\u3057\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u305d\u306e\u969b\u306f\u4e0b\u8a18\u306e\u8a2d\u5b9a\u306f\u4e0d\u8981\u3067\u3059\u3002<br \/>\n&gt;grant alter any table to dbmoto;<br \/>\n&gt;grant select on sys.dba_log_groups to dbmoto;<br \/>\n&gt;grant select on sys.dba_log_group_columns to dbmoto;<\/p>\n<p>\/\/ Redo\u30ed\u30b0\u53c2\u7167<br \/>\n&gt;grant execute on sys.dbms_logmnr to dbmoto;<br \/>\n&gt;grant select on sys.v_$parameter to dbmoto;<br \/>\n&gt;grant select on sys.v_$log to dbmoto;<br \/>\n&gt;grant select on sys.v_$logfile to dbmoto;<br \/>\n&gt;grant select on sys.V_$logmnr_contents to dbmoto;<br \/>\n&gt;grant select on sys.V_$thread to dbmoto;<br \/>\n&gt;grant select on sys.V_$archive_dest to dbmoto;<\/p>\n<p>\/\/ Oracle 10g \u30fb11gR2\u306e\u307f\u5fc5\u8981<br \/>\n&gt;grant select any transaction to dbmoto;<\/p>\n<p>\/\/ Oracle 12c\u4ee5\u964d\u306b\u5fc5\u8981<br \/>\n&gt;grant LOGMINING to dbmoto;<\/p>\n<p>\/\/ \u30a2\u30fc\u30ab\u30a4\u30d6\u30ed\u30b0\u3092\u53c2\u7167\u3059\u308b\u5834\u5408\u306e\u307f\u5fc5\u8981<br \/>\n&gt;grant select on sys.v_$archived_log to dbmoto;<\/p>\n<p>\/\/ \u30b7\u30f3\u30af\u30ed\u30ca\u30a4\u30bc\u30fc\u30b7\u30e7\u30f3\u4f7f\u7528\u6642<br \/>\n&gt;grant select on sys.aud$ to dbmoto;<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>\u25cf\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u8907\u88fd\u5148\u30bf\u30fc\u30b2\u30c3\u30c8\u7528<\/strong><\/span><\/p>\n<p>\/\/ \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;<\/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 create any index to dbmoto;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DBMoto\u3067\u4f7f\u7528\u3059\u308bOracle\u30e6\u30fc\u30b6\u306b\u5fc5\u8981\u306a\u6a29\u9650\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3059\u3002 \u30e6\u30fc\u30b6\u540d\u3092\u300cdbmoto\u300d\u3068\u3057\u305f\u5834\u5408\u306e\u4f8b\u3068\u306a\u308a\u307e\u3059\u3002 \u203b2017\/06\/29 \u4e00\u90e8\u4fee\u6b63\u3057\u307e\u3057\u305f\u3002 \u25cf\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u8907\u88fd\u5143\u30bd\u30fc\u30b9\u7528 \/\/ \u30e6\u30fc\u30b6\u4f5c\u6210 &#038; &hellip; <a href=\"https:\/\/www.climb.co.jp\/blog_dbmoto\/archives\/560\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[34,119],"class_list":["post-560","post","type-post","status-publish","format-standard","hentry","category-syniti","tag-oracle","tag-119"],"_links":{"self":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/560","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=560"}],"version-history":[{"count":30,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/560\/revisions"}],"predecessor-version":[{"id":5621,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/posts\/560\/revisions\/5621"}],"wp:attachment":[{"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/media?parent=560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/categories?post=560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_dbmoto\/wp-json\/wp\/v2\/tags?post=560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}