Creating Oracle WebLogic Server Domain by Using a New Domain Template

This OBE tutorial describes and shows you how to configure a domain template.

Approximately 1 hour

Topics

This OBE tutorial covers the following topics:

Place the cursor over this icon to load and view all the screenshots for this tutorial. (Caution: Because this action loads all screenshots simultaneously, response time may be slow depending on your Internet connection.)

Note: Alternatively, you can place the cursor over each individual icon in the following steps to load and view only the screenshot associated with that step.

The screenshots will not reflect the specific environment you are using. They are provided to give you an idea of where to locate specific functionality in Oracle WebLogic Server.

Overview

By using a customized domain template, you can create domains for multiple development, test, and production environments. You need to use the Domain Template Builder to create and use a customized domain template.


Back to Topic List

Scenario

Dizzyworld system architect has decided to use customized domain template that can be used to create additional domains. To implement this, the domain template builder will be used.

Back to Topic List

Verifying the Prerequisites

Before you start the tasks, make sure that your system environment meets the following requirements:

Software Requirements

The system should have Oracle WebLogic Server 10.3 installed.

Setup Requirements

You should have completed the following OBEs:

Back to Topic List

Creating a New Template


To create a new template, perform the following steps:

1.

Navigate to /u01/app/oracle/product/Middleware/wlserver_10.3/common/bin and run the following file to start the domain template builder:

$ ./config_builder.sh

 

2.

Select the Create a Domain Template option and click Next.

 

3.

Click the Select a Template tab. Review and retain the default values.

 

 

4.

Click the Select a Domain tab. Under the Select a WebLogic domain directory section, click the "+" sign corresponding to wlserver_10.3 > samples and select medrec. Then, click Next.

 

5.

Enter the name as MyTemplate and the description as shown in the screen. Then, click Next.

6.

In the Add or Omit Applications step, retain the default values and click Next.

 

7.

In the Add Files step, click Next.

 

 

8.

In the Add SQL Scripts step, click Next.

 

9.

In the Configure the Administration Server step, provide the following values and then click Next.

Parameter Value
Name MedRecAdminServer
Listen address EDRSR39P1
Listen port 7011
SSL listen port 7012
SSL enabled Yes

Note: The Listen address will vary depending on your environment setup.

 

10.

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

Parameter Value
User name test
User password welcome1
Description This user is the default administrator
Configure additional users, groups, and global roles No

 

11.

In the Specify Start Menu Entries step, click Next.

 

12.

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

 

13.

In the Review WebLogic Domain Template step, click Next.

 

14.

In the Create a Template step, enter the Template jar name as Mymedrectemplate and then click Create.

Note: Retain the Template location value as default.

 

15.

Notice that the new template gets created. After it completes, click Done. You can navigate to the /u01/app/oracle/product/Middleware/user_templates location to view the newly created template.

 

Back to Topic List

Creating a New WebLogic Domain

To create a new WebLogic domain, perform the following steps:

1.

Navigate to /u01/app/oracle/product/Middleware/wlserver_10.3/common/bin and run the following file to start the Oracle WebLogic Configuration Wizard:

$ ./config.sh

 

 

2.

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

 

3.

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

 

4.

Select Mymedrectemplate.jar from the /u01/app/oracle/product/Middleware/user_templates location and click OK. Then, click Next.

 

 

5.

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

Parameter Value
User name test
User password welcome1
Description This user is the default administrator

Note: Retain the default values as is because based on the template selected, most of the values get prepopulated by default.

 

6.

In the Configure Server Start Mode and JDK step, select the Production Mode option and click Next.


 

7.

In the Customized Environment and Services Settings step, select the Yes option and click Next.

 

8.

In the Configure RDBMS Security Store Database step, retain the default value and click Next.

 

9.

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

 

10.

In the Configure Managed Servers step, click Add to append the two managed servers with default values and click Next.

Note: The Listen port needs to be manually changed to 7031 and 7033.

 

11.

In the Configure Clusters step, click Next.

 

12.

In the Configure Machines step, click Next.

 

13.

In the Configure JDBC Data Sources step, retain the default values and click Next.

 

14.

In the Review WebLogic Domain step, click Next.

 

15.

In the Create WebLogic Domain step, enter the domain name as Mydomain and then click Create.

Note: Retain the other path information as default.

16.

After it is completed, click Done.

 

17.

Navigate to /u01/app/oracle/product/Middleware/user_projects/applications/Mydomain and view the content of the newly created domain.

$ ls

 

Back to Topic List

 

In this lesson, you learned how to:

Verify the prerequisites

Back to Topic List

 

Back to Topic List

Place the cursor over this icon to hide all screenshots.