ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 控制文件的误解

控制文件的误解

原创 Linux操作系统 作者:sxitsxit 时间:2013-03-22 10:18:30 0 删除 编辑
一直以来,数据库创建三个控制文件是为了镜像,随便删除一个不会宕机。今天在pub上看到有人讨论,然后给了一些资料,截取如下:

Administrator's Guide是这么说的:
The behavior. of multiplexed control files is this:

    The database writes to all filenames listed for the initialization parameter CONTROL_FILES in the database initialization parameter file.

    The database reads only the first file listed in the CONTROL_FILES parameter during database operation.

    If any of the control files become unavailable during database operation, the instance becomes inoperable and should be aborted.

文档翻译为:

   向控制文件写数据时,是同时向多个控制文件写,只要发现有一个控制文件有问题,pmon进程就直接crash库。
读控制文件是只读一个控制文件,而且就是读第一个控件文件


在linux或unix环境下做实验的时候,会出现删除了一个控制文件,而数据库不会马上crash的情况。这种情况是unix和linux系统的特点导致 的,因为表面上删除文件,但是进程依然通过文件描述符跟inode保持关联

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24862808/viewspace-756804/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-04-14

  • 博文量
    98
  • 访问量
    323764