34
8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 1/34 Purpose This tutorial shows you how to install Oracle WebLogic Server 12c and create a WebLogic Server domain. Time to Complete Approximately 1 hour Introduction This tutorial shows you how to install Oracle WebLogic Server 12c (12.1.3) on a Linux system by using the generic installer. The generic installer requires a Java Developers Kit (JDK), so this tutorial first covers installing the JDK. After you install the JDK and WebLogic Server, this tutorial shows you how to use the Configuration Wizard to create a WebLogic Server domain. Hardware and Software Requirements The only requirement is that your operating system must be Oracle Linux 5.6+. Prerequisites Before starting this tutorial, download the following to your Linux machine: Oracle Java Developers Kit version 1.7.0_55+ Oracle WebLogic Server 12c (12.1.3) generic installer (includes Oracle Coherence) To install the JDK, perform the following steps: 1. Extract the JDK to a directory of your choice. a. Open a Terminal window and navigate to the directory where you want to install the JDK. For example, to navigate to the /scratch/u01/app directory, enter the following command: $> cd /scratch/u01/app Overview Installing the JDK Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

Embed Size (px)

DESCRIPTION

wEBLOGIC12C

Citation preview

Page 1: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 1/34

Purpose

This tutorial shows you how to install Oracle WebLogic Server 12c and create a WebLogic Server domain.

Time to Complete

Approximately 1 hour

Introduction

This tutorial shows you how to install Oracle WebLogic Server 12c (12.1.3) on a Linux system by using the generic installer. The generic installer requires aJava Developers Kit (JDK), so this tutorial first covers installing the JDK. After you install the JDK and WebLogic Server, this tutorial shows you how to use theConfiguration Wizard to create a WebLogic Server domain.

Hardware and Software Requirements

The only requirement is that your operating system must be Oracle Linux 5.6+.

Prerequisites

Before starting this tutorial, download the following to your Linux machine:

Oracle Java Developers Kit version 1.7.0_55+Oracle WebLogic Server 12c (12.1.3) generic installer (includes Oracle Coherence)

To install the JDK, perform the following steps:

1.  Extract the JDK to a directory of your choice.

a.  Open a Terminal window and navigate to the directory where you want to install the JDK. For example, to navigate to the/scratch/u01/app directory, enter the following command:

$> cd /scratch/u01/app

Overview

Installing the JDK

Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

Page 2: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 2/34

b.  Copy (or move) the JDK file from the directory where you downloaded it to the current directory. In this tutorial, the JDK is in the/scratch/install/jdk directory. To copy the JDK file from there into the current directory, enter the following command:

$> cp /scratch/install/jdk/jdk­7u60­linux­x64.gz ­t .

Note: The name and location of your JDK file may be different.

c.  Unpack the file by using the tar command:

$> tar ­zxvf jdk­7u60­linux­x64.gz

The tar options are:

z: unzipx: extractv: verbosef: filename

2.  (Optional) Rename the JDK directory. To make the directory name more generic, use the mv command to rename it jdk.

$> mv jdk1.7.0_60 jdk

Note: The name of your JDK directory may be different.

3.  Use the rm command to erase the copied JDK file.

$> rm jdk­7u60­linux­x64.gz

Note: The name of your JDK file may be different.

Installing WebLogic Server

Page 3: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 3/34

To install WebLogic Server, perform the following steps:

1.  Run the generic installation program (the JAR file).

a.  Open a Terminal window and navigate to the bin directory under the JDK directory.

$> cd /scratch/u01/app/jdk/bin

b.  Run the Java virtual machine with the ­jar option, calling the generic installer JAR file that you already downloaded. In this tutorial, the JARfile is in the /scratch/install/wls12.1.3 directory. The file name is fmw_12.1.3.0.0_wls.jar.

$> ./java ­jar /scratch/install/wls12.1.3/fmw_12.1.3.0.0_wls.jar

Note: The name and location of your generic installer JAR file may be different.

After the installer extracts files, it analyzes your system to see if it meets the minimum requirements (CPU speed, for example). If everything checksout, the graphical Oracle Universal Installer starts.

