檢視oracle隱藏引數

asword發表於2009-11-22

--檢視所有隱藏引數
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
x.ksppinm name,
x.ksppdesc description,
y.ksppstvl value,
y.ksppstdf isdefault,
decode(bitand(y.ksppstvf,7),1,'MODIFIED',4,'SYSTEM_MOD','FALSE') ismod,
decode(bitand(y.ksppstvf,2),2,'TRUE','FALSE') isadjusted from
sys.x$ksppi x,
sys.x$ksppcv y
where
x.inst_id=userenv('Instance') and
y.inst_id=userenv('Instance') and
x.indx=y.indx and
x.ksppinm like '%_&par%'
order by
translate(x.ksppinm,'_','');

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/82387/viewspace-1028945/,如需轉載,請註明出處,否則將追究法律責任。

相關文章