Thursday 22 August 2013

Resetting The Weblogic Username And Password


Sometimes you will find that you have forgot the WebLogic Server Admin User password, however its simple task if you want to reset it, You just need to have access to the box where the WebLogic Server is Installed
Follow the below steps to reset the Admin User Password for WebLogic in Windows environment.

STEP : 1 : Navigate to Domain
cd E:\Oracle\Middleware\user_projects\domains\base_domain\bin

Step 2 : Set the Domain Environment
E:\Oracle\Middleware\user_projects\domains\base_domain\bin>setDomainEnv.cmd

Step 3: Navigate to Security Directory
E:\Oracle\Middleware\user_projects\domains\base_domain\security

Step 4: Rename the DefaultAuthenticatorInit.ldift as below.
E:\Oracle\Middleware\user_projects\domains\base_domain\security>rename DefaultAuthenticatorInit.ldift DefaultAuthenticatorInit_old.ldift

Step 5 : Execute the below command :
E:\Oracle\Middleware\user_projects\domains\base_domain\security>java weblogic.security.utils.AdminAccount <username>weblogic <password>Weblogic123 . (space Between Password and Dot)

Notice that there is a DOT (.) at the end of the command, that notifies that it will reset the password in current directory, the above command will create the file DefaultAuthenticatorInit.ldift as below.

Step 6 : Go to Security Folder of Admin Server
E:\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\security

Edit the boot.properties file as below and save it.
password=Weblogic123(Your Required Password)
username=weblogic (
Your Required Name )

Step 7. Navigate to following Directory
E:\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\data

Step 8 : Rename LDAP Directory as below, it will be recreated During WebLogic Server start-up.

E:\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\data>rename ldap ldap_old

Step 9 : Restart the Server as below.
E:\Oracle\Middleware\user_projects\domains\base_domain\bin>startWebLogic.cmd



























No comments:

Post a Comment