Snowfun

导航

 

PLM系统提示错误,用法无法编辑工作流

 

日志路径D:\ptc\Windchill_10.1\Windchill\logs\

MethodServer.log :提示以下错误

java.sql.BatchUpdateException: The transaction log for database 'wcadmin' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases

 

原因:日志文件满了

检查:查询sys.databases中的log_reuse_wait_desc列.使用以下SQL语句

SELECT log_reuse_wait_desc FROM sys.databases WHERE[name]='wcadmin';

得到的值为:LOG_BACKUP,说明需要运行日志备份解决这个问题。所以对数据库进行一个日志备份:

继续执行以下语句,执行大概10几分钟

BACKUP LOG wcadmin to DISK='D:\log_bakcup\wcadminAckup.trn';

 

备份完成后问题解决,之后再查log_reuse_wait_desc得到值为:NOTHING(当前有一个或多个可重复使用的虚拟日志文件。)

 

 

 

posted on 2013-02-20 17:48  Snowfun  阅读(1468)  评论(0编辑  收藏  举报