Thursday, August 18, 2016

Working with ".Lok" files in Weblogic server



ERROR:
ERROR: <BEA-141281> <unable to get file lock, will retry …> 
Or 
<2017-3-22 five eight in the afternoon of 22 seconds CST> <Info> <Management> <BEA-141281> <unable to get file lock, will retry …> 
<2017-3-22 five eight in the afternoon of 40 seconds CST> <Info> <Management> <BEA-141281> <unable to get file lock, will retry …>

Solution is  to Delete  the *.lok files  from below location after that Server restarted is mandatory .

file locations are 

Access to domain_home:
cd /Oracle/Middleware/user_projects/domains/idm_domain
Edit.lok file will be deleted
rm edit.lok
Remove the 2 config.lok

Access to domain_home/config:
cd /Oracle/Middleware/user_projects/domains/idm_domain/config/
Config.lok file will be deleted
rm config.lok
Remove the 3 AdminServer.lok
cd  /Oracle/Middleware/user_projects/domains/idm_domain/servers/AdminServer/tmp
rm AdminServer.lok
Remove the 4 EmbeddedLDAP.lok
/Oracle/Middleware/user_projects/domains/idm_domain/servers/AdminServer/data/ldap/ldapfiles
rm EmbeddedLDAP.lok

Two delete the *.DAT file under the Domain:
Access to the domain_home
cd /Oracle/Middleware/user_projects/domains/idm_domain
Find the file was deleted
[oracle@idm idm_domain]$ find servers/ -name "*.DAT" 
servers/AdminServer/data/store/diagnostics/WLS_DIAGNOSTICS000000.DAT 
servers/AdminServer/data/store/default/_WLS_ADMINSERVER000000.DAT
Restart Weblogic,