CICS安装和配置

.安装DCE (DCE 版本必须在 2.1.0.19以上)

#smitty install

dce.client

dce.compat

dce.pthread

 

2.创建/var/cics_regions 和/var/cics_servers文件系统

#smitty crjfs

SIZE of file system 64000(32 mega bytes)

MOUNT POINT /var/cics_servers

Mount AUTOMATICALLY at system restart? Yes

 

SIZE of file system 64000(32 mega bytes)

MOUNT POINT /var/cics_regions

Mount AUTOMATICALLY at system restart? Yes

 

3. 加载文件系统/var/cics_regions: mount /var/cics_regions

4. 加载文件系统/var/cics_servers: mount /var/cics_servers

 

5. 创建用户组cics 和 cicsterm, 创建用户cics, 修改root权限 , 在组设置中增加cics和cicsterm

 

Group NAME cics

USER list root

ADMINISTRATOR list root

 

Group NAME cicsterm

USER list root

ADMINISTRATOR list root

 

User NAME cics

Primary GROUP cics

Group SET cicsterm

 

6. 修改文件/etc/environment

PATH=$PATH:/usr/lpp/cics/bin:/usr/lpp/encina/bin:/usr/lpp/dcelocal/bin

CICSREGION=CICSR0

ENCINA_BINDING_FILE=/var/cics_servers/server_bindings

ENCINA_SFS_SERVER=/.:/cics/sfs/tssfs

RPC_UNSUPPORTED_NETIFS=

 

7. 退出重新登录

 

8. 安装CICS

 

"smitty install"

"Install and Update Software"

"Install and Update from LATEST Available Software"

/dev/cd0

SOFTWARE to install (F4 /dev/cd0)

<F7> 选择文件集

cics.base

cics.server

cics.client

cics.info

encina.server

encina.client

encina.PPCexec

encina.SFS

encina.info

 

9. 配置DCE Client

cicscp -v create dce -R

 

10.启动DCE

cicscp -v start dce

 

11.配置SFS Server

cicscp -v create sfs_server tssfs

 

12.启动SFS Server

cicscp -v start sfs_server tssfs

 

13.配置CICS

cicscp -v create region CICSR0 DefaultFileServer=/.:/cics/sfs/tssfs

 

14.启动CICS

startsrc -s cics.CICSR0 -a StartType=cold

cicstail -r CICSR0 till to display Startup ID

 

15.配置CICS and 和UDB 接口

15.1 配置环境,修改 /var/cics_regions/CICSR0/environment, 增加

INSTHOME=/home/db2inst1

DB2INSTANCE=db2inst1

15.2 创建switch load file

cd /usr/lpp/db2_05_00/lib

ar -vx libdb2.a

mv shr.o db2.o

ln -s $DB2DIR/lib/db2.o /usr/lib/db2.o

 

cd /usr/lpp/cics/src/examples/xa

make -f db2xa.mk

cp db2xa /var/cics_regions/CICSR0/bin

 

15.3 配置XA

smitty cics -> Resource Definition -> XA definition

Identifier: db2xa

Switch Load File: db2xa

Initialization String: sample,db2inst1,db2inst1

 

15.4 重启 CICS Region, 直到显示 Startup ID, then configuration is successful.

 

16. 配置 Listener

Identifier: cicslsn

TCP Adapter Address: (NULL is local )

Service Name? cicsok (NULL means 1435 )

 

/etc/services 增加一行

cicsok 60000/tcp

 

你可能感兴趣的:(db2,F#)