Oracle Weblogic 重設密碼的方法

來源:互聯網
上載者:User

標籤:

原文地址

  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

Oracle Weblogic 重設密碼的方法

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.