设为首页 收藏本站
查看: 551|回复: 0

[经验分享] Oracle v$parameter表知多少

[复制链接]

尚未签到

发表于 2016-7-25 08:07:13 | 显示全部楼层 |阅读模式
  orale中一个重要的视图v$parameter,我们知道知道多少呢?官方解释如下:
  V$PARAMETER displays information about the initialization parameters that are currently in effect for the session. A new session inherits parameter values from the instance-wide values displayed by the V$SYSTEM_PARAMETER view.


Column
Datatype
Description

NUM
NUMBER
Parameter number


NAME
VARCHAR2(80)
Name of the parameter


TYPE
NUMBER
Parameter type:


  • 1 - Boolean


  • 2 - String


  • 3 - Integer


  • 4 - Parameter file


  • 5 - Reserved


  • 6 - Big integer





VALUE
VARCHAR2(4000)
Parameter value for the session (if modified within the session); otherwise, the instance-wide parameter value


DISPLAY_VALUE
VARCHAR2(4000)
Parameter value in a user-friendly format. For example, if the VALUE column shows the value 262144 for a big integer parameter, then the DISPLAY_VALUE column will show the value 256K.


ISDEFAULT
VARCHAR2(9)
Indicates whether the parameter is set to the default value (TRUE) or the parameter value was specified in the parameter file (FALSE)


ISSES_MODIFIABLE
VARCHAR2(5)
Indicates whether the parameter can be changed with ALTER SESSION (TRUE) or not (FALSE)


ISSYS_MODIFIABLE
VARCHAR2(9)
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.





ISINSTANCE_MODIFIABLE
VARCHAR2(5)
For parameters that can be changed with ALTER SYSTEm, indicates whether the value of the parameter can be different for every instance (TRUE) or whether the parameter must have the same value for all Real Application Clusters instances (FALSE). If the ISSYS_MODIFIABLE column is FALSE, then this column is always FALSE.


ISMODIFIED
VARCHAR2(10)
Indicates whether the parameter has been modified after instance startup:

  •   MODIFIED - Parameter has been modified with ALTER SESSION

  •   SYSTEM_MOD - Parameter has been modified with ALTER SYSTEM (which causes all the currently logged in sessions' values to be modified)

  •   FALSE - Parameter has not been modified after instance startup





ISADJUSTED
VARCHAR2(5)
Indicates whether Oracle adjusted the input value to a more suitable value (for example, the parameter value should be prime, but the user input a non-prime number, so Oracle adjusted the value to the next prime number)


ISDEPRECATED
VARCHAR2(5)
Indicates whether the parameter has been deprecated (TRUE) or not (FALSE)


ISBASIC
VARCHAR2(5)
Indicates whether the parameter is a basic parameter (TRUE) or not (FALSE)


DESCRIPTION
VARCHAR2(255)
Description of the parameter


UPDATE_COMMENT
VARCHAR2(255)
Comments associated with the most recent update


HASH
NUMBER
Hash value for the parameter name


  
  

Oracle 初始化参数的管理
查看修改的参数
select name
,      value
from   v$parameter
where  ismodified != 'FALSE'
/

查看过期不推荐使用的参数
select name
,      value
from   v$parameter
where  isdeprecated = 'TRUE'
/

查看非默认的参数
set pages 999 lines 100
col name format a30
col value format a50
select name
,value
fromv$parameter
whereisdefault = 'FALSE'
andvalue is not null
orderby name
/
以name=value形式显示参数信息
set pages 999 lines 100
select name || '=' || decode(type, 2, '''') || value
|| decode(type, 2, '''') parameter
fromv$parameter
whereisdefault = 'FALSE'
andvalue is not null
orderby name
/
重置初始化参数
alter system reset <parameter> scope=spfile sid='*'
/


  

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-248863-1-1.html 上篇帖子: oracle有效地利用数据字典 下篇帖子: 有关oracle数据的锁定问题
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表