啟動Weblogic時報 解決方案


啟動Weblogic時,報 <unable to get file lock, will retry...>,解決方法:

I ran into this error the first time I restarted Weblogic on one of my installs, the only reference that I was able to find is the error description below:

 

BEA-141281

Info: unable to get file lock, will retry …

Description

This message indicates that WLS can not get file lock because other process still holds the lock. W LS will try again before timeout.

Cause

This is an information-level message only.

Action

If WLS fails to start due to unable to get file lock, then lock files need to be removed manually before restart WLS.

The funny thing is that it tells you to remove the locks but doesn’t provide their location, if you are running OBIEE 11g you can remove AdminServer.lok from:

d:\oracle\fmw\user_projects\domains\bifoundation_domain\servers\AdminServer\tmp

If you are not using Weblogic in the context of Oracle Busines Intelligence you can do a file search for any lok files under your middleware home (d:\oracle\fmw).

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

概述

由於先前服務器直接down掉了,所有進程都非正常的進行關閉了,也就導致了下次啟動weblogic的時候報了以下錯誤:

<2012-3-2 下午05時08分34秒 CST> <Info> <Management> <BEA-141281> <unable to get file lock, will retry …> 
<2012-3-2 下午05時08分44秒 CST> <Info> <Management> <BEA-141281> <unable to get file lock, will retry …>

解決辦法

一.刪掉Domain下的*.lok文件

1. 刪除edit.lok

進入到domain_home下:

cd /u01/Oracle/Middleware/user_projects/domains/idm_domain

將edit.lok文件刪掉

rm edit.lok

2.刪除config.lok

進入到domain_home/config下:

cd /u01/Oracle/Middleware/user_projects/domains/idm_domain/config/

將config.lok文件刪掉

rm config.lok

3.刪除AdminServer.lok

cd /u01/Oracle/Middleware/user_projects/domains/idm_domain/servers/AdminServer/tmp

rm AdminServer.lok

4.刪除EmbeddedLDAP.lok

/u01/Oracle/Middleware/user_projects/domains/idm_domain/servers/AdminServer/data/ldap/ldapfiles

rm EmbeddedLDAP.lok

二.刪掉Domain下的*.DAT文件:

進入到domain_home當中

cd /u01/Oracle/Middleware/user_projects/domains/idm_domain

找到文件被刪掉

[oracle@idm idm_domain]$ find servers/ -name "*.DAT" 
servers/AdminServer/data/store/diagnostics/WLS_DIAGNOSTICS000000.DAT 
servers/AdminServer/data/store/default/_WLS_ADMINSERVER000000.DAT

重新啟動weblogic,搞定!

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

參考上面方法還是會報錯,后來將進程里的java.exe都結束了, 然后在服務中把Ooracle Process Manager 和Oracle WebLogic NodeManger起起來后再重新啟動BI服務


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM