Saturday, October 31, 2015

Import/ Export users and groups from provider DefaultAuthenticator Using WLST


Weblogic Users And Groups Migration from Weblogic 10.3.6 To Weblogic 12.1.3 Using Admin Console

Below Demo Shows Users And Groups Migration From weblogic 10.3.6 To weblogic 12.1.3 Using Weblogic Admin Console For Specific Provider(say DefaultAuthenticator)

1. Below screen shot shows users and groups in weblogic 10.3.6.0

Login To 10.3.6  WebLogic Admin Console ==> Click on "Security Realms"==>Click on myrealm==>Click on "Users And Groups" ==>Click on Users


    Click on Groups

2. Export Users And Groups Into a .dat file Say DefaultAuthenticator.dat and locate at /oracle/Middleware1036/export/


Login To 10.3.6 WebLogic Admin Console ==> Click on "Security Realms"==>Click on myrealm==>Click on ==> Providers ==> Click on DefaultAuthenticator ==> Click on Migration ==>Click on Export ==> Export Format: DefaultATN ==> Export File on Server /oracle/Middleware1036/export/DefaultAuthenticator.dat ==> Click on Save



3. Check export file generated or not


4. Now Login To 12.1.3.0 Weblogic Admin Console And Import "Users And Groups"

  • Check Current Users And Groups Settings


  •    Perform import using below steps

 Login to Weblogic Admin Console 12.1.3.0 ==> Click on "Security Realms"==>Click on myrealm==>Click on ==> Providers ==> Click on DefaultAuthenticator ==> Click on Migration ==>Click on Import ==> Import Format: DefaultATN  ==> Enter the location of exported file /oracle/Middleware1036/export/DefaultAuthenticator.dat  ==> Click on Save



5. Verify Users And Groups in weblogic 12.1.3.0 

Login To 12.1.3  WebLogic Admin Console ==> Click on "Security Realms"==>Click on myrealm==>Click on "Users And Groups" ==>Click on Users


    Click on Groups





COMPLETED...................















Search Keys: wls users and groups export and imports ; wls user migration ; weblogic group migration ; weblogic users export import ; Import/ Export users and groups from provider DefaultAuthenticator ; user migration from one weblogic domain to another weblogic domain

Wednesday, October 28, 2015

Oracle Weblogic Server Installation 10.3.6.0

Assumptions
==========

  • We have installed JDK1.7U80 and JAVA_HOME=/home/JDK1.7/jdk1.7.0_80
  • Installing Weblogic in GUI Mode I am Using XLaunch
  • Weblogic installer wls1036_generic.jar is located at /home/jagannathm/wls1036
  • User is jagannathm and group is oinstall
  • Middleware Location is /home/jagannathm/Middleware10.3.6 

1.  Execute below command for Launching weblogic installer

      cd /home/jagannathm/wls1036
      /home/JDK1.7/jdk1.7.0_80/bin/java -jar wls1036_generic.jar


    Note: For getting GUI set the Display for X11 Forwarding by following below link
    Link: http://blogbyjagan.blogspot.in/2015/11/setting-display-for-x-forwarding-using.html

2. Welcome Screen ==> Shows about which product your installing


3. Click on Create New Middleware Home ==>Browse and Select "/home/jagannathm/Middleware10.3.6" Directory


4. "Register For Security Update" ==> Provide Your My Oracle Support Email Address OR Skip This Step

5.  Chose Install Type ==> Select Typical


6. Select JDK


7. Chose Product Installation Directories ==> By default selected click on Next


8. Review The Installation Summary ==>Click on Next



9. Installation Complete ==> Uncheck the "Run quick Start" ==>Click on Done


10. Review The Weblogic Installation Directory For Checking Binaries 

11. Domain Creation 

       Execute below commands for launching domain creation Wizard
     
       cd /home/jagannathm/Middleware10.3.6/wlserver_10.3/common/bin
       ./config.sh
   
       Welcome Screen will come ==> Select Radio Button Against "Create New Weblogic Domain"==> Click on Next


12. Domain Source Will Be Selected By Default In Case If You have Domain Template then Select the One otherwise just Click on Next


