WebLogic 12c Linux command-line installation

Source: Internet
Author: User

Recently responsible for installing WebLogic Server 12c on Linux, customers say they want to install the latest version with a version number of 12.1.X (12.1.2,12.1.3). Start thinking that as with the previous version of the installation, use the console to download the bin file, and then step by step in the console execution down the line. Never thought, since the 12C version, the bin file is not provided, changed to the system common jar file (Generic.jar). Tried for a half day originally that kind of installation method cannot use, must use the graphical interface installs. Because the server is somewhere else, it must not run to the address of the host side. So various Google, a variety of materials, finally found a silent way to install. Let's look at the following.

PS: After the company A great God's guidance, can be installed through the remote graphical interface, that is, the graphical interface directly displayed on their own computer, do not need to run to the host place. The installation method will be described in the second article!

CentOS 6.3 Installation Configuration WebLogic http://www.linuxidc.com/Linux/2014-02/96918.htm

Oracle WebLogic 11g Installation Deployment Documentation PDF Http://www.linuxidc.com/Linux/2013-04/83658.htm

Linux Deployment weblogic11g http://www.linuxidc.com/Linux/2013-01/77940.htm

Oracle Basic Tutorial installation and configuration WebLogic Single instance http://www.linuxidc.com/Linux/2012-02/54418.htm

Linux under WebLogic Uninstall http://www.linuxidc.com/Linux/2012-01/51886.htm

WebLogic configuration of multi-machine clusters http://www.linuxidc.com/Linux/2011-12/50577.htm

Installation and configuration of the WebLogic http://www.linuxidc.com/Linux/2011-12/49082.htm

First, pre-preparation

1. Create a new user group web

[Email protected] ~]#
[Email protected] ~]# Groupadd web
[Email protected] ~]#

2. Create a new user WebLogic and modify the user password

[Email protected] ~]#
[[email protected] ~]# useradd-g Web WebLogic//Add users and use the-G parameter to develop a Web user group
[[Email protected] ~]
[[email protected] ~]# passwd weblogic//passwd command to change password
Changing password for user WebLogic.
New UNIX Password:
Retype new UNIX Password:
Passwd:all authentication tokens updated successfully.
[Email protected] ~]#
[Email protected] ~]#

3. If the JDK is not installed, you will need to install the JDK

First step: Download the package jdk-7-linux-i586.tar.gz from the official website

Http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz

[Email protected] jdk1.7]$ tar-zxv-f jdk-7u55-linux-i586.tar.gz-c./jdk1.7

Step three. moving Files/usr/local

Note: The specific location can be used by users to move their own

[Email protected]/]# mv./jdk1.7/usr/local/jdk1.7

Fourth step. Configuring Environment variables

The environment component is divided into the whole system, has been set only for the current user, our side only for WebLogic user settings

~/.BASHRC: Only valid for current user

Add the following section at the end of the ~/.BASHRC

java_home=/usr/local/jdk1.7
Export JRE_HOME=/USR/LOCAL/JDK1.7/JRE
Export classpath=.: $JAVA _home/lib: $JRE _home/lib: $CLASSPATH
Export path= $JAVA _home/bin: $JRE _home/bin: $PATH

Save, execute source ~/.BASHRC. Make the changes effective

Exit, re-login, see if it takes effect

[Email protected] ~]$ java-version
Java Version "1.7.0_40"
Java (TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot (TM) Server VM (build 24.0-b56, Mixed mode)
[Email protected] ~]$
[Email protected] ~]$

JDK Installation Complete ~

Second, start the installation

Slient mode silent mode

First look at the format of the command:

Java-jar wls_121200.jar-silent-responsefile file-invptrloc File


-response File: Response files

-invptrloc file: Initializing environment files

Specific examples:

Java-jar wls_121200.jar-silent-responsefile/home/exampleuser/response/wls.rsp-invptrloc/home/exampleuser/ Orainst.loc

Detailed Documentation:

1. Create a Orainst.loc file with the following content


Inventory_loc=/home/weblogic/orainventory1 Product List Catalog
#用户的组名称, according to the actual modification
Inst_group=weblogic Group Name

Used to save some temporary files during installation, and the default installed group name

If you have previously installed Oracle products then this step can be omitted, do not need to specify the OraInventory1 directory

The command can be abbreviated as follows:

Java-jar WLS_121200.JAR-SILENT-RESPONSEFILE/HOME/EXAMPLEUSER/RESPONSE/WLS.RSP

2. Create a WLS.RSP response file

This file can be installed in the graphical interface when you click Save to produce the file. The contents of the file used by this machine are as follows:

[ENGINE]
#DO not.
Response File version=1.0.0.0.0
[GENERIC]
#weblogic的安装路径, modify it to suit your needs.
Oracle_home=/home/weblogic/oracle/middleware
#Set this variable value to the installation Type selected. e.g. WebLogic Server, Coherence, complete with Examples.
Install_type=weblogic Server

My side only selected the most basic WebLogic server components, the selection of others will be slightly different.

3. Once the profile has been created, it can be installed

[Email protected] liaowh]$ Java-jar wls_121200.jar-silent-response/home/weblogic/liaowh/wls12.rsp-invptrloc/home/ Weblogic/liaowh/orainst.loc
Extracting files .......
Java HotSpot (TM) Server VM warning:you has loaded library/tmp/orcl305077197089615615.tmp/disk1/install/linux/ Libjni.so which might has disabled stack guard. The VM would try to fix the stack guard now.
It's highly recommended that's the library with ' execstack-c <libfile> ', or link it with '-Z noexecstack '.
Start Oracle Universal Installer

Wait a minute, come on.

Expected results: 1.7
Actual Result: 1.7.0_40
Check complete. The overall result of this check is: through
Checkjdkversion Check: Success.
Validating data ...
Copying files ...
-----------20%----------40%----------60%----------80%--------100%
The installation for WebLogic Server 12.1.2.0.0 has completed successfully.
[Email protected] liaowh]$

It means success.

4. Next you create the domain

First execute setwlsenv.sh to configure environment variables

[Email protected] bin]$./home/weblogic/oracle/middleware12/wlserver/server/bin/setwlsenv.sh

Then manually create the directory where the domain resides, and the blogger creates a new in the/home/weblogic/oracle/middleware/directory

[Email protected] middleware12]$ CD user_projects/
[Email protected] user_projects]$ mkdir domains
[Email protected] user_projects]$ CD domains/
[Email protected] domains]$ mkdir Hndomain
[Email protected] domains]$ CD hndomain/
[Email protected] hndomain]$ pwd
/home/weblogic/oracle/middleware12/user_projects/domains/hndomain
[Email protected] hndomain]$

Go to the domain directory and execute the command

[Email protected] hndomain]$ $JAVA _home/bin/java $JAVA _options-xmx1024m-xx:maxpermsize=256m WebLogic. Server


To generate the various files under the domain, including configuration information for the Management Server, and so on.

Then go to the Bin directory, start it, and finally, you can access

Http://ip:7001/console into the console.

--------------------------------------------------------------------------------------------------------------- ------------------

Installation conditions:

--------------------------------------------------------------------------------------------------------------- -------------------

From: http://www.linuxidc.com/Linux/2015-01/112357.htm

WebLogic 12c Linux command-line installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.