CICS + Linux + Oracle 环境搭建3

CICS + Linux + Oracle 环境搭建

-r–r–r– 1 root root 50 Oct 24 2011 CTG0800.SYS2 -rwxr-xr-x 1 root root 178086 Oct 24 2011 cicsterm -rwxr-xr-x 1 root root 139594 Oct 24 2011 cicsprnt -rw-r–r– 1 root root 2708 Oct 24 2011 cicskey.ini -rwxr-xr-x 1 root root 64651 Oct 24 2011 cicsftrc -rw-r–r– 1 root root 2834 Oct 24 2011 cicscol.ini -rwxr-xr-x 1 root root 69038 Oct 24 2011 cicscli -rwxr-xr-x 1 root root 69335 Oct 24 2011 ccltrfmt.a -rw-r–r– 1 root root 5974 Oct 24 2011 cclsumtr.txt -rw-r–r– 1 root root 64713 Oct 24 2011 cclmsg.txt -rw-r–r– 1 root root 165832 Oct 24 2011 cclmsg.hlp -rwxr-xr-x 1 root root 34807 Oct 24 2011 cclibmsn.a -rwxr-xr-x 1 root root 47425 Oct 24 2011 cclibmip.a -rwxr-xr-x 1 root root 213421 Oct 24 2011 cclclnt drwxrwxr-x 11 root root 4096 Oct 21 13:50 resource -rw-r–r– 1 root root 15354 Oct 21 14:01 ctgsamp.ini [root@ceshi bin]#

编辑ctg.ini 增加

SECTION SERVER = TESTCONN Description = TCP/IP Server Protocol = TCPIP

NetName = 192.168.10.249 Port = 11435 ENDSECTION

14. 启动CTG和CICS的连接 client demon

[root@ceshi bin]# cicscli -S=TESTCONN

CCL8001I CICSCLI – CICS Transaction Gateway Client Daemon Control Program CCL0002I (C) Copyright IBM Corporation 1994, 2011. All rights reserved. CCL8038I The Client daemon is starting

CCL8037I Connection to server ‘TESTCONN’ is being started

[root@ceshi bin]# cicscli -l

CCL8001I CICSCLI – CICS Transaction Gateway Client Daemon Control Program CCL0002I (C) Copyright IBM Corporation 1994, 2011. All rights reserved. CCL8041I The Client daemon is using the following servers:

CCL8042I Server ‘TESTCONN’ (using ‘TCPIP’ to ‘192.168.10.249’) is available [root@ceshi bin]#

15. 配置CTG gateway demaon

[root@ceshi bin]#

cp /opt/ibm/cicstg/samples/configuration/ctgdsamp.conf /opt/ibm/cicstg/bin

[root@ceshi bin]# mv ctgdsamp.conf ctgd.conf [root@ceshi bin]#

vi修改 ctgd.conf的JVM:

export CTG_JAVA=/opt/ibm/cicstg/jvm160/bin/java

AIX是大写

mv /opt/IBM/cicstg/bin/ctgdsamp.conf /opt/IBM/cicstg/bin/ctgd.conf

cp /opt/IBM/cicstg/samples/configuration/ctgdsamp.conf /opt/IBM/cicstg/bin vi /opt/IBM/cicstg/bin/ctgd.conf

16. 启动 停止CTG gateway demaon

[root@ceshi bin]# ctgd start

ctgd – CICS Transaction Gateway Daemon Control Program (C) Copyright IBM Corporation 2004, 2011. All rights reserved. Starting IBM CICS Transaction Gateway: started as root:root [root@ceshi bin]#

[root@ceshi bin]# ctgd stop

ctgd – CICS Transaction Gateway Daemon Control Program (C) Copyright IBM Corporation 2004, 2011. All rights reserved. Stopping IBM CICS Transaction Gateway: stopped [root@ceshi bin]#

17. 安装Oracle 11.2.0.3的32位客户端

安装oracle客户端、编译XAD只需要做一次,其他环境可以拷贝编译出的oracle1pc(驱动程序)

