查看到Oracle定義的隱含參數

來源:互聯網
上載者:User

在sqlplus中使用show parameter xx可以查看到Oracle定義的參數, 它是通過查詢v$parameter獲得的。 另外Oracle中還有一些隱含的參數 無法直接通過show parameter的方式查詢。

  我們查看select * from v$parameter的執行計畫

  SQL> set autotrace traceonly;

  SQL> select * from v$parameter;

  已選擇288行。

  執行計畫

告訴我們實際上參數來源於2張表x$ksppcv  x$ksppi

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 order by

  translate(x.ksppinm, ' _', ' ')

修改隱含參數時,

alter system set "parameter_name"=value scope=both sid='*';

  有些可以在memory而有些僅僅可以通過spfile更改, 嘗試一下就知道了

  需要注意的是一定要加上雙引號, 另外引號內不能有空格, 只能包含參數的名字

相關文章

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.