IK.AM

@making's tech note


LinuxへWebLogic12cインストールメモ

🗃 {Middleware/AppServer/WebLogic/12c}
🗓 Updated at 2012-07-22T03:46:20Z  🗓 Created at 2012-07-22T03:46:20Z   🌎 English Page

  • サーバー: Ubuntu10.04 Sever 64bit
  • ミドル: WebLogic12.1.1 64bit
  • クライアント端末: Mac OS X 10.7.4

ここ参照

インストーラダウンロード

http://www.oracle.com/technetwork/jp/middleware/weblogic/downloads/index.html

から"Generic Installer for use 64-bit JVMs"を選択してダウンロード

インストール

$ java -jar wls1211_generic.jar 

Unable to instantiate GUI, defaulting to console mode.
Extracting 0%....................................................................................................100%

<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Welcome:
--------

This installer will guide you through the installation of WebLogic 12.1.1.0. 
Type "Next" or enter to proceed to the next prompt.  If you want to change data entered previously, type "Previous".  You may quit the installer at any time by typing "Exit".

"Next"を入力

Enter [Exit][Next]> Next

<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [Enter new value or use default 
"/home/maki/Oracle/Middleware"]

"Next"(デフォルト)を入力

Enter new Middleware Home OR [Exit][Previous][Next]> Next

<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[Yes]

とりあえずSecurity Updateは"No"に変更してくおくので、"3"を入力。

Enter index number to select OR [Exit][Previous][Next]> 3

<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]

"No"を入力。

Enter [Yes][No]? No

<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]


    ** Do you wish to bypass initiation of the configuration manager and
    **  remain uninformed of critical security issues in your configuration?

"Yes"を入力。

Enter [Yes][No]? Yes

<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

   1|Email:[]
   2|Support Password:[]
   3|Receive Security Update:[No]

"Next"を入力

Enter index number to select OR [Exit][Previous][Next]> Next

<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Choose Install Type:
--------------------

Select the type of installation you wish to perform. 

 ->1|Typical
    |  Install the following product(s) and component(s):
    | - WebLogic Server
    | - Oracle Coherence

   2|Custom
    |  Choose software products and components to install and perform optional 
    |configuration.

Coherenceはいらないので"2"を入力

Enter index number to select OR [Exit][Previous][Next]> 2

<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Choose Products and Components:
-------------------------------

    Release 12.1.1.0
    |_____WebLogic Server [1] x
    |    |_____Core Application Server [1.1] x
    |    |_____Administration Console [1.2] x
    |    |_____Configuration Wizard and Upgrade Framework [1.3] x
    |    |_____Web 2.0 HTTP Pub-Sub Server [1.4] x
    |    |_____WebLogic SCA [1.5] x
    |    |_____WebLogic JDBC Drivers [1.6] x
    |    |_____Third Party JDBC Drivers [1.7] x
    |    |_____WebLogic Server Clients [1.8] x
    |    |_____Xquery Support [1.9] x
    |    |_____Server Examples [1.10] 
    |    |_____Evaluation Database [1.11] x
    |_____Oracle Coherence [2] x
         |_____Coherence Product Files [2.1] x
         |_____Coherence Examples [2.2] 

    *Estimated size of installation: 589.7 MB

Coherenceのチェックをはずすため"2"を入力

Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 2

<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Choose Products and Components:
-------------------------------

    Release 12.1.1.0
    |_____WebLogic Server [1] x
    |    |_____Core Application Server [1.1] x
    |    |_____Administration Console [1.2] x
    |    |_____Configuration Wizard and Upgrade Framework [1.3] x
    |    |_____Web 2.0 HTTP Pub-Sub Server [1.4] x
    |    |_____WebLogic SCA [1.5] x
    |    |_____WebLogic JDBC Drivers [1.6] x
    |    |_____Third Party JDBC Drivers [1.7] x
    |    |_____WebLogic Server Clients [1.8] x
    |    |_____Xquery Support [1.9] x
    |    |_____Server Examples [1.10] 
    |    |_____Evaluation Database [1.11] x
    |_____Oracle Coherence [2] 
         |_____Coherence Product Files [2.1] 
         |_____Coherence Examples [2.2] 

    *Estimated size of installation: 578.2 MB

Evaluation Databaseもいらないので"1.11"を入力

Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 1.11

