Download AIX CICS/6000 and Relational Database Management Systems

Transcript
#!/bin/ksh
echo $CICSREGION
BINDIR=/var/cics_regions/$CICSREGION/bin
MAPDIR=/var/cics_regions/$CICSREGION/maps/prime
cp uxa1 $BINDIR/ORAUXA1
cp uxa1m.map $MAPDIR
cicsadd -c td -r $CICSREGION \
ResourceDescription=″ORA Demo Cheese XA Application″ \
ProgName=″ORAUXA1″ \
ORAU
cicsadd -c pd -r $CICSREGION -P ″ORAUXA1″ \
ResourceDescription=″ORAUXA1 Program Definition″ \
PathName=″$BINDIR/ORAUXA1″
cicsadd -c pd -r $CICSREGION -P ″UXA1″ \
ResourceDescription=″UXA1 Map Definitions″ \
PathName=″$MAPDIR/uxa1m.map″ \
ProgType=map
Figure 62. Sample Shell Script to Configure CICS/6000 Resources: Oracle7
These configurations take effect only after a cold start of CICS/6000 because we
have defined resources only to database stanza files.
B.5 Sybase System 10
We had the demo, Cheese , with the beta code of the Sybase XA-Library for
CICS/6000. The following files are supplied:
•
uxa1.sql SQL script to create and populate tables
•
uxa1.cpre C source file for Sybase
•
uxa1_syb.mk makefile for Sybase.
B.5.1 Create Database
Log in as user Sybase and verify that the database is running by using the
command:
$ ps -ef | grep syabse .
Figure 63 shows the output on our machine.
sybase 9544 11847 10 10:36:15 hft/2 0:44 /sybase/bin/dataserver
-d/dev/rmasterlv -sSYBASE -e/sybase/install/errorlog -i/s
sybase 11847
1
0 10:36:15 hft/2 0:00 sh ./RUN_SYBASE
seb 14949 14689
3 10:54:21 pts/0 0:00 grep sybase
Figure 63. Processes Releted to Sybase
If Sybase is not running, you can bring it up by entering the command:
138
CICS/6000 and RDBMSs