2011年8月13日土曜日

[管理脚本] 查看隐藏参数

1.
column name format a30
column value format a20
column describ format a40
select
    x.ksppinm name,
    y.ksppstvl value,
    x.ksppdesc describ
from
    sys.x$ksppi x,
    sys.x$ksppcv y
where
    x.inst_id = userenv('Instance') and
    x.inst_id = y.inst_id and
    x.indx = y.indx and
    x.ksppinm like '%&par%'

    -- x.ksppinm like '/_%' escape '/'
/


2.

set linesize 132
column name format a30
column value format a25
select
    x.ksppinm name,
    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') isadj
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, ' _', ' ')
/

0 件のコメント:

コメントを投稿