Oracle 参数 INSTANCE_MODE 官方解释,作用,如何配置最优化建议

本站中文解释

INSTANCE_MODE参数是指ORACLE数据库实例的模式,其可能取值有4种:

1、READ WRITE:此模式下,实例被设置为支持读写操作,可以完成调整系统设置,添加数据库应用,添加对象,备份等。

2、READ ONLY:此模式下,实例被设置为只读状态,不能进行任何写操作,只能完成读取操作,如查询等。

3、FORCE LOGGING:此模式下,与读写模式类似,但所有的表空间及子空间将由一般模式变成FORCE LOGGING模式,以保证事务在不支持arc hived log的情况下只能正确恢复出来。

4、HYBRID:此模式下,属于混合模式,表空间以读写模式创建,但表空间类型以FORCE LOGGING模式传播,属中间状态。

正确的设置方法:
1、根据实际情况,选择合适的INSTANCE_MODE参数,可在未启动实例的状态下利用SQL语句ALTER SYSTEM SET INSTANCE_MODE=xx SCOPE=SPFILE; 进行配置;
2、更改完成后,要记得保存信息,以免实例重启之后参数又被重置回原有值,可以用SQL语句ALTERSYSTEM SAVE SCOPE=SPFILE; 完成保存;
3、重启ORACLE实例,看看是否成功应用了配置参数。

官方英文解释

INSTANCE_MODE indicates whether the instance is read-write, read-only, or read-mostly.

Property Description

Parameter type

String

Syntax

INSTANCE_MODE = { READ-WRITE | READ-ONLY | READ-MOSTLY }

Default value

READ-WRITE

Modifiable

No

Basic

No

Oracle RAC

See the Oracle RAC restrictions in the initialization parameter description below.

A READ-WRITE instance is a regular Oracle instance.

A READ-ONLY instance is an Oracle instance that can only be opened in read-only mode.

A READ-MOSTLY instance is an Oracle instance that performs very few database writes.

These restrictions apply when setting the parameter on different Oracle Real Application Clusters (Oracle RAC) instances:

  1. There must be at least one instance alive with INSTANCE_MODE set to READ-WRITE at any given time. If the only instance with INSTANCE_MODE set to READ-WRITE goes down, all other instances will be brought down by Oracle automatically.

  2. An instance with INSTANCE_MODE set to READ-ONLY cannot be the first instance to open a database or any pluggable database (PDB) among all instances in an Oracle RAC cluster.

  3. Oracle does not support co-existence of an instance with INSTANCE_MODE set to READ-ONLY and an instance with INSTANCE_MODE set to READ-MOSTLY in the same Oracle RAC cluster.


数据运维技术 » Oracle 参数 INSTANCE_MODE 官方解释,作用,如何配置最优化建议