获取隐含参数信息

getparadesp语句
set line 302
col name format a40
col value for a25
select
                                                x.ksppinm name,
                                                y.ksppstvl value,
                                                y.ksppstdf isdfault,
                                                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,'_','')
/
用例:
SQL> @getpardesp.sql
Enter value for par: lru
old    14:                                x.ksppinm like '%_&par%'
new    14:                                x.ksppinm like '%_lru%'

NAME                                                                         VALUE                                         ISDFAULT    ISMOD            ISADJ
---------------------------------------- ------------------------- --------- ---------- -----
_simulator_lru_rebalance_thresh                    10240                                         TRUE            FALSE            FALSE
_simulator_lru_rebalance_sizthr                    2                                                 TRUE            FALSE            FALSE
_gc_global_lru                                                     AUTO                                            TRUE            FALSE            FALSE
_db_block_lru_latches                                        128                                             TRUE            FALSE            FALSE
_simulator_lru_scan_count                                8                                                 TRUE            FALSE            FALSE

Elapsed: 00:00:00.03
SQL>


本文出自 “Focus on Oracle” 博客,请务必保留此出处http://alexy.blog.51cto.com/6115453/1089183

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值