{"id":160353,"date":"2024-11-03T22:24:19","date_gmt":"2024-11-03T14:24:19","guid":{"rendered":"https:\/\/server.hk\/cnblog\/160353\/"},"modified":"2024-11-03T22:24:21","modified_gmt":"2024-11-03T14:24:21","slug":"oceanbase-%e6%95%99%e7%a8%8b%ef%bc%9aoceanbase-%e7%99%bc%e8%b5%b7%e6%81%a2%e5%be%a9","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/160353\/","title":{"rendered":"OceanBase \u6559\u7a0b\uff1aOceanBase \u767c\u8d77\u6062\u5fa9"},"content":{"rendered":"<h1 id=\"oceanbase-%e6%95%99%e7%a8%8b%ef%bc%9aoceanbase-%e7%99%bc%e8%b5%b7%e6%81%a2%e5%be%a9-sjNNnIpkph\">OceanBase \u6559\u7a0b\uff1aOceanBase \u767c\u8d77\u6062\u5fa9<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u6578\u64da\u9a45\u52d5\u6642\u4ee3\uff0c\u6578\u64da\u5eab\u7684\u7a69\u5b9a\u6027\u548c\u53ef\u9760\u6027\u81f3\u95dc\u91cd\u8981\u3002OceanBase \u4f5c\u70ba\u4e00\u6b3e\u9ad8\u6027\u80fd\u7684\u5206\u4f48\u5f0f\u6578\u64da\u5eab\uff0c\u5ee3\u6cdb\u61c9\u7528\u65bc\u91d1\u878d\u3001\u96fb\u5546\u7b49\u884c\u696d\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e OceanBase \u7684\u767c\u8d77\u6062\u5fa9\u6a5f\u5236\uff0c\u5e6b\u52a9\u7528\u6236\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f7f\u7528\u9019\u4e00\u529f\u80fd\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%af-oceanbase-%e7%9a%84%e7%99%bc%e8%b5%b7%e6%81%a2%e5%be%a9%ef%bc%9f-sjNNnIpkph\">\u4ec0\u9ebc\u662f OceanBase \u7684\u767c\u8d77\u6062\u5fa9\uff1f<\/h2>\n<p>\u767c\u8d77\u6062\u5fa9\u662f OceanBase \u6578\u64da\u5eab\u7684\u4e00\u9805\u91cd\u8981\u529f\u80fd\uff0c\u65e8\u5728\u78ba\u4fdd\u5728\u7cfb\u7d71\u6545\u969c\u6216\u6578\u64da\u640d\u58de\u7684\u60c5\u6cc1\u4e0b\uff0c\u80fd\u5920\u5feb\u901f\u6062\u5fa9\u6578\u64da\u7684\u53ef\u7528\u6027\u3002\u9019\u4e00\u904e\u7a0b\u901a\u5e38\u6d89\u53ca\u5230\u6578\u64da\u7684\u91cd\u5efa\u548c\u6062\u5fa9\uff0c\u4e26\u4e14\u53ef\u4ee5\u5728\u6700\u5c0f\u5316\u696d\u52d9\u4e2d\u65b7\u7684\u60c5\u6cc1\u4e0b\u9032\u884c\u3002<\/p>\n<h2 id=\"%e7%99%bc%e8%b5%b7%e6%81%a2%e5%be%a9%e7%9a%84%e5%b7%a5%e4%bd%9c%e5%8e%9f%e7%90%86-sjNNnIpkph\">\u767c\u8d77\u6062\u5fa9\u7684\u5de5\u4f5c\u539f\u7406<\/h2>\n<p>OceanBase \u7684\u767c\u8d77\u6062\u5fa9\u4e3b\u8981\u4f9d\u8cf4\u65bc\u5176\u5167\u90e8\u7684\u6578\u64da\u5197\u9918\u548c\u5206\u4f48\u5f0f\u67b6\u69cb\u3002\u7576\u7cfb\u7d71\u6aa2\u6e2c\u5230\u6545\u969c\u6642\uff0c\u6703\u81ea\u52d5\u555f\u52d5\u6062\u5fa9\u6d41\u7a0b\uff0c\u5177\u9ad4\u6b65\u9a5f\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li><strong>\u6545\u969c\u6aa2\u6e2c\uff1a<\/strong>\u7cfb\u7d71\u6703\u5b9a\u671f\u6aa2\u67e5\u5404\u500b\u7bc0\u9ede\u7684\u5065\u5eb7\u72c0\u614b\uff0c\u4e00\u65e6\u767c\u73fe\u7570\u5e38\uff0c\u5c07\u7acb\u5373\u6a19\u8a18\u70ba\u6545\u969c\u7bc0\u9ede\u3002<\/li>\n<li><strong>\u6578\u64da\u91cd\u5efa\uff1a<\/strong>\u7cfb\u7d71\u6703\u6839\u64da\u5197\u9918\u6578\u64da\u81ea\u52d5\u91cd\u5efa\u6545\u969c\u7bc0\u9ede\u4e0a\u7684\u6578\u64da\uff0c\u78ba\u4fdd\u6578\u64da\u7684\u4e00\u81f4\u6027\u548c\u5b8c\u6574\u6027\u3002<\/li>\n<li><strong>\u6062\u5fa9\u64cd\u4f5c\uff1a<\/strong>\u5728\u6578\u64da\u91cd\u5efa\u5b8c\u6210\u5f8c\uff0c\u7cfb\u7d71\u6703\u5c07\u6545\u969c\u7bc0\u9ede\u91cd\u65b0\u52a0\u5165\u96c6\u7fa4\uff0c\u4e26\u9032\u884c\u5fc5\u8981\u7684\u540c\u6b65\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%a6%82%e4%bd%95%e7%99%bc%e8%b5%b7%e6%81%a2%e5%be%a9-sjNNnIpkph\">\u5982\u4f55\u767c\u8d77\u6062\u5fa9<\/h2>\n<p>\u7528\u6236\u53ef\u4ee5\u901a\u904e OceanBase \u63d0\u4f9b\u7684\u547d\u4ee4\u884c\u5de5\u5177\u6216 API \u4f86\u624b\u52d5\u767c\u8d77\u6062\u5fa9\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u9032\u884c\u767c\u8d77\u6062\u5fa9\u7684\u57fa\u672c\u6b65\u9a5f\uff1a<\/p>\n<pre><code>obclient -h  -u  -p \n<\/code><\/pre>\n<p>\u9023\u63a5\u5230 OceanBase \u6578\u64da\u5eab\u5f8c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u6aa2\u67e5\u96c6\u7fa4\u72c0\u614b\uff1a<\/p>\n<pre><code>SHOW STATUS;\n<\/code><\/pre>\n<p>\u5982\u679c\u767c\u73fe\u67d0\u500b\u7bc0\u9ede\u8655\u65bc\u6545\u969c\u72c0\u614b\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u767c\u8d77\u6062\u5fa9\uff1a<\/p>\n<pre><code>ALTER SYSTEM RECOVER ;\n<\/code><\/pre>\n<p>\u9019\u689d\u547d\u4ee4\u5c07\u6703\u89f8\u767c\u7cfb\u7d71\u81ea\u52d5\u9032\u884c\u6578\u64da\u91cd\u5efa\u548c\u6062\u5fa9\u64cd\u4f5c\u3002<\/p>\n<h2 id=\"%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a0%85-sjNNnIpkph\">\u6ce8\u610f\u4e8b\u9805<\/h2>\n<p>\u5728\u9032\u884c\u767c\u8d77\u6062\u5fa9\u6642\uff0c\u7528\u6236\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u5e7e\u9ede\uff1a<\/p>\n<ul>\n<li>\u78ba\u4fdd\u6709\u8db3\u5920\u7684\u5197\u9918\u6578\u64da\uff0c\u4ee5\u4fbf\u5728\u6545\u969c\u767c\u751f\u6642\u80fd\u5920\u5feb\u901f\u6062\u5fa9\u3002<\/li>\n<li>\u5b9a\u671f\u6aa2\u67e5\u96c6\u7fa4\u7684\u5065\u5eb7\u72c0\u614b\uff0c\u53ca\u6642\u767c\u73fe\u6f5b\u5728\u7684\u554f\u984c\u3002<\/li>\n<li>\u5728\u9032\u884c\u6062\u5fa9\u64cd\u4f5c\u6642\uff0c\u61c9\u8a72\u907f\u514d\u5c0d\u6578\u64da\u5eab\u9032\u884c\u5176\u4ed6\u64cd\u4f5c\uff0c\u4ee5\u514d\u5f71\u97ff\u6062\u5fa9\u7684\u6548\u7387\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b5%90%e8%ab%96-sjNNnIpkph\">\u7d50\u8ad6<\/h2>\n<p>OceanBase \u7684\u767c\u8d77\u6062\u5fa9\u529f\u80fd\u70ba\u7528\u6236\u63d0\u4f9b\u4e86\u4e00\u500b\u9ad8\u6548\u3001\u53ef\u9760\u7684\u6578\u64da\u6062\u5fa9\u89e3\u6c7a\u65b9\u6848\u3002\u901a\u904e\u4e86\u89e3\u5176\u5de5\u4f5c\u539f\u7406\u548c\u64cd\u4f5c\u6b65\u9a5f\uff0c\u7528\u6236\u53ef\u4ee5\u5728\u9762\u5c0d\u7cfb\u7d71\u6545\u969c\u6642\uff0c\u8fc5\u901f\u63a1\u53d6\u884c\u52d5\uff0c\u6e1b\u5c11\u696d\u52d9\u640d\u5931\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u53ef\u7528\u6027\u548c\u7a69\u5b9a\u6027\u7684\u61c9\u7528\u5834\u666f\uff0cOceanBase \u7121\u7591\u662f\u4e00\u500b\u503c\u5f97\u8003\u616e\u7684\u9078\u64c7\u3002<\/p>\n<p>\u5982\u9700\u4e86\u89e3\u66f4\u591a\u95dc\u65bc <a href=\"https:\/\/server.hk\">VPS<\/a> \u53ca\u5176\u4ed6\u76f8\u95dc\u670d\u52d9\u7684\u4fe1\u606f\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b78\u7fd2\u5982\u4f55\u5728 OceanBase \u4e2d\u767c\u8d77\u6062\u5fa9\u64cd\u4f5c\uff0c\u78ba\u4fdd\u6578\u64da\u5b89\u5168\u8207\u7cfb\u7d71\u7a69\u5b9a\uff0c\u63d0\u5347\u6578\u64da\u7ba1\u7406\u6548\u7387\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-160353","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/160353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=160353"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/160353\/revisions"}],"predecessor-version":[{"id":160354,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/160353\/revisions\/160354"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=160353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=160353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=160353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}