Oracle参数小结

一.  普通参数

SELECT num,name,value,isdefault FROM v$parameter;

 

[@more@]Isdefault : Indicates whether the parameter is set to the default value (TRUE) or the parameter value was specified in the parameter file (FALSE).

 

Issys_modifiable : Indicates whether the parameter can be changed with ALTER SYSTEM and when the change takes effect:

IMMEDIATE - Parameter can be changed with ALTER SYSTEM regardless of the type of parameter file used to start the instance. The change takes effect immediately.

DEFERRED - Parameter can be changed with ALTER SYSTEM regardless of the type of parameter file used to start the instance. The change takes effect in subsequent sessions.

FALSE - Parameter cannot be changed with ALTER SYSTEM unless a server parameter file was used to start the instance. The change takes effect in subsequent instances.

 

 

二.  特殊参数

1.     过时参数 & 强调参数  (obsolete parameters & underscored parameters)

过时参数 : 在以前版本使用,在新版本已经废弃的参数

强调参数 : 在以前版本使用,在新版本不推荐使用的参数

 

SELECT name,isspecified,decode(ksppoflg,1,'Obsolete',2,'Underscored') status

FROM v$obsolete_parameter a,x$ksppo b

WHERE a.name=b.kspponm;

 

isspecified : 指出改参数是否在init.ora文件中已实际设置.

 

2.     隐藏参数  (hidden parameters)

隐藏参数 : 不成熟或系统开发过程中使用的参数,Oracle官方文档中无介绍.共同特征为以”_”开头.

 

SELECT ksppinm, ksppstvl, ksppdesc

FROM x$ksppi x, x$ksppcv y

WHERE x.indx = y.indx and x.ksppinm like '%_pool_size';

 

三.  当前session/instance使用的参数

1.     当前Session使用的参数:

SELECT * FROM v$parameters2;

 

2.     当前Instance使用的参数:

SELECT * FROM V$system_parameters2;

 

:以上两个视图,同时显示当前使用的 普通参数和隐藏参数.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/20294/viewspace-1004235/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/20294/viewspace-1004235/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值