CICS + Linux + Oracle 环境搭建1

CICS + Linux + Oracle 环境搭建

CICS + Linux + Oracle 环境搭建

1. 安装CICS v8.1介质

如果安装包已经被压缩,可以使用命令进行解压缩: gzip -d ** tax -xvf **

**为压缩包名

[root@ceshi cics]# pwd /root/TXSeries_Install/cics

[root@ceshi cics]# ./TXSeriesV81-Linux.bin -f TXSeriesV81.res -i silent

[root@ceshi cics]# cicscp -v version

ERZ096176I/0381: The version is ‘TXSeries 8.1.0.0 s810-L131118’. ERZ096002I/0003: The cicscp command has completed successfully.

安装如果失败会在 /根目录、/root/或者/tmp有日志

2. 安装CICS v8.1介质的补丁包

[root@ceshi fixpack]# ps -ef | grep cics

root 4864 1 0 13:00 ? 00:00:00 /opt/ibm/cics/bin/sarpcd

root 5022 1 14 13:00 pts/6 00:00:13 /opt/ibm/cics/_jvm/bin/java -XX:MaxPermSize=256m -Djava.security.auth.login.config=./../../security/jaas/jaas.config -javaagent:/opt/ibm/cics/wui/bin/tools/ws-javaagent.jar -jar /opt/ibm/cics/wui/bin/tools/ws-server.jar txserver

root 6162 6124 1 13:01 pts/8 00:00:00 cicscp -v create region Test

cics 6239 6162 0 13:01 ? 00:00:00 /opt/ibm/cics/bin/sfs -n /.:/cics/sfs/ceshi -v /var/cics_servers/SSD/cics/sfs/ceshi/restart:/var/cics_servers/SSD/cics/sfs/ceshi/restart.bak -c C -N none -Z 0 -d 300 -i 60:5000:5000 -b 1000 -P 12 3

root 6271 28505 0 13:01 pts/6 00:00:00 grep cics

[root@ceshi fixpack]# kill -9 4864 5022 6162 6239 -bash: kill: (6162) – No such process

[root@ceshi fixpack]# ps -ef | grep cics

root 6288 28505 0 13:02 pts/6 00:00:00 grep cics

[root@ceshi fixpack]# ./TXSeriesV81-FP1-Linux.bin -f TXSeriesV81-FixPack.res -i silent

[root@ceshi fixpack]# cicscp -v version

ERZ096176I/0381: The version is ‘TXSeries 8.1.0.1 s810-L140701’. ERZ096002I/0003: The cicscp command has completed successfully. [root@ceshi fixpack]#

3. 创建region

[root@ceshi fixpack]# cicscp -v create region test ERZ058504I/0107: Starting RPC daemon.

ERZ058502I/0101: RPC daemon is already running. ERZ096118I/0247: Creating a region.

ERZ046045I/0222: Creating region ‘test’ from archive of default region ‘/opt/ibm/cics/DEFAULT’ ERZ010114I/0728: Creating subsystem ‘cics.test’ for region ‘test’ ERZ046339I/0421: Successfully imported region ‘test’

ERZ096111I/0224: Processing a start sfs_server command. ERZ096141I/0224: Starting SFS server ‘/.:/cics/sfs/ceshi’. ERZ096103I/0199: Creating an SFS server.

ERZ105006I/0011: Directory ‘/var/cics_servers/SSD/cics/sfs/ceshi’ created

ERZ084009W/8429: No runtime recovery image for server ‘/.:/cics/sfs/ceshi’, cold start assumed ERZ010130I/0734: Creating subsystem ‘cicssfs.Sceshi’

ERZ038038I/0044: Server ‘/.:/cics/sfs/ceshi’ added as a subsystem

ERZ096107I/0214: The SFS server ‘/.:/cics/sfs/ceshi’ was created successfully.

