WSRR V7 ON AIX WITH ORACLE群集安装记录12

创建WSRR DM profiles 与Node profiles

构建如下一个创建概要文件sh脚本文件:

S1.SH

#!/bin/sh

cd /usr/WebSphere/ilogWAS7/bin

./manageprofiles.sh -create -profileName Dmgr01 -profilePath /usr/WebSphere/WSRR7/profiles/Dmgr01 -templatePath /usr/WebSphere/WSRR7/profileTemplates/dmgr -hostName S1-CRM-J2EE-WAS -enableAdminSecurity true -adminUserName wasadmin -adminPassword wasadmin -samplesPassword wasadmin

 

./manageprofiles.sh -create -profileName AppSrv01 -profilePath /usr/WebSphere/WSRR7/profiles/AppSrv01 -templatePath /usr/WebSphere/WSRR7/profileTemplates/default -nodeName s1wsrrNode01

 

./manageprofiles.sh -create -profileName AppSrv02 -profilePath /usr/WebSphere/WSRR7/profiles/AppSrv02 -templatePath /usr/WebSphere/WSRR7/profileTemplates/default -nodeName s1wsrrNode02

然后在终端命令符下面执行:

./s1.sh

等候运行一段时间后的结果。

安装成功后并验证:

 

在另外一台机同样创建s2.sh 脚本.

#!/bin/sh

cd /usr/WebSphere/ilogWAS7/bin

./manageprofiles.sh -create -profileName Dmgr01 -profilePath /usr/WebSphere/WSRR7/profiles/Dmgr01 -templatePath /usr/WebSphere/WSRR7/profileTemplates/dmgr -hostName S2-CRM-J2EE-WAS -enableAdminSecurity true -adminUserName wasadmin -adminPassword wasadmin -samplesPassword wasadmin

 

./manageprofiles.sh -create -profileName AppSrv01 -profilePath /usr/WebSphere/WSRR7/profiles/AppSrv01 -templatePath /usr/WebSphere/WSRR7/profileTemplates/default -nodeName s2wsrrNode01

 

./manageprofiles.sh -create -profileName AppSrv02 -profilePath /usr/WebSphere/WSRR7/profiles/AppSrv02 -templatePath /usr/WebSphere/WSRR7/profileTemplates/default -nodeName s2wsrrNode02

 

脚本执行成功后,启动Dmgr,检查日志。

 

在WPS安装目录/profiles/Dmgr01/bin下运行./startManager.sh

检查日志,没有错误。

各应用node 节点,在上面的脚本运行同时,已经建立。

 

 

联立节点

查看Dmgr的端口信息,到查看Dmgr01/logs/AboutThisProfile.txt

记录Dmgr的SOAP管理端口,以此处为例为8884。

 

转到Custom概要文件的bin目录下:

cd /usr/WebSphere/WPS/profiles/Custom01

执行节点联立命令(此时先保证Dmgr概要文件实例已经在运行,否则在Dmgr概要文件bin目录下运行./startManager.sh以启动),根据实际情况修改主机名,DM节点SOAP管理端口,WAS管理控制台管理用户和密码

./addNode.sh S2-CRM-J2EE-WAS 8879 –username wasadmin –password <password>

运行一段时间后,参看运行结果

 

使用管理控制台创建ND6群集

完成这步之前,先确保Dmgr进程和对应Custom概要文件的节点代理进程已经正常启动成功。

否则使用

#/usr/WebSphere/WSRR7/profiles/Dmgr01/bin/startManager.sh

启动Dmgr进程,并使用

#/usr/WebSphere/WSRR7/profiles/AppSrv01/bin/startNode.sh

启动NodeAgent进程。

 

登录管理控制台,进入”Servers“-“Cluster”操作页面,点击New…按钮,创建一个WSRR集群

 

 

 

创建好集群后,先不用启动集群。而且要停掉各个nodeagent。并且在命令行,停掉dmgr.

 

切换到argument File文件目录:

/usr/WebSphere/WSRR7/WSRR/install/profile-responsefiles

 

将augment-oracle-cluster-singledb.txt 复制成wssrDmgr01.txt

编辑wssrDmgr01.txt 文件。编辑如下wssrDmgr01.txt文件

 

 

# begin_generated_IBM_copyright_prolog

 

#

 

# Licensed Materials – Property of IBM

 

# 5724-N72 5655-W17

 

# (c) Copyright IBM Corp. 2009 All Rights Reserved

 

# US Government Users Restricted Rights – Use, duplication or

 

# disclosure restricted by GSA ADP Schedule Contract with

 

# IBM Corp.

 

#

 

# end_generated_IBM_copyright_prolog

 

 

 

# WSRR manageprofiles sample response file

 

# Run this file using:

 

# manageprofiles -response <path to this file>

 

 

 

# For Windows please use double backslashes as path separators (\\)

 

# Please ensure there are no trailing space characters on the end of property values.

 

 

 

# This file is for deploying WSRR to a cluster using Oracle with a single database.

 

 

 

augment

 

 

 

# details of the profile

 

profileName=Dmgr01

 

templatePath=/usr/WebSphere/WSRR7/profileTemplates/dmgr.wsrr

 

 

 

# WAS security

 

adminUserName=wasadmin

 

adminPassword=wasadmin

 

 

 

# Target cluster

 

wsrrClusterName=wsrr2C

 

 

 

# wsrr security settings

 

runasUserName=wasadmin

 

runasPassword=wasadmin

 

jmsUserName=wasadmin

 

jmsPassword=wasadmin

 

adminUser=ALL_AUTHENTICATED

 

adminGroup=NONE

 

userUser=ALL_AUTHENTICATED

 

userGroup=NONE

 

 

 

# Set this to true if you have already created the database and tables

 

dbAlreadyConfigured=true

 

 

 

# Set this to true to create a new database

 

# Set this to false to create the tables in an existing database

 

dbCreateNew=false

 

 

# Set this to true to generate the SQL but not execute it

 

# Set this to false to execute the SQL during profile creation

 

dbDelayConfig=true

 

 

 

# Directory to put sql scripts in

 

dbOutputScriptDir=dbscripts

 

 

 

# database type can be:

 

# DB2_Universal

 

# DERBY_EMBEDDED

 

# ORACLE10G

 

# ORACLE11G

 

# DB2UDBOS390_V8_1

 

# DB2UDBOS390_V9_1

 

# MSSQLSERVER_MICROSOFT

 

dbType=ORACLE11G

 

 

 

# Oracle Install directory

 

# e.g. c:\\oracle\\app\\product\\10.2.0\\db_1 (Windows)

 

# e.g. /u01/oracle/app/oracle/product/10.2.0/db_1 (UNIX)

 

# dbLocation=/u01/oracle/app/oracle/product/10.2.0/db_1

 

 

 

# path to jdbc drivers

 

# For oracle this is the directory containing the ojdbc6.jar file

 

dbJDBCClasspath=/usr/WebSphere/WSRR7/jdbc/lib

 

 

 

# Oracle system administrator (owner of the Oracle files on the filesystem)

 

dbSysUserId=oracle

 

# Oracle SYSTEM password

 

dbSysPassword=ora-01555

 

 

# TS database parameters

 

dbHostName=10.251.35.31

dbServerPort=1521

 

dbName=wilog2

dbUserId=WSRR

 

dbPassword=WSRR

 

 

 

sibDbSchemaName=WSRRSIB

 

以下文章点击率最高

Loading…


发表评论

电子邮件地址不会被公开。 必填项已用*标注