常用sql语句-查看隐含参数

SELECT i.ksppinm name,
       i.ksppdesc description,
       CV.ksppstvl VALUE,
       CV.ksppstdf isdefault,
       DECODE(BITAND(CV.ksppstvf, 7),
              1,
              'MODIFIED',
              4,
              'SYSTEM_MOD',
              'FALSE') ismodified,
       DECODE(BITAND(CV.ksppstvf, 2), 2, 'TRUE', 'FALSE') isadjusted
  FROM sys.x$ksppi i, sys.x$ksppcv CV
 WHERE i.inst_id = USERENV('Instance')
   AND CV.inst_id = USERENV('Instance')
   AND i.indx = CV.indx
   AND i.ksppinm LIKE '/_%' ESCAPE '/'
 ORDER BY REPLACE(i.ksppinm, '_', '');
SELECT ksppinm, ksppstvl, ksppdesc
  FROM x$ksppi x, x$ksppcv y
 WHERE x.indx = y.indx
   AND ksppinm = '_db_block_hash_buckets';
select a.ksppinm name, b.ksppstvl value, a.ksppdesc description 
  from x$ksppi a, x$ksppcv b 
 where a.indx = b.indx and a.ksppinm like '%_small_table_threshold%';

Related Posts