{"id":15675,"date":"2023-12-04T21:37:21","date_gmt":"2023-12-04T13:37:21","guid":{"rendered":"https:\/\/wx.kaifamiao.info\/?p=15675"},"modified":"2023-12-04T21:47:17","modified_gmt":"2023-12-04T13:47:17","slug":"oracle-zhong-bu-jie-zhu-di-san-fang-gong-ju-zen-ya","status":"publish","type":"post","link":"http:\/\/wx.kaifamiao.info\/index.php\/2023\/12\/04\/oracle-zhong-bu-jie-zhu-di-san-fang-gong-ju-zen-ya\/","title":{"rendered":"Oracle \u4e2d\u4e0d\u501f\u52a9\u7b2c\u4e09\u65b9\u5de5\u5177\uff0c\u600e\u6837\u67e5\u770b sql \u7684\u6267\u884c\u8ba1\u5212\uff1f"},"content":{"rendered":"<p>\u5728 Oracle \u6570\u636e\u5e93\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\u67e5\u770b SQL \u67e5\u8be2\u7684\u6267\u884c\u8ba1\u5212\uff0c\u800c\u4e0d\u501f\u52a9\u7b2c\u4e09\u65b9\u5de5\u5177\uff1a<\/p>\n<ol>\n<li>\n<strong>\u4f7f\u7528 <code>EXPLAIN PLAN<\/code>\uff1a<\/strong><\/p>\n<ul>\n<li>\u5728 SQL \u67e5\u8be2\u524d\u52a0\u4e0a <code>EXPLAIN PLAN FOR<\/code> \u5173\u952e\u5b57\u3002<\/li>\n<li>\u793a\u4f8b\uff1a<code>EXPLAIN PLAN FOR SELECT * FROM your_table WHERE your_condition;<\/code><\/li>\n<li>\u8fd9\u4f1a\u4e3a\u67e5\u8be2\u751f\u6210\u6267\u884c\u8ba1\u5212\uff0c\u4f46\u4e0d\u4f1a\u7acb\u5373\u663e\u793a\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<strong>\u4f7f\u7528 <code>DBMS_XPLAN.DISPLAY<\/code>\uff1a<\/strong><\/p>\n<ul>\n<li>\u8fd0\u884c\u4ee5\u4e0b\u67e5\u8be2\u6765\u663e\u793a\u751f\u6210\u7684\u6267\u884c\u8ba1\u5212\uff1a<\/li>\n<li><code>SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);<\/code><\/li>\n<li>\u8fd9\u5c06\u663e\u793a\u6700\u8fd1\u751f\u6210\u7684\u6267\u884c\u8ba1\u5212\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u5728\u4e0d\u4f7f\u7528\u7b2c\u4e09\u65b9\u5de5\u5177\u7684\u60c5\u51b5\u4e0b\uff0c\u67e5\u770b SQL \u67e5\u8be2\u7684\u6267\u884c\u8ba1\u5212\u3002\u8fd9\u4e2a\u65b9\u6cd5\u4f1a\u5c06\u6267\u884c\u8ba1\u5212\u8f93\u51fa\u5230\u7ec8\u7aef\u6216\u5ba2\u6237\u7aef\uff0c\u4ee5\u4fbf\u4e8e\u5206\u6790\u67e5\u8be2\u7684\u6267\u884c\u8def\u5f84\u548c\u6027\u80fd\u4f18\u5316\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Oracle \u6570\u636e\u5e93\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\u67e5\u770b SQL \u67e5\u8be2\u7684\u6267\u884c\u8ba1\u5212\uff0c\u800c\u4e0d\u501f\u52a9\u7b2c\u4e09\u65b9\u5de5\u5177\uff1a \u4f7f\u7528 EXPL [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[120],"tags":[],"class_list":["post-15675","post","type-post","status-publish","format-standard","hentry","category-oracel"],"_links":{"self":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/15675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/comments?post=15675"}],"version-history":[{"count":1,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/15675\/revisions"}],"predecessor-version":[{"id":15676,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/posts\/15675\/revisions\/15676"}],"wp:attachment":[{"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/media?parent=15675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/categories?post=15675"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wx.kaifamiao.info\/index.php\/wp-json\/wp\/v2\/tags?post=15675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}