2. On the Welcome screen of the installer, click Next.

Page 4: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 4/34

Page 5: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 5/34

3. On the Installation Location screen, enter the location for Oracle Home (or click Browse to browse to the location), and then click Next.

In this demonstration, Oracle Home is /scratch/u01/app/fmw.

Page 6: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 6/34

4. On the Installation Type screen, select either WebLogic Server (it includes Coherence) or Complete with Examples, and then click Next.

In this demonstration, the selection is WebLogic Server.

Page 7: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 7/34

Page 8: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 8/34

5. On the Prerequisite Checks screen, wait for all checks to complete successfully, and then click Next.

Page 9: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 9/34

6. On the Security Updates screen, perform the following steps:

a.  Enter your email address.b.  Select I wish to receive security updates via My Oracle Support.c.  Enter your My Oracle Support password.d.  Click Next.

Page 10: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 10/34

Page 11: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 11/34

Note: If the machine on which you are installing WebLogic Server is part of a training environment, deselect I wish to receive security updates viaMy Oracle Support, and click Next. In the dialog box that opens, click Yes.

7. On the Installation Summary screen, review the installation information. If everything is acceptable, click Install.

Page 12: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 12/34

8. On the Installation Progress screen, wait for the progress bar to reach 100%, and then click Next.

Page 13: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 13/34

9. On the Installation Complete screen, deselect Automatically Launch the Configuration Wizard, and then click Finish.

Page 14: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 14/34

10.  Close the Terminal window that you used to launch the installer.

To create a domain by using the Configuration Wizard, perform the following steps:

1.  In a Terminal window, perform the following steps:

a.  Navigate to <ORACLE_HOME>/wlserver/common/bin. In this tutorial, <ORACLE_HOME> is /scratch/u01/app/fmw.b.  To run the Configuration Wizard, enter the following command:

$> ./config.sh

2. On the Configuration Type page, perform the following steps:

a.  Select Create a new domain.b.  Enter a location for the domain. In this tutorial, the location is /scratch/domains/mydomain.c.  Click Next.

Note: You can choose a different name and location for your domain.

Creating a Domain

Page 15: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 15/34

3. On the Templates page, perform the following steps:

a.  Select Create Domain Using Product Templates.

Page 16: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 16/34

a.  Select Create Domain Using Product Templates.b.  Leave All Templates selected for Template Categories.c.  Under Available Templates, Basic WebLogic Server Domain is selected and cannot be deselected. It is the only required template.d.  Click Next.

4. On the Administrator Account page, enter a name and a password, confirm the password, and then click Next.

In this tutorial, the username is weblogic and the password is Welcome1.

Page 17: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 17/34

In this tutorial, the username is weblogic and the password is Welcome1.

Important: Do not forget this username and password. You need them to perform any administrative task.

5. On the Domain Mode and JDK page, perform the following steps:

a.  Under Domain Mode, select Production.

Page 18: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 18/34

a.  Under Domain Mode, select Production.b.  Under JDK, select Oracle HotSpot. The version of your HotSpot JDK may be different.c.  Click Next.

6. On the Advanced Configuration page, select which domain resources that you want to configure, and then click Next.

In this tutorial, Administration Server, Node Manager, and Managed Servers, Clusters and Coherence are selected.

Page 19: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 19/34

In this tutorial, Administration Server, Node Manager, and Managed Servers, Clusters and Coherence are selected.

As you select more options, more screens are listed on the left side of the wizard.

7. On the Administration Server page, perform the following steps:

a.  Leave the default value for Server Name.

Page 20: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 20/34

a.  Leave the default value for Server Name.b.  Enter the host name or IP address of the machine for Listen Address.c.  Leave the Listen Port at 7001.d.  Leave Enable SSL deselected.e.  Click Next.

8. On the Node Manager page, perform the following steps:

Page 21: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 21/34

a.  Node Manager Type: Leave the default value of Per Domain Default Location.b.  Node Manager Credentials: Enter weblogic for the username and Welcome1 for the password. You will use these credentials to

communicate with Node Manager.Note: The credentials for Node Manager do not have to match the administrator account credentials.

c.  Click Next.

