{"id":59455,"date":"2024-10-12T22:09:20","date_gmt":"2024-10-12T14:09:20","guid":{"rendered":"https:\/\/server.hk\/cnblog\/59455\/"},"modified":"2024-10-12T22:09:21","modified_gmt":"2024-10-12T14:09:21","slug":"autoupgrade-%e5%bf%ab%e9%80%9f%e5%8d%87%e7%b4%9a-oracle-%e6%95%b8%e6%93%9a%e5%ba%ab","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/59455\/","title":{"rendered":"AutoUpgrade \u5feb\u901f\u5347\u7d1a Oracle \u6578\u64da\u5eab"},"content":{"rendered":"<h1 id=\"autoupgrade-%e5%bf%ab%e9%80%9f%e5%8d%87%e7%b4%9a-oracle-%e6%95%b8%e6%93%9a%e5%ba%ab-mVzpfcrjvi\">AutoUpgrade \u5feb\u901f\u5347\u7d1a Oracle \u6578\u64da\u5eab<\/h1>\n<p>\u5728\u7576\u4eca\u6578\u64da\u9a45\u52d5\u7684\u4e16\u754c\u4e2d\uff0c\u6578\u64da\u5eab\u7684\u6027\u80fd\u548c\u7a69\u5b9a\u6027\u5c0d\u65bc\u4f01\u696d\u7684\u904b\u71df\u81f3\u95dc\u91cd\u8981\u3002Oracle \u6578\u64da\u5eab\u4f5c\u70ba\u4e00\u500b\u5f37\u5927\u7684\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u5ee3\u6cdb\u61c9\u7528\u65bc\u5404\u7a2e\u884c\u696d\u3002\u96a8\u8457\u6280\u8853\u7684\u9032\u6b65\uff0c\u5b9a\u671f\u5347\u7d1a\u6578\u64da\u5eab\u4ee5\u7372\u53d6\u6700\u65b0\u7684\u529f\u80fd\u548c\u5b89\u5168\u6027\u8b8a\u5f97\u8d8a\u4f86\u8d8a\u91cd\u8981\u3002\u672c\u6587\u5c07\u63a2\u8a0e\u5982\u4f55\u4f7f\u7528 AutoUpgrade \u5de5\u5177\u5feb\u901f\u5347\u7d1a Oracle \u6578\u64da\u5eab\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%af-autoupgrade%ef%bc%9f-mVzpfcrjvi\">\u4ec0\u9ebc\u662f AutoUpgrade\uff1f<\/h2>\n<p>AutoUpgrade \u662f Oracle \u63d0\u4f9b\u7684\u4e00\u500b\u5de5\u5177\uff0c\u65e8\u5728\u7c21\u5316\u6578\u64da\u5eab\u5347\u7d1a\u904e\u7a0b\u3002\u5b83\u652f\u6301\u5f9e\u820a\u7248\u672c\u5347\u7d1a\u5230\u65b0\u7248\u672c\uff0c\u4e26\u81ea\u52d5\u8655\u7406\u8a31\u591a\u7e41\u7463\u7684\u6b65\u9a5f\uff0c\u6e1b\u5c11\u4eba\u5de5\u5e72\u9810\u7684\u9700\u8981\u3002\u9019\u4f7f\u5f97\u5347\u7d1a\u904e\u7a0b\u66f4\u52a0\u9ad8\u6548\u548c\u53ef\u9760\u3002<\/p>\n<h2 id=\"autoupgrade-%e7%9a%84%e5%84%aa%e5%8b%a2-mVzpfcrjvi\">AutoUpgrade \u7684\u512a\u52e2<\/h2>\n<ul>\n<li><strong>\u81ea\u52d5\u5316\u6d41\u7a0b\uff1a<\/strong>AutoUpgrade \u81ea\u52d5\u57f7\u884c\u591a\u500b\u5347\u7d1a\u6b65\u9a5f\uff0c\u5305\u62ec\u6578\u64da\u5eab\u6aa2\u67e5\u3001\u5347\u7d1a\u548c\u5f8c\u7e8c\u7684\u9a57\u8b49\uff0c\u5f9e\u800c\u6e1b\u5c11\u4e86\u624b\u52d5\u64cd\u4f5c\u7684\u932f\u8aa4\u98a8\u96aa\u3002<\/li>\n<li><strong>\u652f\u6301\u591a\u7a2e\u7248\u672c\uff1a<\/strong>\u8a72\u5de5\u5177\u652f\u6301\u5f9e\u591a\u500b\u820a\u7248\u672c\u5347\u7d1a\u5230\u6700\u65b0\u7248\u672c\uff0c\u7121\u8ad6\u662f\u5f9e 11g\u300112c \u9084\u662f 18c\uff0c\u5747\u53ef\u8f15\u9b06\u8655\u7406\u3002<\/li>\n<li><strong>\u8a73\u7d30\u7684\u5831\u544a\uff1a<\/strong>\u5347\u7d1a\u904e\u7a0b\u4e2d\uff0cAutoUpgrade \u6703\u751f\u6210\u8a73\u7d30\u7684\u65e5\u8a8c\u548c\u5831\u544a\uff0c\u5e6b\u52a9\u7528\u6236\u4e86\u89e3\u5347\u7d1a\u72c0\u614b\u548c\u6f5b\u5728\u554f\u984c\u3002<\/li>\n<\/ul>\n<h2 id=\"%e4%bd%bf%e7%94%a8-autoupgrade-%e7%9a%84%e6%ad%a5%e9%a9%9f-mVzpfcrjvi\">\u4f7f\u7528 AutoUpgrade \u7684\u6b65\u9a5f<\/h2>\n<p>\u4ee5\u4e0b\u662f\u4f7f\u7528 AutoUpgrade \u5347\u7d1a Oracle \u6578\u64da\u5eab\u7684\u57fa\u672c\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e6%ba%96%e5%82%99%e5%b7%a5%e4%bd%9c-mVzpfcrjvi\">1. \u6e96\u5099\u5de5\u4f5c<\/h3>\n<p>\u5728\u958b\u59cb\u5347\u7d1a\u4e4b\u524d\uff0c\u78ba\u4fdd\u5df2\u7d93\u5099\u4efd\u4e86\u6578\u64da\u5eab\u3002\u9019\u662f\u9632\u6b62\u6578\u64da\u4e1f\u5931\u7684\u95dc\u9375\u6b65\u9a5f\u3002\u6b64\u5916\uff0c\u6aa2\u67e5\u7cfb\u7d71\u8981\u6c42\uff0c\u78ba\u4fdd\u65b0\u7248\u672c\u7684 Oracle \u6578\u64da\u5eab\u53ef\u4ee5\u5728\u7576\u524d\u74b0\u5883\u4e2d\u904b\u884c\u3002<\/p>\n<h3 id=\"2-%e4%b8%8b%e8%bc%89-autoupgrade-%e5%b7%a5%e5%85%b7-mVzpfcrjvi\">2. \u4e0b\u8f09 AutoUpgrade \u5de5\u5177<\/h3>\n<p>AutoUpgrade \u5de5\u5177\u901a\u5e38\u96a8 Oracle \u6578\u64da\u5eab\u5b89\u88dd\u5305\u63d0\u4f9b\u3002\u7528\u6236\u53ef\u4ee5\u5728 Oracle \u5b98\u65b9\u7db2\u7ad9\u4e0a\u4e0b\u8f09\u6700\u65b0\u7248\u672c\u7684\u5de5\u5177\u3002<\/p>\n<h3 id=\"3-%e9%85%8d%e7%bd%ae%e5%8d%87%e7%b4%9a%e5%8f%83%e6%95%b8-mVzpfcrjvi\">3. \u914d\u7f6e\u5347\u7d1a\u53c3\u6578<\/h3>\n<p>\u4f7f\u7528\u6587\u672c\u7de8\u8f2f\u5668\u5275\u5efa\u4e00\u500b\u914d\u7f6e\u6587\u4ef6\uff0c\u6307\u5b9a\u5347\u7d1a\u7684\u6578\u64da\u5eab\u540d\u7a31\u3001\u820a\u7248\u672c\u548c\u65b0\u7248\u672c\u7684\u8def\u5f91\u7b49\u4fe1\u606f\u3002\u4ee5\u4e0b\u662f\u4e00\u500b\u7c21\u55ae\u7684\u914d\u7f6e\u793a\u4f8b\uff1a<\/p>\n<pre><code>\n# AutoUpgrade \u914d\u7f6e\u6587\u4ef6\u793a\u4f8b\ndatabase=orcl\nsource=12.2.0.1\ntarget=19.0.0.0\n<\/code><\/pre>\n<h3 id=\"4-%e5%9f%b7%e8%a1%8c%e5%8d%87%e7%b4%9a-mVzpfcrjvi\">4. \u57f7\u884c\u5347\u7d1a<\/h3>\n<p>\u5728\u547d\u4ee4\u884c\u4e2d\u904b\u884c AutoUpgrade \u5de5\u5177\uff0c\u4e26\u6307\u5b9a\u914d\u7f6e\u6587\u4ef6\u3002\u547d\u4ee4\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<pre><code>\njava -jar autoupgrade.jar -config upgrade_config.txt\n<\/code><\/pre>\n<h3 id=\"5-%e9%a9%97%e8%ad%89%e5%8d%87%e7%b4%9a%e7%b5%90%e6%9e%9c-mVzpfcrjvi\">5. \u9a57\u8b49\u5347\u7d1a\u7d50\u679c<\/h3>\n<p>\u5347\u7d1a\u5b8c\u6210\u5f8c\uff0c\u6aa2\u67e5\u65e5\u8a8c\u6587\u4ef6\u4ee5\u78ba\u4fdd\u6c92\u6709\u932f\u8aa4\u767c\u751f\u3002\u53ef\u4ee5\u4f7f\u7528 SQL \u67e5\u8a62\u4f86\u9a57\u8b49\u6578\u64da\u5eab\u7684\u7248\u672c\u548c\u72c0\u614b\u3002<\/p>\n<h2 id=\"%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a0%85-mVzpfcrjvi\">\u6ce8\u610f\u4e8b\u9805<\/h2>\n<p>\u5728\u4f7f\u7528 AutoUpgrade \u5de5\u5177\u6642\uff0c\u9700\u6ce8\u610f\u4ee5\u4e0b\u5e7e\u9ede\uff1a<\/p>\n<ul>\n<li>\u78ba\u4fdd\u6240\u6709\u7684\u61c9\u7528\u7a0b\u5e8f\u548c\u670d\u52d9\u5728\u5347\u7d1a\u904e\u7a0b\u4e2d\u4e0d\u6703\u53d7\u5230\u5f71\u97ff\u3002<\/li>\n<li>\u5728\u5347\u7d1a\u4e4b\u524d\uff0c\u4ed4\u7d30\u95b1\u8b80 Oracle \u7684\u5b98\u65b9\u6587\u6a94\uff0c\u4ee5\u4e86\u89e3\u7279\u5b9a\u7248\u672c\u7684\u5347\u7d1a\u8981\u6c42\u548c\u6ce8\u610f\u4e8b\u9805\u3002<\/li>\n<li>\u5728\u751f\u7522\u74b0\u5883\u4e2d\u9032\u884c\u5347\u7d1a\u6642\uff0c\u5efa\u8b70\u5148\u5728\u6e2c\u8a66\u74b0\u5883\u4e2d\u9032\u884c\u8a66\u9a57\uff0c\u4ee5\u78ba\u4fdd\u5347\u7d1a\u904e\u7a0b\u7684\u9806\u5229\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-mVzpfcrjvi\">\u7e3d\u7d50<\/h2>\n<p>\u4f7f\u7528 AutoUpgrade \u5de5\u5177\u53ef\u4ee5\u5927\u5927\u7c21\u5316 Oracle \u6578\u64da\u5eab\u7684\u5347\u7d1a\u904e\u7a0b\uff0c\u6e1b\u5c11\u624b\u52d5\u64cd\u4f5c\u7684\u932f\u8aa4\u98a8\u96aa\u3002\u901a\u904e\u81ea\u52d5\u5316\u7684\u65b9\u5f0f\uff0c\u4f01\u696d\u80fd\u5920\u66f4\u5feb\u5730\u7372\u5f97\u6700\u65b0\u7684\u529f\u80fd\u548c\u5b89\u5168\u6027\uff0c\u5f9e\u800c\u63d0\u5347\u6574\u9ad4\u904b\u71df\u6548\u7387\u3002\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u53ef\u9760\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2f VPS<\/a> \u89e3\u6c7a\u65b9\u6848\u4f86\u652f\u6301\u60a8\u7684\u6578\u64da\u5eab\u904b\u884c\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\u4ee5\u6eff\u8db3\u60a8\u7684\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5feb\u901f\u5347\u7d1a Oracle \u6578\u64da\u5eab\uff0cAutoUpgrade \u5de5\u5177\u7c21\u5316\u5347\u7d1a\u904e\u7a0b\uff0c\u63d0\u5347\u6548\u7387\uff0c\u78ba\u4fdd\u6578\u64da\u5b89\u5168\u8207\u7cfb\u7d71\u7a69\u5b9a\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-59455","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/59455","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"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=59455"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/59455\/revisions"}],"predecessor-version":[{"id":59456,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/59455\/revisions\/59456"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=59455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=59455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=59455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}