静默安装WebLogic Server

[TOC]

##安装JDK

### 创建JDK文件

###解压JDK

配置JDK环境变量

安装Weblogic工具

上传Weblogic文件到/home/oracle/soft

编辑wls_install.rsp文件

vim /home/oracle/soft/wls_install.rsp

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[ENGINE]
#DO NOT CHANGE THIS.
Response File Version=1.0.0.0.0
[GENERIC]
#Set this to true if you wish to skip software updates
DECLINE_AUTO_UPDATES=true
#My oracle Support User Name
MOS_USERNAME=
#My oracle Support Password
MOS_PASSWORD=<SECURE VALUE>
#If the Software updates are already downloaded and available on your local system, then specify the path to the directory where these patches are available and set SPECIFY_DOWNLOAD_LOCATION to true
AUTO_UPDATES_LOCATION=
#Proxy Server Name to connect to My oracle Support
SOFTWARE_UPDATES_PROXY_SERVER=
#Proxy Server Port
SOFTWARE_UPDATES_PROXY_PORT=
#Proxy Server Username
SOFTWARE_UPDATES_PROXY_USER=
#Proxy Server Password
SOFTWARE_UPDATES_PROXY_PASSWORD=<SECURE VALUE>
#The oracle home location. This can be an existing oracle Home or a new oracle Home
oracle_HOME=/home/oracle/product/oracle_Home
#The federated oracle home locations. This should be an existing oracle Home. Multiple values can be provided as comma seperated values
FEDERATED_oracle_HOMES=
#Set this variable value to the Installation Type selected. e.g. WebLogic Server, Coherence, Complete with Examples.
INSTALL_TYPE=WebLogic Server

编辑oracInst.loc文件 vim /home/oracle/soft/oraInst.loc

1
2
inventory_loc=/home/oracle/oraInventory
inst_group=oinstall

执行安装命令

java -jar /home/oracle/soft/fmw_12.2.1.3.0_wls.jar -silent -responseFile/home/oracle/soft/wls_install.rsp -invPtrLoc /home/oracle/soft/oraInst.loc