If your admin credential to login to weblogic console is locked up, this blog will definitely help you to unlock your credential.
Step-1: Firstly, open command prompt and navigate to below path - it will be little different for your system - you might get the actual path from oracle folder where the installed weblogic is placed.
C:\Oracle\Middleware\Oracle_Home\user_projects\domains\nestedcode\bin
Now Execute setDomainEnv.cmd command.
Step-2: Now go to following path : C:\Oracle\Middleware\Oracle_Home\user_projects\domains\nestedcode\security>
and run dir command, it should show the below folder structure.
C:\Oracle\Middleware\Oracle_Home\user_projects\domains\nestedcode\security>dir
Volume in drive C is Windows
Volume Serial Number is 54CB-B9CE
Directory of C:\Oracle\Middleware\Oracle_Home\user_projects\domains\nestedcode\security
28-12-2019 14:08 <DIR> .
28-12-2019 14:08 <DIR> ..
28-12-2019 14:08 3,408 DefaultAuthenticatorInit.ldift
28-12-2019 14:05 2,822 DefaultRoleMapperInit.ldift
28-12-2019 14:05 2,340 DemoIdentity.jks
28-12-2019 14:05 80 SerializedSystemIni.dat
28-12-2019 14:05 31,802 XACMLRoleMapperInit.ldift
5 File(s) 40,452 bytes
2 Dir(s) 658,015,309,824 bytes free
Step-3: Now time to fire the below command to rename following directory
C:\Oracle\Middleware\Oracle_Home\user_projects\domains\nestedcode\security>rename DefaultAuthenticatorInit.ldift DefaultAuthenticatorInit_old.ldift
Step-1: Firstly, open command prompt and navigate to below path - it will be little different for your system - you might get the actual path from oracle folder where the installed weblogic is placed.
C:\Oracle\Middleware\Oracle_Home\user_projects\domains\nestedcode\bin
Now Execute setDomainEnv.cmd command.
Step-2: Now go to following path : C:\Oracle\Middleware\Oracle_Home\user_projects\domains\nestedcode\security>
and run dir command, it should show the below folder structure.
C:\Oracle\Middleware\Oracle_Home\user_projects\domains\nestedcode\security>dir
Volume in drive C is Windows
Volume Serial Number is 54CB-B9CE
Directory of C:\Oracle\Middleware\Oracle_Home\user_projects\domains\nestedcode\security
28-12-2019 14:08 <DIR> .
28-12-2019 14:08 <DIR> ..
28-12-2019 14:08 3,408 DefaultAuthenticatorInit.ldift
28-12-2019 14:05 2,822 DefaultRoleMapperInit.ldift
28-12-2019 14:05 2,340 DemoIdentity.jks
28-12-2019 14:05 80 SerializedSystemIni.dat
28-12-2019 14:05 31,802 XACMLRoleMapperInit.ldift
5 File(s) 40,452 bytes
2 Dir(s) 658,015,309,824 bytes free
Step-3: Now time to fire the below command to rename following directory
C:\Oracle\Middleware\Oracle_Home\user_projects\domains\nestedcode\security>rename DefaultAuthenticatorInit.ldift DefaultAuthenticatorInit_old.ldift
If you execute dir now below folder structure should be available now.
C:\Oracle\Middleware\Oracle_Home\user_projects\domains\nestedcode\security>dir
Volume in drive C is Windows
Volume Serial Number is 54CB-B9CE
Directory of C:\Oracle\Middleware\Oracle_Home\user_projects\domains\nestedcode\security
01-05-2020 09:28 <DIR> .
01-05-2020 09:28 <DIR> ..
28-12-2019 14:08 3,408 DefaultAuthenticatorInit_old.ldift
28-12-2019 14:05 2,822 DefaultRoleMapperInit.ldift
28-12-2019 14:05 2,340 DemoIdentity.jks
28-12-2019 14:05 80 SerializedSystemIni.dat
28-12-2019 14:05 31,802 XACMLRoleMapperInit.ldift
5 File(s) 40,452 bytes
2 Dir(s) 658,023,038,976 bytes free
Step-4: Execute the below command to update new password for weblogic account. Note there is a (.) dot after password123 - which means to update in current directory.
C:\Oracle\Middleware\Oracle_Home\user_projects\domains\nestedcode\security>java weblogic.security.utils.AdminAccount weblogic password123 .
Step-5: Update the below file with username and password
path - C:\Oracle\Middleware\Oracle_Home\user_projects\domains\nestedcode\servers\AdminServer\security
boot.properties
password=password123
username=weblogic
Step-6: Rename ldap folder using below command.
C:\Oracle\Middleware\Oracle_Home\user_projects\domains\nestedcode\servers\AdminServer\data>rename ldap ldap_old
C:\Oracle\Middleware\Oracle_Home\user_projects\domains\nestedcode\servers\AdminServer\data>dir
Volume in drive C is Windows
Volume Serial Number is 54CB-B9CE
Directory of C:\Oracle\Middleware\Oracle_Home\user_projects\domains\nestedcode\servers\AdminServer\data
01-05-2020 09:35 <DIR> .
01-05-2020 09:35 <DIR> ..
28-12-2019 14:10 <DIR> console
28-12-2019 14:08 <DIR> ldap_old
28-12-2019 14:08 <DIR> store
0 File(s) 0 bytes
5 Dir(s) 658,022,256,640 bytes free
Step-7: All good; now start the admin console
C:\Oracle\Middleware\Oracle_Home\user_projects\domains\nestedcode\bin>startWebLogic.cmd
you should be able to see the below log in cmd screen
<1 May, 2020 9:42:24,273 AM IST> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.>
<1 May, 2020 9:42:24,289 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.>
Still if you are facing any issue please let me know in below comment box or email at mailusqueries@gmail.com
No comments:
Post a Comment