{"id":1650,"date":"2017-04-28T11:34:03","date_gmt":"2017-04-28T02:34:03","guid":{"rendered":"http:\/\/www.dbsheetclient.jp\/blog\/?p=1650"},"modified":"2018-06-27T15:39:16","modified_gmt":"2018-06-27T06:39:16","slug":"%e5%ae%9f%e8%a1%8c%e8%a8%88%e7%94%bb%e3%81%ae%e5%8f%96%e5%be%97%ef%bc%88oracle%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.dbsheetclient.jp\/blog\/?p=1650","title":{"rendered":"\u5b9f\u884c\u8a08\u753b\u306e\u53d6\u5f97\uff08Oracle\uff09"},"content":{"rendered":"<p>IT\u30b3\u30fc\u30c7\u30a3\u30cd\u30fc\u30bf\u306e\u30b7\u30e5\u30a6\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/DSC_0007.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1664\" src=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/DSC_0007-300x168.jpg\" alt=\"DSC_0007\" width=\"300\" height=\"168\" \/><\/a><\/p>\n<p>\u3042\u3063\u3068\u3044\u3046\u9593\u306b\u685c\u306f\u6563\u3063\u3066\u3057\u307e\u3044\u3001\u304b\u306a\u308a\u306e\u65e5\u6570\u304c\u305f\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u3082\u3046GW\u3067\u3059\u306d\u3002<br \/>\u4e0a\u306e\u5199\u771f\u306f\u3001\u685c\u304c\u54b2\u3044\u3066\u3044\u305f\u3068\u304d\u306b\u3001\u5a18\u304c\u8fd1\u304f\u306e\u516c\u5712\u3067\u5915\u65b9\u306b\u304d\u308c\u3044\u3060\u3063\u305f\u3068\u64ae\u3063\u305f\u3082\u306e\u3067\u3059\u3002\u7a7a\u304c\u9752\u304f\u306a\u3063\u3066\u5e7b\u60f3\u7684\u306a\u96f0\u56f2\u6c17\u304c\u3057\u307e\u3059\u306d\u3002<br \/>\u3061\u3087\u3046\u3069\u6e80\u958b\u306e\u3068\u304d\u306e\u9031\u672b\u306b\u96e8\u304c\u964d\u3063\u305f\u306e\u3067\u3001\u304a\u82b1\u898b\u304c\u3067\u304d\u306a\u304b\u3063\u305f\u306e\u304c\u6b8b\u5ff5\u3067\u3057\u305f\u3002\u6765\u5e74\u3092\u671f\u5f85\u3057\u3088\uff5e\u3063\u3068\uff01<\/p>\n<p>\u3055\u3066\u3001dbSheetClient\u306b\u65b0\u3057\u3044\u4e8b\u4f8b\u304c\uff12\u3064\u307e\u305f\u30a2\u30c3\u30d7\u3055\u308c\u3066\u3044\u307e\u3059\u3002<span lang=\"EN-US\">1<\/span>\u3064\u306f<span lang=\"EN-US\">6<\/span>\u5e74\u524d\u306b\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3057\u305f\u5f8c\u3001\u6539\u5b9a\u3092\u7d9a\u3051\u306a\u304c\u3089\u30d5\u30eb\u6d3b\u7528\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3082<span lang=\"EN-US\">PostgreSQL<\/span>\u306b\u30c0\u30a6\u30f3\u30b5\u30a4\u30b8\u30f3\u30b0\u3057\u305f<span lang=\"EN-US\">SOLIZE Products<\/span>\u682a\u5f0f\u4f1a\u793e\u69d8\u306e\u4e8b\u4f8b\u3001\u3082\u3046\u4e00\u3064\u306f\u3001<span lang=\"EN-US\">dbSheetClient<\/span>\u3092\u4f7f\u3063\u3066\u91d1\u578b\u88fd\u4f5c\u306b\u304a\u3051\u308b\u57fa\u5e79\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3001\u5185\u88fd\u5316\u3057\u305f\u682a\u5f0f\u4f1a\u793e\u9ed2\u7530\u88fd\u4f5c\u6240\u69d8\u306e\u4e8b\u4f8b\u3067\u3059\u3002<br \/>\u8208\u5473\u306e\u3042\u308b\u65b9\u306f\u4ee5\u4e0b\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<br \/><span lang=\"EN-US\"><a href=\"http:\/\/www.newcom07.jp\/dbsheetclient\/usrvoice_sequel\/solize_products.html\">http:\/\/www.newcom07.jp\/dbsheetclient\/usrvoice_sequel\/solize_products.html<\/a><br \/><\/span><a href=\"http:\/\/www.newcom07.jp\/dbsheetclient\/usrvoice\/kurodaseisakusyo.html\">http:\/\/www.newcom07.jp\/dbsheetclient\/usrvoice\/kurodaseisakusyo.html<\/a><\/p>\n<p><strong>\uff1c\u672c\u65e5\u306e\u984c\u6750\uff1e<br \/><\/strong><strong>\u5b9f\u884c\u8a08\u753b\u306e\u53d6\u5f97\uff08Oracle<\/strong><strong>\uff09<\/p>\n<p><\/strong>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304cSQL Server\u3067\u3042\u308c\u3001Oracle\u3067\u3042\u308c\u3001\u6027\u80fd\u306e\u554f\u984c\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306b\u306f\u3001\u5b9f\u884c\u8a08\u753b\u3092\u53d6\u5f97\u3057\u3066\u3001SQL\u304c\u3069\u306e\u3088\u3046\u306a\u624b\u9806\u3067\u51e6\u7406\u3092\u884c\u3063\u3066\u3044\u308b\u306e\u304b\u3092\u78ba\u8a8d\u3057\u3066\u3001\u5bfe\u7b56\u3092\u53d6\u308b\u3068\u3044\u3046\u3053\u3068\u304c\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>SQL Server\u306e\u5834\u5408\u306b\u306f\u3001Management Studio\u3067SQL\u3092\u5b9f\u884c\u3059\u308b\u969b\u306b\u3001\u30c4\u30fc\u30eb\u4e0a\u3067\u63a8\u5b9a\u5b9f\u884c\u30d7\u30e9\u30f3\u306e\u8868\u793a\u3084\u5b9f\u884c\u8a08\u753b\u3092\u7d50\u679c\u306b\u542b\u3081\u308b\u306a\u3069\u306e\u8a2d\u5b9a\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u7c21\u5358\u306b\u5b9f\u884c\u8a08\u753b\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u304c\u3001Oracle\u306e\u5834\u5408\u306f\u3069\u3046\u3060\u3063\u305f\u304b\uff1f\u3068\u3059\u3050\u306b\u3084\u308a\u65b9\u304c\u51fa\u3066\u6765\u306a\u3044\u5834\u5408\u3082\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u7c21\u5358\u306b\u3084\u308a\u65b9\u3092\u4e0a\u3052\u3066\u304a\u304d\u307e\u3059\u3002\u203bSQLPlus\u3084SQL Developer\u306a\u3069\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u5b9f\u884c\u8a08\u753b\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e2\u3064\u306e\u3084\u308a\u65b9\u304c\u3088\u304f\u5229\u7528\u3055\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\u2460EXPLAIN PLAN\u6587\u3092\u4f7f\u7528\u3059\u308b<br \/>\u2461AUTOTRACE \u3092 ON \u306b\u3059\u308b<\/p>\n<p>\u307e\u305a\u3001\u2460\u306b\u3064\u3044\u3066\u3067\u3059\u3002<br \/>\u2460\u306f\u3001EXPLAIN PLAN FOR + SQL\u6587\u306b\u3088\u3063\u3066\u30aa\u30e9\u30af\u30eb\u306e\u30aa\u30d7\u30c6\u30a3\u30de\u30a4\u30b6\u304c\u9078\u629e\u3057\u305f\u300c\u5b9f\u884c\u8a08\u753b(\u4e88\u5b9a)\u300d\u3092\u53d6\u5f97\u3059\u308b\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002<br \/>\u203b EXPLAIN PLAN \u6587\u306b\u3088\u308b\u5b9f\u884c\u8a08\u753b\u306e\u53d6\u5f97\u3067\u306f\u3001SQL\u306e\u5b9f\u969b\u306e\u5b9f\u884c\u306f\u884c\u306a\u308f\u308c\u306a\u3044\u305f\u3081\u3001\u5b9f\u884c\u7d50\u679c\u3084SQL\u7d71\u8a08\u60c5\u5831\u306f\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u30fb\u4e8b\u524d\u6e96\u5099<br \/>EXPLAIN PLAN FOR + SQL\u6587\u306b\u3088\u3063\u3066\u3001\u5b9f\u884c\u8a08\u753b\u306f\u3001PLAN_TABLE \u3068\u3044\u3046\u8868\u306b\u683c\u7d0d\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u3042\u3089\u304b\u3058\u3081\u305d\u308c\u3092\u7528\u610f\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>sqlplus\u306a\u3069\u3067\u3001\u5b9f\u884c\u8a08\u753b\u3092\u53d6\u308a\u305f\u3044SQL\u3092\u5b9f\u884c\u3059\u308b\u30e6\u30fc\u30b6\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002<\/p>\n<p>sqlplus test\/*****<br \/>\u63a5\u7d9a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>Oracle\u5074\u3067\u7528\u610f\u3057\u3066\u3044\u308b utlxplan.sql \u3068\u3044\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30aa\u30e9\u30af\u30eb\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e0b\u306e\u3001rdbms\/admin\u30d5\u30a9\u30eb\u30c0\u306e\u4e0b\u306b\u3042\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>SQL&gt; @?\/rdbms\/admin\/utlxplan.sql<\/p>\n<p><a href=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/utlxplan.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1652\" src=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/utlxplan.png\" alt=\"utlxplan\" width=\"236\" height=\"55\" \/><\/a><\/p>\n<p>\u00a0sqlplus\u306b\u304a\u3044\u3066\u300c?\u300d\u306fOracle Home\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u7f6e\u63db\u3055\u308c\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u300c@?\/sqlplus\/admin\/plustrce.sql\u300d\u306f\u3001\u300c@$ORACLE_HOME\/sqlplus\/admin\/plustrce.sql\u300d\u306e\u610f\u5473\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u3001\u5b9f\u884c\u8a08\u753b\u306e\u60c5\u5831\u3092\u683c\u7d0d\u3059\u308b\u300cPLAN_TABLE\u300d\u8868\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002\u5ff5\u306e\u305f\u3081\u3001\u8868\u306e\u5b9a\u7fa9\u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>DESC PLAN_TABLE<\/p>\n<p><a href=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/plan_table.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1655\" src=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/plan_table-274x300.png\" alt=\"plan_table\" width=\"274\" height=\"300\" srcset=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/plan_table-274x300.png 274w, https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/plan_table.png 656w\" sizes=\"auto, (max-width: 274px) 100vw, 274px\" \/><\/a><\/p>\n<p>\u8868\u304c\u4f5c\u6210\u3055\u308c\u308c\u3070\u6e96\u5099\u304c\u3067\u304d\u307e\u3057\u305f\u306e\u3067\u3001\u305d\u308c\u3067\u306f\u3001\u8a66\u3057\u3066\u307f\u307e\u3059\u3002\u4ee5\u524d\u3001\u30d6\u30ed\u30b0\u3067\u53d6\u308a\u4e0a\u3052\u305f\u300cMINUS\u300d\u3068\u3044\u3046\u96c6\u5408\u6f14\u7b97\u5b50\u3092\u4f7f\u3063\u305fSQL\u306e\u5b9f\u884c\u8a08\u753b\u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>explain plan for<br \/>SELECT * FROM tbl_B<br \/>MINUS<br \/>SELECT * FROM tbl_A;<\/p>\n<p><a href=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/explain_plan_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1656\" src=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/explain_plan_1.png\" alt=\"explain_plan_1\" width=\"220\" height=\"103\" \/><\/a><\/p>\n<p>\u00a0\u203btbl_A\u3001tbl_B \u306f\u540c\u3058\u69cb\u9020\u306e\u30c6\u30fc\u30d6\u30eb\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u5b9f\u884c\u8a08\u753b\u3092\u8868\u793a\u3057\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u3001DBMS_XPLAN \u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u8868\u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());<\/p>\n<p><a href=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/explain_plan_1_\u7d50\u679c.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1658\" src=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/explain_plan_1_\u7d50\u679c-300x208.png\" alt=\"explain_plan_1_\u7d50\u679c\" width=\"300\" height=\"208\" srcset=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/explain_plan_1_\u7d50\u679c-300x208.png 300w, https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/explain_plan_1_\u7d50\u679c.png 666w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u4e0a\u8a18\u306e\u7d50\u679c\u304b\u3089\u3001\u3053\u306eSQL\u306f\u3001\u300cTBL_B\u300d\u306b\u5bfe\u3059\u308b\u5168\u8868\u30b9\u30ad\u30e3\u30f3\u3092\u884c\u3063\u305f\u5f8c\u306b\u30bd\u30fc\u30c8\u51e6\u7406(SORT UNIQUE)\u3092\u884c\u3044\u3001\u3055\u3089\u306b\u300cTBL_A\u300d\u306b\u5bfe\u3059\u308b\u5168\u8868\u30b9\u30ad\u30e3\u30f3\u3001\u30bd\u30fc\u30c8\u51e6\u7406(SORT UNIQUE)\u3092\u884c\u3063\u3066\u3001\u6700\u5f8c\u306b\u305d\u306e\u5dee\u5206\u3092\u53d6\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u3053\u306e\u3053\u3068\u304b\u3089\u3001\u4ef6\u6570\u304c\u5897\u3048\u3066\u304f\u308c\u3070\u304b\u306a\u308a\u6027\u80fd\u7684\u306b\u306f\u9045\u304f\u306a\u308b\u53ef\u80fd\u6027\u306e\u3042\u308b\u51e6\u7406\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u306d\u3002<\/p>\n<p>\u3053\u308c\u3068\u540c\u7b49\u306e\u7d50\u679c\u3092\u51fa\u3059\u51e6\u7406\u3092\u3001EXISTS\u53e5\u3092\u4f7f\u3063\u3066\u3001\u5225\u306eSQL\u3067\u5b9f\u73fe\u3057\u3001\u305d\u308c\u306b\u3064\u3044\u3066\u3082\u5b9f\u884c\u8a08\u753b\u3092\u53d6\u5f97\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>explain plan for<br \/>SELECT * FROM TBL_B<br \/>WHERE NOT EXISTS<br \/> (SELECT &#8216;X&#8217; FROM TBL_A<br \/> \u00a0 \u00a0WHERE CD_A = TBL_B.CD_B);<\/p>\n<p><a href=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/explain_plan_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1660\" src=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/explain_plan_2-300x132.png\" alt=\"explain_plan_2\" width=\"241\" height=\"106\" srcset=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/explain_plan_2-300x132.png 300w, https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/explain_plan_2.png 320w\" sizes=\"auto, (max-width: 241px) 100vw, 241px\" \/><\/a><\/p>\n<p>\u5b9f\u884c\u8a08\u753b\u3092\u8868\u793a\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());<\/p>\n<p><a href=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/explain_plan_2_\u7d50\u679c.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1661\" src=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/explain_plan_2_\u7d50\u679c-300x226.png\" alt=\"explain_plan_2_\u7d50\u679c\" width=\"300\" height=\"226\" srcset=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/explain_plan_2_\u7d50\u679c-300x226.png 300w, https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/explain_plan_2_\u7d50\u679c.png 691w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u4eca\u56de\u306eSQL\u3067\u306f\u3001\u300cTBL_B\u300d\u306b\u5bfe\u3057\u3066\u5168\u8868\u30b9\u30ad\u30e3\u30f3\u3092\u884c\u3044\u3001\u305d\u308c\u305e\u308c\u306e\u884c\u306b\u5bfe\u3057\u3066\u300cTBL_A\u300d\u306b\u5bfe\u3057\u3066\u306f\u7d22\u5f15\u4e00\u610f\u30b9\u30ad\u30e3\u30f3\u3092\u884c\u3063\u3066\u3001\u30cd\u30b9\u30c6\u30c3\u30c9\u30eb\u30fc\u30d7\u7d50\u5408\u3092\u884c\u3046\u304b\u305f\u3061\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u5148\u307b\u3069\u306e\u51e6\u7406\u306b\u6bd4\u3079\u308c\u3070\u3001Cost\u306e\u5024\u3082\u4f4e\u304f\u3001\u3053\u3061\u3089\u306e\u307b\u3046\u304c\u6027\u80fd\u304c\u3088\u3044\u3068\u8a00\u3048\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306f\u3001\u2461AUTOTRACE \u3092 ON \u306b\u3059\u308b\u306b\u3064\u3044\u3066\u3067\u3059\u3002<\/p>\n<p>sqlplus \u306a\u3069\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>set autotrace on<\/p>\n<p>\u305f\u3060\u3057\u3001\u5b9f\u884c\u8a08\u753b\u3068\u7d71\u8a08\u60c5\u5831\u306f\u3001\u52d5\u7684\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30fb\u30d3\u30e5\u30fc\u3082\u53c2\u7167\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001\u5fc5\u8981\u306a\u6a29\u9650\u304c\u306a\u3044\u3068\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u306b\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u306e\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u3002<\/p>\n<p>SP2-0618: \u30bb\u30c3\u30b7\u30e7\u30f3\u8b58\u5225\u5b50\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3002PLUSTRACE\u30ed\u30fc\u30eb\u304c\u6709\u52b9\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>SP2-0611: STATISTICS\u30ec\u30dd\u30fc\u30c8\u3092\u4f7f\u7528\u53ef\u80fd\u306b\u3059\u308b\u3068\u304d\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30fb\u4e8b\u524d\u6e96\u5099<br \/>PLUSTRACE\u30ed\u30fc\u30eb\u3092\u4f5c\u6210\u3057\u3066\u3001\u5bfe\u8c61\u306e\u30e6\u30fc\u30b6\u306b\u4ed8\u4e0e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u306b\u306f\u3001SYSDBA \u6a29\u9650\u3067\u63a5\u7d9a\u3057\u305f\u5f8c\u306b\u3001plustrace.sql \u3068\u3044\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>sqlplus \/ as sysdba<br \/>@?\/sqlplus\/admin\/plustrce.sql<\/p>\n<p><a href=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/plustrace.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1666\" src=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/plustrace-232x300.png\" alt=\"plustrace\" width=\"232\" height=\"300\" srcset=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/plustrace-232x300.png 232w, https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/plustrace.png 451w\" sizes=\"auto, (max-width: 232px) 100vw, 232px\" \/><\/a><\/p>\n<p>\u6b21\u306b\u3001\u5bfe\u8c61\u306e\u30e6\u30fc\u30b6\u306b\u3001PLUSTRACE \u30ed\u30fc\u30eb\u3092\u4ed8\u4e0e\u3057\u307e\u3059<\/p>\n<p>GRANT PLUSTRACE TO test;<\/p>\n<p><a href=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/grant_plustrace.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1667\" src=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/grant_plustrace.png\" alt=\"grant_plustrace\" width=\"208\" height=\"54\" \/><\/a><\/p>\n<p>\u5bfe\u8c61\u306e\u30e6\u30fc\u30b6\u306b\u63a5\u7d9a\u3057\u3066\u3001AUTOTRACE \u3092 ON \u306b\u3057\u307e\u3059\u3002<\/p>\n<p>CONNECT test\/*****<br \/>SET AUTOTRACE ON<\/p>\n<p><a href=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/autotrace.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1668\" src=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/autotrace-300x73.png\" alt=\"autotrace\" width=\"218\" height=\"53\" srcset=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/autotrace-300x73.png 300w, https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/autotrace.png 309w\" sizes=\"auto, (max-width: 218px) 100vw, 218px\" \/><\/a><\/p>\n<p>\u5148\u307b\u3069\u8a66\u3057\u305fSQL\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>SELECT * FROM TBL_B<br \/>WHERE NOT EXISTS<br \/> \u00a0(SELECT &#8216;X&#8217; FROM TBL_A<br \/> \u00a0 \u00a0WHERE CD_A = TBL_B.CD_B);<\/p>\n<p><a href=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/autotraceon_sql.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1669\" src=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/autotraceon_sql-261x300.png\" alt=\"autotraceon_sql\" width=\"279\" height=\"321\" srcset=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/autotraceon_sql-261x300.png 261w, https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/autotraceon_sql.png 684w\" sizes=\"auto, (max-width: 279px) 100vw, 279px\" \/><\/a><\/p>\n<p>\u3059\u308b\u3068\u3001\u4e0a\u8a18\u306e\u3088\u3046\u306b\u3001SQL\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3068\u3001\u5b9f\u884c\u8a08\u753b\u3001\u53ca\u3073\u7d71\u8a08\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<br \/>\u5b9f\u884c\u8a08\u753b\u306e\u8868\u793a\u3092\u6b62\u3081\u305f\u3044\u5834\u5408\u306b\u306f\u3001set autotrace off \u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/autotrace_off.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1670\" src=\"https:\/\/www.dbsheetclient.jp\/blog\/wp-content\/uploads\/2017\/04\/autotrace_off.png\" alt=\"autotrace_off\" width=\"184\" height=\"30\" \/><br \/><\/a><\/p>\n<p>\u00a0<br \/>\u4eca\u65e5\u306f\u4ee5\u4e0a\u307e\u3067<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IT\u30b3\u30fc\u30c7\u30a3\u30cd\u30fc\u30bf\u306e\u30b7\u30e5\u30a6\u3067\u3059\u3002 \u3042\u3063\u3068\u3044\u3046\u9593\u306b\u685c\u306f\u6563\u3063\u3066\u3057\u307e\u3044\u3001\u304b\u306a\u308a\u306e\u65e5\u6570\u304c\u305f\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u3082\u3046GW\u3067\u3059\u306d\u3002\u4e0a\u306e\u5199\u771f\u306f\u3001\u685c\u304c\u54b2\u3044\u3066\u3044\u305f\u3068\u304d\u306b\u3001\u5a18\u304c\u8fd1\u304f\u306e\u516c\u5712\u3067\u5915\u65b9\u306b\u304d\u308c\u3044\u3060\u3063\u305f\u3068\u64ae\u3063\u305f\u3082\u306e\u3067\u3059\u3002\u7a7a\u304c\u9752\u304f\u306a\u3063\u3066\u5e7b\u60f3 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[31],"tags":[],"class_list":["post-1650","post","type-post","status-publish","format-standard","hentry","category-31"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dbsheetclient.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1650","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbsheetclient.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbsheetclient.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbsheetclient.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbsheetclient.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1650"}],"version-history":[{"count":10,"href":"https:\/\/www.dbsheetclient.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1650\/revisions"}],"predecessor-version":[{"id":1916,"href":"https:\/\/www.dbsheetclient.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1650\/revisions\/1916"}],"wp:attachment":[{"href":"https:\/\/www.dbsheetclient.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbsheetclient.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbsheetclient.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}