Focus On Oracle

Installing, Backup & Recovery, Performance Tuning,
Troubleshooting, Upgrading, Patching

Oracle Engineered System


当前位置: 首页 » 技术文章 » 案列分析

How to recover weblogic password

想通过管理控制台部署应用,管理应用,查看性能,监控性能等操作时,如果忘记了Weblogic的密码是一件很头疼的时。修改密码也是可以的,但修改密码要相对繁琐些,且带有一定的风险。如果能通过什么工具找回密码是非常happy的事,通过搜寻找到了2中方法,下面的方法就是通过Java去找回密码。

声明:此方法仅用于正当方式,不得用于破坏行为或违法法律


下面是详细的步骤

1.mkdir C:\RecoverPassword\security

2.prepare SerializedSystemIni.dat

copy user_projects\domains\<domain name>\security\SerializedSystemIni to C:\RecoverPassword\security

3.prepare boot.properties

copy boot.properties from AdminServer to c:\RecoverPassword


4.edit RecoverPassword.java as below
import weblogic.security.internal.BootProperties; 
public class RecoverPassword {  
  public static void main(String[ ] args) {  
    BootProperties.load("c:\\RecoverPassword\\boot.properties", false);  //这里是boot.properties文件的全路径
    BootProperties bootp = BootProperties.getBootProperties();  
    System.out.println(  
      "#####################[" +  
       bootp.getOneClient() + "/" + bootp.getTwoClient() +  
       "]###################");  
  } 


}

5.execute setDomainEnv.cmd

C:\pgoldo\fmw\user_projects\domains\ohsdba\bin>setDomainEnv.cmd

C:\pgoldo\fmw\user_projects\domains\ohsdba>cd\
C:\>cd RecoverPassword


6.compile RecoverPassword.java

C:\RecoverPassword>javac RecoverPassword.java


7.set classpath

C:\RecoverPassword>set CLASSPATH=%CLASSPATH%;.

8.get the password
C:\RecoverPassword>java RecoverPassword
#####################[weblogic/weblogic12]###################

C:\RecoverPassword>


下面的连接是通过python脚本找回密码,感兴趣的朋友,可以看看

https://blogs.oracle.com/gsahoo/entry/decrypt_weblogic_password

http://techtapas.blogspot.com/2011/05/how-to-decrypt-weblogic-passwords-with.html

https://blogs.oracle.com/OracleWebCenterSuite/entry/decrypt_weblogic_passwords_in_a


Reference

http://kennethxu.blogspot.com/2006/04/how-to-recover-weblogic-admin-password.html


关键词:weblogic 

相关文章

How to configure Apache as a Reverse Proxy Server (RPS) on WebLogic
How to Setup Weblogic Cluster Step by Step
Weblogic Cluster
How to recover weblogic password
Top