weblogic的安装及补丁安装

OS:redhat7.6

weblogic:10.3.6

weblogic 补丁:Oracle WebLogic Server Patch Set Update 10.3.6.0.190716

在MOS网站上查询,weblogic10.3.6通过了redhat7的认证。

weblogic的安装及补丁安装_第1张图片

安装jdk1.6 (有的文档说不需要安装,weblogic会自带,我这里选择自己再安装一次)
设置/etc/hosts
创建用户和组 

groupadd -g 1000 oinstall
useradd -u 1100 -g oinstall oracle
passwd oracle

创建安装目录

mkdir -p /u01/app/oracle/product/fmw11g
mkdir -p /u01/app/oracle/config/domains
mkdir -p /u01/app/oracle/config/applications
chown -R oracle:oinstall /u01
chmod -R 775 /u01/

添加环境变量

export MW_HOME=/u01/app/oracle/product/fmw11g
export WLS_HOME=$MW_HOME/wlserver_10.3
export WL_HOME=$WLS_HOME
# Set to the appropriate JAVA_HOME.
#export JAVA_HOME=/usr/java/jdk1.6.0_33
export JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
#export JAVA_HOME=/u01/app/oracle/jdk1.7.0_17
export PATH=$JAVA_HOME/bin:$PATH

在oracle用户下,进行安装。(不带Xmx2014m也可以)。直接下一步下一步即可。

$ $JAVA_HOME/bin/java -Xmx1024m -jar wls1036_generic.jar

[oracle@wls10306 ~]$ java -Xmx1024m -jar wls1036_generic.jar
Extracting 0%....................................................................................................100%

安装完毕后,创建domain

[oracle@wls10306 ~]$ cd $MW_HOME/utils/quickstart 
[oracle@wls10306 quickstart]$ ls *.sh
quickstart.sh
[oracle@wls10306 quickstart]$ ./quickstart.sh 

配置完毕后,启动weblogic

[oracle@wls10306 test_domain]$ pwd
/u01/app/oracle/config/domains/test_domain
[oracle@wls10306 test_domain]$ ./startweblogic.sh  

查看weblogic的进程

[oracle@wls10306 ~]$ ps -ef | grep weblogic
oracle    17320  17275 54 09:53 pts/0    00:00:20 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.41.x86_64/bin/java -Xms512m -Xmx512m -Dweblogic.Name=AdminServer -Djava.security.policy=/u01/app/oracle/product/fmw11g/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.ProductionModeEnabled=true -da -Dplatform.home=/u01/app/oracle/product/fmw11g/wlserver_10.3 -Dwls.home=/u01/app/oracle/product/fmw11g/wlserver_10.3/server -Dweblogic.home=/u01/app/oracle/product/fmw11g/wlserver_10.3/server -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/u01/app/oracle/product/fmw11g/patch_wls1036/profiles/default/sysext_manifest_classpath:/u01/app/oracle/product/fmw11g/patch_ocp371/profiles/default/sysext_manifest_classpath weblogic.Server
oracle    17357   8585  0 09:54 pts/1    00:00:00 grep --color=auto weblogic
[oracle@wls10306 ~]$

查看日志

Enter username to boot WebLogic server:weblogic
Enter password to boot WebLogic server:
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     

通过http://ip:7001/console  来登录,注意操作系统的防火墙。

关闭weblogic,可以通过关闭管理服务器来关闭。也可以通过关闭weblogic来关闭。

[oracle@wls10306 bin]$ sh stopManagedWebLogic.sh AdminServer t3://192.168.2.74:7001 weblogic oracle
Stopping Weblogic Server...

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Connecting to t3://192.168.2.74:7001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'test_domain'.

Warning: An insecure protocol was used to connect to the 
server. To ensure on-the-wire security, the SSL port or 
Admin port should be used instead.

