Oracle Weblogic 重置密码的方法

原文地址

  1. Shut down the WebLogic domain, the managed servers, Admin Server and Node Manager.

  1. Set the following environment variables in the command prompt (cmd) to help you navigate easily, in my case for Windows O/S:

  • set MW_HOME=\Oracle\Middleware\Oracle_Home

  • set DOMAIN_HOME=%MW_HOME%\user_projects\domains\base_domain
    NB: If you are on Linux O/S, use export instead of set and $MW_HOME instead of %MW_HOME%

  1. Rename the data folder under the AdminServer of the domain to old_data, this is the path: %DOMAIN_HOME%\servers\AdminServer\data

  1. In the same command prompt that you opened earlier, set the environment variable of the domain by calling: %DOMAIN_HOME%\bin\setDomainEnv.cmd or ./setDomainEnv.sh in Linux.

  1. In the same command prompt, change directory to security folder: cd %DOMAIN_HOME%\security

  1. Inside the %DOMAIN_HOME%\security directory, move the file "DefaultAuthenticatorInit.ldift" to "%DOMAIN_HOME%\security\old\" In the next step, the command that we are going to run will create a new file “DefaultAuthenticatorInit.ldift” in the security folder

  1. Run the following command to reset or change admin password:
    java weblogic.security.utils.AdminAccount weblogic welcome123  .

  • NB: "weblogic" is user name and "welcome123" is the new password which we need to set.

  • NB: The DOT at the end of the above command represents the current directory. A new "DefaultAuthenticatorInit.ldift" file will be created in the current directory when you execute the command.

  1. Update the "boot.properties" file under the directory %DOMAIN_HOME%\servers\AdminServer\security\ with your username and the new password.

  1. Now start the admin server using the new credentials from %DOMAIN_HOME%\bin\startWeblogic.cmd in Windows or ./startWeblogic.sh in Linux.

  1. Once the AdminServer started, login into the Admin console using the username and the new password

转载于:https://my.oschina.net/sskxyz/blog/522529

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值