IBM交易处理中间件TXSeries安装步骤详解

本文笔者详细记录了对IBM的交易中间件cics的安装以及region创建过程与测试步骤,希望该博文内容可以帮到正在使用或者学习CICS中间件的博友~如有任何问题欢迎各位在线交流,共同学习进步!
1、cics安装介质清单
xlc
———————————————–
XLCC++10.1.tar
cob
———————————————–
cob2.tar.Z
———————————————–
cics71foraix
———————————————–
7.1.0.3-TXSeries-AIX-IF018.tar
TXseries71forUNIX.tar
TXSeries_7.1.0.1_AIX_Fixpack_1.tar
TXSeries-7.1.0.1-AIX-T-Fix-9.tar
TXSeries_7.1.0.3_AIX_Fixpack_3.tar
———————————————–
CTG软件
———————————————–
CTG7201.tar
———————————————–
添加用户
———————————————–
mkuser cics
usermod -g cics cics
usermod -G cicsterm cics
mkgroup cics
mkgroup cicsterm
usermod -G bin,sys,security,cron,audit,lp,cicsterm root
———————————————–
2、安装基础软件
使用smit安装cob、xlc程序
3、安装ctg
tar -xvf CTG7201.tar
./installer -i console
配置ctg
cd /opt/IBM/cicstg/bin
cp ctgdsamp.conf ctgd.conf
cp ctgsamp.ini  ctgd.ini
#具体配置按照业务需求进行
4、安装cics
安装主程序
tar -xvf TXseries71forUNIX.tar
./TXSeriesV71-AIX.bin -i console
打补丁
停止cics
cicscp -v stop all
杀死cics守护进程
ps -ef|grep -i cics|grep -v grep|awk ‘{print $2}’|xargs kill -9
tar -xvf TXSeries_7.1.0.3_AIX_Fixpack_3.tar
./TXSeriesV71-PTF3-AIX.bin -i console
继续打7103的小版本补丁号
ps -ef|grep -i cics|grep -v grep|awk ‘{print $2}’|xargs kill -9
tar -xvf 7.1.0.3-TXSeries-AIX-IF018.tar
cd /usr/lpp/cics/bin
./TXSeriesFixInstaller.sh /backup/software/cics/fix1/FixInstaller_TXSeries_7.1.0.3_InterimServiceFix_18.jar
验证补丁版本号
cicscp version
TXSeries 7.1.0.3 InterimServiceFix 18
5、配置基础环境
编辑/etc/environment文件
CICS_SFS_VG=rootvg
CICS_SFS_SIZE=16
6、创建sfs server和region:
cicscp -v create sfs_server /.:/cics/sfs/AORSFS75 ShortName=AORSFS75
cicscp -v create region YourCompanyRegion DefaultFileServer=/.:/cics/sfs/AORSFS75
7、 启动sfs server和region:
cicscp -v start sfs_server /.:/cics/sfs/AORSFS75 StartType=cold
cicscp -v start region YourCompanyRegion StartType=cold
8、配置RD
cicsupdate -c rd -r YourCompanyRegion XPRecvTimeout=300
cicsupdate -c rd -r YourCompanyRegion MinServer=30
cicsupdate -c rd -r YourCompanyRegion MaxServer=80
cicsupdate -c rd -r YourCompanyRegion ClassMaxTasks=30,30,30,30,30,30,30,30,30,30
cicsupdate -c rd -r YourCompanyRegion MaxRegionPool=62914560
cicsupdate -c rd -r YourCompanyRegion MaxTaskPrivatePool=20971520
cicsupdate -c rd -r YourCompanyRegion MaxTSHPool=41943040
9、配置LD
在/etc/service配置文件内为tran-host添加端口
vi /var/cics_regions/YourCompanyRegion/environment
COBPATH=/user/bin:/usr/lpp/cobol/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/usr/lpp/cicssm/bin:/usr/lpp/cics/lib:.
CICS_PROGRAM_PATH=/usr/lpp/cics/lib:.
cicsadd -c ld -r YourCompanyRegion LD1 TCPAddress=”36.0.1.75″ TCPService=”tran-host” SNAServerTransport=TCP
10、配置WD
cicsupdate -c wd -r YourCompanyRegion MDCL Permanent=no RecoverTerminal=no
cicsupdate -c wd -r YourCompanyRegion MDCI Permanent=no RecoverTerminal=no
11、配置TD
cicsadd -c td -r YourCompanyRegion TCCZ ProgName=”DFHMIRS” Timeout=5 TWASize=32767
cicsadd -c td -r YourCompanyRegion INQY ProgName=”GCCBINQY” Timeout=5 TWASize=32767
cicsadd -c td -r YourCompanyRegion TCCA ProgName=”GCCBMMN” Timeout=5 TWASize=32767
cicsadd -c td -r YourCompanyRegion TCCC ProgName=”GCCBCOP” Timeout=5 TWASize=32767
cicsadd -c td -r YourCompanyRegion SWTB ProgName=”GTBLSWH” Timeout=5 TWASize=32767
cicsadd -c td -r YourCompanyRegion TRAC ProgName=”GCCBTRAC” Timeout=5 TWASize=32767
cicsadd -c td -r YourCompanyRegion TCCB ProgName=”GCCBMMN” Timeout=5 TWASize=32767
cicsadd -c td -r YourCompanyRegion ECTR ProgName=”ECTR” RSLKey=public RSLCheck=none
cicsadd -c td -r YourCompanyRegion TCCR ProgName=”DFHMIRS” Timeout=5 TWASize=32767
cicsadd -r YourCompanyRegion -c td ECTB ProgName=”ECTB” RSLKey=public RSLCheck=none
12、配置PD
cicsadd -c pd -r YourCompanyRegion GCCBMMN PathName=”GCCBMMN” RSLKey=public
cicsadd -c pd -r YourCompanyRegion GCCBINQY PathName=”GCCBINQY” RSLKey=public
cicsadd -c pd -r YourCompanyRegion GCCBCOP PathName=”GCCBCOP” RSLKey=public
cicsadd -c pd -r YourCompanyRegion GTBLSWH PathName=”GTBLSWH” RSLKey=public
cicsadd -c pd -r YourCompanyRegion GCCBTRAC PathName=”GCCBTRAC” RSLKey=public
cicsadd -c pd -r YourCompanyRegion GCCBMLT PathName=” GCCBMLT” RSLKey=public
cicsadd -c pd -r YourCompanyRegion GCCBMLB PathName=” GCCBMLB” RSLKey=public
cicsadd -c pd -r YourCompanyRegion GCCBMDT PathName=” GCCBMDT” RSLKey=public
cicsadd -c pd -r YourCompanyRegion GCCBMAB PathName=” GCCBMAB” RSLKey=public
cicsadd -r YourCompanyRegion -c pd ECTR PathName=”ectr” RSLKey=public
cicsadd -r YourCompanyRegion -c pd ECT1 PathName=”ect1″ RSLKey=public
cicsadd -c pd -r YourCompanyRegion GCCBMART PathName=”GCCBMART” RSLKey=public
cicsadd -c pd -r YourCompanyRegion GCCBMIAT PathName=”GCCBMIAT” RSLKey=public
cicsadd -c pd -r YourCompanyRegion GCCBMOVT PathName=”GCCBMOVT” RSLKey=public
cicsadd -c pd -r YourCompanyRegion GCCBBMN PathName=”GCCBBMN” RSLKey=public
cicsadd -r YourCompanyRegion -c pd ECTB PathName=”ectb” RSLKey=public
cicsadd -r YourCompanyRegion -c pd ECT2 PathName=”ect2″ RSLKey=public
————————————————————————————-
13、配置XAD(没有配置完成)
usermod -G staff,cics,cicsterm db2inst1
su – db2inst1
db2 “update dbm cfg using tp_mon_name cics”
db2  “connect to 数据库名”
db2 “grant bindadd on database to user cics”
db2 “grant select on table sysibm.sysindexes to user cics”
export DBNAME=Yourdb;
export DB2DIR=/home/db2inst1/sqllib;
make –f db21pc.mk
cp /usr/lpp/cics/examples/RM_support/DB2/db21pc* /tmp
添加XAD
cicsadd -c xad -r YourCompanyRegion cicsdb2 SwitchLoadFile=”/usr/lpp/cics/bin/db21pc” XAOpen=”YourDB,db2inst1,db2inst1″(注: Yourdb,db2inst1,db2inst1分别是数据库名称,用户名称,密码;如果所建的数据库名发生变化,用户名和密码也发生变化,那么需要做相应的变化。)
用root用户,编辑/var/cics_regions/YourCompanyRegion/environment文件,新增以下内容:
DB2INSTANCE=db2inst1
用root用户,重新启动region,看看连接是否正常:
cicscp –v start region YourCompanyRegion StartType=cold并用命令cicstail –r YourCompanyRegion 验证启动过程中的一些系统信息

 

     

如果这文章对你有帮助,请扫左上角微信支付-支付宝,给于打赏,以助博客运营

发表评论

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