Loading...

WebLogic 重启后congfig 被重置

原创文章5年前 (2019)发布 fdadmin
2,055 0 0

问题描述:
weblogic 程序启动后配置启动参数,数据源,war包后重启出现config war包配置丢失或启动参数丢失问题
解决方案:
一.删掉Domain下的*.lok文件

  1. 删除 edit.lok —-基本上可以解决war包丢失问题

  进入到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" 
rm -rf servers/AdminServer/data/store/diagnostics/WLS_DIAGNOSTICS000000.DAT 
rm -rf servers/AdminServer/data/store/default/_WLS_ADMINSERVER000000.DAT

二、继续报错

<BEA-280061> <The persistent store “_WLS_AdminServer” could not be deployed: weblogic.store.PersistentStoreException: [Store:280105]The persistent file store “_WLS_AdminServer” cannot open file _WLS_ADMINSERVER000000.DAT. weblogic.store.PersistentStoreException: [Store:280105]The persistent file store “_WLS_AdminServer” cannot open file _WLS_ADMINSERVER000000.DAT. at weblogic.store.io.file.Heap.open(Heap.java:325)

解决办法:因为下面两个文件没有删除,删除掉重启就好了

rm -rf servers/AdminServer/data/store/diagnostics/WLS_DIAGNOSTICS000000.DAT 
rm -rf servers/AdminServer/data/store/default/_WLS_ADMINSERVER000000.DAT

网上找的解决办法:

find . -name “*.DAT” -print -exec rm {} ;
find . -name “*.lok” -print -exec rm {} ;

For Admin server
$DOMAIN_HOME/servers/<server name>/tmp/Adminserver.lok
$DOMAIN_HOME/servers/<server name>/data/ldap/ldapfiles/Embedded.lok
$DOMAIN_HOME/servers/<server name>/data/store/default/_WLS_ADMINSERVER000000.DAT
$DOMAIN_HOME/servers/<server name>/data/store/diagnostics/WLS_DIAGNOSTICS000000.DAT

For Managed servers

$DOMAIN_HOME/servers/<server name>/tmp/<servername>.lok
$DOMAIN_HOME/servers/<server name>/data/ldap/ldapfiles/Embedded.lok
$DOMAIN_HOME/servers/<server name>/data/ldap/store/default/_WLS_<servername>000000.DAT
$DOMAIN_HOME/servers/<server name>/data/ldap/store/diagnostics/WLS_DIAGNOSTICS000000.DAT

 

三、启动到一半报错,貌似端口被占用

<Error> <Server> <BIEE> <AdminServer> <DynamicListenThread[Default[1]]> <<WLS Kernel>> <> <11d1def534ea1be0:6838a223:14bcf28f0c4:-8000-000000000000000c> <1425109784345> <BEA-002606> <Unable to create a server socket for listening on channel "Default[1]". The address fe80:0:0:0:ba2a:72ff:fed4:83a1 might be incorrect or another process is using port 7001: java.Net.BindException: Address already in use.>

解决办法:执行ps -ef|grep leg,发现有一个weblogic在执行(带有jdk比较长的那个)占用了端口,杀掉,kill -9 加进程id(第二个数字),重新启动weblogic即可

版权声明:本文为CSDN博主「雪落夜」的原创文章,遵循CC 4.0 by-sa版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/a1017680279/article/details/53896820a

© 版权声明

相关文章

暂无评论

暂无评论...