Wednesday, February 3, 2016

Reset Weblogic Password

In order to reset the weblogic admin password incase of lost/forgotten

  1. Shut down the WebLogic domain, the managed servers, Admin Server and Node Manager.
  2. Set the following environment variables in the command prompt (cmd) to help you navigate easily, in my case for Windows O/S:
    • set MW_HOME=\Oracle\Middleware\Oracle_Home
    • set DOMAIN_HOME=%MW_HOME%\user_projects\domains\base_domain
      NB: If you are on Linux O/S, use export instead of set and $MW_HOME instead of %MW_HOME%
  3.  Rename the data folder under the AdminServer of the domain to old_data, this is the path: %DOMAIN_HOME%\servers\AdminServer\data
  4.  In the same command prompt that you opened earlier, set the environment variable of the domain by calling: %DOMAIN_HOME%\bin\setDomainEnv.cmd or ./setDomainEnv.sh in Linux.
  5. In the same command prompt, change directory to security folder: cd %DOMAIN_HOME%\security
  6. Inside the %DOMAIN_HOME%\security directory, move the file "DefaultAuthenticatorInit.ldift" to "%DOMAIN_HOME%\security\old\" In the next step, the command that we are going to run will create a new file “DefaultAuthenticatorInit.ldift” in the security folder
  7. Run the following command to reset or change admin password:
      java weblogic.security.utils.AdminAccount  weblogic welcome123 .
    • NB: "weblogic" is user name and "welcome123" is the new password which we need to set.
    • NB: The DOT at the end of the above command represents the current directory. A new "DefaultAuthenticatorInit.ldift" file will be created in the current directory when you execute the command.
  8. Update the "boot.properties" file under the directory %DOMAIN_HOME%\servers\AdminServer\security\ with your username and the new password.
  9. Now start the admin server using the new credentials from %DOMAIN_HOME%\bin\startWeblogic.cmd in Windows or ./startWeblogic.sh in Linux.
  10. Once the AdminServer started, login into the Admin console using the username and the new password
Check the WebLogic Documentation for further guidance

Reference : https://blogs.oracle.com/imc/entry/change_password_in_weblogic

XWindows : GUI mode for Installers from UNIX

When the installer is run from UNIX/Linux box, in order to display the installer in GUI mode,
run the following commands

In order to get the Magic cooki, run the below command.

> xauth list


above commands return for eg:
sc47losmp11/unix:12  MIT-MAGIC-COOKIE-1  83411ecb2ad996066a741fc4ded15dff



Now, add the magic cookie inorder to export display
> xauth add sc47losmp11/unix:12  MIT-MAGIC-COOKIE-1  83411ecb2ad996066a741fc4ded15dff

(or )

Install MobaXterm Software application which adds the magic cookie automatically and displays the installer in GUI Mode.

Thursday, February 12, 2015

HermesJMS

Steps to configure HermesJMS Tool for Weblogic.

Installation & Configuration :
http://weblogicissuesolutions.blogspot.in/2011/06/steps-to-configure-hermesjms-console-to.html


A video recording also available on configuration:
http://hermesjms.com/demos/ConfigureHermesWithWLS.html

Wednesday, September 28, 2011

Unix+Search in jars for a class

find . -name "*.jar" -print -exec jar tvf {} \; > out_file

Thursday, October 21, 2010

USB Setting

Hi friends r u feeling nervous to insert pendrives to u r PC with out u r
permission to disable USB ports just simple follow the given steps below:
Start->Run->Type =regedit
Then u can see the Registry Editor Select
HKEY_LOCAL_MACHINE->System->CurrentControlSet->Services->USBSTOR on right
side pane u can see the start option then double click on the start option
and chage the value 3 to any value above 50.

SQL : nth Max Salary

How to get nth Max salary record from employee table;

select ename from emp where sal=(select min(sal) from (select * from emp order by sal desc) where rownum<=n);

Here n denotes number, say if you need to retrieve 22nd Max salary then n=22 here.

Thursday, January 29, 2009

Excel 2000: Open each Excel spreadsheet in a different windows.

Open Windows Explorer
Select "Tools"
Select "Folder Options"
Select the "File Types" Tab
Scroll down to find and select the XLS extension
Click the "Advanced" Button
Select the "Open" action from the list
Click the "Edit..." Button
Where is says "Application used to perform action:"

/e "%1"

to the end of the file path and then uncheck use DDE checkbox.

Refer more @
http://www.eggheadcafe.com/software/aspnet/29922442/how-can-i-open-2-excel-fi.aspx