- 论坛徽章:
- 0
|
用dump tran with no_log都无法截断日志时候
1. 关闭数据库:
isql ---->; shutdown with nowait
2. 启动数据库, 在到“Recovering database 'DBNAME'”时在master库做下列操作:
sp_configure "allow"
sp_configure "allow updates to system tables", 1
select * from sysdatabases
update sysdatabases set status=-32768 where name = 'DBNAME'
3. 关闭数据库:
isql ---->; shutdown with nowait
4. 启动数据库, 在对DBNAME库做recover时在master库做下列操作:
dump tran DBNAME with no_log
update sysdatabases set status=0 where name = 'DBNAME'
5. 关闭数据库; 启动数据库;
sp_configure "allow updates to system tables", 1
对可能出错的表做dbcc
-------------------------------------------------------
SELECT COUNT(*) FROM TABLENAME
Server Message: Number 692, Severity 20
Server 'SYBASEJF', Line 1:
Uninitialized logical page '15259844' was read while accessing object '329976452' in database '4'. Please contact Sybase Technical Support.
------------------------------------------------------- |
|