Shutting down the server AdminServer with force=false while connected to AdminServer ...
WLST lost connection to the WebLogic Server that you were 
connected to, this may happen if the server was shutdown or 
partitioned. You will have to re-connect to the server once the 
server is available.
Disconnected from weblogic server: AdminServer
Disconnected from weblogic server: 


Exiting WebLogic Scripting Tool.

Done
Stopping Derby Server...
[oracle@wls10306 bin]$ 
[oracle@wls10306 bin]$ sh stopWebLogic.sh 
Stopping Weblogic Server...

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Please enter your username :weblogic
Please enter your password :
Connecting to t3://wls10306:7001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'test_domain'.

Warning: An insecure protocol was used to connect to the 
server. To ensure on-the-wire security, the SSL port or 
Admin port should be used instead.

Shutting down the server AdminServer with force=false while connected to AdminServer ...
WLST lost connection to the WebLogic Server that you were 
connected to, this may happen if the server was shutdown or 
partitioned. You will have to re-connect to the server once the 
server is available.
Disconnected from weblogic server: AdminServer
Disconnected from weblogic server: 


Exiting WebLogic Scripting Tool.

Done
Stopping Derby Server...
[oracle@wls10306 bin]$ pwd
/u01/app/oracle/config/domains/test_domain/bin
[oracle@wls10306 bin]$ 

以上安装配置完毕。下面是安装过程。

weblogic的安装及补丁安装_第2张图片

weblogic的安装及补丁安装_第3张图片

weblogic的安装及补丁安装_第4张图片

weblogic的安装及补丁安装_第5张图片

注意,如果下面选择了typical,则没有sample示例。

weblogic的安装及补丁安装_第6张图片

weblogic的安装及补丁安装_第7张图片

weblogic的安装及补丁安装_第8张图片

weblogic的安装及补丁安装_第9张图片

weblogic的安装及补丁安装_第10张图片

weblogic的安装及补丁安装_第11张图片

weblogic的安装及补丁安装_第12张图片

weblogic的安装及补丁安装_第13张图片

weblogic的安装及补丁安装_第14张图片

 

weblogic的安装及补丁安装_第15张图片

weblogic的安装及补丁安装_第16张图片

weblogic的安装及补丁安装_第17张图片

weblogic的安装及补丁安装_第18张图片

weblogic的安装及补丁安装_第19张图片

weblogic的安装及补丁安装_第20张图片

weblogic的安装及补丁安装_第21张图片

-- 查看weblogic的版本

[oracle@wls10306-01 lib]$ java -cp weblogic.jar weblogic.version

WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050 

Use 'weblogic.version -verbose' to get subsystem information

Use 'weblogic.utils.Versions' to get version information for all modules
[oracle@wls10306-01 lib]$ pwd
/u01/app/oracle/product/fmw11g/wlserver_10.3/server/lib
[oracle@wls10306-01 lib]$ 

-- 查看weblogic补丁版本号

[oracle@wls10306-01 bsu]$ ./bsu.sh -view -verbose -status=applied -prod_dir=/u01/app/oracle/product/fmw11g/wlserver_10.3/
ProductName:       WebLogic Server
ProductVersion:    10.3 MP6
Components:        WebLogic Server/Core Application Server,WebLogic Server/Admi
                   nistration Console,WebLogic Server/Configuration Wizard and 
                   Upgrade Framework,WebLogic Server/Web 2.0 HTTP Pub-Sub Serve
                   r,WebLogic Server/WebLogic SCA,WebLogic Server/WebLogic JDBC
                    Drivers,WebLogic Server/Third Party JDBC Drivers,WebLogic S
                   erver/WebLogic Server Clients,WebLogic Server/WebLogic Web S
                   erver Plugins,WebLogic Server/UDDI and Xquery Support,WebLog
                   ic Server/Server Examples,WebLogic Server/Evaluation Databas
                   e,WebLogic Server/Workshop Code Completion Support
