SQL0964C The transaction log for the database is full.
来源:互联网 发布:网络诗词精选 编辑:程序博客网 时间:2024/05/01 07:37
这个错误说明事务日志已满,查资料方知解决方法,共享之。
方法一:命令行方式
直接在该数据库上右键,弹出如下窗口,找到 Configure Dababase Logging Wizard,打开即可设置。
ibm官方解决办法如下
The error message should now not be appearing in the library server log, and the transaction to delete rows in the library server transaction tracking table should be successful.
平常只使用Logprimary的个数个日志文件,当主日志文件被用完,则启用第二日志文件个数个日志文件。如果都用光了系统就会报日志满错误。
而所谓循环日志方式,是指对主日志文件的循环利用,但是要注意,日志文件的大小必须要满最大单个事务的数据容量需求。因为在一个事务写日志的过程中是不允许循环使用的,平常最好配置到,只使用主日志,不使用第二日志,最好让数据库一天写满一个到两个日志文件。
方法一:命令行方式
把日志文件的大小和日志文件的数量扩充,如下命令 :
db2 update db cfg for DATABASE using LOGFILSIZ 7900
db2 update db cfg for DATABASE using LOGPRIMARY 30
db2 update db cfg for DATABASE using LOGSECOND 20
方法二:控制中心方式。
db2 update db cfg for DATABASE using LOGFILSIZ 7900
db2 update db cfg for DATABASE using LOGPRIMARY 30
db2 update db cfg for DATABASE using LOGSECOND 20
方法二:控制中心方式。
直接在该数据库上右键,弹出如下窗口,找到 Configure Dababase Logging Wizard,打开即可设置。
ibm官方解决办法如下
Too many objects have been loaded into the library server and the transaction to delete rows in the library server transaction tracking table is overfilling the DB2® UDB transaction logs.
Workaround:
- Stop the migrator process.
- Stop all the DB2 UDB applications. The DB2 UDB command to stop all the applications is: db2 force applications all
- Change the number of secondary log files in the DB2 UDB database configuration to a greater number such as 100 (default is 20).
- To see the database configuration settings, enter the following command in a DB2 UDB command window: db2 get db cfg
- To update the number of secondary log files to 100, enter the following: db2 command db2 update dbm cfg using LOGSECOND=100
- Start the migrator process.
The error message should now not be appearing in the library server log, and the transaction to delete rows in the library server transaction tracking table should be successful.
有关日志文件的参数有如下几个:
Logprimary:主日志文件的个数;最大为为65536(页数)×4k(块大小);
Logfilsz:每个日志文件的大小;最多不超过256;
Logsecond:第二日志文件的个数;最大不超过254;辅助日志文件在需要时分配,不再使用时系统收回。
Logprimary:主日志文件的个数;最大为为65536(页数)×4k(块大小);
Logfilsz:每个日志文件的大小;最多不超过256;
Logsecond:第二日志文件的个数;最大不超过254;辅助日志文件在需要时分配,不再使用时系统收回。
平常只使用Logprimary的个数个日志文件,当主日志文件被用完,则启用第二日志文件个数个日志文件。如果都用光了系统就会报日志满错误。
而所谓循环日志方式,是指对主日志文件的循环利用,但是要注意,日志文件的大小必须要满最大单个事务的数据容量需求。因为在一个事务写日志的过程中是不允许循环使用的,平常最好配置到,只使用主日志,不使用第二日志,最好让数据库一天写满一个到两个日志文件。
另外,还有种方法是设置不写日志,即ALTER TABLE A ACTIVATE NOT LOGGED INITIALLY,但是据说这种方法可能会出问题,而且一旦出问题,只能DROP TABLE,无法补救。所以这种方法还是不用了。
- SQL0964C The transaction log for the database is full.
- DB2 SQL0964C The transaction log for the database is full
- SQL0964C The transaction log for the database is full. SQLSTATE=57011
- DB2 SQL0964C The transaction log for the database is full. SQLSTATE=57011 处理
- SQL0964C The transaction log for the database is full (DB2 事务 日志满 清理 )
- SQL0964C The transaction log for the database is full. SQLSTATE=57011
- DB2 删除大量记录报错SQL0964C The transaction log for the database is full
- Fixing an "SQL0964C Transaction log for database is full" error
- BuildForge使用默认的DB2 Express运行时出现ERROR [IBM][CLI Driver][DB2/6000] SQL0964C The transaction log for the database is full. SQLSTATE
- Msg 9002 The transaction log for database '' is full
- [Error Fix] The transaction log for database 'DATABASENAME' is full
- The log file for database '' is full
- DB2 The transaction log for the database is full. SQLSTATE=57011
- DB2 The transaction log for the database is full. SQLSTATE=57011
- DB2 “The transaction log for the database is full” 问题及解决办法
- The transaction log for database 'xx' is full,Error: 9002, Severity: 17, State: 2
- The transaction log for database 'NJ_Address' is full. To find out why space in the log cannot be
- Database log is full
- Outlook Express 錯誤碼一覽表
- lotusScript 通过ADO访问sql
- SAP中的消息
- 关于return函数的调用!
- JIURL玩玩Win2k内存篇 分页机制 (二)
- SQL0964C The transaction log for the database is full.
- 《LoadRunner性能测试实战》前言
- JIURL玩玩Win2k内存篇 分页机制 (三)
- 利用SQL2005数据库复制技术 实现数据同步更新
- 如何在电脑面前有效率工作
- JIURL玩玩Win2k内存篇 分页机制 (四)
- jrockit启用verbose:gc
- JS前台验证老刷新页面
- [话题讨论]C和C++程序员谁的信仰更靠近上帝