All PDBs share the same redo log files, so it's not possible to enable archivelog mode only for a specific PDB.
All PDBs share the archivelog mode of CDB.
Remember that PDBs themselves don't have a dedicated instance (processes and memory areas) so they share CDB's ones.
Configuring of archivelog mode should be implemented in CDB.
- 关闭数据库。
- 加载数据库到MOUNT状态。
- 查看容器
- 修改日志归档模式
- 打开数据库
- 使用 alter pluggable database beanpdb(all)open 语句打开Pluggable数据库
- 连接Pluggable数据库验证日志归档模式是否改变(非归档模式 -> 归档模式)
Alter database add logfile thread 2 group 5 '/ocfs/oradata/.../redo02_05.log' size 300M