ERZ038214I/0168: Authorization for server ‘/.:/cics/sfs/ceshi’ has been set to ‘none’ ERZ038216I/0175: Subsystem ‘cicssfs.Sceshi’ has been initialized. ERZ038219I/0179: Server ‘/.:/cics/sfs/ceshi’ is responding to RPCs.

ERZ036204I/0251: Created logical volume ‘log_Sceshi’ for server ‘/.:/cics/sfs/ceshi’

ERZ036206I/0253: Initialized logical volume ‘log_Sceshi’ initialized for logging by server ‘/.:/cics/sfs/ceshi’

ERZ036208I/0255: Created log file ‘log_Sceshi/logfile’ for server ‘/.:/cics/sfs/ceshi’ ERZ036231I/0260: Log file ‘logfile’ on server ‘/.:/cics/sfs/ceshi’ has been enabled. ERZ036233I/0262: Logical volumes on server ‘/.:/cics/sfs/ceshi’ have been recovered. ERZ038228I/0189: Server ‘/.:/cics/sfs/ceshi’ has been enabled.

ERZ038223I/0192: SFS Logical volume ‘sfs_Sceshi’ has been created for server ‘/.:/cics/sfs/ceshi’. ERZ038224I/0194: Logical volume ‘sfs_Sceshi’ on server ‘/.:/cics/sfs/ceshi’ has been enabled. ERZ038226I/0196: Logical volume ‘sfs_Sceshi’ has been added to server ‘/.:/cics/sfs/ceshi’. ERZ038182I/0182: Server ‘/.:/cics/sfs/ceshi’ started successfully.

ERZ096113I/0231: SFS server has ‘/.:/cics/sfs/ceshi’ successfully started.

ERZ038176I/0339: Adding TSQ file ‘testcicsrectsqfile’ to server ‘/.:/cics/sfs/ceshi’, volume ‘sfs_Sceshi’.

ERZ038176I/0344: Adding TSQ file ‘testcicsnrectsqfil’ to server ‘/.:/cics/sfs/ceshi’, volume ‘sfs_Sceshi’.

ERZ038177I/0349: Adding TDQ file ‘testcicstdqlgfile’ to server ‘/.:/cics/sfs/ceshi’, volume ‘sfs_Sceshi’.

ERZ038177I/0354: Adding TDQ file ‘testcicstdqphfile’ to server ‘/.:/cics/sfs/ceshi’, volume ‘sfs_Sceshi’.

ERZ038177I/0359: Adding TDQ file ‘testcicstdqnofile’ to server ‘/.:/cics/sfs/ceshi’, volume ‘sfs_Sceshi’.

ERZ038178I/0364: Adding Local Queueing file ‘testcicsnlqfile’ to server ‘/.:/cics/sfs/ceshi’, volume ‘sfs_Sceshi’.

ERZ038178I/0369: Adding Local Queueing file ‘testcicsplqfile’ to server ‘/.:/cics/sfs/ceshi’, volume ‘sfs_Sceshi’.

ERZ010013I/0024: CICS has removed the lock file for region ‘test’ ERZ096121I/0256: The region ‘test’ was created successfully.

ERZ096002I/0003: The cicscp command has completed successfully.

4. 启动region

[root@ceshi cics_app]# cicscp -v status all ERZ058504I/0107: Starting RPC daemon.

ERZ058502I/0101: RPC daemon is already running.

ceshi sfs Running test region Stopped

[root@ceshi cics_app]# cicscp -v start region test StartType=cold ERZ058504I/0107: Starting RPC daemon.

ERZ058502I/0101: RPC daemon is already running.

ERZ096122I/0264: Processing the ‘start region’ command. ERZ096158I/0264: The region ‘test’ is starting.

ERZ096111I/0224: Processing a start sfs_server command. ERZ096141I/0224: Starting SFS server ‘/.:/cics/sfs/ceshi’.

ERZ096112I/0229: The SFS server ‘/.:/cics/sfs/ceshi’ is running.

