zoukankan      html  css  js  c++  java
  • 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.datab

    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(当前有一个或多个可重复使用的虚拟日志文件。)

  • 相关阅读:
    Objective-C 复合
    useContext的使用
    context的使用
    redux使用(二)
    redux使用(一)
    React class & function component 的区别
    combineReducers使用
    gnvm使用(未使用成功)
    React相关知识点
    eslint简单使用&&eslint与webpack结合使用
  • 原文地址:https://www.cnblogs.com/Snowfun/p/2919167.html
Copyright © 2011-2022 走看看