Skip to content

Instantly share code, notes, and snippets.

@klearchos
Created January 17, 2018 15:49
Show Gist options
  • Save klearchos/6a6754514c2a7edd46aa4866d5278449 to your computer and use it in GitHub Desktop.
Save klearchos/6a6754514c2a7edd46aa4866d5278449 to your computer and use it in GitHub Desktop.
Reset the credentials for Oracle Weblogic 11g & 12G
1. Run the ./oracle/Middleware/wlserver/server/bin/setWLSEnv.sh
2. Make sure that the CLASSPATH contains the weblogic.jar
3. Go under the /home/weblogic/oracle/Middleware/user_projects/domains/<domain home>/security
4. Delete the DefaultAuthenticatorInit.ldift
5. Run the java weblogic.security.utils.AdminAccount weblogic weblogic1 .
Go under the /home/weblogic/oracle/Middleware/user_projects/domains/<home domain>/servers/<AdminServer>/security and edit the boot.properties
6. Set the new username & password from the previous step
7. Go under the /home/weblogic/oracle/Middleware/user_projects/domains/<home domain>/servers/<AdminServer>/data/ldap and delete the file DefaultAuthenticatormyrealmInit.initialized. This will make sure that during the next startup the system will pick the new credentials.
8. Restart.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment