{"id":160175,"date":"2024-11-03T20:54:20","date_gmt":"2024-11-03T12:54:20","guid":{"rendered":"https:\/\/server.hk\/cnblog\/160175\/"},"modified":"2024-11-03T20:54:21","modified_gmt":"2024-11-03T12:54:21","slug":"oceanbase-%e6%95%99%e7%a8%8b%ef%bc%9aoceanbase-max","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/160175\/","title":{"rendered":"OceanBase \u6559\u7a0b\uff1aOceanBase MAX"},"content":{"rendered":"<h1 id=\"oceanbase-%e6%95%99%e7%a8%8b%ef%bc%9aoceanbase-max-bebofkbwOE\">OceanBase \u6559\u7a0b\uff1aOceanBase MAX<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u6578\u64da\u5eab\u6280\u8853\u4e2d\uff0cOceanBase \u4f5c\u70ba\u4e00\u500b\u9ad8\u6027\u80fd\u7684\u5206\u4f48\u5f0f\u6578\u64da\u5eab\u7cfb\u7d71\uff0c\u9010\u6f38\u53d7\u5230\u5ee3\u6cdb\u95dc\u6ce8\u3002\u7279\u5225\u662f\u5176\u6700\u65b0\u7248\u672c OceanBase MAX\uff0c\u63d0\u4f9b\u4e86\u66f4\u5f37\u5927\u7684\u529f\u80fd\u548c\u66f4\u9ad8\u7684\u6027\u80fd\uff0c\u9069\u5408\u5404\u7a2e\u696d\u52d9\u9700\u6c42\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e OceanBase MAX \u7684\u7279\u6027\u3001\u5b89\u88dd\u6b65\u9a5f\u53ca\u57fa\u672c\u64cd\u4f5c\uff0c\u5e6b\u52a9\u7528\u6236\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f7f\u7528\u9019\u4e00\u6578\u64da\u5eab\u7cfb\u7d71\u3002<\/p>\n<h2 id=\"oceanbase-max-%e7%9a%84%e7%89%b9%e6%80%a7-bebofkbwOE\">OceanBase MAX \u7684\u7279\u6027<\/h2>\n<p>OceanBase MAX \u662f OceanBase \u6578\u64da\u5eab\u7684\u4e00\u500b\u589e\u5f37\u7248\u672c\uff0c\u4e3b\u8981\u91dd\u5c0d\u6027\u80fd\u548c\u53ef\u64f4\u5c55\u6027\u9032\u884c\u4e86\u512a\u5316\u3002\u4ee5\u4e0b\u662f\u5176\u5e7e\u500b\u4e3b\u8981\u7279\u6027\uff1a<\/p>\n<ul>\n<li><strong>\u9ad8\u53ef\u7528\u6027\uff1a<\/strong>OceanBase MAX \u652f\u6301\u591a\u526f\u672c\u6578\u64da\u5b58\u5132\uff0c\u78ba\u4fdd\u5728\u786c\u9ad4\u6545\u969c\u6216\u7db2\u7d61\u554f\u984c\u767c\u751f\u6642\uff0c\u6578\u64da\u4ecd\u7136\u53ef\u7528\u3002<\/li>\n<li><strong>\u7dda\u6027\u64f4\u5c55\uff1a<\/strong>\u7528\u6236\u53ef\u4ee5\u6839\u64da\u696d\u52d9\u9700\u6c42\uff0c\u96a8\u6642\u64f4\u5c55\u7cfb\u7d71\u7684\u8a08\u7b97\u548c\u5b58\u5132\u8cc7\u6e90\uff0c\u800c\u4e0d\u5f71\u97ff\u73fe\u6709\u670d\u52d9\u7684\u904b\u884c\u3002<\/li>\n<li><strong>\u5f37\u4e00\u81f4\u6027\uff1a<\/strong>OceanBase MAX \u63d0\u4f9b\u4e86\u5f37\u4e00\u81f4\u6027\u7684\u6578\u64da\u4fdd\u8b49\uff0c\u78ba\u4fdd\u7528\u6236\u5728\u8b80\u53d6\u6578\u64da\u6642\u7372\u5f97\u6700\u65b0\u7684\u6578\u64da\u72c0\u614b\u3002<\/li>\n<li><strong>\u591a\u6a21\u584a\u652f\u6301\uff1a<\/strong>\u652f\u6301 OLTP \u548c OLAP \u7684\u6df7\u5408\u8ca0\u8f09\uff0c\u9069\u5408\u5404\u985e\u578b\u7684\u696d\u52d9\u5834\u666f\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%ae%89%e8%a3%9d-oceanbase-max-bebofkbwOE\">\u5b89\u88dd OceanBase MAX<\/h2>\n<p>\u5b89\u88dd OceanBase MAX \u7684\u904e\u7a0b\u76f8\u5c0d\u7c21\u55ae\uff0c\u4ee5\u4e0b\u662f\u57fa\u672c\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"%e7%b3%bb%e7%b5%b1%e8%a6%81%e6%b1%82-bebofkbwOE\">\u7cfb\u7d71\u8981\u6c42<\/h3>\n<ul>\n<li>\u64cd\u4f5c\u7cfb\u7d71\uff1a\u652f\u6301 Linux \u7cfb\u7d71\uff08\u5982 CentOS\u3001Ubuntu \u7b49\uff09<\/li>\n<li>\u5167\u5b58\uff1a\u81f3\u5c11 8GB<\/li>\n<li>\u5b58\u5132\uff1aSSD \u5132\u5b58\u5efa\u8b70\uff0c\u81f3\u5c11 100GB \u53ef\u7528\u7a7a\u9593<\/li>\n<\/ul>\n<h3 id=\"%e5%ae%89%e8%a3%9d%e6%ad%a5%e9%a9%9f-bebofkbwOE\">\u5b89\u88dd\u6b65\u9a5f<\/h3>\n<pre><code>1. \u4e0b\u8f09 OceanBase MAX \u5b89\u88dd\u5305\uff1a\n   wget https:\/\/www.oceanbase.com\/download\/oceanbase-max.tar.gz\n\n2. \u89e3\u58d3\u5b89\u88dd\u5305\uff1a\n   tar -zxvf oceanbase-max.tar.gz\n\n3. \u9032\u5165\u5b89\u88dd\u76ee\u9304\uff1a\n   cd oceanbase-max\n\n4. \u57f7\u884c\u5b89\u88dd\u8173\u672c\uff1a\n   .\/install.sh\n<\/code><\/pre>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u555f\u52d5 OceanBase MAX\uff1a<\/p>\n<pre><code>.\/start.sh\n<\/code><\/pre>\n<h2 id=\"%e5%9f%ba%e6%9c%ac%e6%93%8d%e4%bd%9c-bebofkbwOE\">\u57fa\u672c\u64cd\u4f5c<\/h2>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u53ef\u4ee5\u958b\u59cb\u4f7f\u7528 OceanBase MAX \u9032\u884c\u6578\u64da\u5eab\u64cd\u4f5c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u57fa\u672c\u7684 SQL \u64cd\u4f5c\u793a\u4f8b\uff1a<\/p>\n<h3 id=\"%e5%89%b5%e5%bb%ba%e6%95%b8%e6%93%9a%e5%ba%ab-bebofkbwOE\">\u5275\u5efa\u6578\u64da\u5eab<\/h3>\n<pre><code>CREATE DATABASE test_db;\n<\/code><\/pre>\n<h3 id=\"%e5%89%b5%e5%bb%ba%e8%a1%a8-bebofkbwOE\">\u5275\u5efa\u8868<\/h3>\n<pre><code>CREATE TABLE users (\n    id INT PRIMARY KEY,\n    name VARCHAR(100),\n    email VARCHAR(100)\n);\n<\/code><\/pre>\n<h3 id=\"%e6%8f%92%e5%85%a5%e6%95%b8%e6%93%9a-bebofkbwOE\">\u63d2\u5165\u6578\u64da<\/h3>\n<pre><code>INSERT INTO users (id, name, email) VALUES (1, 'Alice', 'alice@example.com');\n<\/code><\/pre>\n<h3 id=\"%e6%9f%a5%e8%a9%a2%e6%95%b8%e6%93%9a-bebofkbwOE\">\u67e5\u8a62\u6578\u64da<\/h3>\n<pre><code>SELECT * FROM users;\n<\/code><\/pre>\n<h2 id=\"%e7%b8%bd%e7%b5%90-bebofkbwOE\">\u7e3d\u7d50<\/h2>\n<p>OceanBase MAX \u4f5c\u70ba\u4e00\u500b\u9ad8\u6027\u80fd\u7684\u5206\u4f48\u5f0f\u6578\u64da\u5eab\u7cfb\u7d71\uff0c\u63d0\u4f9b\u4e86\u5f37\u5927\u7684\u529f\u80fd\u548c\u9748\u6d3b\u7684\u64f4\u5c55\u6027\uff0c\u9069\u5408\u5404\u985e\u578b\u7684\u696d\u52d9\u9700\u6c42\u3002\u901a\u904e\u672c\u6587\u7684\u4ecb\u7d39\uff0c\u60a8\u61c9\u8a72\u5c0d OceanBase MAX \u7684\u7279\u6027\u3001\u5b89\u88dd\u6b65\u9a5f\u53ca\u57fa\u672c\u64cd\u4f5c\u6709\u4e86\u521d\u6b65\u7684\u4e86\u89e3\u3002\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u7a69\u5b9a\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2f VPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\uff0c\u6eff\u8db3\u4e0d\u540c\u7528\u6236\u7684\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a2\u7d22 OceanBase \u6559\u7a0b\uff0c\u638c\u63e1 OceanBase MAX \u7684\u6838\u5fc3\u529f\u80fd\u4e0e\u6700\u4f73\u5b9e\u8df5\uff0c\u63d0\u5347\u6570\u636e\u5e93\u7ba1\u7406\u4e0e\u6027\u80fd\u4f18\u5316\u6280\u80fd\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-160175","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/160175","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=160175"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/160175\/revisions"}],"predecessor-version":[{"id":160176,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/160175\/revisions\/160176"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=160175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=160175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=160175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}