暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

ORACLE 20C 的基本初始化参数

950

数据库故障有不少是因为参数设置不合理导致的,因此数据库优化也要从参数优化作为基本要素。

应该只需要将数据库基本初始化参数设置正确有效。下面是数据库基本初始化参数的列表。

CLUSTER_DATABASE 指定是否启用Oracle RAC的Oracle RAC参数

PropertyDescription
Parameter typeBoolean
ModifiableNo
Modifiable in a PDBNo
Range of valuestrue | false
BasicYes
Oracle RACFor all instances, the value must be set to true.

COMPATIBLE 使您能够使用Oracle的新版本,同时确保能够将数据库降级到较早的版本

PropertyDescription
Parameter typeString
SyntaxCOMPATIBLE = release_number
Default value20.1.0.0
ModifiableNo
Modifiable in a PDBNo
Range of values11.2.0 to default release
BasicYes
Oracle RACMultiple instances must have the same value.

CONTROL_FILES 指定一个或多个控制文件的名称,以逗号分隔

PropertyDescription
Parameter typeString
SyntaxCONTROL_FILES = filename [, filename ] ...
Note: The control file name can be an OMF (Oracle Managed Files) name. This occurs when the control file is re-created using the CREATE CONTROLFILE REUSE statement.
Default valueOperating system-dependent
ModifiableNo
Modifiable in a PDBNo
Range of values1 to 8 filenames

DB_BLOCK_SIZE 指定Oracle数据库块的大小(以字节为单位)

PropertyDescription
Default value8192
ModifiableNo
Modifiable in a PDBNo
Range of values2048 to 32768, but your operating system may have a narrower range
BasicYes
Oracle RACYou must set this parameter for every instance, and multiple instances must have the same value.

DB_CREATE_FILE_DEST 指定oracle管理的数据文件的默认位置

PropertyDescription
Parameter typeString
SyntaxDB_CREATE_FILE_DEST = directory
Default valueThere is no default value.
ModifiableALTER SESSION, ALTER SYSTEM
Modifiable in a PDBYes
BasicYes

DB_CREATE_ONLINE_LOG_DEST_n 其中n = 1,2,3,… 指定oracle管理的控制文件和在线重做日志的默认位置

