{"id":2704,"date":"2018-02-02T22:27:10","date_gmt":"2018-02-02T13:27:10","guid":{"rendered":"http:\/\/haisins.epac.to\/wordpress\/?p=2704"},"modified":"2018-02-02T22:27:10","modified_gmt":"2018-02-02T13:27:10","slug":"two-phase-commit","status":"publish","type":"post","link":"http:\/\/haisins.synology.me\/wordpress\/?p=2704","title":{"rendered":"TWO-PHASE COMMIT"},"content":{"rendered":"<div id=\"page\" class=\"hfeed site\">\n<div id=\"main\" class=\"clearfix\">\n<div class=\"inner-wrap clearfix\">\n<div class=\"main-content-section clearfix\">\n<div id=\"primary\">\n<div id=\"content\" class=\"clearfix\">\n<div class=\"article-container\">\n<div class=\"article-content clearfix\">\n<div class=\"entry-content clearfix\">\n<div>\n<div id=\"5b834e06-c0b2-48f0-bff1-e8506365aad6\" class=\"postBody\" contenteditable=\"true\">\n<p>1. Two-Phase Commit \uc774\ub780?<\/p>\n<p>(1) Two-Phase Commit\uc740 Application Programmer\uac00 \ubcc4\ub3c4\uc758 Program\uc5c6\uc774 Global Database\uc758 Integrity\ub97c \ubcf4\uc7a5\ud558\ub294 \uae30\ubc95\uc774\ub2e4.<\/p>\n<p>(2) Two-Phase Commit \uc740 \ubd84\uc0b0 \ud658\uacbd Database (DB link)\ub97c \uc0ac\uc6a9\ud558\ub294 \uacbd\uc6b0\uc5d0 \uc0ac\uc6a9\ub41c\ub2e4. \uc774\ub294 Oracle V7.0\uc774\ud6c4 Version\uc5d0\uc11c \uc81c\uacf5\ub41c\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p>2. Two-Phase Commit\uc758 \uad6c\uc131<\/p>\n<p>&#8211; Two-Phase Commit\uc740 Prepare Phase\uc640 Commit Phase\ub85c \ub098\ub204\uc5b4 \uc9c4\ub2e4.<\/p>\n<p>(1) Prepare Phase<\/p>\n<p>Global Coordinator(\ubd84\uc0b0 Transaction\uc744 \uc77c\uc73c\ud0a8 Node)\uac00 \ubd84\uc0b0 Transaction\uc5d0 \ucc38\uc11d\ud55c Node\ub4e4\uc5d0 \ub300\ud574 Commit\uc774\ub098 Rollback\uc744 \uc218\ud589\ud574\ub3c4 \ub418\ub294\uac00\ub97c \ud655\uc778\ud558\ub294\ub2e8\uacc4\uc774\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p>(2) Commit Phase<\/p>\n<p>\ubd84\uc0b0 Transaction\uc5d0 \ucc38\uc5ec\ud55c Node\uac00 Global Coordinator\uc5d0\uac8c \ubd84\uc0b0 Commit\ud574\ub3c4\uc88b\ub2e4\ub294 Response(\uc989 Prepare \ub418\uc5c8\uc74c)\ub97c \ubc1b\uace0 Transaction\uc744 Commit\ud55c\ub2e4. \uc5b4\ub5a0\ud55c Node\ub77c\ub3c4 Prepare\uac00 \uc548\ub418\uc5c8\ub2e4\ub294 Response\uac00 \uc788\uc73c\uba74 Transaction\uc744Rollback\ud55c\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p>3. Two-Phase Commit\uc758 \uc218\ud589<\/p>\n<p>(1) Prepare Phase\uc5d0 \ub300\ud55c Response\ub294 Prepared, Read-Only, Abort\uac00 \uc788\ub2e4.<\/p>\n<p>A. Prepared\ub294 Data\uac00 \uc815\uc0c1\uc801\uc73c\ub85c \uc218\uc815\ub418\uc5c8\uc73c\uba70 Prepare\ub418\uc5c8\uc74c\uc744 \uc758\ubbf8\ud55c\ub2e4.<\/p>\n<p>B. Read-Only \ub294 \ud574\ub2f9Node\uc5d0 Data\uc758 \uc218\uc815\uc774 \uc5c6\uc5c8\ub2e4\ub294 \uc758\ubbf8\uc774\ub2e4.<\/p>\n<p>C. Abort\ub294 Prepare\ub418\uc9c0 \uc54a\uc558\uc74c\uc744 \uc758\ubbf8\ud55c\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p>(2) \ubaa8\ub4e0 Node\uc5d0\uc11c Prepared\uac00 \ub418\uba74 Commit Phase\uac00 \uc218\ud589\ub41c\ub2e4.<\/p>\n<p>\uadf8\ub7ec\ub098 \ud55c Node\ub77c\ub3c4 Abort\ub418\uba74 Commit Phase\uc5d0\uc11c \uc804 Node\uc5d0 Rollback\uc744 \uc218\ud589\ud55c\ub2e4.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>1. Two-Phase Commit \uc774\ub780? (1) Two-Phase Commit\uc740 Application Programmer\uac00 \ubcc4\ub3c4\uc758 Program\uc5c6\uc774 Global Database\uc758 Integrity\ub97c \ubcf4\uc7a5\ud558\ub294 \uae30\ubc95\uc774\ub2e4. (2) Two-Phase Commit \uc740 \ubd84\uc0b0 \ud658\uacbd Database (DB link)\ub97c \uc0ac\uc6a9\ud558\ub294 \uacbd\uc6b0\uc5d0 \uc0ac\uc6a9\ub41c\ub2e4. \uc774\ub294 Oracle V7.0\uc774\ud6c4 Version\uc5d0\uc11c \uc81c\uacf5\ub41c\ub2e4. &nbsp; 2. Two-Phase Commit\uc758 \uad6c\uc131 &#8211; Two-Phase Commit\uc740 Prepare Phase\uc640 Commit Phase\ub85c \ub098\ub204\uc5b4 \uc9c4\ub2e4. (1) Prepare Phase Global Coordinator(\ubd84\uc0b0 Transaction\uc744 \uc77c\uc73c\ud0a8 Node)\uac00 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"spay_email":""},"categories":[9],"tags":[894,893,892],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2704"}],"collection":[{"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2704"}],"version-history":[{"count":1,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2704\/revisions"}],"predecessor-version":[{"id":2705,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2704\/revisions\/2705"}],"wp:attachment":[{"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2704"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/haisins.synology.me\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}