安装与迁移 - Lrsolution.com

basesprocketΔιαχείριση Δεδομένων

31 Οκτ 2013 (πριν από 3 χρόνια και 5 μήνες)

882 εμφανίσεις

®


IBM Software Group


TXSeries for Multiplatforms

© 200
6

IBM Corporation

Version 1

1
-
May
-
2009

TXSeries CICS

CTG
的安装与迁移

刘睿

IBM Software Group


TXSeries for Multiplatforms

概要


安装
TXSeries


安装
CTG/CUC


迁移到
TXSeries v6.1

®


IBM Software Group


TXSeries for Multiplatforms

© 200
6

IBM Corporation

Version 1

1
-
May
-
2009

安装
TXSeries

IBM Software Group


TXSeries for Multiplatforms


Solaris
上安装的准备工作


TXSeries
需要的系统参数
(
修改
/etc/system
文件,需要重新启动
)
:设置单进程的共享内存最大为
50M

set shmsys:shminfo_shmmax=52428800


设置单进程句柄硬限制为
1024
,然后再使用“
ulimit
-
n 1024”

set rlim_fd_cur=0x400


CTG
需要的系统参数:

set msgsys:msginfo_msgmax = 65535

Maximum size of System V message.


set msgsys:msginfo_msgmnb = 65535

Maximum number of bytes that can be on any one message queue.


set msgsys:msginfo_msgssz = 32

Specifies size of chunks system uses to manage space for message buffers. Obsolete since the Solaris 8
release.


set msgsys:msginfo_msgseg = 16384

Number 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 = 4096

Maximum number of semaphore identifiers.


set msgsys:msginfo_msgtql = 10000

The 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.

IBM Software Group


TXSeries for Multiplatforms


HP
-
UX
上安装的准备工作

use “sam”

maxfiles=1024

maxswapchunks=512

max_thread_proc=1024 //

max_瑨read_proc=8 + ⠱0 x Max卥rvers)
。此参数不足时系统报
ccrea瑥瑨read
失败

maxuprc=256

maxusers=256


nflocks=256

ninode=8192

nkthread=((nproc*7/4)+16) //nproc=(20 + 8 * maxusers)

nk瑨read= 64 + 33 x Max卥rvers
。可用
㐰㤶

np瑹=128


semmnu=64

semume=32

shmmax=0x10000000 //256 MB

shmmni=200

shmseg=120


#CTG
需要的系统参数:

msgssz=32

msgmnb=65535

msgmax=65535

msgseg=16384

msgmni=500

IBM 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


激活异步
IO

mkdev
-
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


IBM Software Group


TXSeries for Multiplatforms

V6.x/7.x
:安装
TXSeries
步骤

(1)


准备工作:


安装
C

COBOL
编译器,数据库开发环境等


检查网络情况
(hostname, /etc/hosts, smitty tcpip, ifconfig, netstat

in…)


如果有必要,准备文件系统
(/var/cics_regions, /var/cics_servers…)


执行安装程序


Windows:
setup.exe


UNIX:
TXSeries##
-
<platform>
.bin

console

IBM Software Group


TXSeries for Multiplatforms

V6.1
:安装
TXSeries
步骤
(2)

创建
SFS
前,如果有必要,酌情设置如下的环境变量:


CICS_SFS_SERVER

Sets the default working SFS. This overrides the environment variable ENCINA_SFS_SERVER.

#
例:
CICS_SFS_SERVER=/.:/cics/sfs/LR1PC


CICS_SFS_SIZE

Specifies the size (in MB) of both the data and the log logical volumes for the SFS.

AIX
上是
CICS_SFS_SIZE

/4*<
块大小
>


#
例:
CICS_SFS_SIZE=68


CICS_SFS_VG

For 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_SIZE

Specifies the size (in MB) of the data logical volume for the SFS. This overrides the environment
variable CICS_SFS_SIZE.


CICS_SFS_DATA_VG

For 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_SIZE

Specifies the size (in MB) of the log logical volume for the SFS. This overrides the environment
variable CICS_SFS_SIZE.


CICS_SFS_LOG_VG

For 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.

IBM Software Group


TXSeries for Multiplatforms

V6.1
:安装
TXSeries
步骤
(3)


执行创建
SFS
命令:

cicscp
-
v create sfs_server <SSD

> [ShortName=...] [UserID=...]

#
即:

cicscp
-
v create sfs_server /.:/cics/sfs/<sfs_server_name>

#
注:
By default, sfs_server_name is the first seven characters of the
name of the machine on which you are creating the SFS server.


冷启动
SFS

cicscp
-
v start sfs_server <SSD

> StartType=cold


执行创建
region
命令:

cicscp
-
v create region <
域名
> DefaultFileServer=<SSD

>

#
例:

cicscp
-
v create region CICS01 DefaultFileServer=/.:/cics/sfs/LR1PC


冷启动
Region

cicscp
-
v start region <
域名
> StartType=cold

#
例:

cicscp
-
v start region CICS01 StartType=cold

