WebSphere V8.5 静默安装升级(二)-使用响应文件静默安装软件包(生成相应文件,不安装)以及managesdk管理SDK

使用响应文件静默安装软件包(生成相应文件,不安装):
./IBMIM -record /response_files/install_product.xml -skipInstall skipInstall/IBM_product
./imcl input /response_files/install.xml -log /mylog/install_log.xml -acceptLicense

请注意看要点 skipInstall/IBM_product 不要写这个IM的正在用的agentDataLocation 如果写了 就会真正的安装 -skipInstall就无效了

使用响应文件安装:
方式一:导入安装包仓库文件后,通过IM安装时不勾选安装JDK7
切换到IM的安装目录:
cd /opt/IBM/InstallationManager/eclipse
生成安装响应文件:
./IBMIM -record /opt/IBM/install_product.xml -skipInstall /opt/app
通过响应文件安装WebSphere软件:
cd /opt/IBM/InstallationManager/eclipse/tools
./imcl input /opt/IBM/install_product.xml -log /opt/install-websphere_log.xml -acceptLicense

方式二:导入安装包仓库文件后,通过IM安装时勾选安装JDK7
切换到IM的安装目录:
cd /opt/IBM/InstallationManager/eclipse
生成安装响应文件:
./IBMIM -record /opt/IBM/install_product2.xml -skipInstall /opt/app2
通过响应文件安装WebSphere软件:
cd /opt/IBM/InstallationManager/eclipse/tools
./imcl input /opt/IBM/install_product2.xml -log /opt/install-websphere_log2.xml -acceptLicense

检查是否当前WAS已安装的SDK:
cd /opt/IBM/WebSphere/AppServer/bin
./managesdk.sh -listAvailable
CWSDK1003I: Available SDKs :
CWSDK1005I: SDK name: 1.8_64_bundled
CWSDK1005I: SDK name: 1.7_64
CWSDK1001I: Successfully performed the requested managesdk task.

managesdk常用命令说明:
#列出当前可用SDK
managesdk.sh -listAvailable
#查询新概要文件创建SDK
managesdk.sh -getNewProfileDefault
#设置新概要文件创建SDK
managesdk.sh -setNewProfileDefault -sdkName 1.7_64
#为所有概要文件设置SDK
managesdk.sh -enableProfileAll -sdkName 1.7_64
#为指定概要文件设置SDK
managesdk.sh -enableProfile –sdkName 1.7_64 –profileName AppSrv01

****************************************************************************
Usage: managesdk -task [ <-parameter> [ <parameter_value> ] | <-parameter> ] .....

task : [ -listAvailable | -listEnabledProfile | -listEnabledProfileAll ]
-listAvailable [-verbose]
-listEnabledProfile -profileName <profile_name> [-verbose]
-listEnabledProfileAll [-verbose]

task : [ -getNewProfileDefault | -setNewProfileDefault ]
-getNewProfileDefault [-verbose]
-setNewProfileDefault -sdkName <sdk_name>

task : [ -getCommandDefault | -setCommandDefault ]
-getCommandDefault [-verbose]
-setCommandDefault -sdkName <sdk_name>

task : [ -enableProfile | -enableProfileAll ]
-enableProfile -sdkName <sdk_name>
-profileName <profile_name>
[-enableServers]
[-user <user_name> -password <password>]

-enableProfileAll -sdkName <sdk_name>
[-enableServers]

task : -help

Where specified, task parameters -profileName and -sdkName are required parameters.

Task parameters :
-profileName <parameter_value> : The name of a profile.
-sdkname <parameter_value> : An SDK name that is enabled for this Websphere installation.
-enableServers : Optional on -enableProfile and -enableProfileAll tasks to enable all application servers to use the specified SDK.
-user and -password : Required for -enableProfile and -enableProfileAll tasks when java security is enabled and the profile is federated.

Special parameters :
-debug - can be used with any task to produce debug information in the command output.
-quiet - can be used with any task to suppress messages in the command output.
-verbose - can be used with -list type task to produce addition command output.

Note : -parameter key words are not case sensitive and can be entered in mixed or monocased text.
Note : parameter values are case sensitive and must be typed with the correct upper and lower case.
Note : Incorrect results can occur when the parameter value case is not typed correctly.

****************************************************************************
确保将 AppServ01 概要文件配置为使用 Java 7;列出可用 Java JDK 以确保系统上安装了 Java 7。
cd /opt/IBM/WebSphere/AppServer/bin
./managesdk.sh -listAvailable -verbose
./managesdk.sh \
-listAvailable \
-verbose

