{"id":93826,"date":"2024-10-19T17:14:18","date_gmt":"2024-10-19T09:14:18","guid":{"rendered":"https:\/\/server.hk\/cnblog\/93826\/"},"modified":"2024-10-19T17:14:19","modified_gmt":"2024-10-19T09:14:19","slug":"oracle-12-2-%e5%95%9f%e7%94%a8%e6%95%b8%e6%93%9a%e5%ba%ab%e5%b0%8d%e8%b1%a1%e7%9a%84-in-memory-%e8%bd%89%e6%8f%9b%e5%a1%ab%e5%85%85","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/93826\/","title":{"rendered":"Oracle 12.2 \u555f\u7528\u6578\u64da\u5eab\u5c0d\u8c61\u7684 In-Memory \u8f49\u63db\u586b\u5145"},"content":{"rendered":"<h1 id=\"oracle-12-2-%e5%95%9f%e7%94%a8%e6%95%b8%e6%93%9a%e5%ba%ab%e5%b0%8d%e8%b1%a1%e7%9a%84-in-memory-%e8%bd%89%e6%8f%9b%e5%a1%ab%e5%85%85-LPvSwnOJbt\">Oracle 12.2 \u555f\u7528\u6578\u64da\u5eab\u5c0d\u8c61\u7684 In-Memory \u8f49\u63db\u586b\u5145<\/h1>\n<p>\u5728\u7576\u4eca\u6578\u64da\u9a45\u52d5\u7684\u4e16\u754c\u4e2d\uff0c\u6578\u64da\u5eab\u7684\u6027\u80fd\u548c\u6548\u7387\u81f3\u95dc\u91cd\u8981\u3002Oracle 12.2 \u5f15\u5165\u4e86 In-Memory \u529f\u80fd\uff0c\u9019\u662f\u4e00\u9805\u9769\u547d\u6027\u7684\u6280\u8853\uff0c\u65e8\u5728\u63d0\u9ad8\u67e5\u8a62\u6027\u80fd\u548c\u6578\u64da\u8655\u7406\u901f\u5ea6\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u5982\u4f55\u5728 Oracle 12.2 \u4e2d\u555f\u7528\u6578\u64da\u5eab\u5c0d\u8c61\u7684 In-Memory \u8f49\u63db\u586b\u5145\uff0c\u4e26\u63d0\u4f9b\u76f8\u95dc\u7684\u6280\u8853\u7d30\u7bc0\u548c\u5be6\u7528\u793a\u4f8b\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%af-in-memory-%e8%bd%89%e6%8f%9b%e5%a1%ab%e5%85%85%ef%bc%9f-LPvSwnOJbt\">\u4ec0\u9ebc\u662f In-Memory \u8f49\u63db\u586b\u5145\uff1f<\/h2>\n<p>In-Memory \u8f49\u63db\u586b\u5145\u662f\u4e00\u7a2e\u5c07\u6578\u64da\u5eab\u5c0d\u8c61\uff08\u5982\u8868\u548c\u5206\u5340\uff09\u5b58\u5132\u5728\u5167\u5b58\u4e2d\u7684\u6280\u8853\u3002\u9019\u7a2e\u65b9\u6cd5\u4f7f\u5f97\u6578\u64da\u53ef\u4ee5\u66f4\u5feb\u5730\u88ab\u8a2a\u554f\uff0c\u56e0\u70ba\u5167\u5b58\u7684\u8b80\u53d6\u901f\u5ea6\u9060\u9ad8\u65bc\u50b3\u7d71\u7684\u78c1\u789f\u5b58\u5132\u3002Oracle \u7684 In-Memory \u529f\u80fd\u5141\u8a31\u7528\u6236\u5c07\u6578\u64da\u4ee5\u5217\u5f0f\u683c\u5f0f\u5b58\u5132\uff0c\u9019\u5c0d\u65bc\u5206\u6790\u67e5\u8a62\u7279\u5225\u6709\u6548\u3002<\/p>\n<h2 id=\"%e5%95%9f%e7%94%a8-in-memory-%e5%8a%9f%e8%83%bd%e7%9a%84%e6%ad%a5%e9%a9%9f-LPvSwnOJbt\">\u555f\u7528 In-Memory \u529f\u80fd\u7684\u6b65\u9a5f<\/h2>\n<p>\u8981\u5728 Oracle 12.2 \u4e2d\u555f\u7528 In-Memory \u8f49\u63db\u586b\u5145\uff0c\u60a8\u9700\u8981\u9075\u5faa\u4ee5\u4e0b\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5-in-memory-%e5%8a%9f%e8%83%bd%e6%98%af%e5%90%a6%e5%95%9f%e7%94%a8-LPvSwnOJbt\">1. \u6aa2\u67e5 In-Memory \u529f\u80fd\u662f\u5426\u555f\u7528<\/h3>\n<pre><code>SELECT * FROM V$OPTION WHERE PARAMETER = 'In-Memory' AND VALUE = 'TRUE';<\/code><\/pre>\n<p>\u9019\u689d\u67e5\u8a62\u5c07\u544a\u8a34\u60a8 In-Memory \u529f\u80fd\u662f\u5426\u5df2\u7d93\u555f\u7528\u3002\u5982\u679c\u8fd4\u56de\u7684\u7d50\u679c\u986f\u793a\u70ba &#8216;FALSE&#8217;\uff0c\u5247\u9700\u8981\u9032\u884c\u76f8\u61c9\u7684\u914d\u7f6e\u3002<\/p>\n<h3 id=\"2-%e5%95%9f%e7%94%a8-in-memory-%e5%8a%9f%e8%83%bd-LPvSwnOJbt\">2. \u555f\u7528 In-Memory \u529f\u80fd<\/h3>\n<p>\u5982\u679c In-Memory \u529f\u80fd\u5c1a\u672a\u555f\u7528\uff0c\u60a8\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u547d\u4ee4\u4f86\u555f\u7528\uff1a<\/p>\n<pre><code>ALTER SYSTEM SET INMEMORY_SIZE = 4G;<\/code><\/pre>\n<p>\u9019\u689d\u547d\u4ee4\u5c07 In-Memory \u7684\u5927\u5c0f\u8a2d\u7f6e\u70ba 4GB\uff0c\u60a8\u53ef\u4ee5\u6839\u64da\u9700\u8981\u8abf\u6574\u9019\u500b\u503c\u3002<\/p>\n<h3 id=\"3-%e5%b0%87%e6%95%b8%e6%93%9a%e5%ba%ab%e5%b0%8d%e8%b1%a1%e8%a8%ad%e7%bd%ae%e7%82%ba-in-memory-LPvSwnOJbt\">3. \u5c07\u6578\u64da\u5eab\u5c0d\u8c61\u8a2d\u7f6e\u70ba In-Memory<\/h3>\n<p>\u4e00\u65e6 In-Memory \u529f\u80fd\u555f\u7528\uff0c\u60a8\u53ef\u4ee5\u9078\u64c7\u5c07\u7279\u5b9a\u7684\u6578\u64da\u5eab\u5c0d\u8c61\u8a2d\u7f6e\u70ba In-Memory\u3002\u4ee5\u4e0b\u662f\u5c07\u8868\u8a2d\u7f6e\u70ba In-Memory \u7684\u793a\u4f8b\uff1a<\/p>\n<pre><code>ALTER TABLE your_table_name INMEMORY;<\/code><\/pre>\n<p>\u9019\u689d\u547d\u4ee4\u5c07\u6307\u5b9a\u7684\u8868\u8f49\u63db\u70ba In-Memory \u683c\u5f0f\uff0c\u5f9e\u800c\u63d0\u9ad8\u67e5\u8a62\u6027\u80fd\u3002<\/p>\n<h2 id=\"in-memory-%e8%bd%89%e6%8f%9b%e5%a1%ab%e5%85%85%e7%9a%84%e5%84%aa%e5%8b%a2-LPvSwnOJbt\">In-Memory \u8f49\u63db\u586b\u5145\u7684\u512a\u52e2<\/h2>\n<ul>\n<li><strong>\u63d0\u9ad8\u67e5\u8a62\u6027\u80fd\uff1a<\/strong>\u7531\u65bc\u6578\u64da\u4ee5\u5217\u5f0f\u683c\u5f0f\u5b58\u5132\uff0c\u67e5\u8a62\u6027\u80fd\u986f\u8457\u63d0\u9ad8\uff0c\u7279\u5225\u662f\u5728\u9032\u884c\u805a\u5408\u548c\u5206\u6790\u64cd\u4f5c\u6642\u3002<\/li>\n<li><strong>\u6e1b\u5c11 I\/O \u64cd\u4f5c\uff1a<\/strong>\u6578\u64da\u5728\u5167\u5b58\u4e2d\u8655\u7406\uff0c\u6e1b\u5c11\u4e86\u5c0d\u78c1\u789f\u7684\u8b80\u53d6\u9700\u6c42\uff0c\u5f9e\u800c\u63d0\u9ad8\u4e86\u6574\u9ad4\u7cfb\u7d71\u6027\u80fd\u3002<\/li>\n<li><strong>\u9748\u6d3b\u6027\uff1a<\/strong>\u7528\u6236\u53ef\u4ee5\u6839\u64da\u9700\u6c42\u9078\u64c7\u54ea\u4e9b\u8868\u6216\u5206\u5340\u4f7f\u7528 In-Memory \u529f\u80fd\uff0c\u9019\u4f7f\u5f97\u8cc7\u6e90\u7684\u4f7f\u7528\u66f4\u52a0\u9748\u6d3b\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a0%85-LPvSwnOJbt\">\u6ce8\u610f\u4e8b\u9805<\/h2>\n<p>\u5728\u555f\u7528 In-Memory \u529f\u80fd\u6642\uff0c\u9700\u8003\u616e\u4ee5\u4e0b\u5e7e\u9ede\uff1a<\/p>\n<ul>\n<li>\u78ba\u4fdd\u7cfb\u7d71\u6709\u8db3\u5920\u7684\u5167\u5b58\u4f86\u652f\u6301 In-Memory \u529f\u80fd\u7684\u904b\u884c\u3002<\/li>\n<li>\u5b9a\u671f\u76e3\u63a7 In-Memory \u7684\u4f7f\u7528\u60c5\u6cc1\uff0c\u4ee5\u78ba\u4fdd\u6027\u80fd\u7684\u6700\u4f73\u5316\u3002<\/li>\n<li>\u6839\u64da\u696d\u52d9\u9700\u6c42\uff0c\u5b9a\u671f\u8a55\u4f30\u54ea\u4e9b\u6578\u64da\u5eab\u5c0d\u8c61\u61c9\u8a72\u4f7f\u7528 In-Memory \u529f\u80fd\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-LPvSwnOJbt\">\u7e3d\u7d50<\/h2>\n<p>Oracle 12.2 \u7684 In-Memory \u8f49\u63db\u586b\u5145\u529f\u80fd\u70ba\u6578\u64da\u5eab\u6027\u80fd\u7684\u63d0\u5347\u63d0\u4f9b\u4e86\u5f37\u6709\u529b\u7684\u652f\u6301\u3002\u901a\u904e\u6b63\u78ba\u7684\u914d\u7f6e\u548c\u4f7f\u7528\uff0c\u4f01\u696d\u53ef\u4ee5\u986f\u8457\u63d0\u9ad8\u67e5\u8a62\u901f\u5ea6\u548c\u6578\u64da\u8655\u7406\u6548\u7387\u3002\u5c0d\u65bc\u9700\u8981\u9ad8\u6027\u80fd\u6578\u64da\u8655\u7406\u7684\u61c9\u7528\u5834\u666f\uff0cIn-Memory \u529f\u80fd\u7121\u7591\u662f\u4e00\u500b\u503c\u5f97\u8003\u616e\u7684\u9078\u64c7\u3002\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u9ad8\u6548\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\u4ee5\u6eff\u8db3\u60a8\u7684\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3\u5982\u4f55\u5728 Oracle 12.2 \u4e2d\u555f\u7528\u6578\u64da\u5eab\u5c0d\u8c61\u7684 In-Memory \u8f49\u63db\u586b\u5145\uff0c\u63d0\u5347\u67e5\u8a62\u6027\u80fd\u8207\u6578\u64da\u8655\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-93826","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/93826","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=93826"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/93826\/revisions"}],"predecessor-version":[{"id":93827,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/93826\/revisions\/93827"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=93826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=93826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=93826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}