Oracle10g 目录$ORACLE_HOME/dbs 下有文件 hc_.dat ,用处是 ?

本文解释了Oracle数据库中hc_.dat文件的作用,它是用于实例健康检查监测的文件,在实例启动时创建并记录实例状态信息。如果该文件被删除或替换为空文件,重启数据库后系统会重新创建该文件。

Q1: What is the $ORACLE_HOME/dbs/hc_.dat file?
Q2: What happens if the $ORACLE_HOME/dbs/hc_.dat file is deleted?

见Metalink . Doc ID: Note:390474.1

[@more@]

A1: The $ORACLE_HOME/dbs/hc_.dat is created for the instance health check monitoring. It contains information used to monitor the instance health and to determine why it went down if the instance isn't up. The file will be recreated at every instance startup.
A2: Per Bug 4645405 UNABLE TO START DB - ORA-7445 [KSIHSMRINI()+152] [SIGBUS], if you replace the file with an empty "dummy" copy, you will get an ORA-7445 error. Therefore, if the file gets deleted on the fly while the database is up, or if the file is replaced with a 0 byte file, simply delete the file and restart the database. The file will be correctly recreated at the next database startup.

-----------------------

http://www.freelists.org/archives/oracle-l/10-2005/msg00980.html

I think it is similar to lk file in UNIX.

This file is used to lock shared memory. The file should not be deleted
while the instance is running.

Naveen

no, it is a health check file used to check status of instance, new in 10g

---------------------------------------------------------------

[root@grid2 dbs]# strings hc_orcl.dat
DO NOT DELETE OR OVERWRITE THIS FILE!!!
orcl

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

转载于:http://blog.itpub.net/35489/viewspace-998815/

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值