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

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

Time to Complete
Approximately 1 hour
#OUGTH: ทำจริง 15 นาทีเสร็จ.

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)

Installing the JDK

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/appdirectory, enter the following command:

$>cd /scratch/u01/app

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/jdkdirectory. To copy the JDK file from there into the current directory, enter the following command:

#OUGTH: ถ้า OS เป็น 32 bit, ก็ใช้ JDK แบบ 32 bit. //141203.17:51:51

$>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 thetarcommand:

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

Thetaroptions are:
  • z: unzip
  • x: extract
  • v: verbose
  • f: 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 thermcommand to erase the copied JDK file.

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

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

#OUGTH: หัวข้อ “Installing the JDK" ไม่ต้องทำเลย ถ้าใช้ ตัวติดตั้ง oepe-12.1.3-kepler-installer-linux-gtk.bin.
#OUGTH: ตัวติดตั้ง OEPE มี RCU, ถ้ามี RCU แล้ว OFM Infra ก็ไม่จำเป็น. //141203.22:38:42

Installing WebLogic Server

To install WebLogic Server, perform the following steps:

1. Run the generic installation program (the JAR file).
• Open a Terminal window and navigate to thebindirectory under the JDK directory.

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

• Run the Java virtual machine with the-jaroption, calling the generic installerJARfile that you already downloaded. In this tutorial, theJARfile is in the/scratch/install/wls12.1.3directory. 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 installerJARfile 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 checks out, the graphical Oracle Universal Installer starts.

2. On the Welcome screen of the installer, clickNext.


3. On the Installation Location screen, enter the location for Oracle Home (or clickBrowseto browse to the location), and then clickNext.
In this demonstration, Oracle Home is/scratch/u01/app/fmw.


4. On the Installation Type screen, select eitherWebLogic Server(it includes Coherence) orComplete with Examples, and then clickNext.
In this demonstration, the selection is WebLogic Server.


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


6. On the Security Updates screen, perform the following steps:
  • Enter your email address.
  • Select wish to receive security updates via My Oracle Support.
  • Enter your My Oracle Support password.
  • ClickNext.

Note:If the machine on which you are installing WebLogic Server is part of a training environment, deselectI wish to receive security updates via My Oracle Support, and clickNext. In the dialog box that opens, clickYes.

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


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


9. On the Installation Complete screen, deselectAutomatically Launch the Configuration Wizard, and then clickFinish.


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

#OUGTH: หน้าจอต่างกันเล็กน้อย, ถ้าใช้ตัวติดตั้ง oepe-12.1.3-kepler-installer-linux-gtk.bin.

Creating a Domain

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

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

$>./config.sh


2. On the Configuration Type page, perform the following steps:
  • Select Create a new domain.
  • Enter a location for the domain. In this tutorial, the location is /scratch/domains/mydomain.
  • Click Next.
Note: You can choose a different name and location for your domain.

#OUGTH: default domain location คือ $ORACLE_HOME/user_projects/domains/base_domain.


3. On the Templates page, perform the following steps:
  • Select Create Domain Using Product Templates.
  • Leave All Templates selected for Template Categories.
  • Under Available Templates, Basic WebLogic Server Domain is selected and cannot be deselected. It is the only required template.
  • Click Next.


#OUGTH: Template ของ OEPE Installer ที่เพิ่มขึ้นมา.
• Oracle EM
• Oracle JRF SOAP/JMS
• Oracle JRF
• Oracle WSM
• Oracle RAS

4. On the Administrator Account page, enter a name and a password, confirm the password, and then click Next.
In this tutorial, the username isweblogicand 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:
  • Under Domain Mode, select Production.
  • Under JDK, select Oracle HotSpot. The version of your HotSpot JDK may be different.
  • Click Next.
#OUGTH:

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 Coherenceare selected.
As you select more options, more screens are listed on the left side of the wizard.

#OUGTH: Managed Servers, Clusters and Coherence สามารถ reconfig ได้ โดยการ ./config.sh อีกหนึ่งครั้ง. //141203.14:40:21



7. On the Administration Server page, perform the following steps:
  • Leave the default value for Server Name.
  • Enter the host name or IP address of the machine for Listen Address.
  • Leave the Listen Port at 7001.
  • Leave Enable SSL deselected.
  • Click Next.


