Login  Register

Re: locks

Posted by ErmanArslansOracleBlog on Aug 04, 2023; 12:18pm
URL: http://erman-arslan-s-oracle-forum.124.s1.nabble.com/locks-tp12010p12012.html

.oracle is an hidden directory.. "." there makes it hidden :)
normally there are socket files there. But it seems lock files are also there.
They should not be there when all the CRS services are down, including the database..
Lock files are for file level locking purposes.. That description is universal.. The presence of lock files prevents simultaneous access of a resource to multiple files trying to access that resource. For instance if a process sees a lock file there, it won't continue its processing.. It is a serialization mechanism.. It is by design.. It is in the Oracle code.

For instance; suppose there is a program, and it should be run alone(by design)..  There should be only one instance of it, running.. So as a developer (who develops this program), you may design this program to check a specific lock file , and if it is there, directly exit processing.. If it is not, just create a lock file there and continue processing.. I guess you understand what I mean.

For removing the socket files there ;
How to remove Network socket files in a RAC Environment for Cluster/Resource startup issues (Doc ID 2099377.1)

Just a note -> do NOT remove those while Oracle software is running on the server.