ERZ096113I/0231: SFS server has ‘/.:/cics/sfs/ceshi’ successfully started. ERZ038216I/0382: Subsystem ‘test’ has been initialized. ERZ038219I/0390: Server ‘test’ is responding to RPCs. ERZ096126I/0276: Region ‘test’ has successfully started.

ERZ096002I/0003: The cicscp command has completed successfully.

[root@ceshi cics_app]# cicscp -v status all ERZ058504I/0107: Starting RPC daemon.

ERZ058502I/0101: RPC daemon is already running.

ceshi sfs Running

test region Running ERZ096002I/0003: The cicscp command has completed successfully.

5. 如何重建region

使用destroy会删除region cicscp -v destroy region test

第一次创建region后会自动创建一个sfs_server 彻底的重建环境,可以使用destroy删除sfs_server cicscp -v destroy sfs_server all

6. 编译程序

[root@ceshi cics_app]# pwd /root/cics_app

[root@ceshi cics_app]# cicstcl -lC HELLOWLD.ccs

ERZ004047I/9005: Running the translation step: ‘cicstran -lC HELLOWLD.ccs’ ERZ004060I/5015: cicstran translation ended: 0 error(s), 0 warning(s).

ERZ004049I/0096: Running the compile and link step: ‘gcc -I/opt/ibm/cics/include -m32 -ansi -fPIC -c HELLOWLD.c’

ld -G -e main -o HELLOWLD HELLOWLD.o -L/opt/ibm/cics/lib -m elf_i386

[root@ceshi cics_app]# ls -lrt total 12

-rw-r–r– 1 root root 305 Oct 21 11:40 HELLOWLD.ccs -rw-rw-r– 1 root root 1808 Oct 21 13:16 HELLOWLD.o -rwxrwxr-x 1 root root 2394 Oct 21 13:16 HELLOWLD

7. 将程序配置到CICS Region

[root@ceshi cics_app]# cicsadd -c pd -r test HELLOWLD PathName=/root/cics_app/HELLOWLD [root@ceshi cics_app]#

[root@ceshi cics_app]# cicsadd -ctd -r test HELO ProgName=HELLOWLD [root@ceshi cics_app]#

8. 重新启动region

[root@ceshi cics_app]# cicscp -v stop region test ERZ058504I/0107: Starting RPC daemon.

ERZ058502I/0101: RPC daemon is already running. ERZ096131I/0277: Processing a ‘stop region’ command. ERZ096160I/0277: Stopping region ‘test’.

ERZ096135I/0288: The region ‘test’ is not running. ERZ096134I/0290: Region ‘test’ successfully stopped.

ERZ096002I/0003: The cicscp command has completed successfully.

停止命令连续执行两次

[root@ceshi cics_app]# cicscp -v start region test StartType=cold ERZ058504I/0107: Starting RPC daemon.

ERZ058502I/0101: RPC daemon is already running.

ERZ096122I/0264: Processing the ‘start region’ command. ERZ096158I/0264: The region ‘test’ is starting.

ERZ096111I/0224: Processing a start sfs_server command. ERZ096141I/0224: Starting SFS server ‘/.:/cics/sfs/ceshi’.

ERZ096112I/0229: The SFS server ‘/.:/cics/sfs/ceshi’ is running.

ERZ096113I/0231: SFS server has ‘/.:/cics/sfs/ceshi’ successfully started. ERZ038216I/0382: Subsystem ‘test’ has been initialized. ERZ038219I/0390: Server ‘test’ is responding to RPCs. ERZ096126I/0276: Region ‘test’ has successfully started.

ERZ096002I/0003: The cicscp command has completed successfully.

9. (TIPS)如何快速强制关闭region

连续两次执行stop 或者追加 -f参数

连续两次执行stop,相当于系统在第二次时追加了-f参数 [root@ceshi cics_app]# cicscp -v stop region test

以下文章点击率最高

Loading…


发表评论

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