安装包已经压缩提供,可以直接解压缩

[root@ceshi oracle]# pwd

/usr/local/oracle

[root@ceshi oracle]# ls -lrt total 175028

-rwxrwxr-x 1 root root 160060 Sep 19 2011 uidrvci -rwxrwxr-x 1 root root 118400194 Sep 19 2011 libociei.so -rwxrwxr-x 1 root root 37949 Sep 19 2011 genezi

-rw-rw-r– 1 root root 437 Sep 19 2011 BASIC_README -rwxrwxr-x 1 root root 21957 Sep 19 2011 adrci -r-xr-xr-x 1 root root 7058839 Sep 19 2011 libnnz11.so

-rwxrwxr-x 1 root root 43621159 Sep 19 2011 libclntsh.so.11.1 -rw-rw-r– 1 root root 66779 Sep 19 2011 xstreams.jar -r–r–r– 1 root root 2714189 Sep 19 2011 ojdbc6.jar -r–r–r– 1 root root 2095932 Sep 19 2011 ojdbc5.jar

-r-xr-xr-x 1 root root 152433 Sep 19 2011 libocijdbc11.so -rwxrwxr-x 1 root root 1881900 Sep 19 2011 libocci.so.11.1 -r-xr-xr-x 1 root root 1222175 Sep 19 2011 libsqlplus.so

-rw-rw-r– 1 root root 441 Sep 19 2011 SQLPLUS_README -r-xr-xr-x 1 root root 6933 Sep 19 2011 sqlplus

-r-xr-xr-x 1 root root 1500659 Sep 19 2011 libsqlplusic.so -r–r–r– 1 root root 368 Sep 19 2011 glogin.sql

-rw-rw-r– 1 root root 3074 Sep 19 2011 PRECOMP_README drwxrwxr-x 3 root root 4096 Sep 19 2011 precomp -rw-rw-r– 1 root root 7488 Sep 19 2011 cobsqlintf.o drwxrwxr-x 4 root root 4096 Oct 21 16:25 sdk

-rwxr-xr-x 1 root root 1555 Oct 21 16:27 tnsnames.ora

lrwxrwxrwx 1 root root 19 Oct 21 17:12 libclntsh.so -> ./libclntsh.so.11.1

修改

sys_include=$ORACLE_HOME/sdk/include sys_include=$ORACLE_HOME/precomp/public sys_include=/opt/ibm/cics/include

sys_include=/usr/lib/gcc/x86_64-redhat-linux/4.1.1/include sys_include=/usr/lib/gcc/x86_64-redhat-linux/3.4.6/include sys_include=/usr/include

sys_include=/usr/lib/gcc/i586-suse-linux/4.3/include sys_include=/usr/lib/gcc/i586-suse-linux/4.1.2/include ltype=short

设置环境变量 /etc/profile

export ORACLE_HOME=/usr/local/oracle export ORACLE_SID=IBMCICS

export TNS_ADMIN=/usr/local/oracle

export NLS_LANG=\

export LD_LIBRARY_PATH=\export PATH=\

18. 编辑 编译XAD需要的配置文件

根据实际的操作系统修改pcbcfg.cfg [root@ceshi admin]# pwd

/usr/local/oracle/precomp/admin [root@ceshi admin]# ls -lrt total 12

-rw-rw-r– 1 root root 23 Sep 19 2011 pcbcfg.cfg -rw-r–r– 1 root root 337 Oct 21 17:18 pcscfg.cfg_back -rw-rw-r– 1 root root 375 Oct 22 11:16 pcscfg.cfg [root@ceshi admin]#

[root@ceshi admin]# cat pcscfg.cfg

sys_include=$ORACLE_HOME/sdk/include sys_include=$ORACLE_HOME/precomp/public sys_include=/opt/ibm/cics/include

sys_include=/usr/lib/gcc/x86_64-redhat-linux/4.1.1/include sys_include=/usr/lib/gcc/x86_64-redhat-linux/3.4.6/include sys_include=/usr/include ltype=short

