Oracle by Example brandingInstall WebLogic Server 12c and Create a Basic Domain

section 0Before 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

section 1Download JDK 1.8 and the WebLogic Server 12c Generic Installer

  1. Open a web browser and navigate to the Java SE Downloads page at http://www.oracle.com/technetwork/java/javase/downloads/index.html.
  2. Scroll down to the Java SE 8u211 section and click JDK Download.
  3. 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.

  4. In the web browser, navigate to the Oracle Fusion Middleware Software Downloads page at http://www.oracle.com/technetwork/middleware/weblogic/downloads/index.html.
  5. 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.
  6. Save the file, fmw_12.2.1.4.0_wls_Disk1_1of1.zip, to the /u01 directory on your system.

section 2Install the JDK

  1. Open a terminal window and change to the directory where you downloaded the JDK.
    $ cd /u01
  2. 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 - unzip
    • x - extract
    • v - verbose
    • f - filename
    • C - 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.

  3. Optionally, rename the JDK directory to make the name more generic. For example, rename the directory to jdk:
    $ mv jdk1.8.0_211 jdk

section 3Install WebLogic Server Using the Generic Installer

  1. In a terminal window, navigate to the directory where you downloaded the installer and unzip the installer file.
    $ cd /u01
    $ unzip fmw_12.2.1.4.0_wls_Disk1_1of1.zip
    Archive:  fmw_12.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.htm

    The generic installer jar file and readme.htm file are extracted to the /u01 directory.

  2. Set the JAVA_HOME and PATH environment variables. Set JAVA_HOME to the directory where you installed the JDK and set the PATH variable to the bin directory of the JDK.
    $ export JAVA_HOME=/u01/app/jdk
    $ export PATH=${JAVA_HOME}/bin:$PATH
  3. 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.

  4. 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.

section 4Create a Basic WebLogic Server Domain

  1. 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
  2. Start the Configuration Wizard.
    $ ./config.sh

    The Configuration Wizard opens.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. In the Advanced Configuration screen, select Administration Server and then click Next.
  8. 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

    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.

  9. In the Configuration Summary screen, review the configuration and then click Create.
  10. In the Configuration Progress screen, wait for the progress to reach 100% and then click Next.
  11. In the End of Configuration screen, make note of the domain location and the Admin Server URL and then click Finish.

section 5Start the Administration Server

  1. Open a terminal window and navigate to the domain directory. This tutorial uses /u01/domains/ExampleDomain.
    $  cd /u01/domains/ExampleDomain
    
  2. In the domain directory, enter this command to start the Administration Server using the start script.
    $ ./startWebLogic.sh             
  3. At the prompt, enter the administrator username and password that you specified when you created the domain.
  4. As the script continues to run, look for this message:
  5. <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.


section 6Access the WebLogic Server Administration Console

  1. Open a browser window and enter the console URL:
    http://localhost:7001/console
  2. 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 stepNext 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.