====================================
CWSDK1003I: Available SDKs :
CWSDK1005I: SDK name: 1.8_64_bundled
- com.ibm.websphere.sdk.version.1.8_64_bundled=1.8
- com.ibm.websphere.sdk.bits.1.8_64_bundled=64
- com.ibm.websphere.sdk.location.1.8_64_bundled=${WAS_INSTALL_ROOT}/java
- com.ibm.websphere.sdk.platform.1.8_64_bundled=linux
- com.ibm.websphere.sdk.architecture.1.8_64_bundled=x86_64
- com.ibm.websphere.sdk.nativeLibPath.1.8_64_bundled=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/

CWSDK1005I: SDK name: 1.7_64
- com.ibm.websphere.sdk.version.1.7_64=1.7
- com.ibm.websphere.sdk.bits.1.7_64=64
- com.ibm.websphere.sdk.location.1.7_64=${WAS_INSTALL_ROOT}/java_1.7_64
- com.ibm.websphere.sdk.platform.1.7_64=linux
- com.ibm.websphere.sdk.architecture.1.7_64=x86_64
- com.ibm.websphere.sdk.nativeLibPath.1.7_64=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/

CWSDK1001I: Successfully performed the requested managesdk task.

列出与 AppSrv01 关联的 Java 版本。
cd /opt/IBM/WebSphere/AppServer/bin
./managesdk.sh \
-listEnabledProfile \
-profileName AppSrv01 \
-verbose

===================================
CWSDK1004I: Profile AppSrv01 :
CWSDK1006I: PROFILE_COMMAND_SDK = 1.8_64_bundled
- com.ibm.websphere.sdk.version.1.8_64_bundled=1.8
- com.ibm.websphere.sdk.bits.1.8_64_bundled=64
- com.ibm.websphere.sdk.location.1.8_64_bundled=${WAS_INSTALL_ROOT}/java
- com.ibm.websphere.sdk.platform.1.8_64_bundled=linux
- com.ibm.websphere.sdk.architecture.1.8_64_bundled=x86_64
- com.ibm.websphere.sdk.nativeLibPath.1.8_64_bundled=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1008I: Node lczeanNode01 SDK name: 1.8_64_bundled
- com.ibm.websphere.sdk.version.1.8_64_bundled=1.8
- com.ibm.websphere.sdk.bits.1.8_64_bundled=64
- com.ibm.websphere.sdk.location.1.8_64_bundled=${WAS_INSTALL_ROOT}/java
- com.ibm.websphere.sdk.platform.1.8_64_bundled=linux
- com.ibm.websphere.sdk.architecture.1.8_64_bundled=x86_64
- com.ibm.websphere.sdk.nativeLibPath.1.8_64_bundled=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1009I: Server nodeagent SDK name: 1.8_64_bundled
- com.ibm.websphere.sdk.version.1.8_64_bundled=1.8
- com.ibm.websphere.sdk.bits.1.8_64_bundled=64
- com.ibm.websphere.sdk.location.1.8_64_bundled=${WAS_INSTALL_ROOT}/java
- com.ibm.websphere.sdk.platform.1.8_64_bundled=linux
- com.ibm.websphere.sdk.architecture.1.8_64_bundled=x86_64
- com.ibm.websphere.sdk.nativeLibPath.1.8_64_bundled=${WAS_INSTALL_ROOT}/lib/native/linux/x86_64/
CWSDK1001I: Successfully performed the requested managesdk task.

===================================
如有需要,启用 AppSrv01 概要文件以使用 Java 7。
cd /opt/IBM/WebSphere/AppServer/bin
./managesdk.sh \
-enableProfile \
-sdkName 1.7_64 \
-profileName AppSrv01 \
-enableServers \
-user wpsadmin \
-password passw0rd

====================================
执行命令后输入管理帐号密码即可:
Realm/Cell Name: <default>
Username: wpsadmin
Password:
CWSDK1024I: The node default SDK setting for federated profile AppSrv01 has been saved in the master configuration repository.
CWSDK1025I: A synchronization operation is required before configuration changes to federated profile AppSrv01 can be used.
CWSDK1017I: Profile AppSrv01 now enabled to use SDK 1.7_64.
CWSDK1001I: Successfully performed the requested managesdk task.

参考文档:
关于如何切换JDK版本,请参考:
https://www.ibm.com/support/knowledgecenter/en/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/rxml_managesdk.html
IBM WebSphere SDK Java Technology Edition v7或v7.1 :
http://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.multiplatform.doc/ae/tovr_migratingjava.html
https://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.multiplatform.doc/ae/tovr_migratingjava.html
Installing and uninstalling SDK Java Technology Edition Version 8.0 on distributed operating systems:
https://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.installation.nd.doc/ae/tins_installation_jdk8.html
WASSDK补丁包:
http://www-01.ibm.com/support/docview.wss?uid=swg24042430#80322

时间: 2024-10-13 07:54:07

WebSphere V8.5 静默安装升级(二)-使用响应文件静默安装软件包(生成相应文件,不安装)以及managesdk管理SDK的相关文章

WebSphere V8.5 静默安装升级(三)-命令查看创建删除WAS概要文件

