This discussion is archived
7 Replies Latest reply: Sep 24, 2012 12:35 PM by Faisal Khan RSS

Appropriate Steps To change the weblogic password in Cluster ENV

947991 Newbie
Currently Being Moderated
Hi Experts,

We need to change the password for weblogic(10.3.3) as activity. It would be helpful , if you can provide us , what would be the best ways to change it and what sequence we should follow for changing the password and then Bouncing

Two Physical Servers.

Server One : Admin Server and Managed Server

Server Two : Managed Server Only

Regards
Sourabh Gupta
  • 1. Re: Appropriate Steps To change the weblogic password in Cluster ENV
    Kalyan Pasupuleti-Oracle Expert
    Currently Being Moderated
    Hi Sourabh,

    1-First set environment variables
    export BEAHOME=/u01/app/oracle/product/middleware
    export DOMAIN_HOME=$BEAHOME/user_projects/domains/base_domain
    export CLASSPATH=$CLASSPATH:$BEAHOME/wlserver_10.3/server/lib/weblogic.jar
    cd $DOMAIN_HOME/bin
    . ./setDomainEnv.sh

    2- Now execute the command below to create the new password
    cd ../security
    mv DefaultAuthenticatorInit.ldift oldDefaultAuthenticator
    java weblogic.security.utils.AdminAccount weblogic new_password . --DON'T FORGET THE "."


    3- If it exists remove boot.properties file

    cd ../servers/AdminServer
    mv data data_old
    cd security/
    mv boot.properties oldboot.properties

    4- Restart Weblogic server

    cd $DOMAIN_HOME./startWebLogic.sh

    Regards,
    Kal
  • 2. Re: Appropriate Steps To change the weblogic password in Cluster ENV
    947991 Newbie
    Currently Being Moderated
    Hi Kalyan,

    We do this steps when we forget the weblogic password. My Question is on sequence.

    But We did :

    Change Weblogic Password from Security Realm and then edit the boot.properties. Bounce the Admin Server.

    Then Change the Password for Managed Server ( from the front end ) and bounce the managed server.

    Navigation : Console--> Environment--> Servers--> (OIM server name)--> Configuration--> Server Start.

    If we have clustered env , How should Be folllow ? Should be do the same steps as mentioned above on both the nodes or through one Server is suffice.

    One thing I want to tell you , once we did the steps as mentioned by you , you may be in trouble. Because Have same issue earlier where we forget the weblogic password and change like the way you said , What happened after that our deployments are getting failed , Because Our deployment using INternal User ( related to OIM) get missing . My understanding is weblogic stores all the users in ldift file , once we replace it all users may be removed ( Not Sure though) .

    Please pass you suggestion


    Regards
    Sourabh Gupta
  • 3. Re: Appropriate Steps To change the weblogic password in Cluster ENV
    timdaly - oracle Explorer
    Currently Being Moderated
    Souyrabh,

    The method suggestion above is perhaps not the simplest way to change the password of a user (it's really a low level way, suggested when you don't know the password on a server).

    A quick google gave me this -> http://jvzoggel.wordpress.com/2012/01/08/changing-weblogic-user-password/

    I assume as you are talking about multiple physical servers then you are looking for a domain wide method to change the passwords and how to update the boot.properties to enable the servers to start without entering the credentials each time.

    You can't set the password to be different on different servers. I assume this is not what you are trying to do, but you post isn't very clear.
  • 4. Re: Appropriate Steps To change the weblogic password in Cluster ENV
    947991 Newbie
    Currently Being Moderated
    Hi Eramas,

    We are keeping the same password in the domain.

    Server1 = Admin Server + Managed Server

    Server 2 = Managed Server

    How we are changing :

    1) Open the Admin Console : goto to security--> my realms --> User and Group and Changed password. and also in the boot.properties file of Admin Server

    2) Managed Servers :

    Console--> Environment--> Servers--> (Managed Server )--> Configuration--> Server Start.

    As per my understanding do the step 1 and Step 2

    3) Bring down All the services. ( First Managed Servers then Admin Server)

    4) Bring up services ( Admin and Managed Services).




    Regards
    Sourabh Gupta
  • 5. Re: Appropriate Steps To change the weblogic password in Cluster ENV
    896779 Newbie
    Currently Being Moderated
    Hi Sourabh85,

    I had a similar situation sometime ago and this what I did.

    1. Changed the servers start mode from production to development (this avoids focusing on boot.properties)
    2. Shutdown all Server Instances
    3. Take backup of WebLogic Domains from both the physical servers
    4. Remove /tmp, /cache folders under all server instances
    5. Remove boot.properties from all /security folder of all server instances
    6. Bring up Admin Server
    7. Change the admin server password through console
    8. Change the password for managed servers from remote start tab
    9. Bring up the managed servers one by one
    10. Add boot.properties file
    11. Change development mode of servers instances to production mode
    12. shutdown and start all instances

    Good to go...let me know if you have any further questions.

    Thanks

    Lawrence Manickam
  • 7. Re: Appropriate Steps To change the weblogic password in Cluster ENV
    Faisal Khan Expert
    Currently Being Moderated
    You can refer this link as well for resetting weblogic admin username and password

    http://weblogic-wonders.com/weblogic/2009/12/15/resetting-admin-username-password/

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points