Page 22: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 22/34

9. On the Managed Servers page, click Add to display a row in the table.

10.  In the new row, enter the following information:

a.  Enter server1 for the Server Name.

Page 23: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 23/34

a.  Enter server1 for the Server Name.b.  Enter the host name or IP address of the machine for the Listen Address.c.  Ensure that the Listen Port is 7003.d.  Leave Enable SSL deselected.

11.  Click Add to display another row. In the new row, enter the following information:

a.  Enter server2 for the Server Name.

Page 24: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 24/34

a.  Enter server2 for the Server Name.b.  Enter the host name or IP address of the machine for the Listen Address.c.  Enter 7005 for the Listen Port.d.  Leave Enable SSL deselected.e.  Click Next.

12. On the Clusters page, click Next.

Page 25: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 25/34

13. On the Machines page, perform the following steps:

a.  Select the Machine tab.

Page 26: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 26/34

a.  Select the Machine tab.b.  Click Add.c.  In the new row, enter machine1 for the Name.d.  Enter the host name or IP address of the machine for the Node Manager Listen Address.e.  Leave the Node Manager Listen Port as 5556.f.  Click Next.

14. On the Assign Servers to Machines page, perform the following steps:

Page 27: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 27/34

14. On the Assign Servers to Machines page, perform the following steps:

a.  Under Machines, ensure that machine1 is selected.b.  Under Servers, select server1 and click the right arrow button to move it under machine1.c.  Select server2 and click the right arrow button to move it under machine1.d.  Click Next.

15. On the Configuration Summary page, click Create.

Page 28: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 28/34

15. On the Configuration Summary page, click Create.

16. On the Configuration Progress page, click Next after the progress bar reaches 100%.

Page 29: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 29/34

17. On the Configuration Success page, make note of the domain location and the URL of the administration console, and then click Finish.

Page 30: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 30/34

You have created a WebLogic Server domain.

Page 31: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 31/34

To view the directory structure and files for the newly created domain, perform the following steps:

1. Open a Terminal window and enter the following commands:

$> cd /scratch/domains/mydomain $> ls

Note: If you placed the domain in a different location, use that directory instead.

2.  To start the administration server of the domain, enter the following command from the domain directory:

$> ./startWebLogic.sh

3.  At the prompt, enter a username and password. Use the administrator username and password that you entered when you created the domain.

Note: The password is not displayed.

4.  As the script continues to run, look for the following message: <Notice> The server started in RUNNING mode.

The message means that the administration server is up and running.

To access the WebLogic Server administration console, perform the following steps:

1. Open a web browser and enter the following URL: http://hostname:port/console.

In this tutorial, the URL is http://<ip_address>:7001/console.

Viewing the Domain Files

Accessing the Administration Console

Page 32: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 32/34

In this tutorial, the URL is http://<ip_address>:7001/console.

Note: Use your administration server machine's host name or IP address for <ip_address>.

2. On the Welcome screen, enter the administrator username and password and click Login.Note: Use the username and password that you used to start the administration server.

The home page of the administration console is displayed.

Page 33: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 33/34

Page 34: Oracle WebLogic Server 12c_ Installing WebLogic Server and Creating a Domain

8/4/2015 Oracle WebLogic Server 12c: Installing WebLogic Server and Creating a Domain

http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/wls/12c/12_1_3/01/installwls.html 34/34

In this tutorial, you learned how to:

Install the JDKInstall Oracle WebLogic Server 12cCreate a WebLogic Server domain

Resources

For documentation on Oracle WebLogic Server 12c (12.1.3), visit the Oracle WebLogic Server Documentation Library.For more information on installing Oracle WebLogic Server 12c (12.1.3), see Installing and Configuring Oracle WebLogic Server and Coherence.To learn more about Oracle WebLogic Server, refer to additional OBEs in the Oracle Learning Library. The next suggested tutorial is titled OracleWebLogic Server 12c: Configuring Managed Servers.

Credits

Lead Curriculum Developer: Bill BellOriginal Oracle by Example tutorial for version 11g created by: TJ PalazzoloEditor: Susan Moxley

Summary