免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: donniejeck
打印 上一主题 下一主题

日志清空不了(已解决) [复制链接]

论坛徽章:
0
11 [报告]
发表于 2008-07-28 10:14 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
12 [报告]
发表于 2008-07-28 10:16 |只看该作者
use dbname
go
dbcc gettrunc
go

论坛徽章:
0
13 [报告]
发表于 2008-07-28 10:45 |只看该作者
1> use WDZX
2> go
1> dbcc gettrunc
2> go
ltm_truncpage ltm_trunc_state db_rep_stat gen_id      dbid
         dbname                         lti_version
------------- --------------- ----------- ----------- ------
         ------------------------------ -----------
             0               0           0           0      4
         WDZX                                     0

论坛徽章:
0
14 [报告]
发表于 2008-07-28 10:46 |只看该作者
原帖由 shawnlee 于 2008-7-28 10:14 发表
重起也不行?


重起也没用

论坛徽章:
0
15 [报告]
发表于 2008-07-28 18:18 |只看该作者
dbcc rebuild_log(WDZX,1,1)
也不好使

论坛徽章:
7
数据库技术版块每日发帖之星
日期:2015-08-09 06:20:00数据库技术版块每日发帖之星
日期:2015-11-03 06:20:00数据库技术版块每日发帖之星
日期:2016-02-20 06:20:00数据库技术版块每日发帖之星
日期:2016-07-13 06:20:00数据库技术版块每日发帖之星
日期:2016-07-31 06:20:00数据库技术版块每日发帖之星
日期:2016-08-01 06:20:00数据库技术版块每日发帖之星
日期:2016-08-18 06:20:00
16 [报告]
发表于 2008-07-29 14:56 |只看该作者
dump tran dbname with truncate_only
dump tran dbname with no_log

sp_dboption dbname,'trunc',true

sp_config_rep_agent dbname,'disable'

以上方法都试过吗?

论坛徽章:
0
17 [报告]
发表于 2008-07-31 09:19 |只看该作者
我的应用没有使用复制

论坛徽章:
0
18 [报告]
发表于 2008-07-31 11:29 |只看该作者

dbcc syslogs表结果

1> dbcc tablealloc(syslogs,full,fix)
2> go
***************************************************************
TABLE: syslogs          OBJID = 8
INDID=0  FIRST=20164088  ROOT=20164088   SORT=0
        Data level: 0.  1 Data pages allocated and 1 Extents allocated.
TOTAL # of extents = 1
Alloc page 20163840 (# of extent=1 used pages=8 ref pages=1)
Total (# of extent=1 used pages=8 ref pages=1) in this database
DBCC execution completed. If DBCC printed error messages, contact a user with
System Administrator (SA) role.



DBCC execution completed. If DBCC printed error messages, contact a user with
System Administrator (SA) role.
The default report option of OPTIMIZED is used for this run.
The default fix option of NOFIX is used for this run.
***************************************************************
TABLE: syslogs                OBJID = 8
INDID=0         FIRST=17828323         ROOT=17828324         SORT=0
        Data level: 0.  2 Data pages allocated and 1 Extents allocated.
TOTAL # of extents = 1
Alloc page 17828096 (# of extent=1 used pages=5 ref pages=2)
Total (# of extent=1 used pages=5 ref pages=2) in this database

Statistical information for this run follows:
Total # of pages read = 2
Total # of pages found cache = 1
Total # of physical reads = 1
Total # of saved I/O = 0
Size of I/O used = 8 pages
DBCC execution completed. If DBCC printed error messages, contact a user with
System Administrator (SA) role.


DBCC execution completed. If DBCC printed error messages, contact a user with
System Administrator (SA) role.
Syslogs free space count has been successfully recalculated. It has been
corrected to 25015 pages.
DBCC execution completed. If DBCC printed error messages, contact a user with
System Administrator (SA) role.

论坛徽章:
0
19 [报告]
发表于 2008-08-01 11:14 |只看该作者
select spid from master..syslogshold

kill spid

dump tran dbname with truncate_only

如果還不行, 就
dump tran dbname with no_log

應該可以的;

论坛徽章:
0
20 [报告]
发表于 2008-08-04 09:07 |只看该作者
没有最早的事务存在.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP