ITPub博客

首页 > 数据库 > Oracle > Oracle参数小结

Oracle参数小结

原创 Oracle 作者:sating 时间:2008-05-19 14:14:07 0 删除 编辑

一.  普通参数

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博客 ” ,链接:https://blog.itpub.net/20294/viewspace-1004235/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2007-12-17

  • 博文量
    8
  • 访问量
    86154