{"id":14801,"date":"2021-11-06T13:28:21","date_gmt":"2021-11-06T04:28:21","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=14801"},"modified":"2023-05-28T08:27:05","modified_gmt":"2023-05-27T23:27:05","slug":"%e3%80%90%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e3%80%91%e3%80%8c%e3%83%87%e3%83%bc%e3%82%bf%e3%82%ad%e3%83%a3%e3%83%83%e3%82%b7%e3%83%a5%e3%80%8d%e3%81%a8%e3%80%8c%e3%83%ad%e3%82%b0","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=14801","title":{"rendered":"\u3010\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3011\u30e1\u30e2\u30ea\u306e\u7a2e\u985e\uff08\u300c\u30c7\u30fc\u30bf\u30ad\u30e3\u30c3\u30b7\u30e5\u300d\u3068\u300c\u30ed\u30b0\u30d0\u30c3\u30d5\u30a1\u300d\u306a\u3069\uff09"},"content":{"rendered":"<p>\u307b\u3068\u3093\u3069\u306eDB\u304c\u4ee5\u4e0b3\u3064\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30c7\u30fc\u30bf\u30ad\u30e3\u30c3\u30b7\u30e5<\/li>\n<li>\u30ed\u30b0\u30ad\u30e3\u30c3\u30b7\u30e5<\/li>\n<li>\u30ef\u30fc\u30ad\u30f3\u30b0\u30e1\u30e2\u30ea<\/li>\n<\/ul>\n<h2>\u5171\u901a\u306e\u7279\u5fb4<\/h2>\n<ul>\n<li>\u30e6\u30fc\u30b6\u30fc\u304c\u7528\u9014\u306b\u5fdc\u3058\u3066\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/li>\n<\/ul>\n<h2>\u30c7\u30fc\u30bf\u30ad\u30e3\u30c3\u30b7\u30e5<\/h2>\n<p>SELECT\u7cfb\uff08\u691c\u7d22\u7cfb\uff09\u306b\u95a2\u4fc2\u3057\u307e\u3059\u3002\u30c7\u30a3\u30b9\u30af\u306b\u3042\u308b\u30c7\u30fc\u30bf\u3092\u4e00\u6642\u7684\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u9818\u57df\u3067\u3059\u3002\u904b\u3088\u304f\u3053\u308c\u304b\u3089SELECT\u3059\u308b\u30c7\u30fc\u30bf\u304c\u3053\u306e\u30e1\u30e2\u30ea\u306b\u8f09\u3063\u3066\u3044\u305f\u3089\u9ad8\u901f\u306a\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<th><\/th>\n<th>Oracle11<\/th>\n<th>PostgreSQL9.3<\/th>\n<th>MySQL5.7<\/th>\n<\/tr>\n<tr>\n<td>\u540d\u79f0<\/td>\n<td>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30d0\u30c3\u30d5\u30a1\u30ad\u30e3\u30c3\u30b7\u30e5<\/td>\n<td>\u5171\u6709\u30d0\u30c3\u30d5\u30a1<\/td>\n<td>\u30d0\u30c3\u30d5\u30a1\u30d7\u30fc\u30eb<\/td>\n<\/tr>\n<tr>\n<td>\u30d1\u30e9\u30e1\u30fc\u30bf<\/td>\n<td>DB_CACHE_SIZE<\/td>\n<td>shared_buffers<\/td>\n<td>innodb_buffer_pool_size<\/td>\n<\/tr>\n<tr>\n<td>\u521d\u671f\u5024<\/td>\n<td>4MB * CPU\u6570 * \u30b0\u30e9\u30cb\u30e5\u30eb\u30b5\u30a4\u30ba<\/td>\n<td>128MB<\/td>\n<td>128MB<\/td>\n<\/tr>\n<tr>\n<td>\u78ba\u8a8d\u30b3\u30de\u30f3\u30c9<\/td>\n<td>SELECT value FROM v$parameter WHERE name='db_cache_size';<\/td>\n<td>show\u00a0shared_buffers;<\/td>\n<td>SHOW VALIABLES LIKE 'innodb_buffer_pool_size'<\/td>\n<\/tr>\n<tr>\n<td>\u5099\u8003<\/td>\n<td>SGA\u5185\u90e8\u306b\u4fdd\u6301\u3055\u308c\u308b\u3002<\/td>\n<td>-<\/td>\n<td>-<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u30ed\u30b0\u30d0\u30c3\u30d5\u30a1<\/h2>\n<p>\u66f4\u65b0\u7cfb(INSERT\u3001DELETE\u3001UPDATE\u3001MERGE)\u306b\u95a2\u4fc2\u3057\u307e\u3059\u3002DBMS\u306f\u66f4\u65b0\u7cfb\u306eSQL\u3092\u53d7\u3051\u53d6\u3063\u305f\u6642\u306f\u5373\u5ea7\u306b\u30c7\u30a3\u30b9\u30af\u3092\u66f8\u304d\u63db\u3048\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u4e00\u65e6\u3053\u3053\u306b\u84c4\u7a4d\u3057\u305f\u4e0a\u3067\u307e\u3068\u3081\u3066\u66f8\u304d\u8fbc\u3093\u3067\u3044\u307e\u3059\u3002\uff08\u306a\u306e\u3067\u3001SQL\u6587\u306e\u5b9f\u884c\u3068\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u3078\u306e\u66f4\u65b0\u30bf\u30a4\u30df\u30f3\u30b0\u306b\u30ba\u30ec\u304c\u767a\u751f\u3059\u308b\u975e\u540c\u671f\u51e6\u7406\u306b\u306a\u308a\u307e\u3059\u3002\uff09<\/p>\n<h3>\u306a\u305c\u308f\u3056\u308f\u3056\u3053\u3093\u306a\u4ed5\u7d44\u307f\u306a\u306e\uff1f<\/h3>\n<p>\u3053\u3093\u306a\u3053\u3068\u3092\u3057\u3066\u3044\u3066\u306f\u975e\u540c\u671f\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3057\u3001\u30c7\u30fc\u30bf\u6574\u5408\u6027\u3092\u62c5\u4fdd\u53d6\u308c\u306a\u304f\u306a\u308b\u3088\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n<p>\u7406\u7531\u3068\u3057\u3066\u306f\u30c7\u30a3\u30b9\u30af\u66f8\u304d\u8fbc\u307f\u3088\u308a\u30e1\u30e2\u30ea\u66f8\u304d\u8fbc\u307f\u306e\u65b9\u304c\u9ad8\u901f\u306b\u7d42\u308f\u308b\u306e\u3067\u30e6\u30fc\u30b6\u30fc\u3092\u5f85\u305f\u305b\u306a\u304f\u3066\u3082\u826f\u304f\u306a\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<th><\/th>\n<th>Oracle11<\/th>\n<th>PostgreSQL9.3<\/th>\n<th>MySQL5.7<\/th>\n<\/tr>\n<tr>\n<td>\u540d\u79f0<\/td>\n<td>REDO\u30ed\u30b0\u30d0\u30c3\u30d5\u30a1<\/td>\n<td>\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u30ed\u30b0\u30d0\u30c3\u30d5\u30a1<\/td>\n<td>\u30ed\u30b0\u30d0\u30c3\u30d5\u30a1<\/td>\n<\/tr>\n<tr>\n<td>\u30d1\u30e9\u30e1\u30fc\u30bf<\/td>\n<td>LOG_BUFFER<\/td>\n<td>wal_buffers<\/td>\n<td>innodb_log_buffer_size<\/td>\n<\/tr>\n<tr>\n<td>\u521d\u671f\u5024<\/td>\n<td>512KB \u307e\u305f\u306f 128KB * CPU\u30ab\u30a6\u30f3\u30c8\u306e\u3069\u3061\u3089\u304b\u5927\u304d\u3044\u65b9<\/td>\n<td>64KB<\/td>\n<td>8MB<\/td>\n<\/tr>\n<tr>\n<td>\u78ba\u8a8d\u30b3\u30de\u30f3\u30c9<\/td>\n<td>SELECT value FROM v$parameter WHERE name='log_buffer';<\/td>\n<td>show wal_buffers;<\/td>\n<td>SHOW VALIABLES LIKE 'innodb_log_buffer_size'<\/td>\n<\/tr>\n<tr>\n<td>\u5099\u8003<\/td>\n<td>SGA\u5185\u90e8\u306b\u4fdd\u6301\u3055\u308c\u308b\u3002<\/td>\n<td>-<\/td>\n<td>InnoDB\u30a8\u30f3\u30b8\u30f3\u4f7f\u7528\u6642\u306e\u307f\u6709\u52b9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u306a\u305c\u300c\u30c7\u30fc\u30bf\u30ad\u30e3\u30c3\u30b7\u30e5\u300d\u306b\u6bd4\u3079\u3066\u3001\u300c\u30ed\u30b0\u30d0\u30c3\u30d5\u30a1\u300d\u306e\u30b5\u30a4\u30ba\u306f\u5c0f\u3055\u3044\u304b\uff1f<\/h2>\n<p>\u57fa\u672c\u7684\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u691c\u7d22\u3092\u30e1\u30a4\u30f3\u306e\u51e6\u7406\u3068\u3057\u3066\u60f3\u5b9a\u3057\u3066\u3044\u308b\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306e\u305f\u3081\u3067\u3059\u3002\u691c\u7d22\u7cfb\u3068\u66f4\u65b0\u7cfb\u3067\u306f\u60f3\u5b9a\u51e6\u7406\u4ef6\u6570\u306b\u3060\u3044\u3076\u5dee\u304c\u3042\u308b\u306e\u3067\u3001\u53ef\u80fd\u306a\u9650\u308a\u691c\u7d22\u7cfb\u306e\u30e1\u30e2\u30ea\u306e\u5bb9\u91cf\u3092\u5897\u3084\u3057\u305f\u65b9\u304c\u5f97\u7b56\u3060\u3068\u8003\u3048\u3089\u308c\u3066\u3044\u308b\u306e\u3067\u3059\u3002<\/p>\n<h3>\u691c\u7d22<\/h3>\n<p>\u6570\u767e\u4e07\u4ef6\u3084\u6570\u5343\u4e07\u4ef6\u3068\u3044\u3046\u30aa\u30fc\u30c0\u30fc\u306b\u306a\u308b\u3053\u3068\u3082\u73cd\u3057\u304f\u306a\u3044\u3067\u3059\u3002<\/p>\n<h3>\u66f4\u65b0<\/h3>\n<p>1\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3042\u305f\u308a\u30011\u301c\u6570\u4e07\u4ef6\u7a0b\u5ea6\u3067\u3059\u3002<\/p>\n<h3>\u305f\u3060\u4f8b\u5916\u3082\u3042\u308b\u3002<\/h3>\n<p>\u305f\u3060\u3001\u60f3\u5b9a\u3057\u3066\u3044\u308b\u30b7\u30b9\u30c6\u30e0\u304c\u4f8b\u3048\u3070\u30d0\u30c3\u30c1\u51e6\u7406\u304c\u30e1\u30a4\u30f3\u3060\u3063\u305f\u3068\u3057\u305f\u3089\u66f4\u65b0\u51e6\u7406\u304c\u30e1\u30a4\u30f3\u306b\u306a\u308b\u306e\u3067\u300c\u30c7\u30fc\u30bf\u30ad\u30e3\u30c3\u30b7\u30e5\u300d\u3088\u308a\u3082\u300c\u30ed\u30b0\u30d0\u30c3\u30d5\u30a1\u300d\u306e\u30e1\u30e2\u30ea\u91cf\u3092\u5897\u3084\u3059\u3088\u3046\u306a\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3092\u3057\u305f\u65b9\u304c\u826f\u3044\u3053\u3068\u306f\u8a00\u3046\u307e\u3067\u3082\u306a\u3044\u3067\u3059\u3002<\/p>\n<h2>\u30ef\u30fc\u30ad\u30f3\u30b0\u30e1\u30e2\u30ea<\/h2>\n<p>SQL\u3067\u30bd\u30fc\u30c8\u3084\u30cf\u30c3\u30b7\u30e5\u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u6642\u306b\u4f7f\u7528\u3055\u308c\u308b\u9818\u57df\u3067\u3059\u3002\u3053\u306e\u9818\u57df\u304c\u4e0d\u8db3\u3057\u305f\u5834\u5408\u306f\u591a\u304f\u306eDBMS\u3067\u30c7\u30a3\u30b9\u30af\u304c\u4f7f\u308f\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\uff08OS\u3067\u3044\u3046\u3068\u3053\u308d\u306e<span style=\"color: #ff0000;\"><strong>\u300c\u30b9\u30ef\u30c3\u30d7\u300d<\/strong><\/span>\uff09<\/p>\n<table>\n<tbody>\n<tr>\n<th><\/th>\n<th>Oracle11<\/th>\n<th>PostgreSQL9.3<\/th>\n<th>MySQL5.7<\/th>\n<\/tr>\n<tr>\n<td>\u540d\u79f0<\/td>\n<td>PGA(Program Global Area)<\/td>\n<td>\u30ef\u30fc\u30af\u30d0\u30c3\u30d5\u30a1<\/td>\n<td>\u30bd\u30fc\u30c8\u30d0\u30c3\u30d5\u30a1<\/td>\n<\/tr>\n<tr>\n<td>\u30d1\u30e9\u30e1\u30fc\u30bf<\/td>\n<td>PGA_AGGREGATE_TARGET<\/td>\n<td>work_mem<\/td>\n<td>sort_buffer_size<\/td>\n<\/tr>\n<tr>\n<td>\u521d\u671f\u5024<\/td>\n<td>10MB \u307e\u305f\u306f SGA\u30b5\u30a4\u30ba\u306e\u5927\u304d\u3044\u65b9\u306e\u3069\u3061\u3089\u304b<\/td>\n<td>8MB<\/td>\n<td>256KB<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Java\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u307f\u305f\u3044\u306b\u300cOut of Memory\u300d\u3068\u3044\u3046\u9078\u629e\u80a2\u3092\u3068\u308b\u3053\u3068\u306f\u306a\u3044\u3067\u3059\u3002DBMS\u306e\u601d\u60f3\u3068\u3057\u3066\u3069\u3093\u306a\u306b\u9045\u304f\u3066\u3082\u826f\u3044\u306e\u3067\u51e6\u7406\u3092\u7d99\u7d9a\u3055\u305b\u308b\u3068\u3044\u3046\u3082\u306e\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u307b\u3068\u3093\u3069\u306eDB\u304c\u4ee5\u4e0b3\u3064\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002 \u30c7\u30fc\u30bf\u30ad\u30e3\u30c3\u30b7\u30e5 \u30ed\u30b0\u30ad\u30e3\u30c3\u30b7\u30e5 \u30ef\u30fc\u30ad\u30f3\u30b0\u30e1\u30e2\u30ea \u5171\u901a\u306e\u7279\u5fb4 \u30e6\u30fc\u30b6\u30fc\u304c\u7528\u9014\u306b\u5fdc\u3058\u3066\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 \u30c7\u30fc\u30bf\u30ad\u30e3\u30c3\u30b7\u30e5 SELECT\u7cfb\uff08\u691c\u7d22\u7cfb\uff09\u306b\u95a2\u4fc2\u3057\u307e\u3059\u3002\u30c7\u30a3 [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/14801"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14801"}],"version-history":[{"count":9,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/14801\/revisions"}],"predecessor-version":[{"id":20746,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/14801\/revisions\/20746"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14801"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}