<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Choose Products and Components:
-------------------------------

    Release 12.1.1.0
    |_____WebLogic Server [1] x
    |    |_____Core Application Server [1.1] x
    |    |_____Administration Console [1.2] x
    |    |_____Configuration Wizard and Upgrade Framework [1.3] x
    |    |_____Web 2.0 HTTP Pub-Sub Server [1.4] x
    |    |_____WebLogic SCA [1.5] x
    |    |_____WebLogic JDBC Drivers [1.6] x
    |    |_____Third Party JDBC Drivers [1.7] x
    |    |_____WebLogic Server Clients [1.8] x
    |    |_____Xquery Support [1.9] x
    |    |_____Server Examples [1.10] 
    |    |_____Evaluation Database [1.11] 
    |_____Oracle Coherence [2] 
         |_____Coherence Product Files [2.1] 
         |_____Coherence Examples [2.2] 

    *Estimated size of installation: 573.4 MB

"Next"を入力

Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> Next
    
<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

JDK Selection (Any * indicates Oracle Supplied VM):
---------------------------------------------------

JDK(s) chosen will be installed.  Defaults will be used in script string-substitution if installed.

   1|Add Local Jdk
   2|/usr/lib/jvm/java-6-sun-1.6.0.26[x]

   *Estimated size of installation:  573.4 MB

"Next"(デフォルト)を入力

Enter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]> Next

<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Choose Product Installation Directories:
----------------------------------------

Middleware Home Directory: [/home/maki/Oracle/Middleware]

Product Installation Directories:

    "WebLogic Server" = [Enter new value or use default 
"/home/maki/Oracle/Middleware/wlserver_12.1"]

"Next"(デフォルト)を入力

Enter new WebLogic Server OR [Exit][Previous][Next]> Next
    
<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

The following Products and JDKs will be installed:
--------------------------------------------------

    WebLogic Platform 12.1.1.0
    |_____WebLogic Server
         |_____Core Application Server
         |_____Administration Console
         |_____Configuration Wizard and Upgrade Framework
         |_____Web 2.0 HTTP Pub-Sub Server
         |_____WebLogic SCA
         |_____WebLogic JDBC Drivers
         |_____Third Party JDBC Drivers
         |_____WebLogic Server Clients
         |_____Xquery Support

    *Estimated size of installation: 573.5 MB

"Next"を入力

Enter [Exit][Previous][Next]> Next

<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Installing files..

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]

Performing String Substitutions... 

<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Configuring OCM...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]

<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Installing Patches...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]

Creating Domains...
    
<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Installation Complete


Congratulations! Installation is complete.

完了なのでEnterを押す

Press [Enter] to continue or type [Exit]> Enter

<-------------------- Oracle Installer - WebLogic 12.1.1.0 ------------------->

Clean up process in progress ...

Quick Startでドメイン作成

$ cd ~/Oracle/Middleware/wlserver_12.1/common/quickstart
$ sh quickstart.sh 

ちなみにXを飛ばす必要があるので、ssh -Yで接続しました。

管理サーバー起動

7001ポートを開けておく

$ sudo ufw enable 7001
$ cd ~/Oracle/Middleware/user_projects/domains/base_domain/bin
$ nohup sh startWebLogic.sh &

http://<管理サーバーのホスト名 or IP>:7001/console にアクセス

ユーザー名は"weblogic"、パスワードは最初に設定したもの。

管理対象サーバー設定

"サーバー"->"新規"

"サーバー名"に"Server-0"、"サーバーリスニングポート"に"7002"を。"次へ"

"完了"

ポートも開けておく

$ sudo ufw allow 7002

管理対象サーバー起動

startManagedWebLogic.sh <管理対象サーバー名> t3://<管理サーバーのホスト名 or IP>:<管理サーバーのポート番号>で起動

$ cd ~/Oracle/Middleware/user_projects/domains/base_domain/bin
$ ./startManagedWebLogic.sh Server-0 t3://localhost:7001

Server-0の状態が"RUNNING"であることを確認。

ログ

種別 ディレクトリ名 ファイル名
ドメインログ $DOMAIN_HOME/servers/<管理サーバー名>/logs <ドメイン名>.log
サーバーログ $DOMAIN_HOME/servers/<サーバー名>/logs <サーバー名>.log
HTTPアクセスログ $DOMAIN_HOME/servers/<サーバー名>/logs access.log
コンソールログ 標準出力

参考書籍

11g用ですが、12cでも大体流用できます

Oracle WebLogic Server 11g構築・運用ガイド


✒️️ Edit  ⏰ History  🗑 Delete