首页 > 数据库 > Oracle > 对视图V$PARAMETER字段的说明
V$PARAMETER displays information about the initialization parameters that are currently in effectfor the session.A new session inherits parameter values from the instance-wide values displayed by theV$SYSTEM_PARAMETERview.
注释:该视图是当前会话级别的。
| Column | Datatype | Description |
|---|---|---|
| NUM | NUMBER | Parameter number |
| NAME | VARCHAR2(80) | Name of the parameter |
| TYPE | NUMBER |
Parameter type:
|
| 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 theVALUE column shows the value262144 for a big integer parameter, then theDISPLAY_VALUE column will show the value256K. |
| 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 withALTER SESSION (TRUE) or not (FALSE) |
| ISSYS_MODIFIABLE | VARCHAR2(9) |
Indicates whether the parameter can be changed withALTER SYSTEMand when the change takes effect:
|
| ISINSTANCE_MODIFIABLE | VARCHAR2(5) | For parameters that can be changed withALTER SYSTEm, indicates whether the value of the parameter(不是指ISINSTANCE_MODIFIABLE这个视图V$PARAMETER里的字段啊,而是就是指参数文件里的那些初始化参数,如db_name等) can be different for every instance (TRUE) or whether the parameter must have the same value for all Real Application Clusters instances (FALSE). If theISSYS_MODIFIABLE column isFALSE, then this column is alwaysFALSE. |
| ISMODIFIED | VARCHAR2(10) |
Indicates whether the parameter has been modified after instance startup:
注释:ISMODIFIED为FALSE,说明该参数为非动态参数,不能动态修改(即实例运行期间修改该参数值)。不是说该参数不能静态修改。任何参数都是可以静态修改的,即alter SYSTEM\SESSION set 参数=参数值 scope=spfile; |
| 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 |
注释:
0、上述说明里提到的parameter,不是指如ISINSTANCE_MODIFIABLE这个视图V$PARAMETER里的字段啊,而是就是指参数文件里的那些初始化参数,如db_name等。
1、影响范围:
ISINSTANCE_MODIFIABLE>ISSYS_MODIFIABLE>ISSES_MODIFIABLE
ISINSTANCE_MODIFIABLE:在一个(具体)RAC集群上的不同实例间
ISSYS_MODIFIABLE:在一个实例范围内
ISSES_MODIFIABLE:在一个会话范围内
3、ISSYS_MODIFIABLE和ISSES_MODIFIABLE的关系:
ISSYS_MODIFIABLE为FALSE时,则ISSES_MODIFIABLE为FALSE;
ISSYS_MODIFIABLE为true时,则ISSES_MODIFIABLE可为FALSE,也可为true;
4、ISMODIFIED和ISSYS_MODIFIABLE、ISSES_MODIFIABLE的关系:
ISMODIFIED为FALSE时,ISSYS_MODIFIABLE、ISSES_MODIFIABLE都为FALSE;
ISMODIFIED为SYSTEM_MOD时,ISSYS_MODIFIABLE为true,而ISSES_MODIFIABLE可为FALSE,也可为true;
ISMODIFIED为MODIFIED时,ISSYS_MODIFIABLE、ISSES_MODIFIABLE都为true;
2、ISINSTANCE_MODIFIABLE和ISSYS_MODIFIABLE的关系:
1)、当ISSYS_MODIFIABLE为false时,ISINSTANCE_MODIFIABLE必然为false。
2)、当ISSYS_MODIFIABLE为true时,
如果处于多实例数据库(RAC)上,则ISINSTANCE_MODIFIABLE要为false。因为在RAC上,虽然一个参数A的属性ISSYS_MODIFIABLE可以为true,但是RAC是要求自己的各个实例上参数A的值是一样的(实例运行期间),所以参数A的属性要ISINSTANCE_MODIFIABLE要为false,即该参数在RAC环境下实例运行期间不能被修改。the parameter must have the same value for all Real Application Clusters instances (FALSE)
如果处于单实例数据库上,则ISINSTANCE_MODIFIABLE为true。the value of the parameter can be different for every instance (TRUE)
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/297650/viewspace-1372806/ ,如需转载,请注明出处,否则将追究法律责任。