Unix的机器上(包括AIX、HPUX)managerprofile命令使用说明

在Unix的机器上(包括AIX、HPUX)安装websphere64位的话,想要建立Profile是没有图形化界面的,需要使用manageprofiles命令,下面就详细描述一下如何使用这个命令。

1、建立DM的profile,使用的模版在{install_root}/profileTemplates/dmgr下
句法为:
manageprofile.sh -create –templatePath {install_root}/profileTemplates/dmgr

调用参数为:
-create 建立一个profile. (必选)
-templatePath 指定使用模版的路径. (必选) 建立DM的路径为{install_root}/profileTemplates/dmgr
-profileName 指定profile的名字. (可选)
-profilePath 指定proflile需要建立的路径. (可选)
-hostName 指定profile对应的主机名称. (可选)
-nodeName 指定profile对应的node的名称. 此名称必须在同一cell中唯一. (可选)
-cellName 指定profile对应的cell的名称. 每一个profile的cell名称必须唯一. (可选)
-isDefault 讲此profile指定为缺省的profile,在运行命令期间不需要使用profileName的参数. (可选)
-omitAction 附加条件. (可选)
-adminUserName 在指定administrative security选项后的管理员名称. (可选)
-adminPassword 在指定administrative security选项后的管理员密码. (可选)
-portsFile 指定profile的端口设定文件. 此参数和-startingPort或-defaultPorts参数冲突. (可选)
-startingPort 制度建立profile是的所有的端口的起始的端口号. 同-portsFile或者-defaultPorts参数冲突. (可选)
-defaultPorts 对新建立的profile使用缺省的端口号. 同-portsFile 或 -startingPort 参数冲突. (可选)
-validatePorts 进行端口号验证,保证使用的端口号没有已经被用或者被保留. (可选)
-enableAdminSecurity 新建立的profile使用用户密码方式认证,使用此参数后面跟 true. (可选)
-enableService 作为linux的service使用,使用此参数后面跟 true. (可选)
-serviceUserName 指定作为service使用时的用户. (可选)

-webServerType 指定Web server的类型. (可选)
-webServerOS 指定Web server的操作系统的类型. (可选)

例程:
export WAS_HOME=
export PRO_HOME=
以上指定websphere的安装路径和profile的路径,或者输入命令时替换

manageprofiles.sh -create \
-templatePath $WAS_HOME/profileTemplates/dmgr \
-profilePath $PRO_HOME/Dmgr01 \
-nodeName “nodename” \
-cellName “cell name” \
-enableAdminSecurity true \
-adminUserName wasadmin \
-adminPassword password \
-profileName Dmgr01 \
-hostName `hostname` \

2、建立custom的profile,使用的模版为{install_root}/profileTemplates/managed
句法为:
manageprofile.sh -create -templatePath {install_root}/profileTemplates/managed
调用参数同上:

要联合到DM的例程
manageprofiles.sh -create \
-templatePath $WAS_HOME/profileTemplates/managed \

-profileName AppSrv01 \

-profilePath $PRO_HOME/AppSrv01 \
-nodeName test01 \

-hostName `hostname` \
-cellName test1 \
-dmgrHost 192.168.1.100 \
-dmgrPort 8879 \
-dmgrAdminPassword password \
-dmgrAdminUserName wasadmin

不用联合到DM,而后用addNode.sh联合的例程
manageprofiles.sh -create \
-templatePath $WAS_HOME/profileTemplates/managed \
-profilePath $PRO_HOME/AppSrv02 \
-nodeName test02 \
-cellName test2 \
-profileName AppSrv02 \
-hostName `hostname`

addNode.sh 192.168.1.100:8879 -username wasadmin -password password

3、建立appsrv的profile,使用的模版在install_root/profileTemplates/default
句法为:
manageprofile.sh -create -templatePath install_root/profileTemplates/default
调用参数同上:例程么也就那样

4、对于集群来说,建立DM profile,然后建立多个custom的profile,addNode进去即可。或者把现有的app profile addNode到DM的概要文件中,然后通过克隆建立集群。

 

ibm was8.5 静默式安装FixPack补丁(简单命令)

