Tuesday, October 1, 2013

Configure a WebLogic Server Background Service

Configure a WebLogic Server Background Service

server running in the background which is very much required in Production and Test Environments where your operating platform is Windows NT based. Whenever the Windows server is rebooted the WebLogic Admin server or Managed servers running on it are going to started automatically, when they are configured with windows ‘services’.

  1. Use WebLogic existing Domain or Create a Domain for testing 
  2. Create a installation Script per WebLogic server such as AdminServer or Managed Server
  3. Create a .cmd let us workout per AdminServer  with the following  Open notepad or any editor to write the following Windows batch Script

    echo off
    SETLOCAL
    set DOMAIN_NAME=demoDomain                          
    set USERDOMAIN_HOME=F:\irfan\demoDomain  
    set SERVER_NAME=AdminServer         
    call "F:\Oracle\wlserver\server\bin\installSvc.cmd"    
    ENDLOCAL
    

    Write the above code and SAVE it with ‘AdminServerSrv.cmd’ in your domain\bin
  4. open a new CMD prompt with Admin permissions.
  5. Window button + R will give you program that to run “Services.msc”

Upto the WebLogic 10.3.6 it was beasvc binary now it is changed in the WebLogic 12c it is wlsvc file. This will be invoked by installSvc.cmd file. Once the WebLogic server is started in the Operating system services then it will be give access through the Admin Console that you usually use http://adminhost:adminport/console.

Uninstalling the WebLogic server from windows Service

Step 1: Open one more edit window or notepad write the following script commands using “unintallSvc.cmd”
echo off
SETLOCAL
set DOMAIN_NAME=demoDomain                                
set USERDOMAIN_HOME=F:\irfan\demoDomain       
set SERVER_NAME=AdminServer       
call "F:\Oracle\wlserver\server\bin\uninstallSvc.cmd"    
ENDLOCAL

Blurb about this blog

Blurb about this blog

Essential Middleware Administration takes in-depth look at the fundamental relationship between Middleware and Operating Environment such as Solaris or Linux, HP-UX. Scope of this blog is associated with beginner or an experienced Middleware Team members, Middleware developer, Middleware Architects, you will be able to apply any of these automation scripts which are takeaways, because they are generalized it is like ready to use. Most of the experimented scripts are implemented in production environments.
You have any ideas for Contributing to a Middleware Admin? mail to me wlatechtrainer@gmail.com
QK7QN6U9ZST6