查询oracle隐含参数
2014-07-22 16:45
399 查看
我都是放在$ORACLE_HOME/rdbms/admin下,看起来像个Oracle提供的脚本
$ cat show_para.sql
col p_name for a40
col p_DESCRIPTION for a50
col p_value for a30
set linesize 10000
SELECT i.ksppinm p_name,
i.ksppdesc p_description,
CV.ksppstvl p_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 upper(i.ksppinm) LIKE upper('%&p%')
ORDER BY REPLACE (i.ksppinm, '_', '');
比如我现在想查CBC Latch的数量,如下操作:
SQL*Plus: Release 11.2.0.1.0 Production on Sat Feb 16 18:51:17 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> @?/rdbms/admin/show_para --@代表运行,?代表$ORACLE_HOME
Enter value for p: latch --输入latch,如果不记得CBC Latch的参数,那就做糊涂查询
old 12: AND upper(i.ksppinm) LIKE upper('%&p%')
new 12: AND upper(i.ksppinm) LIKE upper('%latch%')
P_NAME P_DESCRIPTION P_VALUE ISDEFAULT ISMODIFIED ISADJ
---------------------------------------- -------------------------------------------------- ------------------------------ --------- ---------- -----
_cp_num_hash_latches connection pool number of hash latches 1 TRUE FALSE FALSE
_db_block_hash_latches Number of database block hash latches 4096 TRUE FALSE FALSE--这个参数就是CBC Latch
_db_block_lru_latches number of lru latches 16 TRUE FALSE FALSE
_db_blocks_per_hash_latch Number of blocks per hash latch TRUE FALSE FALSE
_deq_ht_child_latches deq ht child latches 8 TRUE FALSE FALSE
_disable_latch_free_SCN_writes_via_32cas disable latch-free SCN writes using 32-bit compare FALSE TRUE FALSE FALSE
Oracle中有很多隐藏参数,一般不建议修改,默认值为佳。
$ cat show_para.sql
col p_name for a40
col p_DESCRIPTION for a50
col p_value for a30
set linesize 10000
SELECT i.ksppinm p_name,
i.ksppdesc p_description,
CV.ksppstvl p_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 upper(i.ksppinm) LIKE upper('%&p%')
ORDER BY REPLACE (i.ksppinm, '_', '');
比如我现在想查CBC Latch的数量,如下操作:
SQL*Plus: Release 11.2.0.1.0 Production on Sat Feb 16 18:51:17 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> @?/rdbms/admin/show_para --@代表运行,?代表$ORACLE_HOME
Enter value for p: latch --输入latch,如果不记得CBC Latch的参数,那就做糊涂查询
old 12: AND upper(i.ksppinm) LIKE upper('%&p%')
new 12: AND upper(i.ksppinm) LIKE upper('%latch%')
P_NAME P_DESCRIPTION P_VALUE ISDEFAULT ISMODIFIED ISADJ
---------------------------------------- -------------------------------------------------- ------------------------------ --------- ---------- -----
_cp_num_hash_latches connection pool number of hash latches 1 TRUE FALSE FALSE
_db_block_hash_latches Number of database block hash latches 4096 TRUE FALSE FALSE--这个参数就是CBC Latch
_db_block_lru_latches number of lru latches 16 TRUE FALSE FALSE
_db_blocks_per_hash_latch Number of blocks per hash latch TRUE FALSE FALSE
_deq_ht_child_latches deq ht child latches 8 TRUE FALSE FALSE
_disable_latch_free_SCN_writes_via_32cas disable latch-free SCN writes using 32-bit compare FALSE TRUE FALSE FALSE
Oracle中有很多隐藏参数,一般不建议修改,默认值为佳。
相关文章推荐
- oracle查询隐含参数
- Oracle 隐含参数的查询
- ORACLE隐含参数查询
- oracle查询所有初始化参数(含隐含参数)
- oracle隐含参数查询 $ksppi 和x$ksppcv
- 如何查询Oracle的隐含参数
- oracle 查询隐含参数语句
- Oracle 隐含参数查询
- 如何根据v$parameter查询Oracle隐含参数
- oracle隐含参数查询
- Oracle参数对查询的影响
- 如何查询oracle隐藏参数
- Oracle监听服务lsnrctl参数及查询状态详解
- oracle中涉及到的隐含参数的解决办法
- oracle查询优化相关参数
- oracle的存储过程中使用变量或参数进行模糊查询(like的变量绑定)
- Oracle查询动、静态参数
- 折腾Oracle问题小菜记[分页存储过程/查询所有表、视图、存储过程/查询表、视图、存储过程字段结构与参数](三)
- oracle隐藏参数查询
- Oracle隐含参数:_allow_resetlogs_corruption