The log file for database '' is full
来源:互联网 发布:中国人工智能发展现状 编辑:程序博客网 时间:2024/06/10 16:40
-- 第一步:清空日志 DUMP TRANSACTION [YZGA] WITH NO_LOG-- 第二步:截断事务日志 BACKUP LOG [YZGA] WITH NO_LOG -- 第三步:收缩数据库 DBCC SHRINKDATABASE([YZGA]) ==========================================================日志: 不推荐使用BACKUPLOGWITH TRUNCATE_ONLY 或WITH NO_LOG。应使用简单恢复模式自动截断事务日志。 有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。 NO_LOG | TRUNCATE_ONLY 通过放弃活动日志以外的所有日志,无需备份复制日志即可删除不活动的日志部分,并截断日志。该选项会释放空间。因为并不保存日志备份,所以没有必要指定备份设备。NO_LOG 和 TRUNCATE_ONLY 是同义的。 注意: 在 SQL Server 的未来版本中将删除该选项。应避免使用该选项进行新的开发工作,并计划修改当前使用它的应用程序。 使用 NO_LOG 或 TRUNCATE_ONLY 截断日志后,记录在日志中的更改不可恢复。为了进行恢复,请立即执行BACKUPDATABASE 以执行完整备份或完整差异备份。 注意: 尽管可用该选项手动截断事务日志,但是我们极力建议您不要这样做,因为这会将日志链断开。在下一次完整备份或完整差异备份之前,将无法为数据库提供媒体故障保护。只在非常特殊的情况下才手动截断日志,并立即创建数据备份。 注意: 如果不想进行日志备份,请将数据库设置为简单恢复模式。
SQL Server 2008 日志收缩
- SQL code
- ALTER DATABASE 数据库名SET RECOVERY SIMPLEGO-- Shrink the truncated log file to 1 MB.DBCC SHRINKFILE (数据库日志文件名, 1)GO--日志文件名可以通过下面的语句查找select * from sys.database_files-- Reset the database recovery model.ALTER DATABASE 数据库名SET RECOVERY FULLGO
SQL Server 2005
- SQL code
- DUMP TRANSACTION 数据库名 WITH NO_LOGBACKUP LOG 数据库名 WITH NO_LOGDBCC SHRINKDATABASE (数据库名)
- The log file for database '' is full
- SQL0964C The transaction log for the database is full.
- DB2 SQL0964C The transaction log for the database is full
- Msg 9002 The transaction log for database '' is full
- [Error Fix] The transaction log for database 'DATABASENAME' is full
- Database log is full
- The event log file 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 处理
- DB2 The transaction log for the database is full. SQLSTATE=57011
- SQL0964C The transaction log for the database is full (DB2 事务 日志满 清理 )
- DB2 The transaction log for the database is full. SQLSTATE=57011
- DB2 “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
- 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
- Fixing an "SQL0964C Transaction log for database is full" error
- platform设备驱动全透析
- 程序员发展应该尽早明白13个道理(原地址http://blog.sina.com.cn/s/blog_a752817501014lu7.html)
- 关于我们的板子的一些记录
- Android和.NET通用的DES算法
- 在Ubuntu上为Android增加硬件抽象层(HAL)模块访问Linux内核驱动程序
- The log file for database '' is full
- eclipse RCP
- Linux设备驱动的分层设计思想[转宋老师]
- iOS TA Solution (二) 环境搭建篇
- Struts2的异常处理机制
- Avoiding Image Decompression Sickness如何避免图像解压缩的时间开销
- pthread相关简介
- perl: /i, /s, /x, /m
- Oracle Job 语法和时间间隔的设定