{"id":96306,"date":"2024-10-20T08:19:16","date_gmt":"2024-10-20T00:19:16","guid":{"rendered":"https:\/\/server.hk\/cnblog\/96306\/"},"modified":"2024-10-20T08:19:17","modified_gmt":"2024-10-20T00:19:17","slug":"oracle%e5%ad%97%e7%ac%a6%e9%9b%86%e7%94%b1%e9%82%a3%e4%ba%9b%e9%83%a8%e5%88%86%e7%b5%84%e6%88%90","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/96306\/","title":{"rendered":"Oracle\u5b57\u7b26\u96c6\u7531\u90a3\u4e9b\u90e8\u5206\u7d44\u6210"},"content":{"rendered":"<h1 id=\"oracle%e5%ad%97%e7%ac%a6%e9%9b%86%e7%94%b1%e9%82%a3%e4%ba%9b%e9%83%a8%e5%88%86%e7%b5%84%e6%88%90-gMGmRhModb\">Oracle\u5b57\u7b26\u96c6\u7531\u90a3\u4e9b\u90e8\u5206\u7d44\u6210<\/h1>\n<p>\u5728\u6578\u64da\u5eab\u7ba1\u7406\u4e2d\uff0c\u5b57\u7b26\u96c6\u7684\u9078\u64c7\u5c0d\u65bc\u6578\u64da\u7684\u5b58\u5132\u548c\u8655\u7406\u81f3\u95dc\u91cd\u8981\u3002Oracle\u6578\u64da\u5eab\u4f5c\u70ba\u4e00\u500b\u5ee3\u6cdb\u4f7f\u7528\u7684\u6578\u64da\u5eab\u7cfb\u7d71\uff0c\u5176\u5b57\u7b26\u96c6\u7684\u8a2d\u8a08\u548c\u7d44\u6210\u4e5f\u76f8\u7576\u8907\u96dc\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0eOracle\u5b57\u7b26\u96c6\u7684\u7d44\u6210\u90e8\u5206\u53ca\u5176\u91cd\u8981\u6027\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%af%e5%ad%97%e7%ac%a6%e9%9b%86%ef%bc%9f-gMGmRhModb\">\u4ec0\u9ebc\u662f\u5b57\u7b26\u96c6\uff1f<\/h2>\n<p>\u5b57\u7b26\u96c6\u662f\u6307\u4e00\u7d44\u5b57\u7b26\u7684\u96c6\u5408\uff0c\u9019\u4e9b\u5b57\u7b26\u53ef\u4ee5\u7528\u4f86\u8868\u793a\u6587\u672c\u6578\u64da\u3002\u5728\u6578\u64da\u5eab\u4e2d\uff0c\u5b57\u7b26\u96c6\u6c7a\u5b9a\u4e86\u5982\u4f55\u5b58\u5132\u548c\u6aa2\u7d22\u5b57\u7b26\u6578\u64da\u3002Oracle\u652f\u6301\u591a\u7a2e\u5b57\u7b26\u96c6\uff0c\u4ee5\u9069\u61c9\u4e0d\u540c\u8a9e\u8a00\u548c\u5730\u5340\u7684\u9700\u6c42\u3002<\/p>\n<h2 id=\"oracle%e5%ad%97%e7%ac%a6%e9%9b%86%e7%9a%84%e7%b5%84%e6%88%90%e9%83%a8%e5%88%86-gMGmRhModb\">Oracle\u5b57\u7b26\u96c6\u7684\u7d44\u6210\u90e8\u5206<\/h2>\n<p>Oracle\u5b57\u7b26\u96c6\u4e3b\u8981\u7531\u4ee5\u4e0b\u5e7e\u500b\u90e8\u5206\u7d44\u6210\uff1a<\/p>\n<ul>\n<li><strong>\u5b57\u5143\u96c6\uff08Character Set\uff09<\/strong>: \u9019\u662f\u5b57\u7b26\u96c6\u7684\u57fa\u672c\u7d44\u6210\u90e8\u5206\uff0c\u5b9a\u7fa9\u4e86\u53ef\u4ee5\u4f7f\u7528\u7684\u5b57\u7b26\u3002\u4f8b\u5982\uff0c\u5e38\u898b\u7684\u5b57\u5143\u96c6\u5305\u62ecASCII\u3001UTF-8\u548cISO-8859-1\u7b49\u3002<\/li>\n<li><strong>\u5b57\u5143\u96c6\u7de8\u78bc\uff08Character Set Encoding\uff09<\/strong>: \u6bcf\u500b\u5b57\u5143\u96c6\u90fd\u6709\u5176\u7279\u5b9a\u7684\u7de8\u78bc\u65b9\u5f0f\uff0c\u9019\u6c7a\u5b9a\u4e86\u5982\u4f55\u5c07\u5b57\u7b26\u8f49\u63db\u70ba\u4e8c\u9032\u5236\u6578\u64da\u3002\u4e0d\u540c\u7684\u7de8\u78bc\u65b9\u5f0f\u6703\u5f71\u97ff\u6578\u64da\u7684\u5b58\u5132\u6548\u7387\u548c\u517c\u5bb9\u6027\u3002<\/li>\n<li><strong>\u5b57\u5143\u96c6\u985e\u578b\uff08Character Set Type\uff09<\/strong>: Oracle\u652f\u6301\u591a\u7a2e\u5b57\u5143\u96c6\u985e\u578b\uff0c\u5305\u62ec\u55ae\u5b57\u5143\u96c6\uff08Single-byte Character Set\uff09\u548c\u591a\u5b57\u5143\u96c6\uff08Multi-byte Character Set\uff09\u3002\u55ae\u5b57\u5143\u96c6\u901a\u5e38\u7528\u65bc\u82f1\u8a9e\u7b49\u8a9e\u8a00\uff0c\u800c\u591a\u5b57\u5143\u96c6\u5247\u9069\u7528\u65bc\u4e2d\u6587\u3001\u65e5\u6587\u7b49\u9700\u8981\u66f4\u591a\u5b57\u7b26\u7684\u8a9e\u8a00\u3002<\/li>\n<li><strong>\u570b\u969b\u5316\u652f\u6301\uff08Internationalization Support\uff09<\/strong>: Oracle\u7684\u5b57\u7b26\u96c6\u8a2d\u8a08\u8003\u616e\u4e86\u570b\u969b\u5316\u9700\u6c42\uff0c\u652f\u6301\u591a\u7a2e\u8a9e\u8a00\u548c\u6587\u5316\u7684\u5b57\u7b26\u8868\u793a\u3002\u9019\u4f7f\u5f97Oracle\u80fd\u5920\u5728\u5168\u7403\u7bc4\u570d\u5167\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%ad%97%e7%ac%a6%e9%9b%86%e7%9a%84%e9%81%b8%e6%93%87-gMGmRhModb\">\u5b57\u7b26\u96c6\u7684\u9078\u64c7<\/h2>\n<p>\u5728\u8a2d\u8a08Oracle\u6578\u64da\u5eab\u6642\uff0c\u9078\u64c7\u5408\u9069\u7684\u5b57\u7b26\u96c6\u81f3\u95dc\u91cd\u8981\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u9078\u64c7\u5b57\u7b26\u96c6\u6642\u9700\u8981\u8003\u616e\u7684\u56e0\u7d20\uff1a<\/p>\n<ul>\n<li><strong>\u6578\u64da\u7684\u8a9e\u8a00\u9700\u6c42<\/strong>: \u6839\u64da\u61c9\u7528\u7a0b\u5e8f\u7684\u4e3b\u8981\u8a9e\u8a00\u9078\u64c7\u76f8\u61c9\u7684\u5b57\u7b26\u96c6\u3002\u4f8b\u5982\uff0c\u5982\u679c\u61c9\u7528\u7a0b\u5e8f\u4e3b\u8981\u8655\u7406\u4e2d\u6587\u6578\u64da\uff0c\u5247\u61c9\u9078\u64c7\u652f\u6301\u4e2d\u6587\u7684\u5b57\u7b26\u96c6\uff0c\u5982UTF-8\u3002<\/li>\n<li><strong>\u6578\u64da\u7684\u517c\u5bb9\u6027<\/strong>: \u78ba\u4fdd\u6240\u9078\u5b57\u7b26\u96c6\u8207\u5176\u4ed6\u7cfb\u7d71\u6216\u6578\u64da\u5eab\u7684\u517c\u5bb9\u6027\uff0c\u4ee5\u907f\u514d\u6578\u64da\u640d\u5931\u6216\u932f\u8aa4\u3002<\/li>\n<li><strong>\u6027\u80fd\u8003\u91cf<\/strong>: \u4e0d\u540c\u7684\u5b57\u7b26\u96c6\u5728\u5b58\u5132\u548c\u6aa2\u7d22\u6578\u64da\u6642\u7684\u6027\u80fd\u53ef\u80fd\u6709\u6240\u4e0d\u540c\u3002\u9078\u64c7\u4e00\u500b\u9ad8\u6548\u7684\u5b57\u7b26\u96c6\u53ef\u4ee5\u63d0\u9ad8\u6578\u64da\u5eab\u7684\u6574\u9ad4\u6027\u80fd\u3002<\/li>\n<\/ul>\n<h2 id=\"%e5%ad%97%e7%ac%a6%e9%9b%86%e7%9a%84%e8%bd%89%e6%8f%9b-gMGmRhModb\">\u5b57\u7b26\u96c6\u7684\u8f49\u63db<\/h2>\n<p>\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u5c07\u6578\u64da\u5f9e\u4e00\u500b\u5b57\u7b26\u96c6\u8f49\u63db\u5230\u53e6\u4e00\u500b\u5b57\u7b26\u96c6\u3002Oracle\u63d0\u4f9b\u4e86\u591a\u7a2e\u5de5\u5177\u548c\u51fd\u6578\u4f86\u652f\u6301\u5b57\u7b26\u96c6\u8f49\u63db\uff0c\u4f8b\u5982\u4f7f\u7528<code>CONVERT<\/code>\u51fd\u6578\u3002\u4ee5\u4e0b\u662f\u4e00\u500b\u7c21\u55ae\u7684\u793a\u4f8b\uff1a<\/p>\n<pre><code>SELECT CONVERT(column_name, 'UTF8', 'ISO-8859-1') FROM table_name;<\/code><\/pre>\n<p>\u9019\u6bb5\u4ee3\u78bc\u5c07\u6307\u5b9a\u5217\u7684\u6578\u64da\u5f9eISO-8859-1\u5b57\u7b26\u96c6\u8f49\u63db\u70baUTF-8\u5b57\u7b26\u96c6\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-gMGmRhModb\">\u7e3d\u7d50<\/h2>\n<p>Oracle\u5b57\u7b26\u96c6\u7684\u7d44\u6210\u90e8\u5206\u5305\u62ec\u5b57\u5143\u96c6\u3001\u5b57\u5143\u96c6\u7de8\u78bc\u3001\u5b57\u5143\u96c6\u985e\u578b\u548c\u570b\u969b\u5316\u652f\u6301\u7b49\u3002\u9078\u64c7\u5408\u9069\u7684\u5b57\u7b26\u96c6\u5c0d\u65bc\u6578\u64da\u7684\u5b58\u5132\u548c\u8655\u7406\u81f3\u95dc\u91cd\u8981\uff0c\u4e26\u4e14\u5728\u9700\u8981\u6642\u53ef\u4ee5\u9032\u884c\u5b57\u7b26\u96c6\u8f49\u63db\u3002\u4e86\u89e3\u9019\u4e9b\u57fa\u672c\u6982\u5ff5\u5c07\u6709\u52a9\u65bc\u66f4\u597d\u5730\u7ba1\u7406\u548c\u4f7f\u7528Oracle\u6578\u64da\u5eab\u3002<\/p>\n<p>\u5982\u679c\u60a8\u5c0d\u65bc<code><a href=\"https:\/\/server.hk\">VPS<\/a><\/code>\u3001<code><a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a><\/code>\u6216\u5176\u4ed6<code><a href=\"https:\/\/server.hk\">\u4f3a\u670d\u5668<\/a><\/code>\u89e3\u6c7a\u65b9\u6848\u6709\u8208\u8da3\uff0c\u6b61\u8fce\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u4ee5\u7372\u53d6\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3Oracle\u5b57\u7b26\u96c6\u7684\u7d44\u6210\u90e8\u5206\uff0c\u5305\u62ec\u5b57\u7b26\u96c6\u3001\u5b57\u5143\u96c6\u548c\u7de8\u78bc\u65b9\u5f0f\uff0c\u78ba\u4fdd\u6578\u64da\u6b63\u78ba\u5b58\u5132\u8207\u8655\u7406\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-96306","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/96306","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=96306"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/96306\/revisions"}],"predecessor-version":[{"id":96307,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/96306\/revisions\/96307"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=96306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=96306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=96306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}