13. Specify Domain Name Say prod_domain ==> Click on Next



14. Configure Administrator Username And Password ==> Click on Next



15. Configure Server Start Mode And JDK ==> Select Production Mode ==> Click on Next


16. Select Optional Configuration ==> Select First Two Options


17. Configure Administration Server ==> Provide all inputs click on Next 


18. Add Two Managed servers ms1 and ms2


19. Configure Cluster==> Click on Add ==>  Provide Cluster Name As prod_cluster ==>Click on Next


20. Add ms1 and ms2 to prod_cluster


21. Configure Machine ==> Click on Unix Machine ==> Click on Add ==> Name prod_machine==>port 5556==>listen address localhost


22. Add ms1 and ms2 to prod_machine


23. Review Configuration Summary ==> Click on Create


24. After 100% installation progress Click on Done.

      Note down the weblogic admin console URL : http://localhost:7001/console


25. Start AdminServer using below command and provide username and password on prompt

   cd /home/jagannathm/Middleware10.3.6/user_projects/domains/prod_domain/bin
 
   ./startWebLogic.sh


   After Server State Changed to RUNNING  Just Do CTRL+C for stopping weblogic admin server

26. Set-up boot.properties file for passing weblogic admin username and password at server boot.

   cd /home/jagannathm/Middleware10.3.6/user_projects/domains/prod_domain/servers/AdminServer

    mkdir security

    vi boot.properties
    username=weblogic
    password=welcome1

Save and Exit

27. Now Again start AdminServer using below command in background 

      cd /home/jagannathm/Middleware10.3.6/user_projects/domains/prod_domain/bin
 
      nohup ./startWebLogic.sh &

28. Start NodeManager and change below parameters in nodemanager.properties


  • Start nodemanager using below command

       cd /home/jagannathm/Middleware10.3.6/wlserver_10.3/server/bin
     
       nohup ./startNodeManager.sh &

       This will create nodemanager.properties file in nodemanager home
       /home/jagannathm/Middleware10.3.6/wlserver_10.3/common/nodemanager


  •  Now stop the nodemanager by killing nodemanager process



  •  Change below parameters in nodemanager.properties file located at 
        /home/jagannathm/Middleware10.3.6/wlserver_10.3/common/nodemanager
   
        ListenAddress=localhost
        SecureListener=false

  •  Now start nodemanager again by using below commands
        
       cd /home/jagannathm/Middleware10.3.6/wlserver_10.3/server/bin
     
       nohup ./startNodeManager.sh &

29. Check Nodemanager status in admin console its should be reachable

30. Start Managed Servers ms1 and ms2 using admin console




Monday, October 26, 2015

Step by Step Instructions for Installing And Configuring Domain For weblogic 9.2 MP3

SUMMARY

  1. Check The Certification Matrix for "Weblogic 9.2 MP3"
  2. Create OS User and Group 
  3. Create Middleware Directory for Binary Installation, Domain Directory for Domain Creation And jdk5u61 For Java Installation
  4. Assign Roles And Permission To Middleware, Domain And jdk5u61 Directories 
  5. Install JAVA in jdk5u61 Directory
  6. Install "Weblogic 9.2 MP3" Binaries In Middleware Home
  7. Create a Domain Say prod_domain in Domain Directory
  8. Start AdminServer And Login to Admin Console
  9. Create Managed Servers ms1 and ms2
  10. Create Cluster Say prod_cluster And Add ms1 and ms2 to prod_cluster
  11. Create Machine Say prod_machine And Configure NodeManager
  12. Associate ms1 and ms2 with prod_machine 
  13. Start the NodeManager And Check the Status of prod_machine
  14. Start Managed servers ms1 And ms2


**************************** STARTING ********************************

1. Check The Certification Matrix for "Weblogic 9.2 MP3"


  • Use the below link for checking "Supported Configurations for WebLogic Platform 9.2 "

          https://docs.oracle.com/cd/E13196_01/platform/suppconfigs/configs92/92_over/overview.html

         In My Case I am using below Combination
       
         Weblogic 9.2 MP3, Redhat Enterprise Linux 5 x64 Bit And JDK5u61 x64 Bit