[root@ceshi admin]#

19. 编译Oracle的XAD文件

使用附件提供的RM_Support_Oracle.zip中的文件到下面目录:

[root@ceshi RM_support]# pwd /opt/ibm/cics/examples/RM_support

[root@ceshi Oracle]# ls -lrt total 144

-rwxrwxr-x 1 cics cics 3529 Oct 21 13:03 uxa1.sql -rwxrwxr-x 1 cics cics 9805 Oct 21 13:03 uxa1.pco -rwxrwxr-x 1 cics cics 7240 Oct 21 13:03 uxa1.pc

-rwxrwxr-x 1 cics cics 2605 Oct 21 13:03 uxa1_ora.mk -rwxrwxr-x 1 cics cics 2751 Oct 21 13:03 uxa1_oracob.mk -rwxrwxr-x 1 cics cics 5069 Oct 21 13:03 uxa1cob.bms

-rwxrwxr-x 1 cics cics 5066 Oct 21 13:03 uxa1.bms

-rwxrwxr-x 1 cics cics 2668 Oct 21 13:03 oraclexa_sta.mk -rwxrwxr-x 1 cics cics 2743 Oct 21 13:03 oraclexa_sta.c -rwxrwxr-x 1 cics cics 2873 Oct 21 13:03 oraclexa_dyn.mk -rwxrwxr-x 1 cics cics 2772 Oct 21 13:03 oraclexa_dyn.c -rwxrwxr-x 1 cics cics 15899 Oct 21 13:03 oracle1pc.pc -rwxrwxr-x 1 cics cics 3530 Oct 21 13:03 nxa1.sql -rwxrwxr-x 1 cics cics 12060 Oct 21 13:03 nxa1.pco -rwxrwxr-x 1 cics cics 10128 Oct 21 13:03 nxa1.pc

-rwxrwxr-x 1 cics cics 2611 Oct 21 13:03 nxa1_ora.mk -rwxrwxr-x 1 cics cics 2759 Oct 21 13:03 nxa1_oracob.mk -rwxrwxr-x 1 cics cics 5069 Oct 21 13:03 nxa1cob.bms -rwxrwxr-x 1 cics cics 5066 Oct 21 13:03 nxa1.bms

-rwxr-xr-x 1 root root 2915 Oct 21 15:08 oralce1pc.mk.bak -rwxr-xr-x 1 root root 250 Oct 21 16:41 export.sh -rwxrwxr-x 1 cics cics 2952 Oct 21 17:39 oracle1pc.mk -rw-r–r– 1 root root 0 Oct 21 17:40 oracle1pc.lis [root@ceshi Oracle]# [root@ceshi Oracle]# [root@ceshi Oracle]#

[root@ceshi Oracle]# make -f oracle1pc.mk oracle

/usr/local/oracle/sdk/proc parse=none release_cursor=no sqlcheck=syntax \\ include=/opt/ibm/cics/include ireclen=512 \\ iname=oracle1pc.pc

Pro*C/C++: Release 11.2.0.3.0 – Production on Tue Oct 21 17:40:39 2014

Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

System default option values taken from: /usr/local/oracle/precomp/admin/pcscfg.cfg

cc -c -m32 -I/opt/ibm/cics/include oracle1pc.c oracle1pc.c: In function 钬榙o_sql_error钬

oracle1pc.c:364: warning: incompatible implicit declaration of built-in function 钬榤emset钬

oracle1pc.c:373: warning: incompatible implicit declaration of built-in function 钬荣trncpy钬 oracle1pc.c:375: warning: incompatible implicit declaration of built-in function 钬荣trcpy钬 oracle1pc.c: In function 钬榥o_xa_open钬

oracle1pc.c:469: warning: incompatible implicit declaration of built-in function 钬荣trcpy钬 oracle1pc.c:480: warning: incompatible implicit declaration of built-in function 钬荣trlen钬

以下文章点击率最高

Loading…

     

如果这文章对你有帮助,请扫左上角微信支付-支付宝,给于打赏,以助博客运营

发表评论

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