Chinaunix首页 | 论坛 | 博客
  • 博客访问: 964866
  • 博文数量: 232
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 2315
  • 用 户 组: 普通用户
  • 注册时间: 2005-11-02 11:43
文章分类

全部博文(232)

文章存档

2009年(6)

2008年(22)

2007年(72)

2006年(85)

2005年(47)

我的朋友

分类: WINDOWS

2008-01-31 10:54:48

最近在帮用户作一个压缩数据库的时候出现的一个情况与大家共享:
由于用户的邮件数据库设置了限额,用户在超过限额后会删除邮件,但是由于用户没有管理权限,仅仅有编辑者权限不能进行压缩,本打算每天压缩一次,但是时间较长,没有办法一晚上作完,所以每周压缩一次。这就导致了有的用户需要管理员协助来处理。
 
后来想到了利用ind文件来进行分批了压缩,将任务分成2天来处理,隔天压缩,可以大大减少管理员操作的时间。
 
 
 All the files specified in a .IND file created in the Domino data folder
Note  If you are using the -T flag to specify a view, Indirect files (.IND) cannot be used.
Load compact WEEKLY.IND
where WEEKLY.IND contains:
SALES.NSF
DEV.NSF
SALES\USER1.NSF
SALES\NEW 
DATA\SALES.NSF

 

但是在执行的过程中发现如果用户的邮件文件是英文名称就能正常执行,但是如果邮件名称为中文,问题就出来了。
文件列表中的第一个中文邮件能执行,但后面的mail目录名被截断了变成了il,最终导致文件名不存在错误。
2008-01-28 11:51:58   Compacting C:\Lotus1\Domino\Data\mail\王五.nsf (ibm's Certification Log)
2008-01-28 11:51:59   Compacted  C:\Lotus1\Domino\Data\mail\王五.nsf, 0K bytes recovered (0%)
2008-01-28 11:51:59   The pathname 'C:\Lotus1\Domino\Data\il\勤快.nsf', specified in an indirect pathname file, was not found: File does not exist
2008-01-28 11:51:59   The pathname 'C:\Lotus1\Domino\Data\il\里斯.nsf', specified in an indirect pathname file, was not found: File does not exist
2008-01-28 11:51:59   The pathname 'C:\Lotus1\Domino\Data\il\和善.nsf', specified in an indirect pathname file, was not found: File does not exist
2008-01-28 11:51:59   The pathname 'C:\Lotus1\Domino\Data\il\孤独.nsf', specified in an indirect pathname file, was not found: File does not exist
2008-01-28 11:51:59   The pathname 'C:\Lotus1\Domino\Data\il\王五三.nsf', specified in an indirect pathname file, was not found: File does not exist
2008-01-28 11:51:59   The pathname 'C:\Lotus1\Domino\Data\l\王五1.nsf', specified in an indirect pathname file, was not found: File does not exist
2008-01-28 11:51:59   The pathname 'C:\Lotus1\Domino\Data\il\网站王五.nsf', specified in an indirect pathname file, was not found: File does not exist
2008-01-28 11:51:59   Database compactor error: File does not exist

后来与800联系,才发现是一个产品的BUG(SPR # ASHH69U99Z),但是目前没有计划去修复该问题。
只好采用另外的解决办法,用 compact 的 -S 选项,只在数据库未使用的空间超过百分之 x 时才压缩数据库.
还有一个更好的解决办法就是:如果只是为了让超限额用户能尽快接收邮件, 可以修改服务器文档中的限额强制域, 设成"添加注释时检查文件中使用的空间". 这样一来, 用户删除邮件并清空废纸篓后不需要压缩就可以继续接收邮件.并需要检查notes.ini中是否有NSF_QUOTA_METHOD=1参数,如果没有需要加上,并重启服务器生效。
 
 
 
 
 
阅读(2665) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~