事务日志必须写实(strictly_commit)
📄字数 379
👁️阅读量 加载中...
引入版本
v11.0.0
功能描述
事务日志是否写实。
参数属性
| 属性 | 属性值 |
|---|---|
| 参数类型 | BOOLEAN |
| 默认值 | FALSE |
| 取值范围 | TRUE,FALSE |
| 影响范围 | 系统级 |
| 修改方式 | 离线修改,重启生效 |
使用场景说明
- strictly_commit = true,非只读事务需等候事务的预写日志(REDO 部分)落盘写实后才能提交。
- 若连接会话未显式指定会话参数 strict_commit,则使用该参数值作为连接上事务是否严格提交的默认值。
注意
- 会话参数 strict_commit 的优先级高于系统参数 strictly_commit。
示例
sql
-- 离线修改 strictly_commit
编辑 xugu.ini 修改 strictly_commit,重启数据库服务后生效。
-- 在线查看 strictly_commit
SQL> SHOW strictly_commit;