“常用公式”在线计算,“设计手册”在线查询
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏1 分享分享 分享淘帖 支持支持 反对反对

共 2 个关于本帖的回复 最后回复于 2013-9-9 23:26

沙发
王广基 认证专家 发表于 2013-8-6 15:59:00 | 只看该作者
研发埠培训中心
Flowmaster的数据库有两个文件,Flowmaster.mdf和Flowmaster.ldf。前者保存的是实际数据,如模型、曲线、控制脚本等,而后者保存的为日志。Flowmaster的数据库为SQL Server Express版(免费版),mdf文件有大小限制,为4GB(SQL 2010为10GB)。若出现库文件过大,首先确定是哪个文件过大:1、如果是mdf过大,要想压缩,需删除一些废弃的模型、曲线、结果等数据,并执行压缩操作。注意:如果是瞬态计算,可能会带来很大的数据量,建议(1)在仿真前将不关注的元件结果off掉,方法为将元件参数表中的result on/off选为off,或(2)在simulation data下,将output control下的write interval加大,默认值为1,意为每1个时间步保存1次结果。2、如果是log文件过大,则直接执行压缩操作。压缩操作方法如下:登陆SQL Server Management Studio,在左侧数据库下找到你要压缩的数据库,右键选择task-shrink-database,可将mdf文件进行压缩(压缩至多大取决于你删掉了多少数据);若欲压缩ldf文件,则先执行task-backup,并在backup type中选择transaction log,备份完成后再执行task-shrink-files,选择log,再重复执行备份、压缩,即可将log文件压缩至504KB(无论log文件多大)。另外,对于长期使用的数据库,有可能达到免费数据库的容量限制(mdf),可以使用专业版SQL,加载这两个文件即可。或者建立一个新的空数据库:最好在软件刚装好时从默认的路径下(C:\Program Files\Common Files\Flowmaster)将数据库文件拷贝一份,再重新attach一个数据库,只要不再叫默认的Flowmaster名字即可。
板凳
薛志杰 认证专家 发表于 2013-9-9 23:26:07 | 只看该作者
研发埠人才中心
3、If a database has amissing log file, OR if it won't attach because the .MDF and .LDF files werecopied from a machine where they hadn't been detached first, you cansuccessfully attach the database by:1.)Delete the logfile (if it exists)2.)Make sure the.MDF file is in an accessible location like C:\FlowmasterV7\Data3.)Run the followingSQL query from inside SQL management studio express:SP_ATTACH_SINGLE_FILE_DB'Flowmaster','C:\FlowmasterV7\Data\Flowmaster_Data.MDF'Click execute. Thisquery will generate a new, empty log file and attach the database. You mighthave to click "refresh" the server view to see the new database.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注我们

360网站安全检测平台