1 说明
In previous releases, all database instances—unless they accessed a standby database—were read/write. Starting in Oracle Database 12c Release 2 (12.2), read-only and read/write instances can co-exist within a single database. This configuration is useful for parallel SQL statements that both query and modify data, because both read/write and read-only instances can query, while the read/write instances modify.
在12.2中,在同一个数据库中可以同时打开读写和只读两个实例。
只读实例特点:
1. Can only open a database that has already been opened by a read/write instance
2. Disable many background processes, including the checkpoint and archiver processes, which are not necessary
3. Can mount a disabled redo thread or a thread without any online redo log
2 指定实例为只读
需要配置初始化参数INSTANCE_MODE为READ_ONLY,默认值为READ_WRITE。
更多详细信息,参考官方文档:
版权声明:本文为博主原创文章,未经博主允许不得转载。
read_only read_write