PropertyDescription
Parameter typeString
SyntaxDB_CREATE_ONLINE_LOG_DEST_[1
Default valueThere is no default value.
ModifiableALTER SESSION, ALTER SYSTEM
Modifiable in a PDBYes
BasicYes

DB_DOMAIN 在分布式数据库系统中,DB域指定数据库在网络结构中的逻辑位置

PropertyDescription
Parameter typeString
SyntaxDB_DOMAIN = domain_name
Default valueThere is no default value.
ModifiableNo
Modifiable in a PDBYes
Range of valuesAny legal string of name components, separated by periods and up to 128 characters long (including the periods).
BasicYes
Oracle RACYou must set this parameter for every instance, and multiple instances must have the same value.

DB_NAME 指定最多8个字符的数据库标识符

PropertyDescription
Parameter typeString
SyntaxDB_NAME = database_name
Default valueThere is no default value.
ModifiableNo
Modifiable in a PDBNo
BasicYes
Oracle RACYou must set this parameter for every instance. Multiple instances must have the same value.

DB_RECOVERY_FILE_DEST 指定快速恢复区域的默认位置

PropertyDescription
PropertyDescription
Parameter typeString
SyntaxDB_RECOVERY_FILE_DEST = directory
Default valueThere is no default value.
ModifiableALTER SYSTEM ... SID='*'
Modifiable in a PDBNo
BasicYes
Oracle RACYou must set this parameter for every instance, and multiple instances must have the same value.

DB_RECOVERY_FILE_DEST_SIZE 以字节为单位指定在快速恢复区域中创建的目标数据库恢复文件使用的总空间的限制

PropertyDescription
Parameter typeBig integer
SyntaxDB_RECOVERY_FILE_DEST_SIZE = integer [K
Default value0
ModifiableALTER SYSTEM ... SID='*'
Modifiable in a PDBNo
BasicYes
Oracle RACYou must set this parameter for every instance, and multiple instances must have the same value.

DB_UNIQUE_NAME 为数据库指定全局惟一的名称

PropertyDescription
Parameter typeString
SyntaxDB_UNIQUE_NAME = database_unique_name
Default valueDatabase instances: the value of DB_NAME
Oracle Automatic Storage Management instances: +ASM
ModifiableNo
Modifiable in a PDBNo
BasicYes
Oracle RACMultiple instances must have the same value.

INSTANCE_NUMBER 为使用存储参数FREELIST组创建的每个数据库对象指定一个惟一的编号,该编号将实例映射到一个空闲列表组

PropertyDescription
Parameter typeInteger
Default value0 (zero)
ModifiableNo
Modifiable in a PDBNo
Range of values1 to maximum number of instances specified when the database was created
BasicYes
Oracle RACYou must set this parameter for every instance, and all instances must have different values.

LDAP_DIRECTORY_SYSAUTH 允许或不允许授予管理权限的用户基于目录的授权,如SYSDBA、SYSOPER、SYSBACKUP、SYSDG和SYSKM

PropertyDescription
Parameter typeString
SyntaxLDAP_DIRECTORY_SYSAUTH = { yes
Default valueno
ModifiableNo
Modifiable in a PDBYes
BasicYes

LOG_ARCHIVE_DEST_n 初始化参数最多定义31(其中n = 1,2,3,…31)目的地,每个目的地必须指定位置或服务属性,以指定在何处存档重做数据

PropertyDescription
Parameter typeString
Default valueThere is no default value.
ModifiableALTER SESSION, ALTER SYSTEM
Modifiable in a PDBNo
BasicYes

LOG_ARCHIVE_DEST_STATE_n 参数(其中n = 1,2,3,…31)指定对应目的地的可用状态

PropertyDescription
Parameter typeString
Default valueenable
ModifiableALTER SESSION, ALTER SYSTEM
Modifiable in a PDBNo
BasicYes

NLS_DATE_LANGUAGE 将该语言用于日、月名称和日期缩写词的拼写。由TO_DATE和TO_CHAR函数返回

PropertyDescription
Parameter typeString
SyntaxNLS_DATE_LANGUAGE = language
Default valueDerived from NLS_LANGUAGE
ModifiableALTER SESSION
Modifiable in a PDBYes
Range of valuesAny valid NLS_LANGUAGE value
BasicNo

NLS_TERRITORY 指定要遵守日期和星期编号公约的区域的名称

PropertyDescription
Parameter typeString
SyntaxNLS_TERRITORY = territory
Default valueOperating system-dependent
ModifiableALTER SESSION
Modifiable in a PDBYes
Range of valuesAny valid territory name
BasicYes

OPEN_CURSORS 指定一个会话一次可以拥有的最大打开游标数(对私有SQL区域的句柄)。您可以使用此参数来防止会话打开过多的游标

PropertyDescription
Parameter typeInteger
Default value50
ModifiableALTER SYSTEM
Modifiable in a PDBYes
Range of values0 to 65535
BasicYes

PGA_AGGREGATE_TARGET 指定附加到实例的所有服务器进程可用的目标聚合PGA内存

PropertyDescription
Parameter typeBig integer
SyntaxPGA_AGGREGATE_TARGET = integer [K
Default value10 MB or 20% of the size of the SGA, whichever is greater
For a PDBthe default value is the same as the CDB's default value.
ModifiableALTER SYSTEM
Modifiable in a PDBYes
Range of valuesMinimum: 10 MB
Maximum: 4096 GB - 1
BasicYes

PROCESSES 指定可以同时连接到Oracle的操作系统用户进程的最大数量

PropertyDescription
Parameter typeInteger
Default valueThe value is derived, and it typically depends on the number of cores reported in the alert log.
ModifiableNo
Modifiable in a PDBNo
Range of values6 to operating system dependent
BasicYes
Oracle RACMultiple instances can have different values.

REMOTE_LISTENER 指定一个网络名称,该名称解析为Oracle Net远程侦听器的地址或地址列表(即与此实例不在同一系统上运行的侦听器)。地址或地址列表在TNSNAMES中指定,或为您的系统配置的其他地址存储库

PropertyDescription
Parameter typeString
SyntaxREMOTE_LISTENER = network_name
Default valueThere is no default value.
ModifiableALTER SYSTEM
Modifiable in a PDBYes
BasicYes

REMOTE_LOGIN_PASSWORDFILE 指定Oracle是否检查密码文件

PropertyDescription
Parameter typeString
SyntaxREMOTE_LOGIN_PASSWORDFILE = { shared
Default valueexclusive
ModifiableNo
Modifiable in a PDBNo
BasicYes
Oracle RACMultiple instances must have the same value.

SESSIONS 指定可以在系统中创建的最大会话数

PropertyDescription
Parameter typeInteger
Default valueDerived: (1.5 * PROCESSES) + 22
ModifiableALTER SYSTEM can be used in a PDB only to change the value of the SESSIONS parameter for that PDB.
Modifiable in a PDBYes
Range of values1 to 216 (which is 1 to 65536)
BasicYes

SGA_TARGET 指定所有SGA组件的总大小

PropertyDescription
Parameter typeBig integer
SyntaxSGA_TARGET = integer [K
Default value0 (SGA autotuning is disabled for DEFERRED mode autotuning requests, but allowed for IMMEDIATE mode autotuning requests)
ModifiableALTER SYSTEM
Modifiable in a PDBYes
Range of values64 MB to operating system-dependent
BasicYes

SHARED_SERVERS 指定启动实例时要创建的服务器进程的数目。如果系统负载降低,则维护服务器的最小数量。因此,您应该注意不要在系统启动时将共享服务器设置得过高

从Oracle Database 12c Release 1(12.1.0.2)开始,可以在PDBs上设置共享服务器参数。但是,与可以在PDB上设置的大多数其他参数不同,此参数只能在PDB中使用,以启用或禁用对该PDB的共享服务器的使用。因此,在PDB中,DBA可以将共享服务器设置为0来禁用该PDB的共享服务器,或者使用ALTER SYSTEM RESET共享服务器来重新启用该PDB的共享服务器。为CDB配置共享服务器只能在根目录中完成

PropertyDescription
Parameter typeInteger
Default valueIf you are using shared server architecture or if the DISPATCHERS parameter is set such that the total number of dispatchers is more than 0, then the default value is 1.
ModifiableALTER SYSTEM
Modifiable in a PDBYes
Range of valuesThe value of this parameter should be less than MAX_SHARED_SERVERS. If it is greater than or equal to MAX_SHARED_SERVERS, then the number of servers will not be self-tuned but will remain constant, as specified by SHARED_SERVERS.
BasicYes

STAR_TRANSFORMATION_ENABLED 确定是否将基于成本的查询转换应用于星型查询

PropertyDescription
Parameter typeString
SyntaxSTAR_TRANSFORMATION_ENABLED = { FALSE
Default valueFALSE
ModifiableALTER SESSION, ALTER SYSTEM
Modifiable in a PDBYes
BasicYes

UNDO_TABLESPACE 指定实例启动时使用的撤消表空间。如果在实例处于手动撤消管理模式时指定了此参数,则会出现错误,启动将失败

PropertyDescription
Parameter typeString
SyntaxUNDO_TABLESPACE = undoname
Default valueThe first available undo tablespace in the database.
ModifiableALTER SYSTEM
Modifiable in a PDBYes
Range of valuesLegal name of an existing undo tablespace
BasicYes
Oracle RACEach instance must have a unique value for this parameter, when it is set.


最后修改时间:2020-04-21 09:36:50
文章转载自数据库平台优化,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论