分类: Oracle
2022-11-23 21:17:40
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - ProductionVersion 19.3.0.0.0SQL> set wrap off pagesize 0SQL> select name from v$parameter where ISDEPRECATED='TRUE';lock_name_spaceinstance_groupsresource_manager_cpu_allocationactive_instance_countdb_block_buffersbuffer_pool_keepbuffer_pool_recyclelog_archive_startcluster_database_instancesfast_start_io_targetserial_reuserdbms_server_dnremote_os_authentsec_case_sensitive_logonunified_audit_sga_queue_sizecursor_space_for_timeplsql_v2_compatibilityplsql_debugbackground_dump_destuser_dump_destcommit_writesql_traceparallel_adaptive_multi_userasm_preferred_read_failure_groups已选择 24 行
SQL*Plus: Release 19.0.0.0.0 - Production on 星期三 11月 23 16:04:38 20223、参数文 件的管理与使用
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
连接到:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
SQL> select count(*) from v$obsolete_parameter;
COUNT(*)
----------
172
按修改类型划分,可以静态参数和动态参数,
静态参数:保存在参数文件,重启实例生效
动态参数:修改后立即生效。
按获取方不同,分显示参数和隐含参数。隐含参数以“—“开头,一般不建议修改。
Method |
Description |
SHOW PARAMETERS |
用于查询当前会话生效的初始化参数,显示v$parameter值。
|
SHOW SPPARAMETERS |
用于查询当前会话生效的spfile包含的参数,显示v$spparameter值。 |
CREATE PFILE |
spfile参数保存在初始化参数中,11g可以把memory保存在初始化参数中。 |
V$PARAMETER |
显示当前会话可见参数 |
V$PARAMETER2 |
显示当前会话可见参数。类V$PARAMETER,V$PARAMETER中参数的多个值在V$PARAMETER2显示为多行。 |
V$SYSTEM_PARAMETER |
显示当前实例的初始化参数设置。 |
V$SYSTEM_PARAMETER2 |
显示当前实例的初始化参数设置。类V$SYSTEM_PARAMETER,V$SYSTEM_PARAMETER中参数的多个值在V$SYSTEM_PARAMETER2显示为多行 |
V$SPPARAMETER |
显示SPFILE中的初始化参数. 如果初始化参数没有设置 ISSPECIFIED 为 |
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 the VALUE column shows the value 262144 for a big integer parameter, then the DISPLAY_VALUE column will show the value 256K. |
DEFAULT_VALUE |
VARCHAR2(255) |
The default value for this parameter. This is the value of the parameter if a value is not explicitly specified for the parameter. |
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). The database sets the value of the ISDEFAULT column to TRUE for parameters that are not specified in the init.ora or server parameter file (SPFILE). |
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:
|
ISPDB_MODIFIABLE |
VARCHAR2(5) |
Indicates whether the parameter can be modified inside a PDB (TRUE) or not (FALSE) |
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:
|
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 |
CON_ID |
NUMBER |
The ID of the container to which the data pertains. Possible values include:
|