12
返回列表 发新帖
楼主: eagle_fan

如果logfile被删除

[复制链接]
论坛徽章:
27
授权会员
日期:2005-10-30 17:05:33管理团队成员
日期:2011-05-07 01:45:082012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:362012新春纪念徽章
日期:2012-02-13 15:11:36优秀写手
日期:2013-12-18 09:29:13马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
11#
 楼主| 发表于 2010-4-13 18:17 | 只看该作者
原帖由 Yong Huang 于 2010-4-9 04:44 发表


I was referring to the fact that on UNIX/Linux, when you use LGWR to transport redo, "lgwr进程每时每刻都获得所有logfile的文件句柄". Because the logfiles are all held open, deleting their filesystem entries is not a problem. You can simply restore the files from the pseudo files on /proc.

> 如果是普通的文件的话,可以通过metalink note "Retrieve deleted files on Unix / Linux using File Descriptors "恢复
> 不过我们使用的是veritas qio文件,目前没有找到办法

Isn't it the same? That is, copy the pseudo file from /proc to where it should be, e.g. /oracle/SCRATCH/data03/XFAN/redo/.redo1.log::cdev:vxfs: ?

Yong Huang



It's different. It's character file and you can't cat or dd it.

For example:

pfiles 18161
272: S_IFCHR mode:0660 dev:53,101003 ino:14 uid:32000 gid:101 rdev:58,355
      O_RDWR|O_DSYNC|O_LARGEFILE FD_CLOEXEC
      advisory write lock set by process 18153
      /oracle/MOT/data01/.MOT_temp01b.dbf::cdev:vxfs:
273: S_IFREG mode:0660 dev:53,101003 ino:1345 uid:32000 gid:101 size:524296192
      O_RDWR|O_DSYNC|O_LARGEFILE FD_CLOEXEC
      advisory write lock set by process 18153
      /oracle/MOT/data01/MOT_temp02a.dbf

cd /proc/18161/fd
ls -al 272
c--------- 1 oracle dba 58, 355 Apr  9 09:52 272
ls -al 273
-rw-rw---- 1 oracle dba 524296192 Apr  9 11:48 273

I opened a veritas case and the support told me it was impossible to recover the deleted qio file.

But I don't believe it

[ 本帖最后由 eagle_fan 于 2010-4-13 18:20 编辑 ]

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表