当事务日志变满时会发生什么

时间:2018-02-08 14:28:51

标签: sql-update sybase-ase transaction-log

在广泛更新期间,当事务日志变满时会发生什么?

交易是否被阻止?

2 个答案:

答案 0 :(得分:1)

这取决于数据库上的'abort tran on log full'设置。

  • 如果设置为true:所有打开的交易都将中止
  • 如果设置为false:所有交易暂停,直到有更多空间免费

当然,阈值会根据它们的配置方式触发。

答案 1 :(得分:-1)

首先,日志已满的事件取决于在数据库/设备级别:

- the option "trunc log on checkpoint" or not  -> perhaps the transaction log never get full because of this option and if it does this could mean that one update managed to fill the entire log before a checkpoint
- you have configured sp_thresholdaction and what action this stored procedure is doing (this SP could run a truncate command). 

如果选项" abort tran on log full"对于特定数据库,该事务将被中止,否则将被阻止。

相关问题