8. On the Node Manager page, perform the following steps:
  • Node Manager Type: Leave the default value of Per Domain Default Location.
  • 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.
  • Click Next.


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


10. In the new row, enter the following information:
  • Enterserver1for the Server Name.
  • Enter the host name or IP address of the machine for the Listen Address.
  • Ensure that the Listen Port is 7003.
  • Leave Enable SSL deselected.


11. ClickAddto display another row. In the new row, enter the following information:
  • Enter server2 for the Server Name.
  • Enter the host name or IP address of the machine for the Listen Address.
  • Enter 7005 for the Listen Port.
  • Leave Enable SSL deselected.
  • Click Next.

#OUGTH: ถ้า manual สร้าง server2 ทีหลังขณะที่ WebLogic start อยู่, ต้อง restart จึงเปิด server2 ขึ้น //141203.15:19:41


12. On the Clusters page, clickNext.


13. On the Machines page, perform the following steps:
  • Select the Machine tab.
  • Click Add.
  • In the new row, enter machine1 for the Name.
  • vv
  • Enter the host name or IP address of the machine for the Node Manager Listen Address.
  • Leave the Node Manager Listen Port as 5556.
  • Click Next.

#OUGTH: ระวังเรื่อง Listen Address.


14. On the Assign Servers to Machines page, perform the following steps:
  • Under Machines, ensure thatmachine1is selected.
  • Under Servers, selectserver1and click the right arrow button to move it under machine1.
  • Select server2 and click the right arrow button to move it under machine1.
  • Click Next.


15. On the Configuration Summary page, clickCreate.


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


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


18. You have created a WebLogic Server domain.

Viewing the Domain Files

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.


Accessing the Administration Console

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.
Note:Use your administration server machine's host name or IP address for<ip_address>.

#OUGTH: ของเราจะเป็น http://192.168.56.101:7001/console.

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


The home page of the administration console is displayed.



Summary

In this tutorial, you learned how to:
  • Install the JDK
  • Install Oracle WebLogic Server 12c
  • Create a WebLogic Server domain

Resources

Credits
  • Lead Curriculum Developer: Bill Bell
  • Original Oracle by Example tutorial for version 11g created by: TJ Palazzolo
  • Editor: Susan Moxley

Permalink: http://goo.gl/LHfSPH | E

141121.19:29:18
• เพิ่ม.

141121.19:40:25
• OBE นี้ #10135 ก็เหมือนกับ OBE#06080 เพียงแค่ เปลี่ยน version จาก 12.1.1 เป็น 12.1.3 และใช้ตัวติดตั้ง .jar แทน .bin.
• หน้าจอ installer ปรับโฉมไปพอสมควร.

141203.7:50:04
• ทำรอบที่สอง.
• รายการที่ถูกติดตั้งด้วย OEPE.
  - Thirdparty JDBC Drivers 12.1.3.0.0
  - WebLogic Evaluation Database 12.1.3.0.0
  - Third Party Jackson 12.1.3.0.0
  - Third Party Jersey 1.18.0.0.0
  - Third Party Maven Apache 3.0.5.0.0
  - Oracle Enterprise Pack for Eclipse 12.1.3.0.0
  - JRF Full 12.1.3.0.0
  - Core Application Server 12.1.3.0.0
  - Coherence Product Files 12.1.3.0.0
  - Web 2.0 HTTP Pub-Sub Server 12.1.3.0.0
  - WebLogic SCA 12.1.3.0.0
  - WebLogic Client Jars 12.1.3.0.0
  - Oracle WebLogic Communication Services 12.1.3.0.0
  - OPatch 13.2.0.0.0
  - Toplink Developer 12.1.3.0.0
  - Server Examples 12.1.3.0.0
  - Coherence Examples 12.1.3.0.0
  - Coherence JavaDoc 12.1.3.0.0
  - Administration Console Additional Language Help Files 12.1.3.0.0
  - Enterprise manager 12.1.3.0.0

141203.22:24:25
• รอบ #3 ทดลองแบบใช้ jar file.

/link/obe-10135-oracle-weblogic-server-12c-installing-weblogic-server-and-creating-a-domain