Was8.5 打补丁的方法,was8.x的安装补丁过程基本一样,都是用IM,静默式安装
1.上传补丁包:

过程略

2.解压安装包:

过程略

3.显示was安装源处,可以提供的repo
/opt/IMS/eclipse/tools/imcl listAvailablePackages -repositories /was8.5/wassource8.5.3
显示结果如下:

4.安装补丁:版本为was8.5.5.3
/opt/IMS/eclipse/tools/imcl install com.ibm.websphere.BASETRIAL.v85_8.5.5003.20140730_1249 -repositories /was8.5/wassource8.5.3/repository.config -installationDirectory /opt/IBM/WebSphere/AppServer -sharedResourcesDirectory /opt/IBM/IMShared -properties cic.selector.nl=zh -acceptLicense -showVerboseProgress
5.结果显示:

6.查看版本:

已经更新成功。

附件
Was补丁包版本:8.5.5.3

下载地址:http://www-01.ibm.com/support/docview.wss?uid=swg1PM90932

How can I manually drop an instance, and/or uninstall DB2 for Linux/Unix

How can I manually drop an instance, and/or uninstall DB2 for Linux/Unix?

Technote (troubleshooting)

Problem(Abstract)
I have an installation of DB2 Universal Database for Linux, Unix and Windows product installed on Unix/Linux, and I cannot drop the instance and/or uninstall the product due to an error. I still need to perform the action, so how can I manually drop the instance, and/or uninstall DB2?
Resolving the problem
If you need to drop an instance, and or uninstall DB2 LUW on either Unix or Linux, but are receiving an error that is preventing you from doing this, then you will need to manually drop the instance, and uninstall the DB2 product.
If you are going to manually uninstall, you will need to also drop all the instance(s) associated with that installation. If you are only manually dropping an instance, then you can just do that. Here are the steps you need to take (NOTE that the following examples are for v9.7, but are applicable to all versions from v9.5 to v10.5):

1. First you will need to get the registry entries for the instance(s) that you are going to manually drop (Section “A” below). If also manually uninstalling, then you will ALSO need to get the registry entries for the installation, as well as any registry variables that are tied to the installation (Section “B” below”). As the instance owner, run “db2greg -dump”. You should save this output as a text file so you can refer to it later if needed. The instance records will start with “I”, the installation records (called “Service” records) will start with an “S”, and the variable records will start with a “V”. You need to locate the appropriate records. As an example, you might see something like this when you run “db2greg -dump”:

[db2v97@my-system ~]$ db2greg -dump
V,DB2GPRF,DB2SYSTEM,my-system,/opt/ibm/db2/V9.7,
V,DB2GPRF,DB2FCMCOMM,TCPIP4,/opt/ibm/db2/V9.7,
S,DB2,9.7.0.8,/opt/ibm/db2/V9.7,,,8,0,,1373391932,0
S,DB2,9.7.0.8,/v97fp8_install,,,8,0,,1380144089,0
V,DB2GPRF,DB2SYSTEM,my-system,/v97fp8_install,
S,DB2,9.7.0.8,/db297fp8/db2,,,8,0,,1380573119,0
V,DB2GPRF,DB2SYSTEM,my-system,/db297fp8/db2,
V,DB2GPRF,DB2FCMCOMM,TCPIP4,/db297fp8/db2,
I,DB2,9.7.0.8,db2v97,/home/db2v97/sqllib,,1,0,/opt/ibm/db2/V9.7,,
V,DB2GPRF,DB2INSTDEF,db2v97,/opt/ibm/db2/V9.7,
V,DB2GPRF,DB2SYSTEM,my-system,/opt/ibm/db2/V10.1,
I,DB2,10.1.0.3,db2v101,/home/db2v101/sqllib,,1,0,/opt/ibm/db2/V10.1,,
V,DB2GPRF,DB2INSTDEF,db2v101,/opt/ibm/db2/V10.1,
S,DB2,10.1.0.3,/opt/ibm/db2/V10.1,,,3,0,,1398537384,0
[db2v97@my-system ~]$

阅读更多