如何查詢Oracle的隱藏參數的值

來源:互聯網
上載者:User

如何查詢Oracle的隱藏參數的值

什麼是隱藏參數呢?是系統中使用,但 Oracle 官方沒有公布的參數,這些參數可能是那些還沒有成熟或者是系統開發中使用的參數。 用SYS登入可以執行下列語句查詢:

col ksppinm for a30
col ksppstvl for a20
col ksppdesc for a35
SELECT  ksppinm, ksppstvl, ksppdesc
FROM  x$ksppi x, x$ksppcv y
WHERE  x.indx = y.indx AND  ksppinm = '_small_table_threshold';

or

col name for a30
col value for a20
col describe for a35

SELECT x.ksppinm NAME, y.ksppstvl VALUE, x.ksppdesc describeFROM SYS.x$ksppi x, SYS.x$ksppcv yWHERE x.inst_id = USERENV ('Instance')AND y.inst_id = USERENV ('Instance')AND x.indx = y.indxAND (x.ksppinm ='_small_table_threshold' or x.ksppinm='_serial_direct_read')/
 

得到查詢結果:

KSPPINM                        KSPPSTVL            KSPPDESC
------------------------------ -------------------- -----------------------------------
_small_table_threshold        146456              lower threshold level of table size
                                                    for direct reads

_small_table_threshold 隱藏參數指定了 ORACLE中大表的閥值,其單位為block,即大於_small_table_threshold 所指定的塊數的表被視作大表

_small_table_threshold 隱藏參數的值在執行個體啟動時動態決定,一般為 2% * DB_CACHE_SIZE

Linux-6-64下安裝Oracle 12C筆記

在CentOS 6.4下安裝Oracle 11gR2(x64)

Oracle 11gR2 在VMWare虛擬機器中安裝步驟

Debian 下 安裝 Oracle 11g XE R2

Oracle 查看隱藏參數 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.