资源描述
CICS与与CTG的安装与迁移的安装与迁移51、没有哪个社会可以制订一部永远适用的宪法,甚至一条永远适用的法律。杰斐逊52、法律源于人的自卫本能。英格索尔53、人们通常会发现,法律就是这样一种的网,触犯法律的人,小的可以穿网而过,大的可以破网而出,只有中等的才会坠入网中。申斯通54、法律就是法律它是一座雄伟的大夏,庇护着我们大家;它的每一块砖石都垒在另一块砖石上。高尔斯华绥55、今天的法律未必明天仍是法律。罗伯顿CICS与CTG的安装与迁移51、没有哪个社会可以制订一部永1IBM Software Group TXSeries for Multiplatforms 2006 IBM CorporationVersion 11-May-2009TXSeries CICS和CTG的安装与迁移刘睿TXSeries CICS和CTG的安装与迁移刘睿IBM Software Group TXSeries for Multiplatforms概要安装TXSeries安装CTG/CUC迁移到TXSeries v6.1概要安装TXSeries3IBM Software Group TXSeries for Multiplatforms 2006 IBM CorporationVersion 11-May-2009安装TXSeries安装TXSeriesIBM Software Group TXSeries for Multiplatforms在Solaris上安装的准备工作TXSeries需要的系统参数(修改/etc/system文件,需要重新启动):设置单进程的共享内存最大为50Mset shmsys:shminfo_shmmax=52428800设置单进程句柄硬限制为1024,然后再使用“ulimit-n 1024”set rlim_fd_cur=0 x400CTG需要的系统参数:set msgsys:msginfo_msgmax=65535Maximum size of System V message.set msgsys:msginfo_msgmnb=65535Maximum number of bytes that can be on any one message queue.set msgsys:msginfo_msgssz=32Specifies size of chunks system uses to manage space for message buffers.Obsolete since the Solaris 8 release.set msgsys:msginfo_msgseg=16384Number of msginfo_msgssz segments the system uses as a pool for available message memory.Total memory available for messages is msginfo_msgseg*msginfo_msgssz.Obsolete since the Solaris 8 release.set semsys:seminfo_semmni=4096Maximum number of semaphore identifiers.set msgsys:msginfo_msgtql=10000The maximum number of queue entries that can be in the system at the same time.A low value can adversely affect system performance,or cause the client to freeze.IBM recommends that you set this value to the maximum(10000),or at least double the maximum number of concurrent requests.Stress load your system,and then use the ipcs-qa command to determine the setting.在Solaris上安装的准备工作TXSeries需要的系统参5IBM Software Group TXSeries for Multiplatforms在HP-UX上安装的准备工作use“sam”maxfiles=1024maxswapchunks=512max_thread_proc=1024/即即max_thread_proc=8+(10 x MaxServers)。此参数不足时系统报。此参数不足时系统报ccreatethread失败失败maxuprc=256maxusers=256nflocks=256ninode=8192nkthread=(nproc*7/4)+16)/nproc=(20+8*maxusers)即即nkthread=64+33 x MaxServers。可用。可用4096npty=128semmnu=64semume=32shmmax=0 x10000000/256 MBshmmni=200shmseg=120#CTG需要的系统参数:需要的系统参数:msgssz=32msgmnb=65535msgmax=65535msgseg=16384msgmni=500在HP-UX上安装的准备工作use“sam”6IBM Software Group TXSeries for Multiplatforms在AIX上的准备工作修改“Maximum number of PROCESSES allowed per user”(默认128)chdev-l sys0-a maxuproc=2048观察lsattr-El sys0-a maxuproc 激活异步IOmkdev-l aio0修改AIX的cics用户的限制数值(在/etc/security/limits文件)fsize=-1 fsize_hard=-1 core=-1 cpu=-1 data=-1 rss=-1 stack=-1 nofiles=-1安装C编译器之前,注意安装bos.adt。在AIX上的准备工作修改“Maximum number of7IBM Software Group TXSeries for MultiplatformsV6.x/7.x:安装TXSeries步骤(1)准备工作:4安装C或COBOL编译器,数据库开发环境等4检查网络情况(hostname,/etc/hosts,smitty tcpip,ifconfig,netstat in)4如果有必要,准备文件系统(/var/cics_regions,/var/cics_servers)执行安装程序4Windows:setup.exe4UNIX:TXSeries#-.bin consoleV6.x/7.x:安装TXSeries步骤(1)准备工作:8IBM Software Group TXSeries for MultiplatformsV6.1:安装TXSeries步骤(2)创建SFS前,如果有必要,酌情设置如下的环境变量:CICS_SFS_SERVERSets the default working SFS.This overrides the environment variable ENCINA_SFS_SERVER.#例:CICS_SFS_SERVER=/.:/cics/sfs/LR1PCCICS_SFS_SIZESpecifies the size(in MB)of both the data and the log logical volumes for the SFS.在AIX上是CICS_SFS_SIZE/4*。#例:CICS_SFS_SIZE=68CICS_SFS_VGFor Open Systems this specifies the logical volume group for and for Windows NT this specifies the location of both the data and the log logical volumes for the SFS.CICS_SFS_DATA_SIZESpecifies the size(in MB)of the data logical volume for the SFS.This overrides the environment variable CICS_SFS_SIZE.CICS_SFS_DATA_VGFor Open systems this specifies the logical volume group for and for Windows NT this specifies the location of the data logical volume for the SFS.This overrides the environment variable CICS_SFS_VG.CICS_SFS_LOG_SIZESpecifies the size(in MB)of the log logical volume for the SFS.This overrides the environment variable CICS_SFS_SIZE.CICS_SFS_LOG_VGFor Open Systems the specifies the logical volume group for and for Windows NT this specifies the location of the log logical volume for the SFS.This overrides the environment variable CICS_SFS_VG.V6.1:安装TXSeries步骤(2)创建SFS前,如果有9IBM Software Group TXSeries for MultiplatformsV6.1:安装TXSeries步骤(3)执行创建SFS命令:cicscp-v create sfs_server ShortName=.UserID=.#即:cicscp-v create sfs_server/.:/cics/sfs/#注:By default,sfs_server_name is the first seven characters of the name of the machine on which you are creating the SFS server.冷启动SFScicscp-v start sfs_server StartType=cold执行创建region命令:cicscp-v create region DefaultFileServer=#例:cicscp-v create region CICS01 DefaultFileServer=/.:/cics/sfs/LR1PC冷启动Regioncicscp-v start region StartType=cold#例:cicscp-v start region CICS01 StartType=coldV6.1:安装TXSeries步骤(3)执行创建SFS命令:10IBM Software Group TXSeries for MultiplatformsV6.1:安装TXSeries步骤(4)配置Web Admin Console:1.更新默认的端口(80端口经常与其它系统冲突)修改“%CICSPATH%/wui/conf/config.properties”文件,例如:com.ibm.pvc.webcontainer.port=98532.停止/启动lwi4UNIXcd$CICSPATH/wui/bin./lwistop.shnohup./lwistart.sh&4在Windows上有TXSeries LWI服务。更新启动用户;将其加入cicsgroup。3.访问主页“localhost:9853/txseries/admin”V6.1:安装TXSeries步骤(4)配置Web Admi11IBM Software Group TXSeries for Multiplatformsv5.x/v4.x:在Windows上安装TXSeries1.执行setup.exe2.执行cicscp destroy dcecicscp create dce R3.安装DCE的补丁安装Encina/CICS的补丁4.可选:设置环境变量5.新建Region去掉“使用DCE来定位服务器”选项v5.x/v4.x:在Windows上安装TXSeries执12IBM Software Group TXSeries for Multiplatformsv5.x/v4.x:设置用户、组(1)AIXsmitty mkgroupGroup NAME cicsUSER list rootADMINISTRATOR list rootGroup NAME cicstermUSER list rootADMINISTRATOR list rootHP:ln-s/etc/group/etc/logingroupnonAIX:groupadd cicsgroupadd cicstermv5.x/v4.x:设置用户、组(1)AIX13IBM Software Group TXSeries for Multiplatformsv5.x/v4.x:设置用户、组(2)AIXsmitty mkuserUser NAME cicsPrimary GROUP cicsGroup SET cicstermUser NAME SFS_SERVHome Dir /var/cics_servers/SSD/cics/sfs/$ServerIdPrimary GROUP cicsGroup SET cicstermnonAIX:useradd-g cics-s/bin/ksh-d/opt/cics cicsuseradd-g cics-s/bin/ksh-d/var/cics_servers/SSD/cics/sfs/serverId SFS_SERV检查/etc/passwd和/etc/group文件,root,cics,SFS_SERV(还有数据库用户)属于cics和cicsterm组。注意:将root,cics和db加入cics,cicsterm和DB组。v5.x/v4.x:设置用户、组(2)AIX14IBM Software Group TXSeries for Multiplatforms创建日志文件系统和逻辑卷(1)AIXsmitty crjfs选择选择Add a Standard Journaled File System和相应得卷组和相应得卷组(vg):SIZE of file system200000 /100 mega bytes(单位:单位:0.5K)MOUNT POINT/var/cics_serversMount AUTOMATICALLY at system restart?YesSIZE of file system800000 /400 mega bytes,根据实际交易量,根据实际交易量MOUNT POINT/var/cics_regionsMount AUTOMATICALLY at system restart?Yes注:在注:在/usr/lpp/cics(AIX)或或/opt/cics(nonAIX)需要需要150MSolaris:use“format”HP:use“sam”mount/var/cics_serversmount/var/cics_regions如果仅在如果仅在/var下建立目录,请考虑安全属性。例:下建立目录,请考虑安全属性。例:chmod 755 cics_*mkdir/var/cics_regionsmkdir/var/cics_serverschown-R cics:cics/var/cics*创建日志文件系统和逻辑卷(1)AIX15IBM Software Group TXSeries for Multiplatformsv5.x/v4.x:创建日志文件系统和逻辑卷(2)AIXsmitty mklv用F4键选择相应的卷组(vg)。(用smit删除重名卷组,删不掉重启动)Logical volume NAMEsfs_SFS_SERVNumber of LOGICAL PARTITIONS2 /512M(单位:256M)Logical volume NAMElog_SFS_SERVNumber of LOGICAL PARTITIONS1 /256M(单位:256M)Solaris:use“format”HP:use“sam”v5.x/v4.x:创建日志文件系统和逻辑卷(2)AIX16IBM Software Group TXSeries for Multiplatformsv5.x/v4.x:创建日志文件系统和逻辑卷(3)AIX假设假设SFS短名短名(%S)为为SFS_SERVcd/dev /log_SFS_SERV,sfs_SFS_SERV,rlog_SFS_SERV,rsfs_SFS_SERVchown SFS_SERV:cics*SFS*/有四个设备会被授权有四个设备会被授权SFS_SERV用户用户chmod 640*SFS*/有四个设备会被授权有四个设备会被授权SFS_SERV用户用户Solaris:(假设假设SFS短名短名(%S)为为SFS_SERV,假设硬盘,假设硬盘c0t2d0的第的第0/1分区分别用于逻辑卷分区分别用于逻辑卷log_SFS_SERV/sfs_SFS_SERV)cd/dev/dskln -s c0t2d0s0 log_SFS_SERVln -s c0t2d0s1 sfs_SFS_SERVcd /dev/rdskln -s c0t2d0s0 log_SFS_SERVln -s c0t2d0s1 sfs_SFS_SERVchown SFS_SERV:cics /dev/dsk/*SFS*chown SFS_SERV:cics /dev/rdsk/*SFS*chmod 640 /dev/dsk/*SFS*chmod 640 /dev/rdsk/*SFS*HP:(假设假设SFS短名短名(%S)为为SFS_SERV,假设逻辑卷,假设逻辑卷log_SFS_SERV/sfs_SFS_SERV在卷组在卷组VG00)chown SFS_SERV:cics /dev/VG00/*SFS*chmod 640 /dev/VG00/*SFS*注意:注意:SFS用户名缺省为用户名缺省为SFS_SERV,广义的说,卷名为:,广义的说,卷名为:sfs_$SFS_USER_NAME和和log_$SFS_USER_NAME。v5.x/v4.x:创建日志文件系统和逻辑卷(3)AIX17IBM Software Group TXSeries for Multiplatforms设置环境变量并初始化(1)HP,Solaris使用/etc/profile需要export,AIX使用/etc/environment文件,某些可以加入文件:“/var/cics_regions/$CICSREGION/environment”,注意在environment文件中不能用宏($)。某些环境变量(如XA使用的)在AIX系统必须加入environment文件AIX常用的环境变量设置EXTSHM=ONLDR_CNTRL=MAXDATA=0 x10000000设置环境变量并初始化(1)HP,Solaris使用/etc18IBM Software Group TXSeries for Multiplatformsv5.x/v4.x:设置环境变量并初始化(2)PATH中加入/usr/lpp/cics/bin:/usr/lpp/encina/bin:/usr/lpp/dce/bin:/usr/lpp/encina/etc,同时检查数据库bin路径是否设置PATH=$PATH:/usr/ibmcxx/bin:/usr/lpp/cics/bin:/usr/lpp/encina/bin:/usr/lpp/dce/bin:/usr/lpp/encina/etcPATH=$PATH:/opt/cics/bin:/opt/encina/bin:/opt/dcelocal/bin:/opt/dcelocal/etc/HPPATH=$PATH:/usr/local/bin:/usr/ucb:/opt/cics/bin:/opt/dcelocal/bin:/opt/encina/bin /SolarisLANG=en_US (environment文件)LANG=en_US.iso88591 (HP)LANG=C (nonAIX)CICSPATH=/usr/lpp/cicsCICSPATH=/opt/cics(non AIX)ENCINA_BINDING_FILE=/var/cics_servers/server_bindingsRPC_SUPPORTED_PROTSEQS=ncadg_ip_udp(HP:不能设置此,妨害swinstall命令)(影响各种RPC应用,限制其协议类型)(可设置在region的environment文件中)RPC_UNSUPPORTED_NETIFS=if_0:if_1/en0|en1|tr0|fddi0,注意HP DCE使用RPC_SUPPORTED_NETIFSRPC_UNSUPPORTED_NETADDRS=ip1:ip2/注意HP DCE使用RPC_SUPPORTED_NETADDRS(把不在server_bindings文件中用到的网卡加入,冒号间隔,可用netstat-in观察)CICSREGION=defaul_region_nameCICS_SFS_SERVER=/.:/cics/sfs/$HOSTNAMEENCINA_SFS_SERVER=/.:/cics/sfs/$HOSTNAMEv5.x/v4.x:设置环境变量并初始化(2)PATH中加入19IBM Software Group TXSeries for Multiplatformsv5.x/v4.x:设置环境变量并初始化(3)NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/en_US/%N:/usr/lpp/dce/lib/nls/msg/%L/%NNLSPATH=/opt/cics/msg/%L/%N:/opt/cics/msg/C/%N:/opt/dcelocal/nls/msg/%L/%N:/opt/encina/msg/%L/%N:/opt/encina/msg/C/%N/SolarisNLSPATH=/opt/cics/msg/%L/%N:/opt/cics/msg/C/%N:/opt/dcelocal/nls/msg/%L/%N:/opt/dcelocal/nls/msg/en_US.ASCII/%N:/opt/encina/msg/%L/%N:/opt/encina/msg/C/%N/HPNLSPATH=C:IBMDebugmsg%L%N;C:IFORLSMSG%L%N;c:DCEdcelocalnlsmsg%L%N;c:DCEdcelocalnlsmsgenus437%N;C:optencinaMSGzh_CNN;C:optencinacborbmsg%N;C:optcicsMSGzh_CNN;/WindowsCICS_HOSTS=$HOSTNAME1$HOSTNAME2$HOSTNAME3CICS_SFS_VG=rootvg/卷组名卷组名CICS_SFS_VG=VG00/HP:卷组名卷组名CICS_SFS_SIZE=1024 /cicscp使用,缺省为使用,缺省为64,单位,单位:MBCICS_SFS_DATA_SIZE=1024CICS_SFS_LOG_SIZE=256CICS_PPCGWY_SERVER=/.:/cics/ppc/gateway/GWYT01CICS_PPCGWY_VG=rootvgCICS_PPCGWY_SIZE=4CLASSPATH=.:/usr/lpp/cics/classes/dfjcics.jar:/usr/lpp/cics/lib/somojor.zip:/usr/lpp/cics/lib/somojij.zip:/usr/lpp/cics/lib/somshcl.zip:/usr/lpp/cics/lib/somshor.zip:/usr/lpp/cics/classes:/var/cics_regions/$CICSREGION/classes:/home/db2inst1/sqllib/java/db2java.zipLIBPATH=/usr/lib:/lib:/usr/lpp/cics/lib:/usr/lpp/ctg/bin:/home/db2inst1/sqllib/libLD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/cics/lib:/opt/dcelocal/lib:/opt/encina/lib /SolarisSHLIB_PATH=$SHLIB_PATH:/opt/cics/lib:/opt/dcelocal/lib:/opt/encina/lib /HPCICS_XP_RECV_TIMEOUT=300 /对应对应CICS 4.3 RD/XPRecvTimeoutexport /non AIXv5.x/v4.x:设置环境变量并初始化(3)NLSPATH20IBM Software Group TXSeries for Multiplatformsv5.x/v4.x:创建创建“/var/cics_servers/server_bindings”文件例如输入:/.:/cics/sfs/ServerId ncadg_ip_udp:8888chmod 777/var/cics_servers/server_bindingsv5.x/v4.x:创建“/var/cics_servers21IBM Software Group TXSeries for Multiplatformsv5.x/v4.x:安装DCEAIXsmitty installrmdce-F-o local allSolaris安装DCE及相关补丁(不装DCE SERVER)cd /cdrom/cdrom0./dcesetup install/etc/init.d/dce stop/opt/dce/etc/dcesetup unconfig -force HP/opt/dce/bin/dce_config /选择remove安装DCE的补丁v5.x/v4.x:安装DCEAIX22IBM Software Group TXSeries for Multiplatformsv5.x/v4.x:安装安装Encina&CICS(1)AIXsmitty install选择:cics.base,cics.client,cics.server,cics.msg.locale,encina.client,encina.server,encina.PPCexec,encina.SFS,encina.msg.locale注意:1、首先安装GSK(v5.x);2、ACCEPT new license agreementsSolaris使用”admintool”HPmount cdrom使用”swinstall”,分别安装/cdrom/Encina.depot和/cdrom/CICS.depot。v5.x/v4.x:安装Encina&CICS(1)23IBM Software Group TXSeries for Multiplatformsv5.x/v4.x:安装安装Encina&CICS(2)执行”umask 022”cicsdefaultservers(产生各种模板,创建sfs定义文件)执行cicssetupclients-m-v(设置CICS Client环境,被cicsterm组成员使用)安装Encina/CICS的补丁先安装Encina补丁,再安装CICS补丁。在AIX上注意使用slibclean。v5.x/v4.x:安装Encina&CICS(2)执24IBM Software Group TXSeries for Multiplatformsv5.x/v4.x:配置DCE执行cicscp create dce Rcicscp start dcev5.x/v4.x:配置DCE执行cicscp creat25IBM Software Group TXSeries for Multiplatformsv5.x/v4.x:配置SFS执行cicssfscreate-S/.:/cics/sfs/ServerId ShortName=SFS_SERVCold start:cicssfs /.:/cics/sfsServerId StartType=coldv5.x/v4.x:配置SFS执行cicssfscreat26IBM Software Group TXSeries for Multiplatformsv5.x/v4.x:创建CICS Region创建CICS Region-CICS014cicsdefault-r CICS01-S配置配置CICS资源到资源到SFS:4cicsupdate-c rd-r CICS01 DefaultFileServer=/.:/cics/sfs/$HOSTNAME4cicssfsconf-I-R wc CICS01 DefaultFileServer=/.:/cics/sfs/$HOSTNAMEv5.x/v4.x:创建CICS Region创建CICS 27IBM Software Group TXSeries for Multiplatforms配置配置DB2 XA(1/4)1.安装产品1)安装DB2 v9,创建实例(假定db2inst1),数据库(假定mydb)#注:不要使用db2ln,使用下面的命令取消链接:/opt/IBM/db2/V9.5/cfg/db2rmln/usr/lib下不要有DB2的库文件(ls-l/usr/lib|grep db2),如果有的话,要删除2)安装TXSERIES v6/7,创建域(假定CICS01)#注:如果是TXSERIES v6.1,至少要打补丁23)把cics用户加入到DB2实例用户所在的组。配置DB2 XA(1/4)1.安装产品28IBM Software Group TXSeries for Multiplatforms配置配置DB2 XA(2/4)2.配置XA2.1 编译Switch Load File1)用root用户登陆执行:chmod-R 777/usr/lpp/cics/examples/RM_support2)用db2inst1用户登陆(su-db2inst1)执行:export PATH=/usr/vac/bin:$PATHcd/usr/lpp/cics/examples/RM_support/DB2修改db2xa.mk或db21pc.mk,增加如下内容:“DB2DIR=/opt/IBM/db2/V9.5”(对于db21pc.mk,还需要增加“DBNAME=”)编译:make-f db2xa.mk或make-f db21pc.mk#注:如果使用了超过8个字符的用户名或数据库名,应该修改“db21pc.sqc”源文件。修改user定义和sscanf代码。3)用root用户登陆slibcleancp/usr/lpp/cics/examples/RM_support/DB2/db2xa /var/cics_regions/CICS01/bin或者cp/usr/lpp/cics/examples/RM_support/DB2/db21pc/var/cics_regions/CICS01/bin配置DB2 XA(2/4)2.配置XA29IBM Software Group TXSeries for Multiplatforms配置配置DB2 XA(3/4)2.2 增加XA定义(假设DB2实例的用户/口令是:db2inst1/db2pass)cicsadd-c xad-r CICS01 DB2XA SwitchLoadFile=db2xa XAOpen=tpm=cics,db=mydb,uid=db2inst1,pwd=db2pass,toc=p或:cicsadd-c xad-r CICS01 DB21PC SwitchLoadFile=db21pc XAOpen=mydb,db2inst1,db2pass#注:db2inst1必须能用该用户/口令登陆2.3 修改/var/cics_regions/CICS01/environment文件,增加:DB2DIR=/opt/IBM/db2/V9.5DB2COMM=tcpipDB2INSTANCE=db2inst1LIBPATH=/usr/lpp/cics/lib:/usr/lpp/cicssm/lib:/opt/IBM/db2/V9.5/lib32#注:对SolarisDB2DIR=/opt/IBM/db2/V9.5DB2COMM=tcpipDB2INSTANCE=db2inst1LD_LIBRARY_PATH=/opt/cics/lib:/opt/IBM/db2/V9.5/lib32#注:如果有必要的话,还要设置DB2CODEPAGE,典型值包括1208,1386。配置DB2 XA(3/4)2.2 增加XA定义(假设DB230IBM Software Group TXSeries for Multiplatforms配置配置DB2 XA(4/4)2.4 授权要给root,cics,XAOpen字符串使用的DB2实例用户授权GRANT DBADM ON DATABASE TO USER rootGRANT DBADM ON DATABASE TO USER cicsGRANT DBADM ON DATABASE TO USER 3.冷启动regioncicscp-v start region CICS01 StartType=cold配置DB2 XA(4/4)2.4 授权31IBM Software Group TXSeries for Multiplatforms配置配置Oracle XA(1/3)1.设置环境:1.1 设置环境变量:观察oracle用户的环境变量(su-oracle)设置以下环境变量到/etc/environment文件以及/var/cics_regions/CICS01/environment文件(假如CICS域名为CICS01):#注意:ORACLE_SID,ORACLE_HOME和LIBPATH都要根据实际情况酌情设置,即使不需要也要设置一个ORACLE_SID环境变量,库路径要使用32位的(lib32)#例:LANG=en_USORACLE_SID=ORCLORACLE_HOME=/sw/oracle/product/10.2NLS_DATE_FORMAT=yyyy-mm-dd hh24:mi:ssNLS_LANG=AMERICAN_AMERICA.ZHS16GBKLIBPATH=/sw/oracle/product/10.2/lib32退出系统重新登陆。#注:如果在Windows上没有发现上述的环境变量,可以在注册表的HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE中查找,并设置到操作系统。CICS必须的环境变量是ORACLE_SID和ORACLE_HOME。配置Oracle XA(1/3)1.设置环境:32IBM Software Group TXSeries for Multiplatforms配置配置Oracle XA(2/3)1.2 数据库设置:sqlplus/as sysdba GRANT SELECT ON DBA_PENDING_TRANSACTIONS TO scott;/scott是cics要使用的用户2.编译Oracle XA Switch Load File2.1 编译静态的Oracle 1 Phase XA文件make-f oracle1pc.mk2.2 编译静态的Oracle 2 Phase XA文件make-f oraclexa_sta.mk oracle#注:如果使用动态的2PC XA Switch Load File,要重新编译Oracle的库libclnsh.so。配置Oracle XA(2/3)1.2 数据库设置:33IBM Software Group TXSeries for Multiplatforms配置配置Oracle XA(3/3)3.定定义义XADcicsadd-c xad-r CICS01 OraXA SwitchLoadFile=oracle1pc XAOpen=OraXA+Acc=P/scott/tiger或:或:cicsadd-c xad-r CICS01 OraXA SwitchLoadFile=oracle1pc XAOpen=OraXA+Acc=P/scottconnstr/tiger或:或:cicsadd-c xad-r CICSNT01 OraXA SwitchLoadFile=oracle1pc.dll XAOpen=OraXA+Acc=P/system/manager或:或:cicsadd-c xad-r CICSNT01 OraXA SwitchLoadFile=oracle1pc.dll XAOpen=OraXA+Acc=P/system/manager+SqlNet=connstr#1 Phase XAOpen例:例:OraXA+Acc=P/system/passwordOraXA+Acc=P/scott/tiger#2 Phase XAOpen例:例:Oracle_XA+Acc=P/scott/tiger+SesTm=90+LogDir=/tmp+DbgFl=1OraXA+Acc=P/system/password+SesTm=90+LogDir=c:temp+DbgFl=1+MaxCur=100+SqlNet=connstr#2 Phase XAOpen例:例:Oracle_XA+Acc=P/scott/tiger+SesTm=90+LogDir=/tmp+DbgFl=1+SqlNet=ozw2aThis string causes a CICS application server process(cicsas)to connect to the database,as follows:-As user scott with password tiger(Acc=P/scott/tiger)-With inactive transactions aborted after 90 seconds(SesTm=90)-With log files created in the/tmp directory(LogDir=/tmp)-With XA procedure calls and returns logged in the log file(DbgFl=1)#注:注:DbgFl是位屏蔽是位屏蔽码码,可,可选选1、2、4等,最等,最详详尽的日志是尽的日志是DbgFl=15配置Oracle XA(3/3)3.定义XAD34IBM Software Group TXSeries for Multiplatforms配置配置Informix 1 Phase XA0.数据库的日志方式必须要设成数据库的日志方式必须要设成unbuffered log,不可用其它方式或者关闭,否则,不可用其它方式或者关闭,否则CICS启动失败启动失败 1.配置环境使得配置环境使得root和和cics用户可以存取用户可以存取Informix1.1 vi/etc/profile,加入加入 PATH=$PATH:/informix/informix/bin1.2 vi/var/cics_regions/$CICSREGION/environment 加入加入INFORMIXDIR=/home/informix /安装路径,其下之安装路径,其下之etc目录有目录有sqlhosts文件文件INFORMIXSERVER=host1 /Informix服务器名,用于通信,相当于在服务器名,用于通信,相当于在XAOpen的库名称后添加的库名称后添加“”。ONCONFIG=onconfig.host1 中文环境需要很多环境变量中文环境需要很多环境变量(诸如诸如DBLANG,CLIENT_LOCALE,DB_LOCALE)。#注:环境变量注:环境变量“INFORMIXSERVER”的作用相当于在的作用相当于在XAD/OpenString后加上后加上“”。1.3 如果跨机器,要做系统用户信任,对如果跨机器,要做系统用户信任,对Windows的访问,使用的访问,使用SYSTEM用户。用户。1.4 授权授权 grant resource to cics;2.生成生成Switch Load File2.1进入进入Switch Load File编译程序所在的目录编译程序所在的目录2.2 修改修改make文件中相应的环境变量文件中相应的环境变量例:例:INFORMIXDIR=/informix/informix2.3 编译生成编译生成Switch Load Filemake-f informix1pc.mk/UNIXnmake-f informix1pc.mk/WIN把生成的把生成的Switch Load File复制到复制到region的的bin目录下。目录下。3.定义定义XAcicsadd-c xad-r CICS01 InformXa SwitchLoadFile=inform1pc XAOpen=dbname /UNIX配置Informix 1 Phase XA0.数据库的日35IBM Software Group TXSeries for Multiplatforms配置配置Informix 2 Phase XA0.数据库的日志方式必须要设成数据库的日志方式必须要设成unbuffered log,不可用其它方式或者关闭,否则,不可用其它方式或者关闭,否则CICS启动失败启动失败 1.配置环境使得配置环境使得root和和cics用户可以存取用户可以存取Informix1.1 vi/etc/profile,加入加入 PATH=$PATH:/informix/informix/bin1.2 vi/var/cics_regions/$CICSREGION/environment 加入加入INFORMIXDIR=/home/informix /安装路径,其下之安装路径,其下之etc目录有目录有sqlhosts文件文件INFORMIXSERVER=host1 /Informix服务器名,用于通信,相当于在服务器名,用于通信,相当于在XAOpen的库名称后添加的库名称后添加“”。ONCONFIG=onconfig.host1 中文环境需要很多环境变量中文环境需要很多环境变量(诸如诸如DBLANG,CLIENT_LOCALE,DB_LOCALE)。#注:环境变量注:环境变量“INFORMIXSERVER”的作用相当于在的作用相当于在XAD/OpenString后加上后加上“”。1.3 如果跨机器,要做系统用户信任,对如果跨机器,要做系统用户信任,对Windows的访问,使用的访问,使用SYSTEM用户。用户。1.4 授权授权 grant resource to cics;2.生成生成Switch Load File2.1进入进入Switch Load File编译程序所在的目录编译程序所在的目录2.2 修改修改make文件中相应的环境变量文件中相应的环境变量例:例:INFORMIXDIR=/informix/informix2.3 编译生成编译生成Switch Load Filemake-f informix_xa.mk/UNIXnmake-f informix_xa.mk/WIN把生成的把生成的Switch Load File复制到复制到region的的bin目录下。目录下。3.定义定义XAcicsadd-c xad-r CICS01 InformXa SwitchLoadFile=informxa XAOpen=dbname /UNIX配置Informix 2 Phase XA0.数据库的日36IBM Software Group TXSeries for Multiplatforms配置配置Sybase 1 Phase XA1.配置环境配置环境1.1 修改环境变量修改环境变量在在/var/cics_regions/$CICSREGION/environment加入加入(使用使用su-sybase观察观察)DSQUERY=SYBASE /Sybase Server名名SYBASE=/home/Sybase /Sybase home路径路径1.2 将将sybase用户加入用户加入cics组中组中1.3 Sybase解库解库:su-sybasecd libar-x libcomn_dce.so.aar-x libcs_r.so.aar-x libct_r.so.aar-x libintl_r.so.a2.生成生成Switch Load Filecd syb1pccpre-V CS_VERSION_120 sybase1pc.cprevi sybase1pc.c加入网络包配置加入网络包配置(参照参照packetsize)make 生成生成 sybase1pc配置Sybase 1 Phase XA1.配置环境37IBM Software Group TXSeries for Multiplatforms配置配置WebSphere MQ 2 Phase XA1.设置环境设置环境CICS服务器与服务器与WMQ服务器必须在同一台机器上。服务器必须在同一台机器上。CICS的用户的用户cics要加入到要加入到mqm组中。组中。2.编译编译MQ Switch Load File(参照参照amqzscin.c的说明的说明):针对针对Windows平台:平台:cl-c-Ic:optencinainclude-Ic:mqinclude-Gz-LD amqzscin.clib-def:mqmc4swi.def-out:mqmc4swi.liblink-dll-nod-out:mqmc4swi.dll amqzscin.obj c:optcicslibregxa_swxa.obj mqmc4swi.exp mqmcics4.lib c:optcicsliblibcicsrt.lib c:DCEdcelocalliblibdce.lib c:DCEdcelocallibpthreads.lib c:optencinaliblibEncina.lib c:optencinaliblibEncServer.lib msvcrt.lib kernel32.lib针对针对UNIX平台:平台:export MQM_HOME=/usr/mqmecho amqzscix tmp.expxl
展开阅读全文