Before You Begin
This is the first tutorial in the Oracle WebLogic Server 12c series. This 15-minute tutorial shows you how to install Oracle WebLogic Server 12c using the generic installer and how to create a basic WebLogic Server domain.
Background
Oracle WebLogic Server is a scalable, enterprise-ready Java Platform, Enterprise Edition 7 (Java EE 7) application server. An Oracle WebLogic Server domain is a logically related group of Java components. A domain includes a special WebLogic Server instance called the Administration Server, which is the central point from which you configure and manage all resources in the domain.
The generic WebLogic Server installer requires a certified JDK. This tutorial describes how to download and install the JDK and WebLogic Server. It also shows you how to create a basic domain using the Configuration Wizard, start the Administration Server in the domain, and access the WebLogic Server Administration Console.
What Do You Need?
- Oracle WebLogic Server 12c generic installer
- A certified JDK (this tutorial uses JDK 8u211)
- A Linux machine running Oracle Linux or Red Hat Linux version 6 or greater
Conventions
This tutorial uses these conventions.
Entity | Value |
---|---|
JAVA_HOME environment
variable |
/u01/app/jdk |
ORACLE_HOME environment
variable |
/u01/app/fmw |
Download JDK 1.8 and the WebLogic Server 12c Generic Installer
- Open a web browser and navigate to the Java SE Downloads page at http://www.oracle.com/technetwork/java/javase/downloads/index.html.
- Scroll down to the Java SE 8u211 section and click JDK Download.
- On the Java SE Development Kit 8 Downloads page, accept the
license agreement and download the
jdk-8u211-linux-x64.tar.gz
JDK to the/u01
directory.Note: This tutorial uses the
jdk-8u211-linux-x64.tar.gz
file. Later versions of JDK 1.8 should work but have not been tested with this tutorial. - In the web browser, navigate to the Oracle Fusion Middleware Software Downloads page at http://www.oracle.com/technetwork/middleware/weblogic/downloads/index.html.
- Accept the license agreement, then in the Oracle WebLogic Server 12c section of the page, select Generic Installer from the menu and click Download File.
- Save the file,
fmw_12.2.1.4.0_wls_Disk1_1of1.zip
, to the/u01
directory on your system.
Install the JDK
- Open a terminal window and change to the directory where you
downloaded the JDK.
$ cd /u01
- Extract the JDK to a directory of your choice. This tutorial
uses
/u01/app
. For example:
$ tar -zxvf jdk-8u211-linux-x64.tar.gz -C /u01/app
The
tar
options used in this command are:z
- unzipx
- extractv
- verbosef
- filenameC
- extract the contents of the file to a specific directory, in this case/u01/app
. Note that this is an uppercase C.
The JDK is extracted into the
/u01/app/jdk1.8.0_211
directory.Note: The name of your JDK directory may be different depending on the version of the JDK that you downloaded.
- Optionally, rename the JDK directory to make the name more
generic. For example, rename the directory to
jdk
:$ mv jdk1.8.0_211 jdk
Install WebLogic Server Using the Generic Installer
- In a terminal window, navigate to the directory where you
downloaded the installer and unzip the installer file.
$ cd /u01 $ unzip
fmw_
Archive: fmw_12.2.1.4.0_wls_Disk1_1of1
.zip12.2.1.4.0_wls_Disk1_1of1
.zip inflating: fmw_12.2.1.4.0_wls.jar inflating: fmw_12.2.1.4.0_readme.htmThe generic installer jar file and
readme.htm
file are extracted to the/u01
directory. - Set the
JAVA_HOME
andPATH
environment variables. SetJAVA_HOME
to the directory where you installed the JDK and set thePATH
variable to thebin
directory of the JDK.$ export JAVA_HOME=/u01/app/jdk
$ export PATH=${JAVA_HOME}/bin:$PATH - Launch the generic installer.
$ java -jar fmw_12.2.1.4.0_wls_generic.jar Launcher log file is /tmp/OraInstall2019-04-30_11-46-09AM/launcher2019-04-30_11-46-09AM.log. Extracting the installer...
After the installer extracts the files, it analyzes your system to see if it meets the minimum requirements (CPU speed, for example). If your system meets the requirements, the graphical Oracle Universal Installer starts.
- Step through the windows in the graphical installer as
described here.
In this window: Do the following: Installation Inventory Accept the default locations and then click OK.
Note that this window only displays the first time you install any Oracle product on this host.Welcome Click Next. Skip Auto Updates Leave Skip Auto Updates selected and then click Next. Installation Location Enter the directory to be used as the Oracle Home directory and then click Next. This tutorial uses /u01/app/fmw
.Installation Type Select WebLogic Server and then click Next. Selecting WebLogic Server installs both WebLogic Server and Coherence. Prerequisite Checks Wait for all checks to complete successfully and then click Next. Installation Summary Review the installation information. If everything looks acceptable, click Install. Installation Progress Wait for the progress to reach 100% and then click Next. Installation Complete Click Finish.
Create a Basic WebLogic Server Domain
- Open a terminal window and navigate to the
ORACLE_HOME/oracle_common/common/bin
directory. This tutorial uses/u01/app/fmw
as the Oracle Home directory.$ cd /u01/app/fmw/oracle_common/common/bin
- Start the Configuration Wizard.
$ ./config.sh
The Configuration Wizard opens.
- In the Configuration Type screen, select Create a
New Domain. Then, in the Domain Location
field, specify the domain home directory and then click Next.
This tutorial uses
/u01/domains/ExampleDomain
as the domain home directory. - In the Templates screen, accept the Create Domain
Using Product Templates and Basic WebLogic
Server Domain template default selections and then
click Next.
Note: The Basic WebLogic Server Domain template cannot be deselected. It is the only required template.
- In the Administrator Account screen, enter a username and
password for the default WebLogic Server administrator
account, and then click Next.
Important: Make a note of this username and password. You will need it to start the Administration Server and access the Administration Server Console.
- In the Domain Mode and JDK screen, select Production
in the Domain Mode section. In the JDK section, leave the
default Oracle HotSpot 1.8.0_211 /u01/app/jdk
option selected and then click Next.
Note: The version and location of your HotSpot JDK may be different.
- In the Advanced Configuration screen, select Administration Server and then click Next.
- In the Administration Server screen, enter these values and then click Next.
- Server Name: AdminServer (the default)
- Listen Address: All Local Addresses
- Listen Port: 7001
- Enable SSL: Deselected
- In the Configuration Summary screen, review the configuration and then click Create.
- In the Configuration Progress screen, wait for the progress to reach 100% and then click Next.
- In the End of Configuration screen, make note of the domain location and the Admin Server URL and then click Finish.
Note: In the Listen Address field, you can also select the host name or IP address of the machine. However, using the setting All Local Addresses simplifies the process of porting the domain across machines with different IP addresses.
Start the Administration Server
- Open a terminal window and navigate to the domain directory.
This tutorial uses
/u01/domains/ExampleDomain
.$ cd /u01/domains/ExampleDomain
- In the domain directory, enter this command to start the
Administration Server using the start script.
$ ./startWebLogic.sh
- At the prompt, enter the administrator username and password that you specified when you created the domain.
- As the script continues to run, look for this message:
<Apr 30, 2019 12:20:24,661 PM PDT> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.> <Apr 30, 2019 12:20:24,666 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.>
This message indicates that the Administration Server is up and running.
Access the WebLogic Server Administration Console
- Open a browser window and enter the console URL:
http://localhost:7001/console
- On the Welcome screen, enter the user name and password that
you entered when you created the domain, and then click Login.
The home page of the Administration Console displays.
Next Steps
The WebLogic Server 12c collection contains a number of additional tutorials, covering a variety of topics. See the WebLogic Server 12c collection here for additional topics and content.