IBM Software Group


TXSeries for Multiplatforms

V6.1
:安装
TXSeries
步骤
(4)

配置
Web Admin Console


1.
更新默认的端口
(80
端口经常与其它系统冲突
)

修改“
%CICSPATH%/wui/conf/config.properties”
文件,例如:

com.ibm.pvc.webcontainer.port=9853

2.
停止
/
启动
lwi


UNIX

cd $CICSPATH/wui/bin

./lwistop.sh

nohup ./lwistart.sh &



Windows
上有
TXSeries LWI
服务。

更新启动用户;将其加入
cicsgroup


3.
访问主页“
http://localhost:9853/txseries/admin”

IBM Software Group


TXSeries for Multiplatforms

v5.x/v4.x
:在
Windows
上安装
TXSeries

1.
执行
setup.exe

2.
执行

cicscp destroy dce

cicscp create dce

R

3.
安装
DCE
的补丁

安装
Encina/CICS
的补丁

4.
可选:设置环境变量

5.
新建
Region

去掉“使用
DCE
来定位服务器”选项

IBM Software Group


TXSeries for Multiplatforms

v5.x/v4.x
:设置用户、组
(1)

[AIX]

smitty mkgroup

Group NAME cics

USER list root

ADMINISTRATOR list root


Group NAME cicsterm

USER list root

ADMINISTRATOR list root


[HP]:

ln
-
s /etc/group /etc/logingroup


[nonAIX]:

groupadd cics

groupadd cicsterm

IBM Software Group


TXSeries for Multiplatforms

v5.x/v4.x
:设置用户、组
(2)

[AIX]

smitty mkuser

User NAME cics

Primary GROUP cics

Group SET cicsterm


User NAME SFS_SERV

Home Dir /var/cics_servers/SSD/cics/sfs/$ServerId

Primary GROUP cics

Group SET cicsterm


[nonAIX]:

useradd
-
g cics
-
s /bin/ksh
-
d /opt/cics cics

useradd
-
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
组。

IBM Software Group


TXSeries for Multiplatforms

创建日志文件系统和逻辑卷
(1)

[AIX]

smitty crjfs

选择
'Add a Standard Journal ed Fi l e System'
和相应得卷组
(vg)



SI ZE of fi l e system

200000 //100 mega bytes(
单位:
0.5K)

MOUN吠POINT


/var/cics_servers

M潵湴 AU呏MA呉CA䱌Y at system restart?

Yes


SI ZE of fi l e system

800000 //400 mega bytes
,根据实际交易量

MOUNT POI NT


/var/ci cs_regi ons

Mount AUTOMATI CALLY at system restart?

Yes


注:在
/usr/l pp/ci cs(AI X)

/opt/cics(nonAIX)
需要
ㄵき


[Solaris]:

use “format”


[HP]:

use “sam”


mount /var/cics_servers

mount /var/cics_regions


如果仅在
/var
下建立目录,请考虑安全属性。例:
c桭潤 755 cics_*

mk摩r /var/cics_re杩潮s

mk摩r /var/cics_servers

chown
-
R ci cs:ci cs /var/ci cs*

IBM Software Group


TXSeries for Multiplatforms

v5.x/v4.x
:创建日志文件系统和逻辑卷
(2)

[AIX]

smitty mklv


F4
键选择相应的卷组
(vg)

(

smit
删除重名卷组,删不掉重启动
)


Logical volume NAME


sfs_SFS_SERV

Number of LOGICAL PARTITIONS

2 //512M(
单位:
256M)


Logical volume NAME


log_SFS_SERV

Number of LOGICAL PARTITIONS

1 //256M(
单位:
256M)


[Solaris]:

use “format”


[HP]:

use “sam”

IBM Software Group


TXSeries for Multiplatforms

v5.x/v4.x
:创建日志文件系统和逻辑卷
(3)

[AIX]

假设
SFS
短名
(%S)

S䙓_SERV

c搠/摥v


//l潧_S䙓_SERV, sfs_S䙓_SERV, rl潧_S䙓_SERV, rsfs_S䙓_SERV

c桯w渠S䙓_SERV:cics *S䙓* //
有四个设备会被授权
S䙓_SERV
用户

chmod 640 *SFS*



//
有四个设备会被授权
SFS_SERV
用户


[Sol ari s]:

(
假设
S䙓
短名
(%S)

S䙓_SERV
,假设硬盘
c0t2搰
的第
0/1
分区分别用于逻辑卷
l潧_S䙓_SERV/sfs_S䙓_SERV)

c搠/摥v/摳k

l n
-
s c0t2d0s0 l og_SFS_SERV

l n
-
s c0t2d0s1 sfs_SFS_SERV

cd /dev/rdsk

l n
-
s c0t2d0s0 l og_SFS_SERV

l n
-
s c0t2d0s1 sfs_SFS_SERV


