2007年1月15日星期一

CICS INSTALL ON AIX

准备安装

设置用于CICS区域和文件管理安装的文件系统

按照顺序(Why?)建立以下JFS,cics安装好后会直接这些目录,建立cics

/var/cics_regions

/var/cics_servers

/var/cics_servers/backups(我未操作)

/var/cics_servers/archives(我未操作)

# smitty crjfs 制作快捷创建,Jae告知:最好先建lv,然后再在上面建立jfs


                        Add a Journaled File System

Move cursor to desired item and press Enter.

Add a Standard Journaled File System
Add a Compressed Journaled File System
Add a Large File Enabled Journaled File System

F1=Help F2=Refresh F3=Cancel Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do

回车后选择需要的卷组再回车


                      Add a Standard Journaled File System

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

[Entry Fields]
Volume group name rootvg
SIZE of file system
Unit Size Megabytes +
* Number of units [1] #
* MOUNT POINT [/var/cics_regions]
Mount AUTOMATICALLY at system restart? yes +
PERMISSIONS read/write +
Mount OPTIONS [] +
Start Disk Accounting? no +
Fragment Size (bytes) 4096 +
Number of bytes per inode 4096 +
Allocation Group Size (MBytes) 8 +
Logical Volume for Log +


F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do

创建成功后显示


                             COMMAND STATUS

Command: OK stdout: yes stderr: no

Before command completion, additional instructions may appear below.

Based on the parameters chosen, the new /var/cics_regions JFS file system
is limited to a maximum size of 134217728 (512 byte blocks)

New File System size is 32768

F1=Help F2=Refresh F3=Cancel Esc+6=Command
Esc+8=Image Esc+9=Shell Esc+0=Exit /=Find
n=Find Next

cics_servers jfs 创建同上.

# mount /var/cics_regions

# mount /var/cics_regions

创建CICS用户和组

:

> cics

> cicsterm

mkgroup [组名称] or

# smitty mkgroup


                                  Add a Group

Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
* Group NAME [cics]
ADMINISTRATIVE group? false +
Group ID [] #
USER list [root] +
ADMINISTRATOR list [root] +
Projects [] +

F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do

创建成功后
:


                                 COMMAND STATUS

Command: OK stdout: no stderr: no

Before command completion, additional instructions may appear below.

F1=Help F2=Refresh F3=Cancel Esc+6=Command
Esc+8=Image Esc+9=Shell Esc+0=Exit /=Find
n=Find Next

cicstem创建同上.

用户:

> cics

> SFS_SERV

mkuser [用户名] or

smitty mkuser

# smitty mkuser


                                   Add a User

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

[TOP] [Entry Fields]
* User NAME [cics]
User ID [] #
ADMINISTRATIVE USER? false +
Primary GROUP [cics] +
Group SET [cics,cicsterm] +
ADMINISTRATIVE GROUPS [cics,cicsterm] +
ROLES [] +
Another user can SU TO USER? true +
SU GROUPS [ALL] +
HOME directory []
Initial PROGRAM []
User INFORMATION []
…….
[MORE...38]

F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do

成功后:


                                 COMMAND STATUS

Command: OK stdout: no stderr: no

Before command completion, additional instructions may appear below.

F1=Help F2=Refresh F3=Cancel Esc+6=Command
Esc+8=Image Esc+9=Shell Esc+0=Exit /=Find
n=Find Next

SFS_SERV用户创建同上.

root用户指定为CICS系统管理员

root用户添加到cics cicsterm群组中.

# smitty chgroup


                            Change Group Attributes

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

[Entry Fields]
Group NAME [cics]
Group ID [215] #
ADMINISTRATIVE group? false +
USER list [cics,SFS_SERV,root] +
ADMINISTRATOR list [SFS_SERV,cics,root] +
Projects [] +
F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do

cicsterm修改同上

设置环境变量

/etc/environment

$LANG

> en_US

> 语言环境

$PATH

> /usr/lpp/cics/bin:/usr/lpp/encina/bin

> 添加cicsencinabin目录

$NLSPATH

> usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/en_US/%N:/usr/lpp/dce/lib/nls/msg/%L/%N

> 用来确定环境变数NLSPATHLC_MESSAGES ( 如果 LC_MESSAGE 不存在则使用LANG )用来指定讯息的语言种类

$ENCINA_BINDING_FILE

>bind SFS 文件

参考:


# @(#)18        1.25  src/bos/etc/environment/environment, cmdsh, 
# bos53A, a2004_35B6 8/23/04 04:13:11
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
# .....
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#......
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/us
r/java14/bin:/usr/lpp/cics/bin:/usr/lpp/encina/bin
TZ=CST6CDT
LANG=en_US
LOCPATH=/usr/lib/nls/loc
NLSPATH=/usr/lib/nls/msg/%L/%N
RPC_SUPPORTED_PROTSEQS=ncadg_ip_udp
ENCINA_BINDING_FILE=/var/cics_servers/server_bindings
DCE_USE_WCHAR_NAMES=1

安装CICS

smitty install_update or

smitty installp

# smitty installp


                          Install and Update Software