[命令查看已建的WAS概要文件]:/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -listProfiles[命令删除WAS概要文件]:方案一: 1. 找到profileRegistry.xml,在目录/opt/IBM/WebSphere/AppServer/properties里,去掉想删除的profile的配置即可. 2. 删除profileName.sh 在目录/opt/IBM/WebSphere/AppServer/propertie

《Linux学习并不难》使用RPM软件包(3):安装RPM软件包

14.3  <Linux学习并不难>使用RPM软件包(3):安装RPM软件包 RPM软件包的安装流程如图9.1所示,如果软件包满足依赖条件则允许安装,如果不满足依赖关系则需要先安装其它软件包. 使用rpm命令可以在Linux系统中安装.删除.刷新.升级.查询RPM软件包. 命令语法: rpm [选项] [RPM软件包文件名称] 命令中各选项的含义如表所示. 选项 选项含义 -i 安装软件包 -v 输出详细信息 -h 安装软件包时打印哈希标记 --replacepkge 无论软件包是否已被安装,

oracle11g静默安装----&gt;介质安装【二】(1)

注意: 静默安装介质版本是11.2.3或更高的版本,db_install.rsp中要写上metalink帐号 二.静默安装文件 解压oracle文件,进入response目录下#cp * /home/oracle/etc/#vi /home/oracle/etc/db_install.rsp db_install.rsp详解 #################################################################### ## Copyright(c) O

Android apk的安装、卸载、更新升级(通过Eclipse实现静默安装)

一.通过Intent消息机制发送消息,调用系统应用进行,实现apk的安装/卸载 . (1) 调用系统的安装应用,让系统自动进行apk的安装 String fileName = "/data/data/com.zlc.ipanel.operate/FileOperate.apk";  Uri uri = Uri.fromFile(new File(fileName));  Intent intent = new Intent(Intent.ACTION_VIEW);  intent.se

探索Oracle之数据库升级二 11.2.0.3升级到11.2.0.4完整步骤

探索Oracle之数据库升级二  11.2.0.3升级到11.2.0.4完整步骤 说明:         这篇文章主要是记录下单实例环境下Oracle 11.2.0.1升级到11.2.0.3的过程,当然RAC的升级是会有所不同.但是他们每个版本之间升级步骤都是差不多的,先升级Database Software,再升级Oracle Instance. Oracle 11.2.0.4的Patchset No:19852360下载需要有Oracle Support才可以.  Patchset包含有7个

Linux 学习记录 五(软件的安装升级)

一.gcc gcc是Linux上面最标准的C语言的编译程序,用来源代码的编译链接. gcc -c hello.c 编译产生目标文件hello.o gcc -O hello.c 编译产生目标文件,并进行优化 gcc -o hello hello.c 生成hello这个可执行的二进制文件 缺点:命令的冗余性,如果 C 语言程序中包含对其他函数或者程序的引用,那么其他程序也要编译成目标文件,然后一起编译成可执行文件,才能运行成功.一个大的程序引用是非常多的,所以用gcc来编译,显得很冗余. 二.mak

Linux 上安装 weblogic12C (远程图形界面安装) (二)

上一篇Linux 上安装 weblogic12C (静默安装)介绍了静默方式安装weblogic12C的方式,这一篇主要介绍在windows主机上通过远程图形界面的方式安装weblogic的方式 一.前期准备 首先下载软件Xmanager,下载链接点我 (百度网盘),包含了注册码. Xmanager安装过程就不介绍了,一直下一步就行了.安装完成后,有以下快捷方式: 主要用到的是圈起来的这两个程序. 二.开始安装 1. 运行 Xmanager - Passive.exe 2. 通过SSH方式连接l

全世界最详细的图形化VMware中linux环境下oracle安装(二)【weber出品必属精品】

<ORACLE 10.2.05版本的升级补丁安装> 首先我们解压 $ unzip p8202632_10205_LINUX.zip 解压后我们会发现多出了个文件夹,他是:Disk1,进入Disk1.然后执行安装: $ ./runInstaller 执行脚本 # /u01/app/oracle/10.2.0/db_1/root.sh Running Oracle 10g root.sh script... The following environment variables are set a

DBA_Oracle Erp R12中文补丁安装升级(案例)

2014-07-11 BaoXinjian 一.摘要 在使用oracle ebs时,使用中文会更好的理解整个ebs流程,一下介绍oracle r12中文补丁的方式 1. 如果你的系统除了支持英语外,还支持其他语言,比如中文,那你在下载补丁的时候除了下载Generic Platform版本外,还要确认有没有其他语言的版本,比如ZHS版本.如果有的话也要下载. 2. EBS的补丁不像数据库的补丁那样可以回滚,一旦失败就很麻烦.所以打补丁前一定要细看readme文件,确认补丁所需的前提条件都满足. 3