weblogic configuring domain using templates

27
A Hands-On Guide for Configuring Domain using Templates Description: BISP is committed to provide BEST learning material to the beginners and advance learners. In the same series, we have prepared a complete end-to end Hands-on Guide for WebLogic Administration. The document focuses on how to Configuring Domain using Templates.Join our professional training program and learn from experts. History: Version Description Change Author Publish Date 0.1 Initial Draft Kuldeep Mishra 12th Aug 2012 0.1 Review#1 Amit Sharma 18 th Aug 2012 www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 1

Upload: amit-sharma

Post on 28-Apr-2015

1.997 views

Category:

Documents


3 download

DESCRIPTION

BISP is committed to provide BEST learning material to the beginners and advance learners. In the same series, we have prepared a complete end-to end Hands-on Guide for WebLogic Administration. The document focuses on how to Configuring Domain using Templates.Join our professional training program and learn from experts.

TRANSCRIPT

Page 1: WebLogic Configuring Domain using Templates

A Hands-On Guide forConfiguring Domain using Templates

Description: BISP is committed to provide BEST learning material to the beginners and advance learners. In the same series, we have prepared a complete end-to end Hands-on Guide for WebLogic Administration. The document focuses on how to Configuring Domain using Templates.Join our professional training program and learn from experts.

History:Version Description Change Author Publish Date0.1 Initial Draft Kuldeep Mishra 12th Aug 20120.1 Review#1 Amit Sharma 18th Aug 2012

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 1

Page 2: WebLogic Configuring Domain using Templates

ContentsStep 1: What is Domain Template...............................................................................................................................................3

Step 2: Invoke config_builder.cmd..............................................................................................................................................3

Step 3: Create a New Template...................................................................................................................................................4

Step 4: Select a Template Domain Source...................................................................................................................................4

Step 5: Describe the Template....................................................................................................................................................5

Step 6: Specify Template Jar Name and Location........................................................................................................................5

Step 7: Configure Administrator User Name and Password........................................................................................................7

Step 8: Specify Start Menu Entries..............................................................................................................................................8

Step 9: Prepare Scripts and Files with Replacement Variables....................................................................................................8

Step 10: Review WebLogic Domain Template.............................................................................................................................9

Step 11: Creating Template.........................................................................................................................................................9

Creating a New WebLogic Domain from the Template.........................................................................................................10

Step1: Invoke config.cmd......................................................................................................................................................10

Step 2: Create a new WebLogic domain................................................................................................................................11

Step 3: Select Domain Source................................................................................................................................................11

Step 4: Specify Domain Name and Location..........................................................................................................................13

Step 5: Configure Administration Username and Password..................................................................................................13

Step 6: Configure Server Start Mode and JDK........................................................................................................................14

Step 7: Configure the Administration Server section.............................................................................................................15

Step 8: Configure Managed Server........................................................................................................................................15

Step 9: Configure Cluster......................................................................................................................................................16

Step 10: Configure RDBMS Security Store Database.............................................................................................................17

Step 11: Configuration Summary...........................................................................................................................................18

Step 12: Creating Domain......................................................................................................................................................19

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 2

Page 3: WebLogic Configuring Domain using Templates

Step 1: What is Domain Template Domain templates are used to create (or extend weblogic server domains) with pre-configured resources such as JDBC, security realms, external libraries, log4j components. So when we create new domain we do not need to go to server console and create resources such as data source, etc.  While creating domain by using template we will have those resources configured already for us.

Step 2: Invoke config_builder.cmd Go to Start Menu->All programs->Oracle Weblogic -> WebLogic Server 11gR1->Tools- >Domain Template Builder (or) Go to command prompt and Start the Domain Template Builder:Oracle\Middleware\wlserver_10.3\common\bin\config_builder.cmd

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 3

Page 4: WebLogic Configuring Domain using Templates

Step 3: Create a New Template Select create a domain template. If you are creating template for the first time. Select create extension template if you are extending a existing template. Here we go for create a domain template.

Step 4: Select a Template Domain Source Click the Select a Template tab. Review and retain the default values.

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 4

Page 5: WebLogic Configuring Domain using Templates

Step 5: Describe the TemplateEnter the name as My Template and the description as shown in the screen. Then, click Next.

