How to reset Lost Oracle WebLogic Password for Fusion Middleware Applications

 For WebLogic server, during domain creation screen you create a user weblogic (this could be any name used during domain creation screen) and set password (user and password is stored in weblogic’s embedded LDAP server in hashed format which makes it impossible to decrypt) . This user (weblogic) is then used to login to WebLogic Console and acts as superuser for WebLogic Server including Fusion Middleware (FMW) applications like WebCenter, UCM, OBIEE, ODI …

What if you forgot password for this user after installation ?This post covers steps to create another user in WebLogic domain which will act as super user or create another user with same name (weblogic) with password of your choice.

 Note: This process will remove all users created in weblogic’s embedded LDAP server and there will only be one user (which will act as superuser) after doing below steps.

Steps to create another superuser in weblogic (when password of existing user is lost)

1. Shutdown WebLogic Server (If Running) – Optional Step

2. Login to WebLogic Server and set environment variable

cd $DOMAIN_HOME/bin   (where DOMAIN_HOME is directory in which your domain exists, default value is $MW_HOME/user_projects/domain/base_domain)

. ./

3. Create a initialization file using command

java <weblogic_username> <weblogic_user_password> .  (Note the DOT at end of this command)

For Example

java weblogic welcome1 . (Note the DOT at end of this command)

This will create file  DefaultAuthenticatorInit.ldift in directory from which you executed this command .

4. Move file DefaultAuthenticatormyrealmInit.ldift  from $DOMAIN_HOME/security/ and replace it by  DefaultAuthenticatorInit.ldift generated in step 3

5. Move data directory under $DOMAIN_HOME/servers/<serverName>/datato another directory like data.bak (data directory contains files related to embedded LDAP and role mapping file). Replace <serverName> with WebLogic Server like AdminServer and managed server. Repeat this step for all managed servers which are part of this domain.

This step will remove all existing users/groups from WebLogic’s embedded LDAP server (recreate these users/groups in setp8)

6.Recreate boot.properites (if any) under $DOMAIN_HOME/servers/<serverName>/security with username and password created in step 3 above like

7.Start (or restart) Admin Server and test if you can login to weblogic console using new username and password. 

8. Recreate any users/groups(which were part of default authenticator prior to new super user creation) or import existing users (from weblogic’s servers embedded LDAP server backup)

Share This Post with Your Friends over Social Media!

About the Author Atul Kumar

Oracle ACE, Author, Speaker and Founder of K21 Technologies & K21 Academy : Specialising in Design, Implement, and Trainings.

follow me on:

Leave a Comment:

balam says September 19, 2012

Hi There,
It is a awesome posting. Gr8, it saved me 1 day of recovery…

Thanks a lot

sloan mary says June 28, 2013

How to add a custom search template in component wizard ,so that it will be available to every user.

rajalaxmi says July 25, 2013

Can I reset password without disturbing the present users. Just can i update instead of losing all other user and recreating again.

    Atul Kumar says July 25, 2013

    If you know the existing password then you can login to console and change it without disturbing the present user. If you can’t remember the password then you must re-create the user.

armağan says June 10, 2014

If i have full domain_home backup .
(I backed up domain home directory by
tar -cvf /backup_domain.tar $DOMAIN_HOME ).
Is it work if i replace folders new one ?

    Atul Kumar says June 10, 2014

    Yes, It should . Only thing you need to worry about is JMS and TLOGS (If you are not using them then it should be fine) else roll back database too .

armağan says June 11, 2014

Thank you ver much sir,

Kind regards.

gsm says September 18, 2014

Hello Atul,
I am new to weblogic and soa. Currently I am using the same user id(weblogic) and password for WebLogic and SOA application. I would like to create a new user and password for SOA application with the same priveleges(weblogic). This will ensure that my users will not be able to login to the web console.

Hope you can assist me with this.


vikas says October 13, 2014

Hi Atul youy posts are very helfful.

I have changed my admin users(weblogic) password from console.