Move cursor to desired item and press Enter.

Install Software
Update Installed Software to Latest Level (Update All)
Install Software Bundle
Update Software by Fix (APAR)
Install and Update from ALL Available Software

F1=Help F2=Refresh F3=Cancel Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do

在提示中输入安装介质目录:cdrom:/dev/cd0.或者指定安装目录.


                                Install Software

Type or select a value for the entry field.
Press Enter AFTER making all desired changes.
[Entry Fields]
* INPUT device / directory for software [] +


F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do


                                Install Software

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

[Entry Fields]
* INPUT device / directory for software .
* SOFTWARE to install [cics.base > +
PREVIEW only? (install operation will NOT occur) no +
COMMIT software updates? yes +
SAVE replaced files? no +
AUTOMATICALLY install requisite software? yes +
EXTEND file systems if space needed? yes +
OVERWRITE same or newer versions? no +
VERIFY install and check file sizes? no +
Include corresponding LANGUAGE filesets? yes +
DETAILED output? no +
Process multiple volumes? yes +
ACCEPT new license agreements? yes +
Preview new LICENSE agreements? no +

F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do

检验:

lslpp –l “cics.*”

lslpp –l “encina.*”

后期配置

CICS配置DCE(我还未熟悉)

配置仅RPC环境

/usr/lpp/dce/bin/lsdce

正确为:


h50:/ptfs/CICS51/CICSINSTALL# lsdce
Gathering component state information...

Component Summary for Host: [your host]
Component Configuration State
RPC Configured

The component summary is complete.

若有其他服务用以下命令除去

# /usr/lpp/dce/bin/dce.clean
# /usr/lpp/dce/bin/rmdce all

输入下列命令,在机器上配置 DCE RPC 服务:

# /usr/lpp/cics/bin/cicscp -v -l log_file create dce -R

添加环境变量(我还未熟悉)

/etc/environment文件里添加新的参数用来支持些DCE的东东.

CICS_HOSTS=’ hostA hostB hostC’

RPC_SUPPORTED_PROTSEQS=ncadg_ip_udp(好像是要使用的协议)

配置文件管理器和CICS区域

创建log_SFS_SERV & sfs_SFS_SERV 逻辑卷

# smitty mklv


                              Add a Logical Volume

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

[TOP] [Entry Fields]
Logical volume NAME [log_SFS_SERV]
* VOLUME GROUP name datavg
* Number of LOGICAL PARTITIONS [1] #
.................................................................
Mirror Write Consistency? active +
Allocate each logical partition copy yes +
[MORE...12]

F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do

log_SFS_SERV & sfs_SFS_SERV设置权限:

# chown SFS_SERV:cics *SFS*

检验:


# ls -l /dev/ |grep SFS                           
brw-rw---- 1 SFS_SERV cics 42, 20 Jan 15 11:12 log_SFS_SERV
crw-rw---- 1 SFS_SERV cics 42, 20 Jan 15 11:12 rlog_SFS_SERV
crw-rw---- 1 SFS_SERV cics 42, 21 Jan 15 11:12 rsfs_SFS_SERV
brw-rw---- 1 SFS_SERV cics 42, 21 Jan 15 11:12 sfs_SFS_SERV

运行cicsdefaultservers(我反正老是忘记)

cicsdefaultservers会建立创建 SFS 服务器、DB2 数据库或对等通信(PPC)网关服务器时 CICS 使用的信息:

* /var/cics_servers/SSD/SSD.stanza,它包含结构化文件服务器定义(SSD

* /var/cics_servers/SCD/SCD.stanza,它包含模式文件服务器定义(SCD

* /var/cics_servers/GSD/GSD.stanza,它包含网关服务器定义(GSD

创建并修改server_bindings文件

/.:/cics/sfs/$HOSTNAME ncadg_ip_udp:$host_ip[$sfs_port]

$host_ip可省略,尤其是对多IP的情况下

创建SFS server

cicscp create sfs_server OR

smitty cics

# smitty cics


             Customer Information Control System (CICS) Version 5.0

Move cursor to desired item and press Enter.

Manage CICS Regions
Manage Encina PPC Gateway Servers
Manage Filesystem

F1=Help F2=Refresh F3=Cancel Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do


                               Manage Filesystem 

Move cursor to desired item and press Enter.

Manage Encina SFS Servers
Manage Schemas

F1=Help F2=Refresh F3=Cancel Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do


                           Manage Encina SFS Servers

Move cursor to desired item and press Enter.

Change Working Encina SFS Server
Cold Start an Encina SFS Server
Auto Start an Encina SFS Server
Shutdown an Encina SFS Server
Define Encina SFS Servers

F1=Help F2=Refresh F3=Cancel Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do


                           Define Encina SFS Servers

Move cursor to desired item and press Enter.

Create
Destroy
Show/Change

F1=Help F2=Refresh F3=Cancel Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do

修改一些设置.其中可以见到为什么前面构建SFS_SERV用户和sfs_SFS_SERV & log_SFS_SERVER 逻辑卷回车后即可


                           Create Encina SFS Server 

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

[TOP] [Entry Fields]
* SFS Server Identifier [SFS]
* Model SFS Server Identifier ""
Ignore errors on creation? no +
Are you using DCE servers? no +
Resource description [SFS Server Definition]
......
Short name used for SRC [SFS_SERV]
AIX user ID for server [%S]
AIX logical volume for data [sfs_%S]
AIX logical volume for logging [log_%S]
Log File Name [logfile]
Name Service for advertising server NONE +

F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do

创建Region

cicscp -v create region region_name OR

smitty cics

# smitty cics


             Customer Information Control System (CICS) Version 5.0

Move cursor to desired item and press Enter.

Manage CICS Regions
Manage Encina PPC Gateway Servers
Manage Filesystem

F1=Help F2=Refresh F3=Cancel Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do


                              Manage CICS Regions

Move cursor to desired item and press Enter.

Change Working CICS Region
Cold Start a CICS Region
Auto Start a CICS Region
Shutdown a CICS Region
Define Resources for a CICS Region
Configure CICS Resources on a File Server
Create (Import) a CICS Region
Save (Export) a CICS Region
Copy a CICS Region
Destroy a CICS Region

F1=Help F2=Refresh F3=Cancel Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do


                         Create (Import) a CICS Region

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

[Entry Fields]
* Name of Region to be Created [REG]
Action to be Taken for Resolving Links mandatory +
Force redefinition of region? no +
Group Id. for Region Data []
* Input file [/usr/lpp/cics/DEFAULT] /
Force use or non-use of DCE servers? do not use DCE server> +

F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do

配置Region 的文件系统:

先选择建立的Region




Manage CICS Regions

Move cursor to desired item and press Enter.

Change Working CICS Region
Cold Start a CICS Region
Auto Start a CICS Region
Shutdown a CICS Region
Define Resources for a CICS Region
Configure CICS Resources on a File Server
.....

F1=Help F2=Refresh F3=Cancel Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do

选择正确后:


                          COMMAND STATUS

Command: OK stdout: yes stderr: no

Before command completion, additional instructions may appear below.

REG

F1=Help F2=Refresh F3=Cancel Esc+6=Command

Esc+8=Image Esc+9=Shell Esc+0=Exit /=Find

n=Find Next


f3 ESC+3回退一步:


                             Manage CICS  Regions

Move cursor to desired item and press Enter.

Change Working CICS Region

Cold Start a CICS Region

Auto Start a CICS Region

Shutdown a CICS Region

Define Resources for a CICS Region

Configure CICS Resources on a File Server

.....

F1=Help F2=Refresh F3=Cancel Esc+8=Image

Esc+9=Shell Esc+0=Exit Enter=Do



                   Configure CICS Resources  on a File Server

Move cursor to desired item and press Enter.

Configure CICS Resources on an Encina SFS Server

Configure DB2 Database resources

F1=Help F2=Refresh F3=Cancel Esc+8=Image

Esc+9=Shell Esc+0=Exit Enter=Do



                Configure CICS Resources on  an Encina SFS Server

Move cursor to desired item and press Enter.

Configure an Encina SFS Server

Configure an Encina SFS Server for Recoverable Auxiliary TSQs

Configure an Encina SFS Server for Non-Recoverable Auxiliary TSQs

Configure an Encina SFS Server for Logically Recoverable TDQs

Configure an Encina SFS Server for Physically Recoverable TDQs

Configure an Encina SFS Server for Non-Recoverable TDQs

Configure an Encina SFS Server for Locally-Queued Protected STARTs

Configure an Encina SFS Server for Locally-Queued Unprotected STARTs

F1=Help F2=Refresh F3=Cancel Esc+8=Image

Esc+9=Shell Esc+0=Exit Enter=Do


修改对应的SFS server,此时此SFS Data要求要启动


                            Configure Encina  Servers

Type or select values in entry fields.

Press Enter AFTER making all desired changes.

[TOP] [Entry Fields]

* Region Name REG

Ignore errors on configuration? no +

Reset File Server to SFS? no +

* Number of updates 2

SFS server or database storing CICS Queue Data [/.:/cics/sfs/SFS]

Recoverable Auxiliary TSQ Volume Name sfs_%S

Number of pages to preallocate for RecTSQFile 5

Maximum number of records for Recoverable Auxiliar 1000000

y TSQs

Non-recoverable TSQ Volume Name sfs_%S

Number of pages to preallocate for NonRecTSQFile 5

Maximum number of records for Non-recoverable TSQs 1000000

Logically Recoverable TDQ Volume Name sfs_%S

[MORE...18]

F1=Help F2=Refresh F3=Cancel F4=List

Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image

Esc+9=Shell Esc+0=Exit Enter=Do


启动SFSRegion

cicscp –v start sfs_server [sfs服务名]

# cicscp –v start sfs_server /.:/cics/sfs/SFS

cicscp –v start region [region name]

# cicscp –v start region REG


查看运行状态
#lssrc -a|grep cics

2 条评论:

凯 影 说...

好用功的小罗子啊,我也要加油了。

starluo 说...

压力大啊,能不努力么~~~