oracle 查看隱藏參數
阿新 • • 發佈:2018-04-07
plain use pps aqs 方式 isa rac self hash
隱藏參數 (hidden parameters) ,由oracle內部使用,以 ‘_‘ 開頭。
可以通過以下兩種方式查看所有隱藏參數:
[sql] view plain copy- 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, ‘_‘, ‘‘);
[sql] view plain copy
- SELECT ksppinm, ksppstvl, ksppdesc
- FROM x$ksppi x, x$ksppcv y
- WHERE x.indx = y.indx AND TRANSLATE (ksppinm, ‘_‘, ‘#‘) LIKE ‘#%‘;
示例:如果想查看_db_block_hash_buckets的參數值
[sql] view plain copy
- SELECT ksppinm, ksppstvl, ksppdesc
- FROM x$ksppi x, x$ksppcv y
- WHERE x.indx = y.indx AND ksppinm = ‘_db_block_hash_buckets‘;
oracle 查看隱藏參數