事务日志必须写实(strictly_commit)
📄字数 348
👁️阅读量 加载中...
引入版本
v11.0.0
功能描述
事务日志是否写实。
参数属性
属性 | 属性值 |
---|---|
参数类型 | BOOLEAN |
默认值 | FALSE |
取值范围 | TRUE,FALSE |
影响范围 | 系统级 |
修改方式 | 离线修改,重启生效 |
使用场景说明
- strictly_commit = true,非只读事务提交需等候事务的所有WAL落盘写实。
- 连接会话未显式指定
strict_commit
变量值,则使用该参数值作为strict_commit
默认值。
示例
离线修改 strictly_commit
编辑 xugu.ini 修改 strictly_commit,重启数据库服务后生效。在线查看 strictly_commit
sql
SQL> show strictly_commit;
+-----------------+
| STRICTLY_COMMIT |
+-----------------+
| F |
+-----------------+
(1 row)
Use time:0 ms.