{"id":1343,"date":"2018-02-11T15:44:42","date_gmt":"2018-02-11T07:44:42","guid":{"rendered":"http:\/\/www.821121.com\/?p=1343"},"modified":"2021-01-07T17:07:51","modified_gmt":"2021-01-07T09:07:51","slug":"%e5%b8%b8%e7%94%a8sql%e8%af%ad%e5%8f%a5-%e6%9f%a5%e7%9c%8b%e9%9a%90%e5%90%ab%e5%8f%82%e6%95%b0","status":"publish","type":"post","link":"http:\/\/www.821121.com\/?p=1343","title":{"rendered":"\u5e38\u7528sql\u8bed\u53e5-\u67e5\u770b\u9690\u542b\u53c2\u6570"},"content":{"rendered":"<pre><code class=\"language-sql\">SELECT i.ksppinm name,\n       i.ksppdesc description,\n       CV.ksppstvl VALUE,\n       CV.ksppstdf isdefault,\n       DECODE(BITAND(CV.ksppstvf, 7),\n              1,\n              &#039;MODIFIED&#039;,\n              4,\n              &#039;SYSTEM_MOD&#039;,\n              &#039;FALSE&#039;) ismodified,\n       DECODE(BITAND(CV.ksppstvf, 2), 2, &#039;TRUE&#039;, &#039;FALSE&#039;) isadjusted\n  FROM sys.x$ksppi i, sys.x$ksppcv CV\n WHERE i.inst_id = USERENV(&#039;Instance&#039;)\n   AND CV.inst_id = USERENV(&#039;Instance&#039;)\n   AND i.indx = CV.indx\n   AND i.ksppinm LIKE &#039;\/_%&#039; ESCAPE &#039;\/&#039;\n ORDER BY REPLACE(i.ksppinm, &#039;_&#039;, &#039;&#039;);<\/code><\/pre>\n<pre><code class=\"language-sql\">SELECT ksppinm, ksppstvl, ksppdesc\n  FROM x$ksppi x, x$ksppcv y\n WHERE x.indx = y.indx\n   AND ksppinm = &#039;_db_block_hash_buckets&#039;;<\/code><\/pre>\n<pre><code class=\"language-sql\">select a.ksppinm name, b.ksppstvl value, a.ksppdesc description \n  from x$ksppi a, x$ksppcv b \n where a.indx = b.indx and a.ksppinm like &#039;%_small_table_threshold%&#039;;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>SELECT i.ksppinm name, i.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,48],"tags":[],"class_list":["post-1343","post","type-post","status-publish","format-standard","hentry","category-oracle-11g","category-sql"],"_links":{"self":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/1343","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1343"}],"version-history":[{"count":1,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/1343\/revisions"}],"predecessor-version":[{"id":1344,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/1343\/revisions\/1344"}],"wp:attachment":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1343"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}