chown SFS_SERV:ci cs /dev/dsk/*SFS*

chown SFS_SERV:ci cs /dev/rdsk/*SFS*

chmod 640 /dev/dsk/*SFS*

chmod 640 /dev/rdsk/*SFS*


[HP]:

(
假设
S䙓
短名
(%S)

S䙓_SERV
,假设逻辑卷
l潧_S䙓_SERV/sfs_S䙓_SERV
在卷组
VG00)

c桯w渠 S䙓_SERV:cics /摥v/VG00/*S䙓*

chmod 640 /dev/VG00/*SFS*


注意:
SFS
用户名缺省为
S䙓_SERV
,广义的说,卷名为:
sfs_$S䙓_USER_NAME

l潧_$S䙓_US ER_NAME


IBM 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=ON

LDR_CNTRL=MAXDATA=0x10000000

IBM Software Group


TXSeries for Multiplatforms

v5.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/etc

PATH=$PATH:/opt/cics/bin:/opt/encina/bin:/opt/dcelocal/bin:/opt/dcelocal/etc


//HP

PATH=$PATH:/usr/local/bin:/usr/ucb:/opt/cics/bin:/opt/dcelocal/bin:/opt/encina/bin //Solaris

LANG=en_US (environment
文件
)

LANG=en_US.iso88591 (HP)

LANG=C (nonAIX)

CICSPATH=/usr/lpp/cics

CICSPATH=/opt/cics


(non AIX)

ENCINA_BINDING_FILE=/var/cics_servers/server_bindings

RPC_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_NETIFS

RPC_UNSUPPORTED_NETADDRS=ip1:ip2 //
注意
HP DCE
使用
RPC_SUPPORTED_NETADDRS

(
把不在
"server_bindings"
文件中用到的网卡加入,冒号间隔,可用
"netstat
-
in"
观察
)

CICSREGION=defaul_region_name

CICS_SFS_SERVER=/.:/cics/sfs/$HOSTNAME

ENCINA_SFS_SERVER=/.:/cics/sfs/$HOSTNAME

IBM Software Group


TXSeries for Multiplatforms

v5.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/%N

NLSPATH=/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


//Solaris

NLSPATH=/opt/cics/msg/%L/%N:/opt/cics/msg/C/%N:/opt/dcelocal/nls/msg/%L/%N:/opt/dcelocal/nls/msg/en_US.ASCII/%N:/o
pt/encina/msg/%L/%N:/opt/encina/msg/C/%N


//HP

NLSPATH=C:
\
IBMDebug
\
msg
\
%%L
\
%%N;C:
\
IFOR
\
LS
\
MSG
\
%%L
\
%%N;c:
\
DCE
\
dcelocal
\
nls
\
msg
\
%%L
\
%%N;c:
\
DCE
\
dcelocal
\
nl
s
\
msg
\
enus437
\
%%N;C:
\
opt
\
encina
\
MSG
\
zh_CN
\
@N;C:
\
opt
\
encina
\
cborb
\
msg
\
%%N;C:
\
opt
\
cics
\
MSG
\
zh_CN
\
@N;

//Windows

CICS_HOSTS=’$HOSTNAME1 $HOSTNAME2 $HOSTNAME3’

CICS_SFS_VG=rootvg


//
卷组名

CICS_SFS_VG=VG00


//HP:
卷组名

CIC卟卆卟卉Z䔽1024 //cicscp
使用,缺省为

,单位
:MB

CIC卟卆卟DATA_卉Z䔽1024

CICS_SFS_LOG_SIZE=256

CICS_PPCGWY_SERVER=/.:/cics/ppc/gateway/GWYT01

CICS_PPCGWY_VG=rootvg

CICS_PPCGWY_SIZE=4

CLASSPATH=.:/usr/lpp/cics/classes/dfjcics.jar:/usr/lpp/cics/lib/somojor.zip:/usr/lpp/cics/lib/somojij.zip:/usr/lpp/cics/lib/s
oms
h
cl.zip:/usr/lpp/cics/lib/somshor.zip:/usr/lpp/cics/classes:/var/cics_regions/$CICSREGION/classes:/home/db2inst1/sqllib/ja
va/db2java.zip

LIBPATH=/usr/lib:/lib:/usr/lpp/cics/lib:/usr/lpp/ctg/bin:/home/db2inst1/sqllib/lib

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/cics/lib:/opt/dcelocal/lib:/opt/encina/lib //Solaris

SHLIB_PATH=$SHLIB_PATH:/opt/cics/lib:/opt/dcelocal/lib:/opt/encina/lib //HP

CICS_XP_RECV_TIMEOUT=300 //
对应
CIC匠4.3 RD/塐RecvTimeout

export … //non AIX

IBM Software Group


TXSeries for Multiplatforms

v5.x/v4.x

创建
“/var/cics_servers/server_bindings”
文件

例如输入:

/.:/cics/sfs/
ServerId

ncadg_ip_udp:[8888]


chmod 777 /var/cics_servers/server_bindings

IBM Software Group


TXSeries for Multiplatforms

v5.x/v4.x
:安装
DCE

[AIX]

smitty install

rmdce

-
F

-
o

local

all


[Solaris]

安装
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
的补丁

IBM Software Group


TXSeries for Multiplatforms

v5.x/v4.x

安装
Encina & CICS (1)

[AIX]

smitty 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 agreements


[Solaris]

使用”
admintool”


[HP]

mount cdrom

使用”
swinstall”
,分别安装
/cdrom/Encina.depot

/cdrom/CICS.depot


IBM Software Group


TXSeries for Multiplatforms

v5.x/v4.x

安装
Encina & CICS (2)

执行”
umask 022”"cicsdefaultservers" (
产生各种模板,创建
sfs
定义文件
)

执行
"cicssetupclients
-
m
-
v" (
设置
CICS Client
环境,被
cicsterm
组成员使用
)


安装
Encina/CICS
的补丁

先安装
Encina
补丁,再安装
CICS
补丁。在
AIX
上注意使用
slibclean


IBM Software Group


TXSeries for Multiplatforms

v5.x/v4.x
:配置
DCE

执行

cicscp create dce

R

cicscp start dce

IBM Software Group


TXSeries for Multiplatforms

v5.x/v4.x
:配置
SFS


执行

cicssfscreate
-
S /.:/cics/sfs/
ServerId

ShortName=SFS_SERV



Cold start


cicssfs /.:/cics/sfs
ServerId
StartType=cold

IBM Software Group


TXSeries for Multiplatforms

v5.x/v4.x
:创建
CICS Region


创建
CICS Region
-

CICS01


cicsdefault
-
r
CICS01

-
S


配置
CICS
资源到
卆S



cicsupdate
-
c rd
-
r
CICS01

DefaultFileServer=/.:/cics/sfs/$HOSTNAME


cicssfsconf
-
I
-
R wc
CICS01

DefaultFileServer=/.:/cics/sfs/$HOSTNAME

IBM 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

至少要打
补丁
2


3)

cics

户加入到
DB2
实例用户所在的组


IBM Software Group


TXSeries for Multiplatforms

配置
DB2 XA

(2/4)

2.
配置
XA


2.1
编译
Switch Load File

1)

root

户登陆

执行

chmod
-
R 777 /usr/lpp/cics/examples/RM_support


2)

db2inst1

户登陆
(su
-

db2inst1)

执行

export PATH=/usr/vac/bin:$PATH

cd /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

户登陆

slibclean

cp /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

IBM 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.5

DB2COMM=tcpip

DB2INSTANCE=db2inst1

LIBPATH=/usr/lpp/cics/lib:/usr/lpp/cicssm/lib:/opt/IBM/db2/V9.5/lib32


#



Solaris

DB2DIR=/opt/IBM/db2/V9.5

DB2COMM=tcpip

DB2INSTANCE=db2inst1

LD_LIBRARY_PATH=/opt/cics/lib:/opt/IBM/db2/V9.5/lib32


#


如果有必要的


还要设置
DB2CODEPAGE

典型
值包括
1208,1386


IBM Software Group


TXSeries for Multiplatforms

配置
DB2 XA

(4/4)

2.4





root, cics, XAOpen
字符串使用的
DB2
实例用户授权

GRANT DBADM ON DATABASE TO USER root

GRANT DBADM ON DATABASE TO USER cics

GRANT DBADM ON DATABASE TO USER <XAOpen
字符串使用的
DB2

例用

>



3.
冷启

region

cicscp
-
v start region CICS01 StartType=cold

IBM 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_US

ORACLE_SID=ORCL

ORACLE_HOME=/sw/oracle/product/10.2

NLS_DATE_FORMAT='yyyy
-
mm
-
dd hh24:mi:ss'

NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

LIBPATH=/sw/oracle/product/10.2/lib32


退出系
统重新登陆


#


如果在
Windows
上没有
发现上述的环境变量

可以在注册表的
HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE

查找


设置到操作系统

CICS

须的环

变量是
ORACLE_SID

ORACLE_HOME


IBM 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 File


2.1
编译静态的
Oracle 1 Phase XA
文件

make
-
f oracle1pc.mk


2.2
编译静态的
Oracle 2 Phase XA
文件

make
-
f oraclexa_sta.mk oracle


#


如果使用
动态的
2PC XA Switch Load File

要重新
编译
Oracle


libclnsh.so


IBM Software Group


TXSeries for Multiplatforms

配置
Oracle XA (3/3)

3.


XAD

ci csadd
-
c xad
-
r CI CS01 OraXA Swi tchLoadFi l e="oracl e1pc" XAOpen="OraXA+Acc=P/scott/ti ger"




ci csadd
-
c xad
-
r CI CS01 OraXA Swi tchLoadFi l e="oracl e1pc" XAOpen="OraXA+Acc=P/scott@connstr/ti ger"




ci csadd
-
c xad
-
r CI CSNT01 OraXA Swi tchLoadFi l e="oracl e1pc.dl l" XAOpen="OraXA+Acc=P/system/manager"




ci csa摤
-
c xa搠
-
r CI CSN吰1 OraXA Swi tc桌潡摆i l e="潲ocl e1灣.摬l" XAO灥渽"OraXA+Acc=P/system/ma湡来r+S煬Net=c潮湳tr"


# 1 Phase XAOpen



OraXA+Acc=P/system/password

OraXA+Acc=P/scott/ti ger


# 2 Phase XAOpen



Oracl e_XA+Acc=P/scott/ti ger+SesTm=90+LogDi r=/tmp+DbgFl =1

OraXA+Acc=P/system/password+SesTm=90+LogDi r=c:
\
temp+DbgFl =1+MaxCur=100+Sql Net=connstr


# 2 Phase XAOpen



Oracl e_XA+Acc=P/scott/ti ger+SesTm=90+LogDi r=/tmp+DbgFl =1+Sql Net=ozw2a

Thi s stri ng causes a CI CS appl i cati on server process (ci csas) to connect to the database, as fol l ows:

-

As user scott wi th password ti ger (Acc=P/scott/ti ger)

-

Wi th i nacti ve transacti ons aborted after 90 seconds (SesTm=90)

-

Wi th l og fi l es created i n the /tmp di rectory (LogDi r=/tmp)

-

Wi th XA procedure cal l s and returns l ogged i n the l og fi l e (DbgFl =1)


#


D执䙬
是位屏蔽




1

2

4



详尽的日志是
D执䙬=15

IBM Software Group


TXSeries for Multiplatforms

配置
Informix 1 Phase XA

0.
数据库的日志方式必须要设成
unbu晦ered log
,不可用其它方式或者关闭,否则
CICS
启动失败



1.
配置环境使得
root

cics
用户可以存取
In景rmix

1.1 vi /e瑣/pro晩le,
加入

"偁TH=$偁TH:/in景rmix/in景rmix/bin"

1.2 vi /var/cics_regions/$CICSREGION/environment
加入


INFORMI塄IR=/home/in景rmix //
安装路径,其下之
e瑣
目录有
sqlhos瑳
文件


INFORMI塓䕒V䕒=hos琱 //In景rmix
服务器名,用于通信,相当于在
塁Open
的库名称后添加“
@<In景rmix
服务器
>”



ONCONFIG=onconfig.host1


中文环境需要很多环境变量
(
诸如
DBLANG, CLI䕎T_LOCAL䔬 DB_LOCAL䔩


#
注:环境变量“
INFORMIXSERVER”
的作用相当于在
XAD/OpenString
后加上“

连接串
>”


1.3
如果跨机器,要做系统用户信任,对
Windows
的访问,使用
卙協䕍
用户。

1.4
授权

††††
gran琠resource 瑯 cics;


2.
生成
卷i瑣h Load File

2.1
进入
Swi tch Load Fi l e
编译程序所在的目录

2.2
修改
make
文件中相应的环境变量

例:
"INFORMIXDIR=/informix/informix"

2.3
编译生成
卷i瑣h Load File

make
-
f informix1pc.mk //UNIX

nmake
-
f informix1pc.mk //WIN

把生成的
Swi瑣h Load File
复制到
region

扩b
目录下。


3.
定义


cicsadd
-
c xad
-
r CICS01 InformXa SwitchLoadFile="inform1pc" XAOpen="dbname" //UNIX

IBM Software Group


TXSeries for Multiplatforms

配置
Informix 2 Phase XA

0.
数据库的日志方式必须要设成
unbu晦ered log
,不可用其它方式或者关闭,否则
CICS
启动失败



1.
配置环境使得
root

cics
用户可以存取
In景rmix

1.1 vi /e瑣/pro晩le,
加入

"偁TH=$偁TH:/in景rmix/in景rmix/bin"

1.2 vi /var/cics_regions/$CICSREGION/environment
加入


INFORMI塄IR=/home/in景rmix //
安装路径,其下之
e瑣
目录有
sqlhos瑳
文件


INFORMI塓䕒V䕒=hos琱 //In景rmix
服务器名,用于通信,相当于在
塁Open
的库名称后添加“
@<In景rmix
服务器
>”



ONCONFIG=onconfig.host1


中文环境需要很多环境变量
(
诸如
DBLANG, CLI䕎T_LOCAL䔬 DB_LOCAL䔩


#
注:环境变量“
INFORMIXSERVER”
的作用相当于在
XAD/OpenString
后加上“

连接串
>”


1.3
如果跨机器,要做系统用户信任,对
Windows
的访问,使用
卙協䕍
用户。

1.4
授权

††††
gran琠resource 瑯 cics;


2.
生成
卷i瑣h Load File

2.1
进入
卷i瑣h Load File
编译程序所在的目录

2.2
修改
make
文件中相应的环境变量

例:
"INFORMIXDIR=/informix/informix"

2.3
编译生成
卷i瑣h Load File

make
-
f informix_xa.mk //UNIX

nmake
-
f informix_xa.mk //WIN

把生成的
Swi瑣h Load File
复制到
region

扩b
目录下。


3.
定义


cicsadd
-
c xad
-
r CICS01 InformXa SwitchLoadFile="informxa" XAOpen="dbname" //UNIX

IBM Software Group


TXSeries for Multiplatforms

配置
Sybase 1 Phase XA

1.
配置环境


1.1
修改环境变量


"/var/cics_regions/$CIC卒䕇ION/environmen琢
加入
(
使用
su
-

sybase
观察
)

DSQUERY=SYBASE //Sybase Server


卙BA卅=/home/卹base //卹base home
路径


1.2

sybase
用户加入
cics
组中


1.3 Sybase
解库
:

su
-

sybase

cd lib

ar
-
x libcomn_dce.so.a

ar
-
x libcs_r.so.a

ar
-
x libct_r.so.a

ar
-
x libintl_r.so.a


2.
生成
卷i瑣h Load File

"cd syb1pc"

"cpre
-
V C卟V䕒卉ON_120 sybase1pc.cpre"

"vi sybase1pc.c"
加入网络包配置
(
参照
packe瑳ize)

"make"
生成

sybase1pc

IBM Software Group


TXSeries for Multiplatforms

配置
WebSphere MQ 2 Phase XA

1.
设置环境

CI CS
服务器与
WMQ
服务器必须在同一台机器上。

CICS
的用户
cics
要加入到
m煭
组中。


2.
编译
MQ Switch Load File (
参照
amqzscin.c
的说明


针对
Windows
平台:

cl
-
c
-
Ic:
\
opt
\
encina
\
include
-
Ic:
\
mq
\
include
-
Gz
-
LD amqzscin.c

lib
-
def:mqmc4swi.def
-
out:mqmc4swi.lib

link
-
dll
-
nod
-
out:mqmc4swi.dll amqzscin.obj c:
\
opt
\
cics
\
lib
\
regxa_swxa.obj mqmc4swi.exp mqmcics4.lib c:
\
opt
\
cics
\
lib
\
libcicsrt
.lib
c:
\
DCE
\
dcelocal
\
lib
\
libdce.lib c:
\
DCE
\
dcelocal
\
lib
\
pthreads.lib c:
\
opt
\
encina
\
lib
\
libEncina.lib c:
\
opt
\
encina
\
lib
\
libEncServer.l
ib msvcrt.lib
kernel32.lib


针对
UNIX
平台:

export MQM_HOME=/usr/mqm

echo "amqzsci x" > tmp.exp

xl c_r4 $MQM_HOME/samp/amqzsci x.c
-
I/usr/l pp/enci na/i ncl ude
\


-
e amqzscix
-
bE:tmp.exp
-
bM:SRE
-
o amqzscix /usr/lpp/cics/lib/regxa_swxa.o
\


-
L$MQM_HOME/lib
-
L/usr/lpp/cics/lib
-
L/usr/lpp/encina/lib
\


-
lcicsrt
-
lEncina
-
lEncServer
-
lpthreads
-
lc_r
\


-
lmqmcics_r
-
lmqmxa_r
-
lmqz_r
-
lmqmcs_r
-
lmqmzse


3.
定义
XAD


UNIX
平台:

ci csadd
-
c xad
-
r CI CS01 MQXA Swi tchLoadFi l e="<mqmtop>/l i b/amqzsc" XAOpen=QM1

其中
<m煭t潰>

MQSeries
软件的安装目录,如
AIX
上的
/畳r/l灰/m煭



Wi ndows NT
平台:

cicsadd
-
c xad
-
r CICS01 MQXA SwitchLoadFile="<mqmtop>
\
bin
\
mqmc4swi.dll" XAOpen=QM1

其中
<mqmtop>

MQSeries
软件的安装目录,如

\
m煭


IBM Software Group


TXSeries for Multiplatforms

其它
XA
配置
(
请参考
TXSeries
红皮书
)


Oracle 2 Phase
动态
XA


Sybase 2 Phase XA


Microsoft SQL Server 2 Phase XA


编译
MF COBOL Runtime


其它注意事项

IBM Software Group


TXSeries for Multiplatforms

配置
Listener



cicsadd
-
c ld
-
r
CICS01 LI1

Protocol=TCP TCPAddress="
88.2.11.101
"
TCPService="
cics1435
"


注意多域必须采用不同的
Listener
,且要使用不同的
TCP
服务名。即在
/etc/services
文件设置对应的端口号:

cics1435

1435/tcp

IBM Software Group


TXSeries for Multiplatforms

定义
User



cicsadd
-
c ud
-
r
CICS01 TEST

CICSPassword=
TEST

IBM Software Group


TXSeries for Multiplatforms

定义
Program



cicsadd
-
c pd
-
r
CICS01 TELECOM

PathName=… RSLKey=public

IBM Software Group


TXSeries for Multiplatforms

启动

启动
DCE (V6
以后
DCE
已经淘汰
):

cicscp
-
v start dce


: rc.dce


: /sbin/init.d/Rpcd start


启动
SFS:

cicscp

v start sfs_server /.:/cics/sfs/
serverId


: cicscp

v start sfs_server
serverId


: cicssfslock
-
u /.:/cics/sfs/
serverId
; cicssfs /.:/cics/sfs/
serverId


: cicssfs
serverId


: cicscp

v start sfs_server /.:/cics/sfs/
serverId

StartType=cold


: cicssfscold /.:/cics/sfs/
serverId


启动
Region:

cicscp
-
v start region $CICSREGION StartType=cold


: startsrc
-
s cics.$CICSREGION
-
a StartType=cold


: cicsrlck

r $CICSREGION; cicsstart

c $CICSREGION //nonAIX

IBM Software Group


TXSeries for Multiplatforms

停止

停止
Region:

cicscp
-
v stop region $CICSREGION

f


: cicsstop

k

$CICSREGION)


: stopsrc
-
s cics.$CICSREGION


: stopsrc
-
fs cics.$CICSREGION


注:释放
Region
资源
(

region
异常停止后
):

cicsnotify
-
s cics.$CICSREGION


停止
SFS:

cicscp
-
v stop sfs_server
serverId


: cicscp
-
v stop sfs_server
serverId

-
f


: cicssfsshut /.:/cics/sfs/
sfsServerName


停止
DCE (V6
以后
DCE
已经淘汰
):

cicscp
-
v stop dce


: dce.clean


: /sbin/init.d/Rpcd stop

IBM Software Group


TXSeries for Multiplatforms

观察
CICS
运行状态



cicstail
-
r
<
域名
>

®


IBM Software Group


TXSeries for Multiplatforms

© 200
6

IBM Corporation

Version 1

1
-
May
-
2009

安装
CTG/CUC

IBM Software Group


TXSeries for Multiplatforms

安装
CICS TG 6.0.2


Windows


执行
installer.exe


Unix


执行
installer


注:设置
CTG/CUC
配置工具使用的
JRE

ctgjava

s=<java
程序全路经
>

IBM Software Group


TXSeries for Multiplatforms

使用
CICS TG
配置客户机守护程序
(
执行
ctgcfg)

IBM Software Group


TXSeries for Multiplatforms

使用
CICS TG
配置
Gateway
守护程序
(
执行
ctgcfg)

IBM Software Group


TXSeries for Multiplatforms

CTG.ini
配置文件的内容

SECTION GATEWAY


closetimeout=10000


ecigenericreplies=off


uowvalidation=on


msgqualvalidation=on


connectionlogging=off


initconnect=1


initworker=1


maxconnect=100


maxworker=100


noinput=off


nonames=on


notime=off


trace=off


workertimeout=10000


adminport=2810



protocol@tcp.handler=com.ibm.ctg.server.TCPHandler


protocol@tcp.parameters=connecttimeout=2000;idletimeout=600000;pingfrequency=60000;port=2006;solinger=0;sotimeout=1000;



log@info.dest=console



log@error.dest=console

ENDSECTION

... …

SECTION SERVER = CICSNT01


UPPERCASESECURITY=N


PROTOCOL=TCPIP


NETNAME=localhost


PORT=1435


CONNECTTIMEOUT=0


TCPKEEPALIVE=N

ENDSECTION

IBM Software Group


TXSeries for Multiplatforms

启动
/
终止
CICS TG


启动客户机守护程序和
CICS
服务器连接

cicscli /s=<CICS
域别名
>


停止
CICS
服务器连接

cicscli /x=<CICS
域别名
>


停止客户机守护程序

cicscli /i


启动
Gateway
守护程序

ctgstart


To run the Gateway daemon as a background task, take the following steps:


1) Create a valid <install_path>/bin/ctgd.conf file. The recommended way is to copy
<install_path>/bin/ctgdsamp.conf and edit the copy. You are advised to specify the user and group
which will run the Gateway daemon. The sample file contains instructions on how to produce a valid
configuration file.


2) If you need to change the location of ctgd.conf, export environment variable $CTGDCONF by
issuing a command like the following:

export CTGDCONF=/opt/IBM/cicstg/bin/ctgd.conf


3) To start the Gateway daemon as a background process, issue this command:

ctgd start


4) To stop a Gateway daemon that is running as a background process, issue this command:

ctgd stop

®


IBM Software Group


TXSeries for Multiplatforms

© 200
6

IBM Corporation

Version 1

1
-
May
-
2009

迁移到
TXSeries v6.1/v7

IBM Software Group


TXSeries for Multiplatforms

迁移原则


Two versions of TXSeries cannot co
-
exist on a
machine


Migration of a single machine is therefore:


Export CICS regions


De
-
install old version of TXSeries


Install new version of TXSeries


Import and migrate region definitions



Migration to a new machine is a simpler process


Less downtime


Opportunity for housekeeping


Opportunity to upgrade supporting software and retest

IBM Software Group


TXSeries for Multiplatforms

迁移原则
(

)


All the following server components must exist on
the same machine as the CICS region:


SFS Servers


PPC Gateway Servers



Can migrate from TXSeries V5.0 onwards


IBM Software Group


TXSeries for Multiplatforms

CICS Region
迁移步骤

1.
Export the CICS regions to be migrated to an archive file


cicsexport
-
r <region>
-
o <archive>


2.
Import the CICS region on system with latest CICS level


cicsimport
-
r <region>
-
i <archive>

IBM Software Group


TXSeries for Multiplatforms

CICS Region
迁移步骤
(

)

3.
Migrate the CICS region definitions to the latest
level


cicsmigrate

r <region>
-
g <script>
-
o <log>


Run the upgrade script as generated by the cicsmigrate
tool


cicsmigrate <region>


The command updates the region directly without needing
a script


4.
Cold start the CICS region

UNIX

Windows

IBM Software Group


TXSeries for Multiplatforms

数据迁移的步骤

1.
Migrate File Manager VSAM files


Migrate VSAM application data using:


cicssdt, for SFS file manager


cicsddt, for DB2 file manager


cicsodt, for ORACLE file manager


Migrate CICS region specific VSAM files:


Which are used for storing information related to TSQ, TDQ,
and IC.


Only migrate region’s files if data must persist the migration


Files called <region_name>cics*fil*


Region will create the SFS files on first startup if missing

2.
Migrate Resource Manager data files


Use the Resource Manager supplied tools/guides

IBM Software Group


TXSeries for Multiplatforms

应用迁移的原则

1.
Re
-
build CICS server applications


TXSeries code now compliant to POSIX Draft 10 on all
platforms.


Applications that are Draft 4 must migrate to be Draft 10
compliant


2.
Error handling in XA applications


Due to XA resiliency, applications must handle RM errors
appropriately

IBM Software Group


TXSeries for Multiplatforms

应用迁移的步骤

1.
Preparing language runtime


If using Micro Focus COBOL, rebuild COBOL
runtime using cicsmkcobol script.

3.
Re
-
build XA switch
-
load files

4.
Re
-
build external modules:


External Authentication Modules (EAM)


External Security Manager Modules (ESM)


CCIN, CHAT customized programs


User Exit programs, Monitoring or Statistics formatters

IBM Software Group


TXSeries for Multiplatforms

迁移客户机

1.
Use CUC/CTG for ECI/EPI clients


RPC based ECI or EPI clients not supported


A single copy of CUC V6.0.2 shipped with TXSeries product


Client applications must be linked to CUC/CTG libraries


Refer CUC Programming Guide and Reference manual at:


http://publib.boulder.ibm.com/infocenter/cicsuc/v6r0m0/index.jsp


2.
cicsterm

can access only local regions


No effect when CICS_HOSTS is set


Renamed to
cicslterm


cicslterm

stays the same on Windows

IBM Software Group


TXSeries for Multiplatforms

环境变量

1.
CICS_HOSTS


Must be set only for PPC
-
TCP region communications


Must be set only in the region’s environment file


2.
Following to be unset or not relevant for V6.1:


RPC_SUPPORTED_PROTSEQS


ENCINA_BINDING_FILE

IBM Software Group


TXSeries for Multiplatforms

TXSeries v5.1
设置
PPCTCP
连接使用动态绑定方式

1.
概述

TXSeries v6
以后版本的
偐P_TCP
采用了动态绑定方式。

TXSeries v5.1
与过去的版本进行
偐C_TCP
连接时采用的是默认的方式,如果要与
T塓eries v6
以后版本进行
偐C_TCP
连接必须使用环境变量设置动态绑定方式。


动态连接方式的好处是避免
force purge
后可能产生的一种叫做
"one
-
cicsas"
的故障。



2.
版本要求

确保
/usr
下有足够的空闲空间
(
至少

以上
)

-

TXSeries CICS 5.1 PTF4
以上,比如可以使用
T塓eries 偔F7

-

ENCINA 5.1 偔F1 IFIX
-

以上,比如可以使用
Encina 偔F2

可以在
http://www
-
933.ibm.com/support/fixcentral/
网站选择
T塓XRIE匠5.1.0.2
来下载这些补丁



3.
设置动态绑定方式

1⤠

/e瑣/environment
文件设置

除去
RPC_SUPPORTED_PROTSEQS

除去
ENCINA_BINDING_ FILE

除去
CICS_HOSTS

设置
ENCINA_BINDING_ 䕎DPOINT_HO協匽S"


2)

region

environment
文件设置

设置
ENCINA_BINDING_ 䕎DPOINT_HO協匽S㱲emo瑥 machine㸢

如果有多个
<remote machine>
,需要用空格分隔,不必写本机名称或

地址。


3)
停止所有
CICS
进程,重新登陆,重建
䑃D
,启动
卆S

region


重建
䑃D
前,确保当前环境满足以下条件
(
使用
env
命令
)


没有设置
RPC_SUPPORTED_PROTSEQS

没有设置
ENCINA_BINDING_ FILE

没有设置
CIC卟HO協S

设置了
ENCINA_BINDING_ ENDPOI NT_HOSTS=""