BEAHome:           /u01/app/oracle/product/fmw11g
ProductHome:       /u01/app/oracle/product/fmw11g/wlserver_10.3
PatchSystemDir:    /u01/app/oracle/product/fmw11g/utils/bsu
PatchDir:          /u01/app/oracle/product/fmw11g/patch_wls1036
Profile:           Default
DownloadDir:       /u01/app/oracle/product/fmw11g/utils/bsu/cache_dir
JavaVersion:       1.6.0_29
JavaVendor:        Sun

[oracle@wls10306-01 bsu]$ 

-- 打补丁 ,如果出现了错误,一般都是内存错误,将bsu.sh里面的内存调整大一些,2G的电脑,内存调整到了MEM_ARGS="-Xms2048m -Xmx3096m" 才不报错。但是很慢。

bsu.sh -install -patch_download_dir={MW_HOME}/utils/bsu/cache_dir -patchlist={PATCH_ID} -prod_dir={MW_HOME}/{WL_HOME}
bsu.sh -install -patch_download_dir=/u01/app/oracle/product/fmw11g/utils/bsu/cache_dir -patchlist=MXLE -prod_dir=/u01/app/oracle/product/fmw11g/wlserver_10.3/ -verbose 

[oracle@wls10306-01 bsu]$ ./bsu.sh -install -patch_download_dir=/u01/app/oracle/product/fmw11g/utils/bsu/cache_dir -patchlist=MXLE -prod_dir=/u01/app/oracle/product/fmw11g/wlserver_10.3/
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space


[oracle@wls10306-01 bsu]$ ./bsu.sh -install -patch_download_dir=/u01/app/oracle/product/fmw11g/utils/bsu/cache_dir -patchlist=MXLE -prod_dir=/u01/app/oracle/product/fmw11g/wlserver_10.3/
Checking for conflicts..........................................................
No conflict(s) detected

Installing Patch ID: MXLE..
Result: Success

-- 查看补丁信息

[oracle@wls10306-01 bsu]$ ./bsu.sh -view -verbose -status=applied -prod_dir=/u01/app/oracle/product/fmw11g/wlserver_10.3/
ProductName:       WebLogic Server
ProductVersion:    10.3 MP6
Components:        WebLogic Server/Core Application Server,WebLogic Server/Admi
                   nistration Console,WebLogic Server/Configuration Wizard and 
                   Upgrade Framework,WebLogic Server/Web 2.0 HTTP Pub-Sub Serve
                   r,WebLogic Server/WebLogic SCA,WebLogic Server/WebLogic JDBC
                    Drivers,WebLogic Server/Third Party JDBC Drivers,WebLogic S
                   erver/WebLogic Server Clients,WebLogic Server/WebLogic Web S
                   erver Plugins,WebLogic Server/UDDI and Xquery Support,WebLog
                   ic Server/Server Examples,WebLogic Server/Evaluation Databas
                   e,WebLogic Server/Workshop Code Completion Support
BEAHome:           /u01/app/oracle/product/fmw11g
ProductHome:       /u01/app/oracle/product/fmw11g/wlserver_10.3
PatchSystemDir:    /u01/app/oracle/product/fmw11g/utils/bsu
PatchDir:          /u01/app/oracle/product/fmw11g/patch_wls1036
Profile:           Default
DownloadDir:       /u01/app/oracle/product/fmw11g/utils/bsu/cache_dir
JavaVersion:       1.6.0_29
JavaVendor:        Sun


Patch ID:          MXLE
PatchContainer:    MXLE.jar
Checksum:          -1438222202
Severity:          optional
Category:          General
CR/BUG:            29633432
Restart:           true
Description:       WLS PATCH SET UPDATE 10.3.6.0.190716
WLS PATCH SET UPDATE 10
                   .3.6.0.190716


[oracle@wls10306-01 bsu]$ 

END

你可能感兴趣的:(中间件)