1.过时参数和强调参数
过时参数指在以往版本存在,而在当前版本中废弃的参数。强调参数指在新版本保留下面的参数,但是同样不希望用户再使用。
可以通过v$obsolete_parameter查询所有的过时参数和强调参数
SQL> select * from v$obsolete_parameter;
NAME ISSPECIFIED
---------------------------------------------------------------- -----------
spin_count FALSE
use_ism FALSE
.......................................................................
_aw_row_source_enabled FALSE
drs_start FALSE
通过视图x$ksppo可以查看当前的参数是过时参数还是强调参数(只能在SYS用户下查看该视图)。
SQL> select kspponm ,decode(ksppoflg,1,'Obsolete parameter',2,'Underscored') from x$ksppo order by kspponm;
KSPPONM DECODE(KSPPOFLG,1,'OBSOLETEPAR
---------------------------------------------------------------- ------------------------------
_average_dirties_half_life Obsolete parameter
_aw_row_source_enabled Obsolete parameter
......................................................................................
undo_suppress_errors Obsolete parameter
use_ism Underscored
2.隐藏参数(只能以SYS用户查看)
隐藏参数指系统中使用,但是没有官方公布的参数,通过x$ksppi和x$ksppcv可以查看隐藏参数。
SQL> select ksppinm,ksppstvl,ksppdesc from x$ksppi a join x$ksppcv b on (a.indx = b.indx) where translate(ksppinm,'_','#') like '#%';
KSPPINM KSPPSTVL KSPPDESC
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- --------------------------------------------------------------------------------
_appqos_qt 10 System Queue time retrieval interval
_ior_serialize_fault 0 inject fault in the ior serialize code
_inject_startup_fault 0 inject fault in the startup code
_latch_recovery_alignment 65534 align latch recovery structures
...........................
或者使用如下SQL:
SQL> select i.ksppinm name,
2 i.ksppdesc description,
3 CV.ksppstvl VALUE,
4 CV.ksppstdf isdefault,
5 DECODE(BITAND(CV.ksppstvf, 7),
6 1,
7 'MODIFIED',
8 4,
9 'SYSTEM_MOD',
10 'FALSE') ismodified,
11 DECODE(BITAND(CV.ksppstvf, 2), 2, 'TRUE', 'FALSE') isadjusted
12 FROM sys.x$ksppi i, sys.x$ksppcv CV
13 WHERE i.inst_id = USERENV('Instance')
14 AND CV.inst_id = USERENV('Instance')
15 AND i.indx = CV.indx
16 AND i.ksppinm LIKE '/_%' ESCAPE '/'
17 ORDER BY REPLACE(i.ksppinm, '_', '');
NAME DESCRIPTION VALUE ISDEFAULT ISMODIFIED ISADJUSTED
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- --------- ---------- ----------
_4030_dump_bitvec bitvec to specify dumps prior to 4030 error 4095 TRUE FALSE FALSE
_4031_dump_bitvec bitvec to specify dumps prior to 4031 error 67194879 TRUE FALSE FALSE
_4031_dump_interval Dump 4031 error once for each n-second interval 300 TRUE FALSE FALSE
_4031_max_dumps Maximum number of 4031 dumps for this process 100
...............................................................................................................
3.系统当前使用的参数。
SQL> select decode(isdefault, 'TRUE', '# '),
2 decode(isdefault, 'TRUE', rpad(name, 43), rpad(name, 45)),
3 value
4 from v$parameter
5 order by name;
DECODE(ISDEFAULT,'TRUE','#') DECODE(ISDEFAULT,'TRUE',RPAD(N VALUE
---------------------------- --------------------------------------------- --------------------------------------------------------------------------------
O7_DICTIONARY_ACCESSIBILITY FALSE
# active_instance_count
# aq_tm_processes 0
.....................................................
342 rows selected
如参数名称前面有#,表示参数没指定,使用系统默认参数。
阅读(1534) | 评论(0) | 转发(0) |