{"id":1412,"date":"2020-09-18T06:32:15","date_gmt":"2020-09-17T22:32:15","guid":{"rendered":"http:\/\/www.gbase8.cn\/?p=1412"},"modified":"2020-09-18T07:53:48","modified_gmt":"2020-09-17T23:53:48","slug":"gbase-8a%e5%8d%95%e6%9c%ba%e7%94%b1%e4%ba%8e%e4%ba%8b%e5%8a%a1%e6%97%a5%e5%bf%97translog%e6%8d%9f%e5%9d%8f%e5%af%bc%e8%87%b4%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8%e7%9a%84%e5%88%86%e6%9e%90%e5%92%8c","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/1412","title":{"rendered":"\u5357\u5927\u901a\u7528GBase 8a\u5355\u673a\u7531\u4e8e\u4e8b\u52a1\u65e5\u5fd7translog\u635f\u574f\u5bfc\u81f4\u65e0\u6cd5\u542f\u52a8\u7684\u5206\u6790\u548c\u5904\u7406"},"content":{"rendered":"<p>GBase 8a\u5355\u673a\uff0c\u5176\u4e8b\u52a1\u662f\u8bb0\u5f55\u5728\u4e8b\u52a1\u65e5\u5fd7translog\u91cc\u7684\uff0c\u5982\u679c\u56e0\u67d0\u4e9b\u539f\u56e0\u51fa\u73b0\u635f\u574f\u3002\u800c\u5728\u6570\u636e\u5e93\u542f\u52a8\u65f6\uff0c\u4f1a\u5c1d\u8bd5redo, \u800c\u6b64\u65f6translog\u65e5\u5fd7\u635f\u574f\uff0c\u5bfc\u81f4\u5361\u4f4f\u6216\u62a5\u9519\u3002\u5220\u9664\u65e5\u5fd7\u6587\u4ef6\u540e\uff0c\u53ef\u4ee5\u6b63\u5e38\u542f\u52a8\u3002<\/p>\n\n\n\n<p>GBase 8a\u5355\u673a\u56e0\u4e3a\u4e0d\u6d89\u53ca\u5230MPP\uff0c\u5728\u65e9\u671f\u7248\u672c\u7684\u4e8b\u52a1\u652f\u6301\u5c31\u6bd4\u96c6\u7fa4\u7565\u597d\u4e00\u4e9b\uff0c\u4e14\u5f53\u65f6\u7684\u7248\u672c\u6ca1\u6709\u505a\u5230\u5f88\u597d\u7684\u4fdd\u62a4\uff0c\u5982\u679c\u8fdb\u7a0b\u6216\u670d\u52a1\u5668\u610f\u5916\u5b95\u673a\u3001\u91cd\u542f\u3001\u78c1\u76d8\u7a7a\u95f4\u6ee1\u6216\u65ad\u7535\u7b49\u60c5\u51b5\u53d1\u751f\uff0c\u53ef\u80fd\u5bfc\u81f4\u4e8b\u52a1\u65e5\u5fd7\u6709\u90e8\u5206\u5185\u5bb9\u6ca1\u6709\u5237\u5230\u78c1\u76d8\uff0c\u7531\u4e8e\u4e8b\u52a1\u65e5\u5fd7translog\u635f\u574f\u5bfc\u81f4\u65e0\u6cd5\u542f\u52a8\u7684\u5206\u6790\u548c\u5904\u7406\u3002<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Directory Navigation<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2b1f74d3eda\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2b1f74d3eda\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.gbase8.cn\/en\/1412\/#%E7%8E%B0%E8%B1%A1\" >Phenomenon<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.gbase8.cn\/en\/1412\/#%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88\" >Solution<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.gbase8.cn\/en\/1412\/#%E4%BA%8B%E5%8A%A1%E6%97%A5%E5%BF%97%E4%BD%8D%E7%BD%AE\" >\u4e8b\u52a1\u65e5\u5fd7\u4f4d\u7f6e<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.gbase8.cn\/en\/1412\/#%E5%8D%95%E6%9C%BA%E4%BA%8B%E5%8A%A1%E4%BB%8B%E7%BB%8D\" >\u5355\u673a\u4e8b\u52a1\u4ecb\u7ecd<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.gbase8.cn\/en\/1412\/#%E5%BC%80%E5%90%AF%E4%BA%8B%E5%8A%A1\" >\u5f00\u542f\u4e8b\u52a1<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%8E%B0%E8%B1%A1\"><\/span>Phenomenon<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u6570\u636e\u5e93system,log\u91cc\u5728\u542f\u52a8\u65f6\uff0c\u51fa\u73b0redo\u64cd\u4f5c\u4fe1\u606f\uff0c\u5305\u542bflush\u5237\u65b0\u4fe1\u606f\uff0c\u4f46\u4e00\u76f4\u6ca1\u6709\u5b8c\u6210\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88\"><\/span>Solution<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u505c\u6389\u8fdb\u7a0b\uff0c\u7136\u540e\u5c06\u4e8b\u52a1\u65e5\u5fd7\u5220\u9664\u6216\u632a\u8d70\uff0c\u7136\u540e\u518d\u91cd\u542f\u670d\u52a1\u3002<\/p>\n\n\n\n<p>\u5efa\u8bae\u73b0\u573a\uff0c\u9664\u975e\u786c\u4ef6\u6545\u969c\uff0c\u65ad\u7535\u7b49\u60c5\u51b5\uff0c\u5426\u5219\u91cd\u542f\u65f6\uff0c\u4e00\u5b9a\u5148\u505c\u6389\u6570\u636e\u5e93\u670d\u52a1\uff0c\u7136\u540e\u518d\u91cd\u542freboot\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%BA%8B%E5%8A%A1%E6%97%A5%E5%BF%97%E4%BD%8D%E7%BD%AE\"><\/span>\u4e8b\u52a1\u65e5\u5fd7\u4f4d\u7f6e<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u5b89\u88c5\u76ee\u5f55\/server\/translog\/tranalog, \u540c\u65f6\u4f1a\u51fa\u73b0\u4e00\u4e2aflush\u5b57\u6837\u7684\u6587\u4ef6\u3002<\/p>\n\n\n\n<p>\u66f4\u591a\u5355\u673a\u5185\u5bb9\uff0c\u8bf7\u53c2\u8003  <a href=\"http:\/\/www.gbase8.cn\/en\/tag\/%e5%8d%95%e6%9c%ba%e7%89%88\/\">http:\/\/www.gbase8.cn\/tag\/%e5%8d%95%e6%9c%ba%e7%89%88<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8D%95%E6%9C%BA%E4%BA%8B%E5%8A%A1%E4%BB%8B%E7%BB%8D\"><\/span>\u5355\u673a\u4e8b\u52a1\u4ecb\u7ecd<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p> \u9ed8\u8ba4\u662f\u4e0d\u5f00\u542f\u4e8b\u52a1\u7684\uff0c\u5176translog\u5927\u5c0f\u4e5f\u4e00\u76f4\u662f0. \u6570\u636e\u5e93\u53c2\u6570\u4e5f\u662f\u4e0d\u4f7f\u7528\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gbase> show variables like '%tx%';\n+-------------------------+-------------------------------------+\n| Variable_name           | Value                               |\n+-------------------------+-------------------------------------+\n| gbase_tx_log_dir        | \/home\/gbase8\/GBase\/server\/translog\/ |\n| gbase_tx_log_flush_time | 90.000000                           |\n| gbase_tx_log_mode       | NO_USE,NO_STANDARD_TRANS            |\n| tx_isolation            | REPEATABLE-READ                     |\n+-------------------------+-------------------------------------+\n4 rows in set (Elapsed: 00:00:00.00)\ngbase> ^CAborted\n&#91;gbase8@gbase8a ~]$ cd GBase\n&#91;gbase8@gbase8a GBase]$ ll\ntotal 8\ndrwxrwxr-x 2 gbase8 gbase8   56 Sep  4 05:54 config\ndrwxrwxr-x 2 gbase8 gbase8    6 Sep  4 05:54 docs\ndrwxrwxr-x 2 gbase8 gbase8  101 Sep  4 05:54 install_config\ndrwxrwxr-x 3 gbase8 gbase8   37 Sep  4 05:54 install_templet\n-rw-r--r-- 1 gbase8 gbase8 3351 Sep  4 05:54 license.txt\ndrwxrwxr-x 3 gbase8 gbase8   21 Sep  4 05:54 log\ndrwxrwxr-x 2 gbase8 gbase8    6 Sep  4 05:54 misc\n-rw-rw-r-- 1 gbase8 gbase8  446 Sep  4 05:54 readme.txt\ndrwxrwxr-x 7 gbase8 gbase8   72 Sep  4 05:54 server\ndrwxrwxr-x 4 gbase8 gbase8   49 Sep  4 05:54 tmpdata\ndrwxrwxr-x 3 gbase8 gbase8   21 Sep  4 05:54 userdata\n&#91;gbase8@gbase8a GBase]$ cd server\/\n&#91;gbase8@gbase8a server]$ ll\ntotal 4\ndrwxrwxr-x 4 gbase8 gbase8 4096 Sep  4 05:54 bin\ndrwxrwxr-x 3 gbase8 gbase8   19 Sep  4 05:54 include\ndrwxrwxr-x 3 gbase8 gbase8   19 Sep  4 05:54 lib\ndrwxrwxr-x 4 gbase8 gbase8   35 Sep  4 05:54 share\ndrwx------ 2 gbase8 gbase8   22 Sep  4 05:54 translog\n&#91;gbase8@gbase8a server]$ cd translog\/\n&#91;gbase8@gbase8a translog]$ ll\ntotal 0\n-rw------- 1 gbase8 gbase8 0 Sep  4 05:54 translog\n&#91;gbase8@gbase8a translog]$\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%BC%80%E5%90%AF%E4%BA%8B%E5%8A%A1\"><\/span>\u5f00\u542f\u4e8b\u52a1<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>\u589e\u52a0\u6216\u4fee\u6539\u914d\u7f6e\u53c2\u6570,\u7136\u540e\u91cd\u542f\u670d\u52a1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gbase_tx_log_mode=USE,STANDARD_TRANS<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"433\" height=\"461\" src=\"http:\/\/www.gbase8.cn\/wp-content\/uploads\/2020\/09\/image-26.png\" alt=\"GBase 8a \u5355\u673a translog \u4e8b\u52a1 \u542f\u52a8 gbase_tx_log_mode=USE,STANDARD_TRANS\" class=\"wp-image-1415\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase8@gbase8a config]$ vi gbase_8a_gbase8a.cnf\n&#91;gbase8@gbase8a config]$ gbase.server restart\nShutting down GBase.... SUCCESS!\nStarting GBase. SUCCESS!\n&#91;gbase8@gbase8a config]$ gbase\n\nGBase client Free Edition 8.6.2.43-R7-free.110605. Copyright (c) 2004-2020, GBase.  All Rights Reserved.\n\ngbase> show variables like '%tx%';\n+-------------------------+-------------------------------------+\n| Variable_name           | Value                               |\n+-------------------------+-------------------------------------+\n| gbase_tx_log_dir        | \/home\/gbase8\/GBase\/server\/translog\/ |\n| gbase_tx_log_flush_time | 90.000000                           |\n| gbase_tx_log_mode       | USE,STANDARD_TRANS                  |\n| tx_isolation            | REPEATABLE-READ                     |\n+-------------------------+-------------------------------------+\n4 rows in set (Elapsed: 00:00:00.00)\n\ngbase> ^CAborted\n<\/code><\/pre>\n\n\n\n<p>\u67e5\u770btranslog,\u5df2\u7ecf\u5f00\u59cb\u4f7f\u7528\u4e86\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase8@gbase8a GBase]$ cd server\/translog\/\n&#91;gbase8@gbase8a translog]$ ll\ntotal 4\n-rw------- 1 gbase8 gbase8 4 Sep  4 06:38 translog\n&#91;gbase8@gbase8a translog]$ cat translog\n&#91;gbase8@gbase8a translog]$ xxd translog\n0000000: 0000 0000                                ....\n&#91;gbase8@gbase8a translog]$ <\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5b98\u65b9\u8bba\u575b <a href=\"http:\/\/www.gbase8a.com\/forum.php\">http:\/\/www.gbase8a.com\/forum.php<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u5357\u5927\u901a\u7528GBase 8a\u5355\u673a\uff0c\u5176\u4e8b\u52a1\u662f\u8bb0\u5f55\u5728\u4e8b\u52a1\u65e5\u5fd7translog\u91cc\u7684\uff0c\u5982\u679c\u56e0\u67d0\u4e9b\u539f\u56e0\u51fa\u73b0\u635f\u574f\u3002\u800c\u5728\u6570\u636e\u5e93\u542f\u52a8\u65f6\uff0c\u4f1a\u5c1d\u8bd5redo, \u800c\u6b64\u65f6translog\u65e5\u5fd7\u635f\u574f\uff0c\u5bfc\u81f4\u5361\u4f4f\u6216\u62a5\u9519\u3002\u5220\u9664\u65e5\u5fd7\u6587\u4ef6\u540e\uff0c\u53ef\u4ee5\u6b63\u5e38\u542f\u52a8\u3002<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[],"class_list":["post-1412","post","type-post","status-publish","format-standard","hentry","category-gbase8a"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/1412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/comments?post=1412"}],"version-history":[{"count":6,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/1412\/revisions"}],"predecessor-version":[{"id":1428,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/1412\/revisions\/1428"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=1412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=1412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=1412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}