{"id":294,"date":"2012-01-14T21:07:33","date_gmt":"2012-01-14T13:07:33","guid":{"rendered":"http:\/\/www.royalwzy.com\/?p=294"},"modified":"2014-01-14T21:12:19","modified_gmt":"2014-01-14T13:12:19","slug":"sql%e8%b0%83%e4%bc%9804-%e9%98%85%e8%af%bb%e6%89%a7%e8%a1%8c%e8%ae%a1%e5%88%92","status":"publish","type":"post","link":"http:\/\/www.royalwzy.com\/?p=294","title":{"rendered":"SQL\u8c03\u4f1804&#8211;\u9605\u8bfb\u6267\u884c\u8ba1\u5212"},"content":{"rendered":"<p>Interpreting Execution Plans<\/p>\n<div>\n<ol>\n<li>\u6267\u884c\u8ba1\u5212\u7684\u89e3\u91ca:\n<ol>\n<li>SQL\u8bed\u53e5\u7684\u6267\u884c\u8ba1\u5212\u662f\u7531\u8bed\u53e5\u4e2d\u884c\u6e90\u7684\u6267\u884c\u8ba1\u5212\u7ec4\u6210;<\/li>\n<li>\u6267\u884c\u8ba1\u5212\u662f\u4f7f\u7528\u7236\u5b50\u5173\u7cfb\u6765\u63cf\u8ff0\u7684,\u50cf\u4e00\u4e2a\u6811\u7684\u7ed3\u6784;<\/li>\n<\/ol>\n<\/li>\n<li>\u5982\u4f55\u67e5\u770b\u6267\u884c\u8ba1\u5212:\n<ol>\n<li>PLAN_TABLE:\u662f\u7531EXPLAIN PLAN\u547d\u4ee4\u6216\u8005SQL\/PLUS\u7684autotrace\u4ea7\u751f\u7684\u6267\u884c\u8ba1\u5212,\u662f\u7406\u8bba\u4e0a\u7684\u6267\u884c\u8ba1\u5212;<\/li>\n<li>v$sql_plan:\u5728Shared Pool\u4e2d\u7684Library Cache\u4e2d\u4fdd\u5b58\u7684\u5b9e\u9645\u4f7f\u7528\u7684\u6267\u884c\u8ba1\u5212;<\/li>\n<li>v$sql_plan_monitor:11g\u4e2d\u7684\u6267\u884c\u8ba1\u5212\u76d1\u63a7;<\/li>\n<li>dba_hist_sql_plan:\u7531AWR\u62a5\u544a\u4ea7\u751f\u7684\u6267\u884c\u8ba1\u5212;<\/li>\n<li>stats$sql_plan:\u662f\u7531Statspack\u751f\u6210\u7684\u6267\u884c\u8ba1\u5212;<\/li>\n<li>SQL Management Base:\u662f\u7531SQL Plan Management Baselines\u4ea7\u751f\u7684\u6267\u884c\u8ba1\u5212;<\/li>\n<li>SQL tuning set;<\/li>\n<li>DBMS_MONITOR\u4ea7\u751f\u7684trace\u6587\u4ef6:\u76f8\u5f53\u4e8e10046\u4e8b\u4ef6;<\/li>\n<li>\u753110053\u4e8b\u4ef6\u4ea7\u751f\u7684trace\u6587\u4ef6;<\/li>\n<li>10gR2\u4e4b\u540e\u7684dump\u8ddf\u8e2a\u6587\u4ef6;<\/li>\n<\/ol>\n<\/li>\n<li>\u67e5\u770b\u6267\u884c\u8ba1\u5212\u7684\u89c6\u56fe:\n<ol>\n<li>\u5982\u679c\u76f4\u63a5\u67e5\u770b\u57fa\u8868\u7684\u8bdd,\u6839\u672c\u65e0\u6cd5\u76f4\u63a5\u770b\u5230\u6267\u884c\u8ba1\u5212\u95f4\u7684\u5173\u7cfb,\u81ea\u5df1\u7f16\u5199SQL\u8bed\u53e5\u67e5\u770b\u5f88\u9ebb\u70e6,\u53ef\u4ee5\u4f7f\u7528DBMS_XPLAN\u5305\u4e0b\u9762\u7684\u51fd\u6570\u6765\u5b8c\u6210;<\/li>\n<li><span style=\"color: #ff0000;\">DBMS_XPLAN.DISPLAY():\u7528\u6765\u663e\u793aplan_table\u4e2d\u7684\u6267\u884c\u8ba1\u5212;<\/span><\/li>\n<li><span style=\"color: #ff0000;\">DBMS_XPLAN.DISPLAY_CURSOR():\u7528\u6765\u663e\u793av$sql_plan\u4e2d\u7684\u6267\u884c\u8ba1\u5212;<\/span><\/li>\n<li>DBMS_XPLAN.DISPLAY_AWR():\u7528\u6765\u663e\u793aAWR\u4e2d\u7684\u6267\u884c\u8ba1\u5212;<\/li>\n<li>DBMS_XPLAN.DISPLAY_SQLSET():\u7528\u6765\u663e\u793aSQL tuning set\u4e2d\u7684\u6267\u884c\u8ba1\u5212;<\/li>\n<li>DBMS_XPLAN.DISPLAY_SQL_PLAN_BASELINE():\u7528\u6765\u663e\u793aSQL Plan Management Baselines\u4e2d\u7684\u6267\u884c\u8ba1\u5212;<\/li>\n<\/ol>\n<\/li>\n<li>EXPLAIN TABLE\u547d\u4ee4:\n<ol>\n<li>\u751f\u6210\u4e00\u4e2a\u6700\u4f18\u7684\u6267\u884c\u8ba1\u5212,\u628a\u5b83\u5b58\u5728PLAN_TABLE\u4e2d,\u4f46\u662f<span style=\"color: #ff0000;\">\u5e76\u4e0d\u5b9e\u9645\u6267\u884cSQL\u8bed\u53e5<\/span>;<\/li>\n<li>\u8bed\u6cd5:EXPLAIN PLAN [SET STATEMENT_ID = &#8216;text&#8217;] [INTO plan_table] FOR statement;\u9ed8\u8ba4\u63d2\u5165\u5230PLAN_TABLE\u8868\u4e2d;<\/li>\n<li>PLAN_TABLE:\n<ol>\n<li>\u5f53\u6267\u884cEXPLAN_PLAN\u547d\u4ee4\u65f6\u81ea\u52a8\u521b\u5efaPLAN_TABLE,\u5b83\u662f\u4e00\u4e2a\u540c\u4e49\u8bcd,\u6307\u5411sys.plan_table$\u7684\u4e34\u65f6\u8868;SELECT * FROM dba_synonyms WHERE synonym_name = &#8216;PLAN_TABLE&#8217;;SELECT table_name, TEMPORARY, duration FROM dba_tables WHERE table_name = &#8216;PLAN_TABLE$&#8217;; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<img decoding=\"async\" alt=\"\" src=\"file:\/\/\/C:\/TEMP\/enhtmlclip\/Image(91).png\" \/>\u00a0 \u00a0<img decoding=\"async\" alt=\"\" src=\"file:\/\/\/C:\/TEMP\/enhtmlclip\/Image(92).png\" \/><\/li>\n<li>\u53ef\u4ee5\u6839\u636e$ORACLE_HOME\/rdbms\/admin\/utlxplan.sql\u811a\u672c\u521b\u5efa\u81ea\u5df1\u7684\u8868,\u56e0\u4e3a\u9ed8\u8ba4\u662f\u4e34\u65f6\u8868,\u53ea\u80fd\u5728\u5f53\u524dsession\u67e5\u770b,\u5bfc\u5165\u5230\u81ea\u5df1\u7684\u8868\u4e2d\u5c31\u53ef\u4ee5\u6c38\u4e45\u4fdd\u5b58;<\/li>\n<li>\u4f18\u70b9\u662fSQL\u8bed\u53e5\u4e48\u6709\u771f\u6b63\u6267\u884c;\u7f3a\u70b9\u662f\u53ef\u80fd\u4e0d\u662f\u771f\u6b63\u7684\u6267\u884c\u8ba1\u5212,\u53ea\u6709\u4f7f\u7528\u7ed1\u5b9a\u53d8\u91cf\u65f6\u6267\u884c\u8ba1\u5212\u4e0d\u51c6,\u5176\u5b83\u60c5\u51b5\u90fd\u51c6\u786e;<\/li>\n<li>\u8868\u4e2d\u7684\u5185\u5bb9\u662f\u5c42\u7ea7\u7ed3\u6784,\u53ef\u4ee5\u901a\u8fc7ID\u548cPAREANT_ID\u5217\u6765\u5173\u8054;<\/li>\n<\/ol>\n<\/li>\n<li>DBMS_XPLAN.DISPLAY\u51fd\u6570\u8bed\u6cd5:DBMS_XPLAN.DISPLAY(table_name, statement_id, format, filter_preds):\n<ol>\n<li>table_name:\u9ed8\u8ba4\u662fPLAN_TABLE\u8868;<\/li>\n<li>statement_id:\u9ed8\u8ba4\u662f\u7a7a,\u53ef\u4ee5\u6839\u636e\u8fd9\u4e2a\u53c2\u6570\u83b7\u5f97\u6307\u5b9a\u7684\u8bed\u53e5\u7684\u6267\u884c\u8ba1\u5212;<\/li>\n<li>format:\u9ed8\u8ba4\u662fTYPICAL\u7c7b\u578b,\u5176\u4ed6\u7c7b\u578b\u67e5\u5e2e\u52a9\u6587\u6863,\u663e\u793a\u7684\u4fe1\u606f\u591a\u5c11;<\/li>\n<li>\u9ed8\u8ba4\u53ea\u67e5\u770b\u4e0a\u4e00\u6761\u8bed\u53e5\u7684\u6267\u884c\u8ba1\u5212; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<img decoding=\"async\" alt=\"\" src=\"file:\/\/\/C:\/TEMP\/enhtmlclip\/Image(93).png\" \/><\/li>\n<li>\u67e5\u770b\u6307\u5b9astatement_id\u7684\u6267\u884c\u8ba1\u5212; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<img decoding=\"async\" alt=\"\" src=\"file:\/\/\/C:\/TEMP\/enhtmlclip\/Image(94).png\" \/><\/li>\n<li>\u67e5\u770b\u66f4\u591a\u7684\u6267\u884c\u8ba1\u5212\u7684\u4fe1\u606f; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<img decoding=\"async\" alt=\"\" src=\"file:\/\/\/C:\/TEMP\/enhtmlclip\/Image(95).png\" \/><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<li>AUTOTRACE:\n<ol>\n<li>AUTOTRACE\u662fsql*plus\u7684\u529f\u80fd,\u5728oracle7.3\u7248\u672c\u540e\u51fa\u73b0,\u4e5f\u662f\u628a\u8bb0\u5f55\u5b58\u653e\u5728PLAN_TABLE\u8868\u4e2d;<\/li>\n<li>\u9700\u8981PLUSTRACE\u89d2\u8272\u4ecev$\u89c6\u56fe\u4e2d\u68c0\u7d22\u7edf\u8ba1\u4fe1\u606f,\u4f7f\u7528$ORACLE_HOME\/sqlplus\/admin\/plustrce.sql\u811a\u672c\u521b\u5efa;<\/li>\n<li>\u9ed8\u8ba4\u60c5\u51b5\u4e0b,\u5728\u6267\u884c\u5b8c\u67e5\u8be2\u8bed\u53e5\u540e\u4f1a\u751f\u6210\u6267\u884c\u8ba1\u5212\u548c\u7edf\u8ba1\u4fe1\u606f;<\/li>\n<li><span style=\"color: #e30000;\">\u76f8\u5f53\u4e8e\u6267\u884c\u4e86\u4e00\u6b21EXPLAIN PLAN\u547d\u4ee4\u7136\u540e\u6267\u884c\u4e86\u4e00\u6b21\u8bed\u53e5<\/span>,\u5982\u679c\u4f7f\u7528\u7ed1\u5b9a\u53d8\u91cf\u7684\u8bdd\u53ef\u80fd\u4e0d\u662f\u771f\u5b9e\u7684\u8ba1\u5212;<\/li>\n<li>\u8bed\u6cd5:SET AUTOT[RACE] {OFF | ON | TRACE[ONLY]} [EXP[LAIN]] [STAT[ISTICS]];\n<ol>\n<li>ON:\u8981\u663e\u793a\u7ed3\u679c\u548ctrace\u4fe1\u606f;<\/li>\n<li>TRACEONLY:\u4e0d\u663e\u793a\u7ed3\u679c;<\/li>\n<\/ol>\n<\/li>\n<li>\u67e5\u770b\u5f53\u524d\u7684\u8bbe\u7f6e:show autotrace;<\/li>\n<\/ol>\n<\/li>\n<li>\u9605\u8bfb\u7edf\u8ba1\u4fe1\u606f:\n<ol>\n<li>recursive calls:\u9012\u5f52\u7684\u8c03\u7528,\u8bfb\u53d6\u6570\u636e\u5b57\u5178,\u6743\u9650,\u5217\u7684\u4fe1\u606f.\u7b2c\u4e00\u6b21\u6267\u884c\u4f1a\u5f88\u5927,\u4ee5\u540e\u6267\u884c\u4f1a\u53d8\u5c0f;\u5982\u679c\u4f7f\u7528\u5b58\u50a8\u8fc7\u7684\u8bdd,\u8fd9\u4e2a\u503c\u4e00\u822c\u4f1a\u5f88\u5927,\u5c5e\u4e8e\u6b63\u5e38;\u53ef\u4ee5\u901a\u8fc7\u6e05\u9664shared_pool\u6d4b\u8bd5:alter system flush shared_pool;<\/li>\n<li>db block gets:\u4fee\u6539\u5f53\u524d\u72b6\u6001\u7684\u6570\u636e\u5757\u7684block\u7684\u5757\u6570.\u53ea\u6709\u5f53DML\u8bed\u53e5\u4f1a\u5f15\u8d77db block gets\u589e\u52a0,\u56e0\u4e3a\u5f53\u524d\u5757\u4f1a\u88ab\u66f4\u65b0,SELECT\u8bed\u53e5\u7684\u8bdd\u4e0d\u4f1a\u589e\u52a0,\u56e0\u4e3a\u53ef\u4ee5\u8bfb\u53d6REDO\u6216\u8005\u6784\u9020\u7684CR\u5757;<\/li>\n<li><span style=\"color: #e30000;\">consistent gets<\/span>:\u903b\u8f91\u8bfb\u7684\u6570\u91cf(\u4e0d\u662fBLOCK),\u8868\u793a\u8fd4\u56de\u8bb0\u5f55\u7684\u6279\u6b21\u6570,\u8ddf\u5f53\u524d\u7684arraysize\u6709\u5173;\n<ol>\n<li>arraysize:\u8868\u793a\u4e00\u6b21\u8fd4\u56de\u7684\u8bb0\u5f55\u6570,\u901a\u8fc7show arraysize\u547d\u4ee4\u67e5\u770b;<\/li>\n<li>\u7c97\u7565\u662f\u7b97\u6cd5\u662f:consistent gets=rows processed\/arraysize,\u8bb0\u5f55\u8d8a\u591a\u8d8a\u63a5\u8fd1;<\/li>\n<li>\u4f18\u5316\u65f6\u5e94\u8be5\u5173\u5fc3\u5728\u76f8\u540c\u7684arraysize\u4e0b\u51cf\u5c0f\u6b64\u503c,\u5373\u51cf\u5c0f\u903b\u8f91\u8bfb;<\/li>\n<\/ol>\n<\/li>\n<li>physical reads:\u7269\u7406\u8bfb,\u5373\u4ece\u786c\u76d8\u8bfb\u53d6\u7684BLOCK\u7684\u6570\u91cf,BUFFER CACHE\u8d8a\u5927\u8fd9\u4e2a\u503c\u8d8a\u5c0f,\u53ef\u4ee5\u901a\u8fc7\u6e05\u9664BUFFER CACHE\u6d4b\u8bd5:alter system flush buffer_cache;<\/li>\n<li>redo size:\u4ea7\u751f\u7684\u65e5\u5fd7\u7684\u6570\u91cf,\u4e00\u822cDML\u8bed\u53e5\u624d\u4f1a\u4ea7\u751f;<\/li>\n<li>bytes sent via SQL*Net to client:\u670d\u52a1\u5668\u53d1\u9001\u5230\u5ba2\u6237\u7aef\u7684\u5b57\u8282\u6570;<\/li>\n<li>bytes received via SQL*Net from client:\u670d\u52a1\u5668\u63a5\u6536\u5230\u5ba2\u6237\u7aef\u7684\u5b57\u8282\u6570;<\/li>\n<li>SQL*Net roundtrips to\/from client:SQL\u7684\u7f51\u7edc\u6d41\u91cf\u7684\u6b21\u6570,\u4e5f\u8ddfarraysize\u53c2\u6570\u6709\u5173;<\/li>\n<li>sorts (memory):\u5185\u5b58\u4e2d\u7684\u6392\u5e8f\u6570\u91cf,\u4e3b\u8981\u662fPGA;<\/li>\n<li>sorts (disk):\u5728\u786c\u76d8\u7684\u6392\u5e8f,\u5e94\u8be5\u907f\u514d\u8fd9\u4e2a\u503c;<\/li>\n<li>rows processed:\u5904\u7406\u7684\u8bb0\u5f55\u6570;<\/li>\n<\/ol>\n<\/li>\n<li>v$sql_plan:\n<ol>\n<li>v$sql_plan:\u67e5\u770blibrary cahce\u4e2d\u771f\u6b63\u4f7f\u7528\u7684\u6267\u884c\u8ba1\u5212;PLAN_TABLE\u53ea\u662f\u7406\u8bba\u4e0a\u7684\u6267\u884c\u8ba1\u5212;<\/li>\n<li>\u53ef\u4ee5\u901a\u8fc7sql_id\u5217\u4e0ev$sql\u8868\u5173\u8054,\u4e5f\u53ef\u4ee5\u4f7f\u7528address\u548chash_value\u7684\u503c;<\/li>\n<li>\u4e3b\u8981\u7684\u5217:\n<ol>\n<li>HASH_VALUE:\u7236\u8bed\u53e5\u5728library cache\u4e2d\u7684\u54c8\u5e0c\u503c;<\/li>\n<li>ADDRESS:\u8bbf\u95eeSQL\u8bed\u53e5\u7684\u53e5\u67c4,\u5373\u5185\u5b58\u5730\u5740;<\/li>\n<li>CHILD_NUMBER:\u4f7f\u7528\u6b64\u6267\u884c\u8ba1\u5212\u7684\u5b50CURSOR\u6570\u91cf;<\/li>\n<li>POSITION:\u5177\u6709\u76f8\u540cPARENT_ID\u7684\u64cd\u4f5c\u7684\u6267\u884c\u987a\u5e8f;<\/li>\n<li>PARENT_ID:\u8df3\u51fa\u8fc7\u7a0b\u7684\u4e0b\u4e00\u4e2a\u6267\u884c\u7684\u8fc7\u7a0bID,\u8fd9\u4e2a\u5f88\u62bd\u8c61,\u770b\u5230\u6267\u884c\u8ba1\u5212,\u5f88\u5bb9\u6613\u7406\u89e3\u8fd9\u4e00\u70b9;<\/li>\n<li>ID:\u6bcf\u4e00\u4e2a\u6b65\u9aa4\u7684\u7f16\u53f7;<\/li>\n<li>PLAN_HASH_VALUE:\u6267\u884c\u8ba1\u5212\u7684\u54c8\u5e0c\u503c;<\/li>\n<\/ol>\n<\/li>\n<li>\u67e5\u770b\u5b9e\u9645\u7684\u6267\u884c\u8ba1\u5212:SELECT * FROM table(DBMS_XPLAN.DISPLAY_CURSOR(&#8216;sql_id&#8217;));<\/li>\n<li>v$sql_plan_statistics:\u63d0\u4f9b\u5b9e\u9645\u6267\u884c\u65f6\u7684\u7edf\u8ba1\u4fe1\u606f\n<ol>\n<li>\u5f53STATISTICS_LEVEL\u8bbe\u7f6e\u4e3aALL\u65f6\u624d\u4f1a\u6536\u96c6;<\/li>\n<li>\u6216\u8005\u8bed\u53e5\u4e2d\u6307\u5b9a\u4e86GATHER_PLAN_STATISTICS\u7684hint;<\/li>\n<li>v$sql_plan_statistics_all:\u83b7\u5f97\u6240\u6709\u7684\u5b9e\u9645\u6267\u884c\u7684\u7edf\u8ba1\u4fe1\u606f;<\/li>\n<\/ol>\n<\/li>\n<li>v$sql_workarea:\u63d0\u4f9b\u4e86SQL CURSOR\u4f7f\u7528\u7684\u5de5\u4f5c\u533a\u7684\u4fe1\u606f; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<img decoding=\"async\" alt=\"\" src=\"file:\/\/\/C:\/TEMP\/enhtmlclip\/Image(96).png\" \/><\/li>\n<\/ol>\n<\/li>\n<li>AWR:\n<ol>\n<li>AWR\u662f\u4e3a\u4e86\u68c0\u6d4b\u548c\u81ea\u8c03\u6574\u4e3a\u76ee\u7684\u7684\u6536\u96c6,\u5904\u7406,\u7ef4\u62a4\u6027\u80fd\u7edf\u8ba1\u4fe1\u606f;<\/li>\n<li>\u7edf\u8ba1\u4fe1\u606f\u5305\u62ec:\n<ol>\n<li>\u5bf9\u8c61\u7edf\u8ba1\u4fe1\u606f;<\/li>\n<li>\u65f6\u95f4\u6a21\u578b\u7edf\u8ba1\u4fe1\u606f;<\/li>\n<li>\u4e00\u4e9b\u7cfb\u7edf\u548csession\u7684\u7edf\u8ba1\u4fe1\u606f;<\/li>\n<li>ASH(Active Session History)\u7edf\u8ba1\u4fe1\u606f;<\/li>\n<\/ol>\n<\/li>\n<li>\u81ea\u52a8\u751f\u6210\u6027\u80fd\u6570\u636e\u7684\u5feb\u7167;<\/li>\n<li>\u91cd\u8981\u7684AWR\u89c6\u56fe:\n<ol>\n<li>V$ACTIVE_SESSION_HISTORY;<\/li>\n<li>V$metric views;<\/li>\n<li>DBA_HIST views:\n<ol>\n<li>DBA_HIST_ACTIVE_SESS_HISTORY;<\/li>\n<li>DBA_HIST_BASELINE;<\/li>\n<li>DBA_HIST_DATABASE_INSTANCE;<\/li>\n<li>DBA_HIST_SNAPSHOT;<\/li>\n<li>DBA_HIST_SQL_PLAN;<\/li>\n<li>DBA_HIST_WR_CONTROL;<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u6307\u5b9asql_id\u67e5\u770bAWR\u4e2d\u7684sql\u7684\u6267\u884c\u8ba1\u5212: SELECT plan_table_output FROM TABLE(DBMS_XPLAN.DISPLAY_AWR(&#8216;g22czkqq3pxmb&#8217;));<\/li>\n<li>\u4eceAWR\u6570\u636e\u751f\u6210\u4e00\u4e2aSQL\u62a5\u544a:@$ORACLE_HOME\/rdbms\/admin\/awrsqrpt;<\/li>\n<\/ol>\n<\/li>\n<li>SQL Monitoring:11g;<\/li>\n<li>\u9605\u8bfb\u6267\u884c\u8ba1\u5212:\n<ol>\n<li>\u8bfb\u6267\u884c\u8ba1\u5212\u7684\u987a\u5e8f:\n<ol>\n<li>\u4ece\u4e0a\u5f80\u4e0b\u770b,\u7b2c\u4e00\u4e2a\u6ca1\u6709\u513f\u5b50\u8282\u70b9\u7684\u8282\u70b9\u6700\u5148\u6267\u884c;<\/li>\n<li>\u6267\u884c\u6267\u884c\u5176\u5144\u5f1f\u8282\u70b9;<\/li>\n<li>\u6700\u540e\u6267\u884c\u7236\u8282\u70b9;<\/li>\n<\/ol>\n<\/li>\n<li>\u5c31\u662f<span style=\"color: #e30000;\">\u4e8c\u53c9\u6811\u4e2d\u7684\u540e\u5e8f\u904d\u5386\u7684\u65b9\u5f0f<\/span>:\n<ol>\n<li>\u524d\u5e8f\u904d\u5386:\u5bf9\u4efb\u4e00\u5b50\u6811,\u5148\u8bbf\u95ee\u6839,\u7136\u540e\u904d\u5386\u5176\u5de6\u5b50\u6811,\u6700\u540e\u904d\u5386\u5176\u53f3\u5b50\u6811;<\/li>\n<li>\u4e2d\u5e8f\u904d\u5386:\u5bf9\u4efb\u4e00\u5b50\u6811,\u5148\u904d\u5386\u5176\u5de6\u5b50\u6811,\u7136\u540e\u8bbf\u95ee\u6839,\u6700\u540e\u904d\u5386\u5176\u53f3\u5b50\u6811;<\/li>\n<li><span style=\"color: #e30000;\">\u540e\u5e8f\u904d\u5386:\u5bf9\u4efb\u4e00\u5b50\u6811,\u5148\u904d\u5386\u5176\u5de6\u5b50\u6811,\u7136\u540e\u904d\u5386\u5176\u53f3\u5b50\u6811,\u6700\u540e\u8bbf\u95ee\u6839;<\/span><\/li>\n<\/ol>\n<\/li>\n<li>\u4f8b\u5b50:\n<ol>\n<li>\u6267\u884c\u7684\u987a\u5e8f\u4e3a:356421; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<img decoding=\"async\" alt=\"\" src=\"file:\/\/\/C:\/TEMP\/enhtmlclip\/Image(97).png\" \/><\/li>\n<li>\u6267\u884c\u7684\u987a\u5e8f\u4e3a:43652871; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<img decoding=\"async\" alt=\"\" src=\"file:\/\/\/C:\/TEMP\/enhtmlclip\/Image(98).png\" \/><\/li>\n<li>\u6267\u884c\u987a\u5e8f\u4e3a:325410; \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<img decoding=\"async\" alt=\"\" src=\"file:\/\/\/C:\/TEMP\/enhtmlclip\/Image(99).png\" \/><\/li>\n<\/ol>\n<\/li>\n<li>\u67e5\u770b\u6267\u884c\u8ba1\u5212\u7684\u5efa\u8bae:\n<ol>\n<li>\u8981\u4f7f\u9a71\u52a8\u8868\u4fdd\u6301\u6700\u597d\u7684\u8fc7\u6ee4\u6761\u4ef6,\u5373\u9a71\u52a8\u8868\u6709\u6700\u5c0f\u7684\u8bb0\u5f55;<\/li>\n<li>\u6bcf\u4e00\u6b65\u8fd4\u56de\u7684\u6570\u636e\u5c3d\u91cf\u6700\u5c0f;<\/li>\n<li>\u6b63\u786e\u4f7f\u7528\u89c6\u56fe,\u53ea\u662f\u7528\u4e00\u5c42,\u5c3d\u91cf\u4e0d\u8981\u5d4c\u5957;<\/li>\n<li>\u907f\u514d\u4f7f\u7528\u7b1b\u5361\u5c14\u79ef;<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<li>\u4ec5\u4ec5\u9760\u4e00\u4e2a\u6267\u884c\u8ba1\u5212\u4e0d\u80fd\u8bf4\u660e\u5b83\u662f\u5426\u662f\u6700\u597d\u7684,\u53ef\u4ee5\u501f\u52a9<span style=\"color: #e30000;\">SQL Tuning Advisor<\/span>\u5de5\u5177;<\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Interpreting Execution Plans \u6267\u884c\u8ba1\u5212\u7684\u89e3\u91ca: SQL\u8bed\u53e5\u7684\u6267\u884c\u8ba1\u5212\u662f\u7531\u8bed\u53e5\u4e2d\u884c\u6e90 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[8],"class_list":["post-294","post","type-post","status-publish","format-standard","hentry","category-oracle","tag-performance"],"_links":{"self":[{"href":"http:\/\/www.royalwzy.com\/index.php?rest_route=\/wp\/v2\/posts\/294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.royalwzy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.royalwzy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.royalwzy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.royalwzy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=294"}],"version-history":[{"count":0,"href":"http:\/\/www.royalwzy.com\/index.php?rest_route=\/wp\/v2\/posts\/294\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.royalwzy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.royalwzy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=294"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.royalwzy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}