Oracle 视图 V$SYSTEM_PARAMETER2 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图V$SYSTEM_PARAMETER2用于查看和修改数据库系统参数,它包含系统参数的名称、数值以及参数的范围等信息。它的内容特别有用,包括表空间、回滚段和实例注册等。
要使用Oracle视图V$SYSTEM_PARAMETER2,首先需要确保你有该Grant权限,可以执行:
GRANT SELECT ON V$SYSTEM_PARAMETER2 TO 用户;
接着,你可以执行一个简单的select来查看系统参数:
SELECT name, value, description, isdefault
FROM V$SYSTEM_PARAMETER2
WHERE name = ‘open_cursors’;
最后,如果要修改系统参数,你可以执行:
EXEC DBMS_SYSTEM.set_int_param_in_session(‘open_cursors’, 1000);
官方英文解释
V$SYSTEM_PARAMETER2
displays information about the initialization parameters that are currently in effect for the instance, with each list parameter value appearing as a row in the view. A new session inherits parameter values from the instance-wide values.
Presenting the list parameter values in this format enables you to quickly determine the values for a list parameter. For example, if a parameter value is a, b
, then the V$SYSTEM_PARAMETER
view does not tell you if the parameter has two values (both a
and b
) or one value (a, b
). V$SYSTEM_PARAMETER2
makes the distinction between the list parameter values clear.
Column | Datatype | Description |
---|---|---|
|
|
Parameter number |
|
|
Name of the parameter |
|
|
Parameter type:
|
|
|
Parameter value |
|
|
Parameter value in a user-friendly format. For example, if the |
|
|
Indicates whether the parameter is set to the default value ( |
|
|
Indicates whether the parameter can be changed with |
|
|
Indicates whether the parameter can be changed with
|
|
|
Indicates whether the parameter can be modified on a per-PDB basis ( In a non-CDB, the value of this column is |
|
|
For parameters that can be changed with |
|
|
Indicates how the parameter was modified. If an |
|
|
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) |
|
|
Indicates whether the parameter has been deprecated ( |
|
|
Indicates whether the parameter is a basic parameter ( |
|
|
Description of the parameter |
|
|
Position (ordinal number) of the parameter value. Useful only for parameters whose values are lists of strings. |
|
|
Comments associated with the most recent update |
|
|
Hash value for the parameter name |
|
|
The ID of the container to which the data pertains. Possible values include:
|
See Also:
“V$SYSTEM_PARAMETER”