Chinaunix首页 | 论坛 | 博客
  • 博客访问: 509974
  • 博文数量: 101
  • 博客积分: 1635
  • 博客等级: 上尉
  • 技术积分: 1282
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-05 01:51
文章分类

全部博文(101)

文章存档

2019年(2)

2018年(16)

2013年(14)

2012年(69)

我的朋友

分类: 系统运维

2012-11-30 22:17:17

邮件接收没有附件的处理过程
1 邮件库中接收了邮件但是没有接收附件,查看邮件接收程式的log是磁盘空间满了 删除文件,释放空间
2 查看有哪些接收了 没有附件的报告
   select * from BACK_REPORT_GENERAL a where CREATETIMESTAMP In('2012-10-09','2012-10-08')
and not exists( select 1 from BACK_REPORT_ATTACHMENT b where a.objid=b.docid)
3 现在对307份的邮件的处理
3.1 在中心库中备份所有的没有接收附件的报告
create table back_mailuidlbak as select * from back_mailuidl m where m.objid  in (select a.objid from BACK_REPORT_GENERAL a where CREATETIMESTAMP In('2012-10-09','2012-10-08')
and not exists( select 1 from BACK_REPORT_ATTACHMENT b where a.objid=b.docid))
3.2 删除这些报告
 delete from back_mailuidl m where m.objid  in (select a.objid from BACK_REPORT_GENERAL a where CREATETIMESTAMP In('2012-10-09','2012-10-08')
   and not exists( select 1 from BACK_REPORT_ATTACHMENT b where a.objid=b.docid))
4 重新启动邮件接收程式 使用htyb03账号接收这些邮件
阅读(2163) | 评论(0) | 转发(0) |
0

上一篇:oracle dsi 四

下一篇:dba 维护的脚本

给主人留下些什么吧!~~