擷取Oracle隱含參數資訊

來源:互聯網
上載者:User

擷取Oracle隱含參數資訊

Oracle資料庫的初始化參數,主要來源於兩個Oracle內部資料字典表:X$KSPPCV和X$KSPPI通常我們查詢的V$Parameter視圖或使用show parameter命令都是就來源於這兩個系統資料表的,但通過這兩種方式不能查詢隱含參數。

X$KSPPCV用以記錄當前的設定的值,及是否使用了預設值等資訊,X$KSPPI則是一個基礎資料表,用於記錄參數名、參數說明等簡單的資訊。需要注意的是INST_ID欄位,在Rac環境中用以確定參數所屬的執行個體。

可以使用如下指令碼,查詢當前執行個體的隱含參數:

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, ' _', ' ')
/

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

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

Debian 下 安裝 Oracle 11g XE R2

相關文章

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.