Step 6: Specify Template Jar Name and Location Enter the Template Jar Name and Location. Then, click Next.

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 5

Page 6: WebLogic Configuring Domain using Templates

Step 6 B): Add Files

In the Add Files step, click Next.

Step 6 C): Add SQL Scripts In the Add SQL Scripts step, click Next.

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 6

Page 7: WebLogic Configuring Domain using Templates

Step 7: Configure the Administrator Server

In the Configure the Administration Server step, provide the following values as shown in below image and then click Next.

Step 7: Configure Administrator User Name and Password In the Configure Administration Username and Password step, provide the following values as shown in below image. and then click Next.

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 7

Page 8: WebLogic Configuring Domain using Templates

Step 8: Specify Start Menu Entries In the Specify Start Menu Entries step, click Next.

Step 9: Prepare Scripts and Files with Replacement Variables In the Prepare Scripts and Files with Replacement Variables step, click Next.

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 8

Page 9: WebLogic Configuring Domain using Templates

Step 10: Review WebLogic Domain Template In the Review WebLogic Domain Template step, click Create.

Step 11: Creating Template Notice that the new template gets created. After it completes, click Done. We can navigate to the C:/oracle/Middleware/user_templates location to view the newly created template.

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 9

Page 10: WebLogic Configuring Domain using Templates

Creating a New WebLogic Domain from the Template

To create a new WebLogic Server domain from the domain template just created, perform the following steps:

Step1: Invoke config.cmd

Navigate to /oracle /Middleware/wlserver_10.3/common/bin / config.cmd

(windows) or config.sh(Unix) and run the following file to start the Oracle WebLogic Configuration Wizard.

Then enter this command to run the configuration wizard: ./config.cmd(windows) or ./config.sh(unix)

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 10

Page 11: WebLogic Configuring Domain using Templates

Step 2: Create a new WebLogic domain

Select the Create a new WebLogic domain option and click Next.

Step 3: Select Domain Source

In the Select Domain Source step, select the Base this domain on an existing template option and click Browse.

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 11

Page 12: WebLogic Configuring Domain using Templates

Select my.template_10.3.3.0.jar from the /oracle/Middleware/user_templates location and click OK. Then, click Next.

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 12

Page 13: WebLogic Configuring Domain using Templates

Step 4: Specify Domain Name and Location In the Specify Domain Name and Location step, enter the domain name as Mydomain and it's location then click Next.

Step 5: Configure Administration Username and Password In the Configure Administration Username and Password step, provide the following values and then click Next.

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 13

Page 14: WebLogic Configuring Domain using Templates

Step 6: Configure Server Start Mode and JDK In the "Configure Server Start Mode and JDK" window, under the WebLogic Domain Startup Mode, select the Production Mode option. Select Available JDKs and under it select the Sun JDK. or select JRockit. We may have more than one JDK. Then click Next.

Select Optional Configuration Create Domain with one Administration Server and two Managed Server Instance in Cluster . Here to create new Domain with one Administration Server and two Managed Server.

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 14

Page 15: WebLogic Configuring Domain using Templates

Step 7: Configure the Administration Server section

In the Configure the Administration Server section, retain the default values and then click Next.

Step 8: Configure Managed Server. In the Configure Managed Servers step, click Add to append the two managed servers with default values.

Here we see two managed server and then click Next.

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 15

Page 16: WebLogic Configuring Domain using Templates

Step 9: Configure Cluster

In the Configure Clusters window, just click Next.

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 16

Page 17: WebLogic Configuring Domain using Templates

Step 10: Configure Machines

In the Configure Machines step, click Next.

Step 10: Configure RDBMS Security Store Database. In the Configure RDBMS Security Store Database, click Nex.

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 17

Page 18: WebLogic Configuring Domain using Templates

Step 11: Configuration Summary

In the Configuration Summary window, click Create.

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 18

Page 19: WebLogic Configuring Domain using Templates

Step 12: Creating Domain

In the Creating Domain window, after the progress bar reaches 100%, click Done.

  A WebLogic Server domain based on the domain template has now been created.

Navigate to \Oracle\Middleware\user_projects\domains and view the content of the newly created domain.

 

www.bispsolutions.com | www.hyperionguru.com | weblogicexperts.wordpress.com | Page 19