{"id":383,"date":"2019-11-01T16:22:22","date_gmt":"2019-11-01T08:22:22","guid":{"rendered":"http:\/\/www.821121.com\/?p=383"},"modified":"2020-12-18T15:48:18","modified_gmt":"2020-12-18T07:48:18","slug":"ogg%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4%e8%a1%8c%e7%95%8c%e9%9d%a2%e5%91%bd%e4%bb%a4%ef%bc%88%e5%85%ad%ef%bc%89-heartbeattable","status":"publish","type":"post","link":"http:\/\/www.821121.com\/?p=383","title":{"rendered":"OGG\u5e38\u7528\u547d\u4ee4\uff08\u516d\uff09\u2013HEARTBEATTABLE"},"content":{"rendered":"<h1>1\u3001ADD HEARTBEATTABLE<\/h1>\n<p>\u4f7f\u7528ADD HEARTBEATTABLE\u521b\u5efa\u4f7f\u7528\u81ea\u52a8\u5fc3\u8df3\u529f\u80fd\u6240\u9700\u7269\u54c1\u3002\u8be5\u547d\u4ee4\u6267\u884c\u4ee5\u4e0b\u4efb\u52a1\uff1a<br \/>\n\u521b\u5efa\u5fc3\u8df3\u79cd\u5b50\u8868\uff0c\u5fc3\u8df3\u8868\u548c\u5fc3\u8df3\u5386\u53f2\u8bb0\u5f55\u8868\u3002<br \/>\n\u521b\u5efaGG_LAG\u548c GG_LAG_HISTORY\u89c6\u56fe\u3002<br \/>\n\u521b\u5efa\u7531\u8c03\u5ea6\u7a0b\u5e8f\u4f5c\u4e1a\u8c03\u7528\u7684GG_UPDATE_HB_TAB\u548c GG_PURGE_HB_TAB\u8fc7\u7a0b\u3002<br \/>\n\u521b\u5efa\u8c03\u5ea6\u7a0b\u5e8f\u4f5c\u4e1a\uff0c\u8fd9\u4e9b\u4f5c\u4e1a\u4f1a\u5b9a\u671f\u66f4\u65b0\u5fc3\u8df3\u548c\u79cd\u5b50\u8868\uff0c\u5e76\u6e05\u9664\u5386\u53f2\u8bb0\u5f55\u8868\u3002<br \/>\n\u586b\u5145\u79cd\u5b50\u8868\u3002<br \/>\n\uff08PostgreSQL\uff09\u521b\u5efa\u4f5c\u4e1a\u8868\uff0c\u4f5c\u4e1a\u8fc7\u7a0b\u4ee5\u53ca\u5fc3\u8df3\u8868\u6216\u89c6\u56fe\u4ee5\u83b7\u53d6\u6ede\u540e\u4fe1\u606f\u3002\u5982\u679cTARGETONLY\u6307\u5b9a\uff0c\u5219\u4e0d\u521b\u5efa\u4f5c\u4e1a\u8868\u6216\u8fc7\u7a0b\u3002<\/p>\n<p>\u9ed8\u8ba4\u7684\u79cd\u5b50\uff0c\u5fc3\u8df3\uff0c\u5386\u53f2\u8868\u540d GG_HEARTBEAT_SEED\uff0cGG_HEARTBEAT\u548c GG_HEARTBEAT_HISTORY\u5206\u522b\u3002GGSCHEMA\u5728GLOBALS\u6587\u4ef6\u4e2d\u63d0\u5230 \u7684\u8868\uff0c\u8fc7\u7a0b\u548c\u8ba1\u5212\u7a0b\u5e8f\u4f5c\u4e1a\u4e2d\u521b\u5efa\u3002<\/p>\n<p>\u5728\u7ecf\u5178\u5efa\u7b51\u4e2d\uff1a<br \/>\n\u901a\u8fc7HEARTBEATTABLE hbschemaname.hbtablename\u5728 GLOBALS\u6587\u4ef6\u4e2d\u6307\u5b9a\u53ef\u4ee5\u8986\u76d6\u9ed8\u8ba4\u540d\u79f0 \u3002<br \/>\n\u8868\uff0c\u8fc7\u7a0b\u548c\u4f5c\u4e1a\u5728\u6a21\u5f0f\u4e2d\u521b\u5efa hbschemaname\u3002<br \/>\n\u79cd\u5b50\u548c\u5386\u53f2\u8bb0\u5f55\u8868\u662f\u901a\u8fc7\u5c06_SEED\u548c\u9644\u52a0_HISTORY\u5230\u8868 \u521b\u5efa\u7684 hbtablename\u3002<\/p>\n<p>\u5728\u5fae\u670d\u52a1\u67b6\u6784\u4e2d\uff0c\u4f7f\u7528\u201c\u4f7f\u7528Oracle GoldenGate\u5fae\u670d\u52a1\u67b6\u6784\u201d\u6307\u5357\u7684\u201c\u5982\u4f55\u521b\u5efa\u90e8\u7f72\u201d\u90e8\u5206\u4e2d\u63d0\u4f9b\u7684\u6b65\u9aa412\u914d\u7f6e \u67b6\u6784\u3002<br \/>\n\u5bf9\u4e8eOracle\uff0cADD HEARTBEATTABLE\u5fc5\u987b\u5728\u8981\u4e3a\u5176\u4ee5CDB\u6a21\u5f0f\u751f\u6210\u5fc3\u8df3\u7684\u6bcf\u4e2aPDB\u4e2d\u6267\u884c\u8be5\u64cd\u4f5c\u3002\u5728\u591a\u79df\u6237\u6570\u636e\u5e93\u4e0a\uff0c\u5fc3\u8df3\u8868\u5728\u6bcf\u4e2aPDB\u5185\u521b\u5efa\u3002\u4f7f\u7528\u8be5 DBLOGIN\u547d\u4ee4\u767b\u5f55\u5230\u9700\u8981\u521b\u5efa\u5fc3\u8df3\u8868\u7684PDB\u3002<br \/>\n\u5bf9\u4e8eDB2 LUW\uff0c\u5fc5\u987bDB2_ATS_ENABLE\u4f7f\u7528db2set DB2_ATS_ENABLE=yes\u547d\u4ee4\u8bbe\u7f6e\u5c5e\u6027\u3002<br \/>\n\u5bf9\u4e8eAmazon Aurora MySQL\uff0cevent_scheduler\u5fc5\u987b\u5728\u53c2\u6570\u7ec4\u4e2d\u542f\u7528\u5168\u5c40\u53d8\u91cf \uff0c\u56e0\u4e3aAmazon RDS\u4e0d\u5141\u8bb8\u8bbe\u7f6e\u5168\u5c40\u53d8\u91cf\u3002\u91cd\u65b0\u542f\u52a8\u6570\u636e\u5e93\u540e\uff0cevent_scheduler\u8fd4\u56de\u5230\u7981\u7528\u72b6\u6001\u3002\u4e3a\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\uff0c\u60a8\u9700\u8981event_scheduler\u5728 my.cnf\/ini\u6587\u4ef6\u4e2d\u542f\u7528\u3002<\/p>\n<p>\u8bed\u6cd5\uff1a<br \/>\nADD HEARTBEATTABLE<br \/>\n[, FREQUENCY number_in_seconds]<br \/>\n[, RETENTION_TIME number_in_days] |<br \/>\n[, PURGE_FREQUENCY number_in_days]<br \/>\n[, PARTITIONED]<br \/>\n[, TARGETONLY]<\/p>\n<p>FREQUENCY number_in_seconds<br \/>\n\u6307\u5b9a\u5fc3\u8df3\u79cd\u5b50\u8868\u548c\u5fc3\u8df3\u8868\u7684\u66f4\u65b0\u9891\u7387\u3002\u4f8b\u5982\uff0c\u5fc3\u8df3\u8bb0\u5f55\u7684\u751f\u6210\u9891\u7387\u3002\u9ed8\u8ba4\u503c\u4e3a60\u79d2\u3002<\/p>\n<p>RETENTION_TIME number_in_days<br \/>\n\u6307\u5b9a\u4f55\u65f6\u6e05\u9664\u5386\u53f2\u8bb0\u5f55\u8868\u4e2d\u4fdd\u7559\u65f6\u95f4\u4e4b\u524d\u7684\u5fc3\u8df3\u6761\u76ee\u3002\u9ed8\u8ba4\u503c\u4e3a30\u5929\u3002<\/p>\n<p>PURGE_FREQUENCY number_in_days<br \/>\n\u6307\u5b9a\u8fd0\u884c\u6e05\u9664\u8c03\u5ea6\u7a0b\u5e8f\u4ece\u5fc3\u8df3\u5386\u53f2\u8bb0\u5f55\u4e2d\u5220\u9664\u4fdd\u7559\u65f6\u95f4\u4e4b\u524d\u7684\u8868\u6761\u76ee\u7684\u9891\u7387\u3002\u9ed8\u8ba4\u503c\u4e3a1\u5929\u3002<\/p>\n<p>PARTITIONED<br \/>\n\u5bf9Oracle\u6709\u6548\u3002<\/p>\n<p>\u5728\u5fc3\u8df3\u5386\u53f2\u8bb0\u5f55\u8868\u4e0a\u542f\u7528\u5206\u533a\u3002\u6536\u5230\u7684\u5fc3\u8df3\u65f6\u95f4\u6233\u8bb0\u5217\u7528\u4e8e\u4ee5\u4e00\u5929\u4e3a\u95f4\u9694\u5bf9\u8868\u8fdb\u884c\u5206\u533a\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5fc3\u8df3\u5386\u53f2\u8bb0\u5f55\u8868\u672a\u5206\u533a\u3002<\/p>\n<p>TARGETONLY<br \/>\n\u5bf9Oracle\u6570\u636e\u5e93\uff0cPostgreSQL\u548cSQL Server\u6709\u6548\u3002\u4e0d\u80fd\u540c\u65f6\u5728\u5fc3\u8df3\u79cd\u5b50\u548c\u5fc3\u8df3\u8868\u4e0a\u542f\u7528\u8865\u5145\u65e5\u5fd7\u8bb0\u5f55\u3002\u5b83\u4e0d\u4f1a\u521b\u5efa\u7528\u4e8e\u66f4\u65b0\u5fc3\u8df3\u8868\u7684\u8c03\u5ea6\u7a0b\u5e8f\u4f5c\u4e1a\u3002<\/p>\n<p>\u4e3e\u4f8b1\uff1a<\/p>\n<pre><code class=\"language-sql\">GGSCI (oracle11g as ogg@orcl) 12&gt; ADD HEARTBEATTABLE\n\n2020-12-01 16:00:27  INFO    OGG-14001  Successfully created heartbeat seed table &quot;&quot;ogg&quot;.&quot;GG_HEARTBEAT_SEED&quot;&quot;.\n\n2020-12-01 16:00:28  INFO    OGG-14032  Successfully added supplemental logging for heartbeat seed table &quot;&quot;ogg&quot;.&quot;GG_HEARTBEAT_SEED&quot;&quot;.\n\n2020-12-01 16:00:28  INFO    OGG-14000  Successfully created heartbeat table &quot;&quot;ogg&quot;.&quot;GG_HEARTBEAT&quot;&quot;.\n\n2020-12-01 16:00:28  INFO    OGG-14033  Successfully added supplemental logging for heartbeat table &quot;&quot;ogg&quot;.&quot;GG_HEARTBEAT&quot;&quot;.\n\n2020-12-01 16:00:28  INFO    OGG-14016  Successfully created heartbeat history table &quot;&quot;ogg&quot;.&quot;GG_HEARTBEAT_HISTORY&quot;&quot;.\n\n2020-12-01 16:00:28  INFO    OGG-14086  Successfully disabled partitioning for heartbeat history table ogg.gg_heartbeat_history.\n\n2020-12-01 16:00:28  INFO    OGG-14023  Successfully created heartbeat lag view &quot;&quot;ogg&quot;.&quot;GG_LAG&quot;&quot;.\n\n2020-12-01 16:00:28  INFO    OGG-14024  Successfully created heartbeat lag history view &quot;&quot;ogg&quot;.&quot;GG_LAG_HISTORY&quot;&quot;.\n\n2020-12-01 16:00:28  INFO    OGG-14003  Successfully populated heartbeat seed table with &quot;ORCL&quot;.\n\n2020-12-01 16:00:28  INFO    OGG-14004  Successfully created procedure &quot;&quot;ogg&quot;.&quot;GG_UPDATE_HB_TAB&quot;&quot; to update the heartbeat tables.\n\n2020-12-01 16:00:28  INFO    OGG-14017  Successfully created procedure &quot;&quot;ogg&quot;.&quot;GG_PURGE_HB_TAB&quot;&quot; to purge the heartbeat history table.\n\n2020-12-01 16:00:28  INFO    OGG-14005  Successfully created scheduler job &quot;&quot;ogg&quot;.&quot;GG_UPDATE_HEARTBEATS&quot;&quot; to update the heartbeat tables.\n\n2020-12-01 16:00:28  INFO    OGG-14018  Successfully created scheduler job &quot;&quot;ogg&quot;.&quot;GG_PURGE_HEARTBEATS&quot;&quot; to purge the heartbeat history table.<\/code><\/pre>\n<p>\u4e3e\u4f8b2\uff1a<\/p>\n<pre><code class=\"language-sql\">GGSCI (oracle11g as ogg@orcl) 15&gt; ADD HEARTBEATTABLE, partitioned, TARGETONLY\n\n2020-12-01 16:02:19  INFO    OGG-14001  Successfully created heartbeat seed table &quot;&quot;ogg&quot;.&quot;GG_HEARTBEAT_SEED&quot;&quot;.\n\n2020-12-01 16:02:19  INFO    OGG-14087  Successfully disabled supplemental logging for heartbeat seed table &quot;ogg.gg_heartbeat_seed&quot;.\n\n2020-12-01 16:02:19  INFO    OGG-14000  Successfully created heartbeat table &quot;&quot;ogg&quot;.&quot;GG_HEARTBEAT&quot;&quot;.\n\n2020-12-01 16:02:19  INFO    OGG-14088  Successfully disabled supplemental logging for heartbeat table &quot;ogg.gg_heartbeat&quot;.\n\n2020-12-01 16:02:19  INFO    OGG-14016  Successfully created heartbeat history table &quot;&quot;ogg&quot;.&quot;GG_HEARTBEAT_HISTORY&quot;&quot;.\n\n2020-12-01 16:02:19  INFO    OGG-14085  Successfully enabled partitioning for heartbeat history table ogg.gg_heartbeat_history.\n\n2020-12-01 16:02:19  INFO    OGG-14023  Successfully created heartbeat lag view &quot;&quot;ogg&quot;.&quot;GG_LAG&quot;&quot;.\n\n2020-12-01 16:02:19  INFO    OGG-14024  Successfully created heartbeat lag history view &quot;&quot;ogg&quot;.&quot;GG_LAG_HISTORY&quot;&quot;.\n\n2020-12-01 16:02:19  INFO    OGG-14003  Successfully populated heartbeat seed table with &quot;ORCL&quot;.\n\n2020-12-01 16:02:19  INFO    OGG-14017  Successfully created procedure &quot;&quot;ogg&quot;.&quot;GG_PURGE_HB_TAB&quot;&quot; to purge the heartbeat history table.\n\n2020-12-01 16:02:19  INFO    OGG-14018  Successfully created scheduler job &quot;&quot;ogg&quot;.&quot;GG_PURGE_HEARTBEATS&quot;&quot; to purge the heartbeat history table.<\/code><\/pre>\n<h1>2\u3001ALTER HEARTBEATTABLE<\/h1>\n<p>\u4f7f\u7528ALTER HEARTBEATTABLE\u6539\u53d8\u73b0\u6709\u79cd\u5b50\uff0c\u5fc3\u8df3\u548c\u5386\u53f2\u8868\u9009\u9879\uff0c\u60a8\u8bbe\u7f6eADD HEARTBEATTABLE\u3002<br \/>\n\u6b64\u547d\u4ee4\u9700\u8981\u4e00\u4e2aDBLOGIN\u3002\u5728CDB\u6570\u636e\u5e93\u4e0a\uff0c\u9700\u8981PDB\u767b\u5f55\u3002<\/p>\n<p>\u8bed\u6cd5\uff1a<br \/>\nALTER HEARTBEATTABLE<br \/>\n[, FREQUENCY number_in_seconds]<br \/>\n[, RETENTION_TIME number_in_days] |<br \/>\n[, PURGE_FREQUENCY number_in_days]<br \/>\n[, TARGETONLY\u00a0| NOTARGETONLY]<\/p>\n<p>FREQUENCY<br \/>\n\u5c06\u9891\u7387\u66f4\u6539\u4e3a\u96f6\uff080\uff09\u7b49\u6548\u4e8e\u6682\u505c\u5fc3\u8df3\u3002\u53ef\u4ee5\u901a\u8fc7\u5c06\u9891\u7387\u66f4\u6539\u4e3a\u5927\u4e8e0\u7684\u503c\u6765\u6062\u590d\u5fc3\u8df3\u8bb0\u5f55\u3002<\/p>\n<p>RETENTION_TIME<br \/>\n\u66f4\u6539\u6307\u5b9a\u7684\u5fc3\u8df3\u4fdd\u7559\u65f6\u95f4\uff08\u4ee5\u5929\u4e3a\u5355\u4f4d\uff09\u3002<\/p>\n<p>PURGE_FREQUENCY<br \/>\n\u66f4\u6539\u6e05\u9664\u5fc3\u8df3\u8868\u7684\u91cd\u590d\u95f4\u9694\uff08\u4ee5\u5929\u4e3a\u5355\u4f4d\uff09\u3002<\/p>\n<p>TARGETONLY | NOTARGETONLY<br \/>\n\u5bf9Oracle\u6570\u636e\u5e93\uff0cPostgreSQL\u548cSQL Server\u6709\u6548\u3002TARGETONLY\u901a\u8fc7\u7981\u7528\u4e24\u4e2a\u8868\u7684\u8865\u5145\u65e5\u5fd7\u8bb0\u5f55\u6765\u4fee\u6539\u73b0\u6709\u7684\u5fc3\u8df3\u79cd\u5b50\u548c\u5fc3\u8df3\u8868\u3002\u5b83\u5c06\u5220\u9664\u73b0\u6709\u8c03\u5ea6\u7a0b\u5e8f\u4f5c\u4e1a\u4ee5\u66f4\u65b0\u5fc3\u8df3\u8868\u3002<br \/>\n\u5bf9Oracle\u6570\u636e\u5e93\uff0cPostgreSQL\u548cSQL Server\u6709\u6548\u3002 NOTARGETONLY\u901a\u8fc7\u5728\u4e24\u4e2a\u8868\u4e0a\u542f\u7528\u8865\u5145\u65e5\u5fd7\u8bb0\u5f55\u6765\u4fee\u6539\u73b0\u6709\u7684\u5fc3\u8df3\u79cd\u5b50\u548c\u5fc3\u8df3\u8868\u3002\u5b83\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u8c03\u5ea6\u7a0b\u5e8f\u4f5c\u4e1a\u4ee5\u66f4\u65b0\u5fc3\u8df3\u8868\u3002<br \/>\n\uff08PostgreSQL\uff09\u8fd9\u4e9b\u9009\u9879\u53ef\u7528\u4e8e\u5220\u9664\u4f5c\u4e1a\u548c\u8fc7\u7a0b\uff08TARGETONLY\uff09\u6216\u7528\u4e8e\u6dfb\u52a0\u4f5c\u4e1a\u548c\u8fc7\u7a0b\uff08NOTARGETONLY\uff09\u3002<\/p>\n<p>\u4e3e\u4f8b\uff1a<\/p>\n<pre><code class=\"language-sql\">GGSCI (oracle11g as ogg@orcl) 19&gt; ALTER HEARTBEATTABLE FREQUENCY 60\n\n2020-12-01 16:04:49  INFO    OGG-14029  Frequency of scheduler job &quot;&quot;ogg&quot;.&quot;GG_UPDATE_HEARTBEATS&quot;&quot; modified.\n\nGGSCI (oracle11g as ogg@orcl) 20&gt; \n\nGGSCI (oracle11g as ogg@orcl) 20&gt; ALTER HEARTBEATTABLE RETENTION_TIME 30\n\n2020-12-01 16:05:01  INFO    OGG-14031  Retention time of heartbeats modified.\n\nGGSCI (oracle11g as ogg@orcl) 21&gt; \n\nGGSCI (oracle11g as ogg@orcl) 21&gt; ALTER HEARTBEATTABLE PURGE_FREQUENCY 1\n\n2020-12-01 16:05:07  INFO    OGG-14030  Frequency of purge scheduler job &quot;&quot;ogg&quot;.&quot;GG_PURGE_HEARTBEATS&quot;&quot; modified.<\/code><\/pre>\n<h1>3\u3001DELETE HEARTBEATTABLE<\/h1>\n<p>\u4f7f\u7528DELETE HEARTBEATTABLE\u5220\u9664\u8868\uff0c\u7a0b\u5e8f\uff0c\u8c03\u5ea6\u548c\u610f\u89c1\u3002\u6b64\u547d\u4ee4\u9700\u8981\u4e00\u4e2aDBLOGIN\u3002\u5728CDB\u6570\u636e\u5e93\u4e0a\uff0c\u9700\u8981PDB\u767b\u5f55\u3002<\/p>\n<p>\u8bed\u6cd5\uff1a<br \/>\nDELETE HEARTBEATTABLE group_name<\/p>\n<p>group_name<br \/>\n\u8981\u6e05\u7406\u7684\u8fdb\u7a0b\u7684\u540d\u79f0\u3002<\/p>\n<p>!<br \/>\n\uff08\u611f\u53f9\u53f7\uff09\u5220\u9664\u6240\u6709\u4e0e\u901a\u914d\u7b26\u5173\u8054\u7684\u5fc3\u8df3\u8868\u6761\u76ee\uff0c\u800c\u65e0\u63d0\u793a\u3002<\/p>\n<p>\u4e3e\u4f8b\uff1a<\/p>\n<pre><code class=\"language-sql\">GGSCI (oracle11g as ogg@orcl) 14&gt; delete heartbeattable \n\n2020-12-01 16:02:16  INFO    OGG-14007  Heartbeat seed table &quot;&quot;ogg&quot;.&quot;GG_HEARTBEAT_SEED&quot;&quot; dropped.\n\n2020-12-01 16:02:16  INFO    OGG-14009  Heartbeat table &quot;&quot;ogg&quot;.&quot;GG_HEARTBEAT&quot;&quot; dropped.\n\n2020-12-01 16:02:16  INFO    OGG-14011  Heartbeat history table &quot;&quot;ogg&quot;.&quot;GG_HEARTBEAT_HISTORY&quot;&quot; dropped.\n\n2020-12-01 16:02:16  INFO    OGG-14026  Heartbeat lag view &quot;&quot;ogg&quot;.&quot;GG_LAG&quot;&quot; dropped.\n\n2020-12-01 16:02:16  INFO    OGG-14028  Heartbeat lag history view &quot;&quot;ogg&quot;.&quot;GG_LAG_HISTORY&quot;&quot; dropped.\n\n2020-12-01 16:02:16  INFO    OGG-14013  Procedure &quot;&quot;ogg&quot;.&quot;GG_UPDATE_HB_TAB&quot;&quot; dropped.\n\n2020-12-01 16:02:16  INFO    OGG-14020  Procedure &quot;&quot;ogg&quot;.&quot;GG_PURGE_HB_TAB&quot;&quot; dropped.\n\n2020-12-01 16:02:16  INFO    OGG-14015  Scheduler job &quot;&quot;ogg&quot;.&quot;GG_UPDATE_HEARTBEATS&quot;&quot; dropped.\n\n2020-12-01 16:02:16  INFO    OGG-14022  Scheduler job &quot;&quot;ogg&quot;.&quot;GG_PURGE_HEARTBEATS&quot;&quot; dropped.<\/code><\/pre>\n<h1>4\u3001<\/h1>\n<p>\u4f7f\u7528INFO HEARTBEATTABLE\u7ea6\u5728\u6570\u636e\u5e93\u4e2d\u914d\u7f6e\u7684\u5fc3\u8df3\u8868\u663e\u793a\u7684\u4fe1\u606f\u3002<br \/>\n\u6b64\u547d\u4ee4\u9700\u8981\u4e00\u4e2aDBLOGIN\u3002\u5728CDB\u6570\u636e\u5e93\u4e0a\uff0c\u9700\u8981PDB\u767b\u5f55\u3002<\/p>\n<p>\u8bed\u6cd5\uff1a<br \/>\nINFO HEARTBEATTABLE<\/p>\n<p>\u4e3e\u4f8b\uff1a<\/p>\n<pre><code class=\"language-sql\">GGSCI (oracle11g as ogg@orcl) 22&gt; INFO HEARTBEATTABLE\n\nHEARTBEAT table ogg.gg_heartbeat exists.\n\nHEARTBEAT table ogg.gg_heartbeat_seed exists.\n\nHEARTBEAT table ogg.gg_heartbeat_history exists.\n\nHEARTBEAT table ogg.gg_heartbeat supplemental logging ENABLED.\n\nHEARTBEAT table ogg.gg_heartbeat_seed supplemental logging ENABLED.\n\nHEARTBEAT table ogg.gg_heartbeat_history partitioning DISABLED.\n\nFrequency interval: 60 seconds.\n\nPurge frequency interval: 1 days.\n\nRetention time: 30 days.\n<\/code><\/pre>\n<h1>5\u3001UPGRADE HEARTBEATTABLE<\/h1>\n<p>\u5bf9Oracle\uff0cPostgreSQL\u6709\u6548\u3002<br \/>\n\u4f7f\u7528UPGRADE HEARTBEATTABLE\u6539\u53d8\u5fc3\u8df3\u8868\u548c\u6ede\u540e\u7528\u7684Oracle GoldenGate\u7248\u672c\u521b\u5efa\u7684\u89c6\u56fe19C\u4e4b\u524d\u6dfb\u52a0\u989d\u5916\u7684\u5217\u3002\u8fd9\u4e9b\u989d\u5916\u7684\u5217\u7528\u4e8e\u8ddf\u8e2a\u63d0\u53d6\u91cd\u65b0\u542f\u52a8\u4f4d\u7f6e\u3002\u6b64\u547d\u4ee4\u5728\u5fc3\u8df3\u8bbe\u7f6e\u4e2d\u5931\u8d25\uff0c\u5728\u8be5\u5fc3\u8df3\u8bbe\u7f6e\u4e2d\u8868\u548c\u89c6\u56fe\u5df2\u7ecf\u5177\u6709\u591a\u4f59\u7684\u5217\u3002<br \/>\n\u6b64\u547d\u4ee4\u9700\u8981\u4e00\u4e2aDBLOGIN\u3002\u5728CDB\u6570\u636e\u5e93\u4e0a\uff0c\u9700\u8981PDB\u767b\u5f55\u3002<br \/>\n\uff08PostgreSQL\uff09\u4f7f\u7528\u6b64\u547d\u4ee4\u5c06LOGBSN\u5217\u6dfb\u52a0\u5230\u5fc3\u8df3\u8868\u3002<\/p>\n<p>\u8bed\u6cd5\uff1a<br \/>\nUPGRADE HEARTBEATTABLE<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001ADD HEARTBEATTABLE \u4f7f\u7528AD<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-383","post","type-post","status-publish","format-standard","hentry","category-ogg"],"_links":{"self":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=383"}],"version-history":[{"count":2,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/383\/revisions"}],"predecessor-version":[{"id":1170,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/383\/revisions\/1170"}],"wp:attachment":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=383"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}