{"id":91700,"date":"2024-10-18T23:24:18","date_gmt":"2024-10-18T15:24:18","guid":{"rendered":"https:\/\/server.hk\/cnblog\/91700\/"},"modified":"2024-10-18T23:24:18","modified_gmt":"2024-10-18T15:24:18","slug":"ora-31481-%e6%9b%b4%e6%94%b9%e4%be%86%e6%ba%90-string-%e4%b8%8d%e6%98%af-hotlog-%e6%9b%b4%e6%94%b9%e4%be%86%e6%ba%90-oracle-%e5%a0%b1%e9%8c%af-%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9-%e9%81%a0%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/91700\/","title":{"rendered":"ORA-31481: \u66f4\u6539\u4f86\u6e90 string \u4e0d\u662f HotLog \u66f4\u6539\u4f86\u6e90 ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406"},"content":{"rendered":"<h1 id=\"ora-31481-%e6%9b%b4%e6%94%b9%e4%be%86%e6%ba%90-string-%e4%b8%8d%e6%98%af-hotlog-%e6%9b%b4%e6%94%b9%e4%be%86%e6%ba%90-oracle-%e5%a0%b1%e9%8c%af-%e6%95%85%e9%9a%9c%e4%bf%ae%e5%be%a9-%e9%81%a0%e7%a8%8b-LteqodVyEX\">ORA-31481: \u66f4\u6539\u4f86\u6e90 string \u4e0d\u662f HotLog \u66f4\u6539\u4f86\u6e90 ORACLE \u5831\u932f \u6545\u969c\u4fee\u5fa9 \u9060\u7a0b\u8655\u7406<\/h1>\n<p>\u5728\u4f7f\u7528 Oracle \u6578\u64da\u5eab\u7684\u904e\u7a0b\u4e2d\uff0c\u4f7f\u7528\u8005\u53ef\u80fd\u6703\u9047\u5230\u5404\u7a2e\u932f\u8aa4\u4ee3\u78bc\uff0c\u5176\u4e2d\u4e4b\u4e00\u4fbf\u662f ORA-31481\u3002\u9019\u500b\u932f\u8aa4\u901a\u5e38\u8207 Oracle \u7684\u8b8a\u66f4\u6578\u64da\u6355\u7372\uff08Change Data Capture, CDC\uff09\u529f\u80fd\u6709\u95dc\uff0c\u7279\u5225\u662f\u5728\u4f7f\u7528 HotLog \u9032\u884c\u6578\u64da\u6355\u7372\u6642\u3002\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e ORA-31481 \u932f\u8aa4\u7684\u539f\u56e0\u3001\u5f71\u97ff\u4ee5\u53ca\u5982\u4f55\u9032\u884c\u6545\u969c\u4fee\u5fa9\u3002<\/p>\n<h2 id=\"ora-31481-%e9%8c%af%e8%aa%a4%e7%9a%84%e5%8e%9f%e5%9b%a0-LteqodVyEX\">ORA-31481 \u932f\u8aa4\u7684\u539f\u56e0<\/h2>\n<p>ORA-31481 \u932f\u8aa4\u7684\u4e3b\u8981\u539f\u56e0\u662f\u7576\u524d\u7684\u66f4\u6539\u4f86\u6e90\uff08Change Source\uff09\u4e0d\u662f HotLog \u66f4\u6539\u4f86\u6e90\u3002\u9019\u901a\u5e38\u767c\u751f\u5728\u4ee5\u4e0b\u60c5\u6cc1\uff1a<\/p>\n<ul>\n<li>\u4f7f\u7528\u8005\u5617\u8a66\u5f9e\u975e HotLog \u7684\u4f86\u6e90\u9032\u884c\u6578\u64da\u6355\u7372\u3002<\/li>\n<li>\u6578\u64da\u5eab\u7684\u914d\u7f6e\u4e0d\u6b63\u78ba\uff0c\u5c0e\u81f4\u7121\u6cd5\u8b58\u5225 HotLog \u66f4\u6539\u4f86\u6e90\u3002<\/li>\n<li>\u6578\u64da\u5eab\u7248\u672c\u4e0d\u517c\u5bb9\uff0c\u67d0\u4e9b\u529f\u80fd\u672a\u6b63\u78ba\u555f\u7528\u3002<\/li>\n<\/ul>\n<p>\u9019\u4e9b\u60c5\u6cc1\u90fd\u53ef\u80fd\u5c0e\u81f4 ORA-31481 \u932f\u8aa4\u7684\u51fa\u73fe\uff0c\u5f71\u97ff\u6578\u64da\u7684\u6355\u7372\u548c\u540c\u6b65\u904e\u7a0b\u3002<\/p>\n<h2 id=\"%e5%a6%82%e4%bd%95%e4%bf%ae%e5%be%a9-ora-31481-%e9%8c%af%e8%aa%a4-LteqodVyEX\">\u5982\u4f55\u4fee\u5fa9 ORA-31481 \u932f\u8aa4<\/h2>\n<p>\u4fee\u5fa9 ORA-31481 \u932f\u8aa4\u7684\u904e\u7a0b\u53ef\u4ee5\u5206\u70ba\u5e7e\u500b\u6b65\u9a5f\uff1a<\/p>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e6%9b%b4%e6%94%b9%e4%be%86%e6%ba%90%e9%85%8d%e7%bd%ae-LteqodVyEX\">1. \u6aa2\u67e5\u66f4\u6539\u4f86\u6e90\u914d\u7f6e<\/h3>\n<p>\u9996\u5148\uff0c\u4f7f\u7528\u8005\u9700\u8981\u6aa2\u67e5\u7576\u524d\u7684\u66f4\u6539\u4f86\u6e90\u914d\u7f6e\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b SQL \u67e5\u8a62\u4f86\u6aa2\u67e5\u66f4\u6539\u4f86\u6e90\u7684\u72c0\u614b\uff1a<\/p>\n<pre><code>SELECT * FROM ALL_CHANGE_SOURCES WHERE CHANGE_SOURCE_NAME = 'your_change_source_name';<\/code><\/pre>\n<p>\u78ba\u4fdd\u6240\u4f7f\u7528\u7684\u66f4\u6539\u4f86\u6e90\u662f HotLog\u3002\u5982\u679c\u4e0d\u662f\uff0c\u5247\u9700\u8981\u91cd\u65b0\u914d\u7f6e\u3002<\/p>\n<h3 id=\"2-%e7%a2%ba%e8%aa%8d-hotlog-%e7%9a%84%e5%ad%98%e5%9c%a8-LteqodVyEX\">2. \u78ba\u8a8d HotLog \u7684\u5b58\u5728<\/h3>\n<p>\u78ba\u4fdd\u5728\u6578\u64da\u5eab\u4e2d\u5df2\u6b63\u78ba\u5275\u5efa HotLog\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u67e5\u8a62\u4f86\u6aa2\u67e5 HotLog \u7684\u72c0\u614b\uff1a<\/p>\n<pre><code>SELECT * FROM ALL_HOTLOGS WHERE HOTLOG_NAME = 'your_hotlog_name';<\/code><\/pre>\n<p>\u5982\u679c HotLog \u4e0d\u5b58\u5728\uff0c\u5247\u9700\u8981\u5275\u5efa\u4e00\u500b\u65b0\u7684 HotLog\u3002<\/p>\n<h3 id=\"3-%e6%aa%a2%e6%9f%a5%e6%95%b8%e6%93%9a%e5%ba%ab%e7%89%88%e6%9c%ac-LteqodVyEX\">3. \u6aa2\u67e5\u6578\u64da\u5eab\u7248\u672c<\/h3>\n<p>\u67d0\u4e9b\u7248\u672c\u7684 Oracle \u6578\u64da\u5eab\u53ef\u80fd\u4e0d\u652f\u6301 HotLog \u529f\u80fd\u3002\u4f7f\u7528\u4ee5\u4e0b\u67e5\u8a62\u4f86\u6aa2\u67e5\u7576\u524d\u7684\u6578\u64da\u5eab\u7248\u672c\uff1a<\/p>\n<pre><code>SELECT * FROM V$VERSION;<\/code><\/pre>\n<p>\u5982\u679c\u7248\u672c\u4e0d\u517c\u5bb9\uff0c\u5247\u53ef\u80fd\u9700\u8981\u8003\u616e\u5347\u7d1a\u6578\u64da\u5eab\u3002<\/p>\n<h3 id=\"4-%e9%87%8d%e6%96%b0%e5%95%9f%e5%8b%95%e6%95%b8%e6%93%9a%e6%8d%95%e7%8d%b2%e9%80%b2%e7%a8%8b-LteqodVyEX\">4. \u91cd\u65b0\u555f\u52d5\u6578\u64da\u6355\u7372\u9032\u7a0b<\/h3>\n<p>\u5728\u9032\u884c\u4e0a\u8ff0\u6aa2\u67e5\u548c\u4fee\u5fa9\u5f8c\uff0c\u91cd\u65b0\u555f\u52d5\u6578\u64da\u6355\u7372\u9032\u7a0b\u4ee5\u61c9\u7528\u66f4\u6539\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u91cd\u65b0\u555f\u52d5\uff1a<\/p>\n<pre><code>EXEC DBMS_CDC_SUBSCRIBE.START_CAPTURE('your_capture_name');<\/code><\/pre>\n<p>\u9019\u6a23\u53ef\u4ee5\u78ba\u4fdd\u65b0\u7684\u914d\u7f6e\u751f\u6548\uff0c\u4e26\u4e14\u4e0d\u518d\u51fa\u73fe ORA-31481 \u932f\u8aa4\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-LteqodVyEX\">\u7d50\u8ad6<\/h2>\n<p>ORA-31481 \u932f\u8aa4\u901a\u5e38\u662f\u7531\u65bc\u4e0d\u6b63\u78ba\u7684\u66f4\u6539\u4f86\u6e90\u914d\u7f6e\u6216 HotLog \u7684\u7f3a\u5931\u6240\u5f15\u8d77\u7684\u3002\u901a\u904e\u6aa2\u67e5\u66f4\u6539\u4f86\u6e90\u3001\u78ba\u8a8d HotLog \u7684\u5b58\u5728\u3001\u6aa2\u67e5\u6578\u64da\u5eab\u7248\u672c\u4ee5\u53ca\u91cd\u65b0\u555f\u52d5\u6578\u64da\u6355\u7372\u9032\u7a0b\uff0c\u4f7f\u7528\u8005\u53ef\u4ee5\u6709\u6548\u5730\u4fee\u5fa9\u6b64\u932f\u8aa4\u3002\u5c0d\u65bc\u9700\u8981\u7a69\u5b9a\u548c\u9ad8\u6548\u6578\u64da\u6355\u7372\u7684\u4f01\u696d\u4f86\u8aaa\uff0c\u4e86\u89e3\u9019\u4e9b\u6545\u969c\u6392\u9664\u6b65\u9a5f\u662f\u81f3\u95dc\u91cd\u8981\u7684\u3002<\/p>\n<p>\u5982\u9700\u9032\u4e00\u6b65\u4e86\u89e3\u5982\u4f55\u5728 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u74b0\u5883\u4e2d\u7ba1\u7406 Oracle \u6578\u64da\u5eab\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u4ee5\u7372\u53d6\u66f4\u591a\u8cc7\u8a0a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u6c7aORA-31481\u932f\u8aa4\uff0c\u4e86\u89e3HotLog\u66f4\u6539\u4f86\u6e90\u554f\u984c\uff0c\u63d0\u4f9b\u6545\u969c\u4fee\u5fa9\u548c\u9060\u7a0b\u8655\u7406\u7684\u6709\u6548\u65b9\u6cd5\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-91700","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/91700","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=91700"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/91700\/revisions"}],"predecessor-version":[{"id":91701,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/91700\/revisions\/91701"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=91700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=91700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=91700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}