2. Create OS User and Group 

     groupadd -g 54321 oinstall
     useradd -u 54322 -g oinstall jagannathm
     passwd jagannathm




3. Create Middleware Directory for Binary Installation And Create Domain Directory for Domain Creation

     mkdir Middleware
     mkdir Domain
     mkdir jdk5u61




4. Assign Roles And Permission To Middleware And Domain Directories 

    chown -R jagannathm:oinstall /home/jagannathm/Middleware
    chown -R jagannathm:oinstall /home/jagannathm/Domain
    chown -R jagannathm:oinstall /home/jagannathm/jdk5u61

    chmod 775 /home/jagannathm/Middleware
    chmod 775 /home/jagannathm/Domain/
    chmod 775 /home/jagannathm/jdk5u61




5. Install JAVA in jdk5u61 Directory

  • Login as user jagannathm     
          su - jagannathm
  • Execute below commands for installing JAVA
           cd /home/jagannathm/jdk5u61/
           ./jdk-1_5_0_61-linux-x64.bin


  • After executing above command it will create JAVA_HOME

          JAVA_HOME=/home/jagannathm/jdk5u61/jdk1.5.0_61



  • Add JAVA_HOME in .bash_profile for setting JAVA_HOME 

6. Install "Weblogic 9.2 MP3" Binaries In Middleware Home        


  • Execute below command for launching GUI for weblogic installer 

          java -jar server923_generic.jar


         Note: For Getting GUI set the Display for X11 Forwarding Using Below Link
                   Link: http://blogbyjagan.blogspot.in/2015/11/setting-display-for-x-forwarding-using.html
  • Welcome screen appears ==> Click on Next



  • "Chose BEA Home Directory" ==> Select Middleware directory ==> Click on Next



  • "Chose Install Type" ==> Complete ==> Click on Next



  • "Chose Product Installation Directories" ==> By Default everything will be selected ==> Click on Next 



  • "Installation Complete" ==> Uncheck the "Run Quickstart" ==> Click on Done


7. Create a Domain Say prod_domain in Domain Directory

  • Execute below command for launching domain creation Wizard  

          cd /home/jagannathm/Middleware/weblogic92/common/bin
          ./config.sh


  • Welcome Screen will Come ==> Click on Next


  • "Select Domain Source" ==> By Default Template Will Be Selected ==> Click on Next



  • "Configure Administrator Username And Password" ==> Enter Username And Password ==>Click on Next 



  • "Configure Server Start Mode And JDK" ==> Select Development Mode (As i am using Sun JDK)==> Click on Next 



  • "Customize Environment And Services Settings" ==> Click on No (We will create/configure later)==>Click on Next


  • "Create Weblogic Domain" ==> Enter prod_domain ==> Click on Create


  • "Creating Domain" ==> After 100% Progress ==> Click on Done

8. Start AdminServer And Login to Admin Console


  • Use below command for starting AdminServer


     cd cd /home/jagannathm/Domain/prod_domain/bin
     nohup ./startWebLogic.sh &



  • Use below URL for accessing weblogic Admin Console 

           http://localhost:7001/console



9. Create Managed Servers ms1 and ms2


  •      Click on "Lock And Edit" ==> Click on New ==> Server Name ms1 ==>Server Listen Address 192.168.145.128 ==> Listen Port 8001==> Click on Activate Changes


   Follow Same procedure for creating ms2

10. Create Cluster Say prod_cluster And Add ms1 and ms2 to prod_cluster


  •         Click on Lock And Edit ==> Click on Cluster ==> Click on New ==>Name prod_cluster ==>Multicast Address: IP ==> Multicast Port:7001 ==>Click on OK ==> Click on Activate Changes



  • For Adding ms1 and ms2 to cluster follow below procedure

          Click on Clusters==> Click on prod_cluster ==> Configurations==> Servers ==> Lock And Edit ==> Click on Add==> Select ms1==> Click on Next ==> Click on Add==> Select ms2==> Click on Next ==>Activate Changes

11. Create Machine Say prod_machine And Configure NodeManager

Next Update Will Be Available Soon.......