您的位置:首页 > 数据库 > Oracle

Oracle 隐含参数的查询

2009-12-23 15:13 459 查看
普通的参数通过pfile或者spfile,甚至show parameter 都可以看到,但是隐含参数就要靠下面的语句查出来了:

set linesize 160;
col "_add_skiprules" format a30 ;
col "Instance Value" format a30;
col "Session Value" format a30;
col Parameter format a50;

SELECT
a.ksppinm "Parameter",
b.ksppstvl "Session Value",
c.ksppstvl "Instance Value"
FROM
x$ksppi a,
x$ksppcv b,
x$ksppsv c
WHERE
a.indx = b.indx
AND
a.indx = c.indx
AND
a.ksppinm LIKE '/_%' escape '/'


还有下面这个语句:

set linesize 160;
col name format a50;
col value format a30;
col description format a40;
select a.ksppinm name,b.ksppstvl value,a.ksppdesc description
from x$ksppi a,x$ksppcv b
where a.indx = b.indx
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: