Oracle10g 目錄$ORACLE_HOME/dbs 下有檔案 hc_.dat ,用處是 ?

tolywang發表於2008-01-31

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.

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



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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章