{"id":2293,"date":"2024-08-28T23:22:03","date_gmt":"2024-08-28T15:22:03","guid":{"rendered":"https:\/\/coderbee.net\/?p=2293"},"modified":"2024-08-28T23:22:03","modified_gmt":"2024-08-28T15:22:03","slug":"%e4%b8%80%e6%ac%a1%e5%ad%98%e5%82%a8%e8%bf%87%e7%a8%8b%e8%b0%83%e7%94%a8%e6%98%af%e4%b8%80%e4%b8%aa%e4%ba%8b%e5%8a%a1%e5%90%97%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/coderbee.net\/index.php\/db\/20240828\/2293","title":{"rendered":"\u4e00\u6b21\u5b58\u50a8\u8fc7\u7a0b\u8c03\u7528\u662f\u4e00\u4e2a\u4e8b\u52a1\u5417\uff1f"},"content":{"rendered":"<p>\u5de5\u4f5c\u4e2d\u7ecf\u5e38\u63a5\u89e6\u4e00\u4e9b Oracle \u7684\u5b58\u50a8\u8fc7\u7a0b\uff0c\u91cc\u9762\u5404\u79cd\u590d\u6742\u7684\u4e1a\u52a1\u903b\u8f91\uff0c\u5728\u8c03\u7528\u5b58\u50a8\u8fc7\u7a0b\u4e4b\u524d\u3001\u4e4b\u540e\u7684 Java \u4ee3\u7801\u91cc\u8fd8\u6709\u5404\u79cd\u4e1a\u52a1\u903b\u8f91\u64cd\u4f5c\u3002<br \/>\n\u5b58\u50a8\u8fc7\u7a0b\u91cc\u8fd8\u53ef\u80fd\u6709\u663e\u5f0f\u7684 commit\/rollback \u7b49\u4e8b\u52a1\u63a7\u5236\u8bed\u53e5\uff0c\u5bb9\u6613\u8ba9\u4eba\u5bf9\u7cfb\u7edf\u7684\u4e8b\u52a1\u7ba1\u7406\u4ea7\u751f\u56f0\u60d1\u3002<\/p>\n<p>\u5bf9\u4e8e\u4e8b\u52a1\u7ba1\u7406\uff0c\u53ef\u4ee5\u4ece Oracle \u6570\u636e\u5e93\u548c JDBC \u5e94\u7528\u7aef\u4e24\u4e2a\u89d2\u5ea6\u6765\u8bf4\u3002<\/p>\n<p>\u5bf9\u4e8e Oracle \u6570\u636e\u5e93\uff0c\u53ea\u6709\u78b0\u5230 commit \u8bed\u53e5\u65f6\u624d\u4f1a\u63d0\u4ea4\u4e8b\u52a1\uff0c\u7136\u540e\u5f00\u542f\u65b0\u4e8b\u52a1\uff1b\u78b0\u5230 rollback\uff0c\u56de\u6eda\u5f53\u524d\u4e8b\u52a1\u7684\u64cd\u4f5c\uff0c\u518d\u5f00\u542f\u65b0\u4e8b\u52a1\u3002<\/p>\n<p>\u5e94\u7528\u7aef\u89d2\u5ea6\u901a\u8fc7 JDBC \u4e0e\u6570\u636e\u5e93\u8fdb\u884c\u4ea4\u4e92\uff0cJDBC \u6709\u4e24\u79cd\u4e8b\u52a1\u7ba1\u7406\u6a21\u5f0f\uff1a\u81ea\u52a8\u63d0\u4ea4\uff08\u9ed8\u8ba4\uff09\u3001\u624b\u52a8\u7ba1\u7406\u3002<\/p>\n<p>\u5bf9\u4e8e\u81ea\u52a8\u63d0\u4ea4\u6a21\u5f0f\uff0cJDBC \u5411\u6570\u636e\u5e93\u53d1\u51fa\u4e00\u4e2a SQL \u547d\u4ee4\u540e\uff0c\u5982\u679c SQL \u6267\u884c\u6210\u529f\uff0c\u5219\u53d1\u51fa commit \u63d0\u4ea4\u4e8b\u52a1\uff0c\u5426\u5219\u53d1\u51fa rollback \u56de\u6eda\u4e8b\u52a1\u3002<\/p>\n<p>\u56de\u5230\u6807\u9898\uff0c\u4e00\u6b21\u5b58\u50a8\u8fc7\u7a0b\u8c03\u7528\u662f\u4e00\u4e2a\u4e8b\u52a1\u5417\uff1f\u5982\u679c\u5b58\u50a8\u8fc7\u7a0b\u91cc\u6ca1\u6709\u663e\u5f0f\u7684 commit\/rollback \u8bed\u53e5\uff0c\u4e14 JDBC \u662f\u81ea\u52a8\u63d0\u4ea4\u7684\uff0c\u90a3\u4e48\u4e00\u6b21\u5b58\u50a8\u8fc7\u7a0b\u8c03\u7528\u5c31\u662f\u4e00\u4e2a\u4e8b\u52a1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5de5\u4f5c\u4e2d\u7ecf\u5e38\u63a5\u89e6\u4e00\u4e9b Oracle \u7684\u5b58\u50a8\u8fc7\u7a0b\uff0c\u91cc\u9762\u5404\u79cd\u590d\u6742\u7684\u4e1a\u52a1\u903b\u8f91\uff0c\u5728\u8c03\u7528\u5b58\u50a8 &hellip; <a href=\"https:\/\/coderbee.net\/index.php\/db\/20240828\/2293\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[363,208],"_links":{"self":[{"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/posts\/2293"}],"collection":[{"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/comments?post=2293"}],"version-history":[{"count":1,"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/posts\/2293\/revisions"}],"predecessor-version":[{"id":2294,"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/posts\/2293\/revisions\/2294"}],"wp:attachment":[{"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/media?parent=2293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/categories?post=2293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/tags?post=2293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}