I have made the same changes into ucm server file.

But still after changing password I am not able to start UCM server.Actually it is coming into running state but I am not able to open UCM console.

I am getting logs as below.

Kindly help me on this.


vikas says October 14, 2014

Caused By: intradoc.common.ServiceException: !csConfigDirectoryIsNotValid,IdcHomeDir!syFileUtilsDirNotFound,\\s7-p401590MiddlewareOracle_ECM1ucmidc
at intradoc.common.FileUtils.validatePath(
at intradoc.server.LegacyDirectoryLocator.computeHomeDirectory(
at intradoc.server.LegacyDirectoryLocator.buildRootDirectories(
at intradoc.server.IdcSystemConfig.initConfigEarly(
at intradoc.server.IdcSystemConfig.loadInitialConfig(
at intradoc.server.IdcServerManager.init(
at intradoc.idcwls.IdcServletRequestUtils.initializeServer(
at intradoc.idcwls.IdcServletRequestUtils.initializeServer(
at intradoc.idcwls.IdcIntegrateWrapper.initializeServer(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at idcservlet.common.IdcMethodHolder.invokeMethod(
at idcservlet.common.ClassHelperUtils.executeMethodEx(
at idcservlet.common.ClassHelperUtils.executeMethodWithArgs(
at idcservlet.ServletUtils.initializeContentServer(
at idcservlet.ServletUtils.startAndConfigureServer(
at idcservlet.ServletUtils.initializeAllServers(
at idcservlet.IdcFilter.initContentServer(
at idcservlet.IdcFilter.init(
at weblogic.servlet.internal.FilterManager$
at weblogic.servlet.internal.FilterManager.loadFilter(
at weblogic.servlet.internal.FilterManager.preloadFilters(
at weblogic.servlet.internal.WebAppServletContext.preloadResources(
at weblogic.servlet.internal.WebAppServletContext.start(
at weblogic.servlet.internal.WebAppModule.startContexts(
at weblogic.servlet.internal.WebAppModule.start(
at weblogic.application.internal.flow.ModuleStateDriver$
at weblogic.application.utils.StateMachineDriver.nextState(
at weblogic.application.internal.flow.ModuleStateDriver.start(
at weblogic.application.internal.flow.ScopedModuleDriver.start(
at weblogic.application.internal.flow.ModuleListenerInvoker.start(
at weblogic.application.internal.flow.ModuleStateDriver$
at weblogic.application.utils.StateMachineDriver.nextState(
at weblogic.application.internal.flow.ModuleStateDriver.start(
at weblogic.application.internal.flow.StartModulesFlow.activate(
at weblogic.application.internal.BaseDeployment$
at weblogic.application.utils.StateMachineDriver.nextState(
at weblogic.application.internal.BaseDeployment.activate(
at weblogic.application.internal.EarDeployment.activate(
at weblogic.application.internal.DeploymentStateChecker.activate(
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(

kalyan says May 14, 2015

while executing
java.weblogic…….. cmd
i am getting ERROR
“Colud not find or load main class”

i have stopped wls by -tryed – error
also tyred while wls running -but same error . guide me pls!!

kalyan says May 14, 2015

while executing
java.weblogic…….. cmd
i am getting ERROR
“Could not find or load main class”

i have stopped wls by -tryed – error
also tyred while wls running -but same error . guide me pls!!

Abc says June 7, 2016

step no 2 is not working i am getting following error
Exception in thread “main” java.lang.NoClassDefFoundError: weblogic/security/utils/AdminAccount
Caused by: java.lang.ClassNotFoundException:
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
Could not find the main class: Program will exit.

please assist me ASAP

Darryl Price says June 10, 2018

And what if you get a class not found error when you attempt to execute the AdminAccount class? Either my classpath is set incorrectly OR the required class or JAR doesn’t exist on my system

nethi says January 30, 2019

How to reset weblogic password for SOA and OSB environments? Please provide steps if any one families on this.

Add Your Reply