一、 登记中心主机:
a)配置文件
一般的配置文件在~/etc下的ubb.txt,如下是文件的内容,红色部分是要针对环境进行修改的,紫色部分是为了环境管理方便可以选择来修改的。
配置文件ubb.txt的内容如下:
*RESOURCES
IPCKEY 174842
DOMAINID ccbdmHQ
MASTER ccbdjzx
MAXACCESSERS 600
MAXSERVERS 300
MAXSERVICES 900
MODEL MP
OPTIONS LAN
LDBAL N
*MACHINES
DEFAULT:
Apsvr1 LMID=ccbdjzx
UID=136 GID=102
APPDIR="/data/ccbsbs/bin"
TUXCONFIG="/data/ccbsbs/etc/tuxconfig"
TUXDIR="/usr/tuxedo"
ULOGPFX="/data/ccbsbs/log/ULOG"
MAXWSCLIENTS=3
scosysv LMID=ccbgw1
UID=113 GID=102
APPDIR="/ usr /ccbsbs/bin"
TUXCONFIG="/ usr /ccbsbs/etc/tuxconfig"
ENVFILE="/ usr /ccbsbs/etc/envfile"
ULOGPFX="/ usr /ccbsbs/log/ULOG"
TUXDIR="/usr/tuxedo"
Gateway3 LMID=ccbgw2
UID=105 GID=102
APPDIR="/ usr /ccbsbs/bin"
TUXCONFIG="/ usr /ccbsbs/etc/tuxconfig"
ENVFILE="/ usr /ccbsbs/etc/envfile"
ULOGPFX="/ usr /ccbsbs/log/ULOG"
TUXDIR="/usr/tuxedo"
*GROUPS
ccbGHQa
LMID=ccbdjzx GRPNO=1 OPENINFO=NONE
ccbGHQb
LMID=ccbdjzx GRPNO=2 OPENINFO=NONE
ccbGHQc
LMID=ccbdjzx GRPNO=3 OPENINFO=NONE
ccbGgwa
LMID=ccbgw1 GRPNO=21 OPENINFO=NONE
ccbGgwb
LMID=ccbgw1 GRPNO=22 OPENINFO=NONE
ccbGgwc
LMID=ccbgw1 GRPNO=23 OPENINFO=NONE
ccbGgw2a
LMID=ccbgw2 GRPNO=31 OPENINFO=NONE
ccbGgw2b
LMID=ccbgw2 GRPNO=32 OPENINFO=NONE
ccbGgw2c
LMID=ccbgw2 GRPNO=33 OPENINFO=NONE
*NETWORK
ccbdjzx
NADDR="//192.168.1.11:8400"
BRIDGE="/dev/tcp"
NLSADDR="//192.168.1.11:8401"
ccbgw1
NADDR="//192.168.1.21:8400"
BRIDGE="/dev/tcp"
NLSADDR="//192.168.1.21:8401"
Ccbgw2
NADDR="//192.168.1.22:8400"
BRIDGE="/dev/tcp"
NLSADDR="//192.168.1.22:8401"
*SERVERS
DEFAULT: CLOPT="-A"
RB26SYSM SRVGRP=ccbGHQa SRVID=1
RB20CUST SRVGRP=ccbGHQa SRVID=2
RB22ACIF SRVGRP=ccbGHQa SRVID=3
RB24FUND SRVGRP=ccbGHQa SRVID=4
RB21CARD SRVGRP=ccbGHQa SRVID=5
RB25OTHE SRVGRP=ccbGHQa SRVID=6
RB23SECU SRVGRP=ccbGHQa SRVID=7
PAccount SRVGRP=ccbGHQa SRVID=8
TransAccount SRVGRP=ccbGHQa SRVID=9
onlinetrade SRVGRP=ccbGHQa SRVID=11
CheckServ SRVGRP=ccbGHQa SRVID=12
batchsv SRVGRP=ccbGHQa SRVID=13
dispatch SRVGRP=ccbGHQa SRVID=14
simpserv SRVGRP=ccbGHQa SRVID=119
ftpserv32 SRVGRP=ccbGHQb SRVID=129
WSL SRVGRP=ccbGHQb SRVID=10
CLOPT="-A -- -n//192.168.42.HQ:8420 -m1 -M3 -x1"
DMADM SRVGRP=ccbGHQb SRVID=101
GWADM SRVGRP=ccbGgwa SRVID=105
GWTDOMAIN SRVGRP=ccbGgwa SRVID=109
ordertest SRVGRP=ccbGgwb SRVID=21
gwreadfs SRVGRP=ccbGgwb SRVID=31
gwrecv SRVGRP=ccbGgwb SRVID=41
gwfundsvr SRVGRP=ccbGgwb SRVID=51
*SERVICES
TUXFTP ROUTING=ftprout
GWFUNDSVR ROUTING=agent
*ROUTING
ftprout FIELD=FTPROUTE BUFTYPE="FML32"
RANGES="'001':ccbGHQb,*:ccbGgwa"
Agent FIELD=ROUTINGFLD BUFTYPE="FML32"
RANGES="'00a':ccbGgwb,*:ccbGgwb"
b)环境变量
一般的环境变量设置文件为在~/etc下的setenv,如下是文件的内容,红色部分是要针对环境进行修改的,紫色部分是为了应用系统和数据库来设定的。
环境变量设置文件setenv的内容如下:
TUXDIR=/home/tuxedo; export TUXDIR
PATH=$TUXDIR/bin:$PATH:$HOME/bin:.; export PATH
SHLIB_PATH=$TUXDIR/lib:/usr/lib:/lib;export SHLIB_PATH
NLSPATH=$TUXDIR/locale;export NLSPATH
LANG=C;export LANG
TUXCONFIG=/data/ccb/etc/tuxconfig;export TUXCONFIG
BDMCONFIG=/data/ccb/etc/bdmconfig;export BDMCONFIG
FIELDTBLS32=ftpflds;export FIELDTBLS32
FLDTBLDIR32=$TUXDIR/api105;export FLDTBLDIR32
tlisten -d /dev/tcp -l //192.168.42.HQ:8401
ORACLE_BASE=/oracle
export ORACLE_BASE
ORACLE_HOME=/oracle/app/oracle/product/8.1.6
export ORACLE_HOME
ORACLE_SID=ora816
export ORACLE_SID
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/rdbms/lib
ORACLE_TERM=vt100
PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_TERM LD_LIBRARY_PATH PATH
SHLIB_PATH=$ORACLE_HOME/lib:/usr/lib:$SHLIB_PATH
export SHLIB_PATH
NLS_LANG=American_America.ZHS16GBK;export NLS_LANG
c)配置文件
一般的配置文件在~/etc下的dm.txt,如下是文件的内容,红色部分是要针对环境进行修改的,绿色部分是为了环境管理方便可以选择来修改的,如果再登记中心的主机上作了相应的修改,那么紫色的部分必须作相应的修改。
配置文件dm.txt的内容如下:
*DM_LOCAL_DOMAINS
ccbdmHQ GWGRP=ccbGgwa
TYPE=TDOMAIN
DOMAINID=ccbdmHQ
*DM_REMOTE_DOMAINS
ccbdm231 TYPE=TDOMAIN
DOMAINID=ccbdm231
ccbdm220 TYPE=TDOMAIN
DOMAINID=ccbdm220
*DM_TDOMAIN
ccbdm231 NWADDR="//192.168.42.231:8410"
NWDEVICE="/dev/tcp"
ccbdm220 NWADDR="//192.168.42.220:8410"
NWDEVICE="/dev/tcp"
ccbdmHQ NWADDR="//192.168.42.138:8410"
NWDEVICE="/dev/tcp"
*DM_LOCAL_SERVICES
RS0801REGNETWS
RS0802DELNETWS
RS0803MODINETWS
RS0001OPENMAN
RS0002OPENGRP
RS0005MODICARD
RS0006MODIMAN
RS0007MODIGRP
RS0011OPENAC
RS0013REGOAC
RS0201MTRANIN
RS0202MTRANOUT
RS0031CHGCARD
RS0029RECARD
RS0101ACFRZ
RS0026CARDLOSE
RS0030CCPWLOSE
RS0022PWDLOSE
RS0103ACFRZ
RS0107MFRZ
RS0108MNOFRZ
RS0104ACNOFRZ
RS0203CASHIN
RS0102ACNOFRZ
RS0204CASHOUT
RS0205DAYCWC
RS0112DEDUCT
RS0721AGLOGIN
RS0722AGLOGOUT
RS0043TRANSIN
RS0044TRANSOUT
RS0042CHGOWN
RS0109SECFRZ
RS0110SECNOFRZ
RS0012DELAC
RS0014DELOAC
RS0004DELCUST
RS0003NDELCUST
RS0041OUTSYS
HSJJ
TUXFTP
TRADE
TOUPPER
register
DispatchDMac
DispatchDetail
DetailRequest
*DM_REMOTE_SERVICES
HSCJHB ROUTING=agent
GETPRICES ROUTING=agent
TUXFTP ROUTING=ftprout
*DM_ROUTING
agent FIELD =ROUTINGFLD BUFTYPE ="FML32"
RANGES ="'510':ccbdm231, '110':ccbdm220, *:ccbdm220"
ftprout FIELD =FTPROUTE BUFTYPE ="FML32"
RANGES ="'510':ccbdm231, '110':ccbdm220, *:ccbdm231"
二、 应用网关
a)环境变量文件
一般的环境变量设置文件为在~/etc下的envfile,如下是文件的内容,红色部分是要针对环境进行修改的。
要注意设置多机互连的监听进程:tlisten -d /dev/tcp -l //192.168.42.HQ:8401
环境变量设置文件envfile的内容如下:
BDMCONFIG=/data/ccb/etc/bdmconfig
MCHSNDFILE=/tmp/ccb/matchsend.txt
FSNDLOG=/tmp/ccb/Fsnd.log
FIELDTBLS32=ftpflds
FLDTBLDIR32=/data/tuxedo/api105
b)环境变量
网关机器上的应用系统在运行过程中需要使用的环境变量都在文件setenv中有相应的设置。
如下是文件setenv的内容:其中的红色部分要与文件envfile中的内容一致的。
TUXDIR=/usr/tuxedo;export TUXDIR
PATH=$TUXDIR/bin:$PATH; export PATH
LD_LIBRARY_PATH=$TUXDIR/lib:$LD_LIBRARY_PATH;
export LD_LIBRARY_PATH
NLSPATH=/usr/tuxedo/locale; export NLSPATH
LANG=C; export LANG
TUXCONFIG=/usr/ccbsbs/etc/tuxconfig; export TUXCONFIG
BDMCONFIG=/usr/ccbsbs/etc/bdmconfig; export BDMCONFIG
FIELDTBLS32=ftpflds;export FIELDTBLS32
FLDTBLDIR32=/usr/tuxedo/api105; export FLDTBLDIR32
MCHSNDFILE=/usr/ccbsbs/data/matchsend.txt;export MCHSNDFILE
FSNDLOG=/usr/ccbsbs/data/Fsnd.log;export FSNDLOG
三、 代理集中点
a)配置文件
一般的配置文件在~/etc下的ubb.txt和dm.txt,如下是文件的内容,红色部分是要针对环境进行修改的,紫色部分是为了环境管理方便可以选择来修改的。
配置文件ubb.txt的内容如下:
*RESOURCES
IPCKEY 174842
DOMAINID ccbdmHQ
MASTER ccbdjzx
MAXACCESSERS 600
MAXSERVERS 300
MAXSERVICES 900
MODEL SHM
LDBAL Y
*MACHINES
DEFAULT:
APPDIR="/home/ccb/bin"
TUXCONFIG="/home/ccb/etc/tuxconfig"
TUXDIR="/home/tuxedo"
F80A LMID=ccb220
ULOGPFX="/home/ccb/log/ULOG"
MAXWSCLIENTS=3
*GROUPS
ccbG220a LMID=ccb220 GRPNO=10 OPENINFO=NONE
ccbG220b LMID=ccb220 GRPNO=20 OPENINFO=NONE
ccbG220c LMID=ccb220 GRPNO=30 OPENINFO=NONE
*SERVERS
DEFAULT:
RESTART=Y MAXGEN=5 REPLYQ=Y CLOPT="-A"
WSL SRVGRP=ccbG220a SRVID=1
CLOPT="-A -- -n //192.168.42.220:8420 -m1 -M3 -x1"
DMADM SRVGRP=ccbG220a SRVID=2
GWADM SRVGRP=ccbG220a SRVID=3
GWTDOMAIN SRVGRP=ccbG220a SRVID=4
ftpserv32 SRVGRP=ccbG220c SRVID=5
Hszhclsvr SRVGRP=ccbG220b SRVID=6
Hszjclsvr SRVGRP=ccbG220b SRVID=9
Hszjhtsvr SRVGRP=ccbG220b SRVID=10
DownloadStd SRVGRP=ccbG220b SRVID=11
Hscxclsvr SRVGRP=ccbG220b SRVID=13
Hsxtglsvr SRVGRP=ccbG220b SRVID=20
Hsbpclsvr SRVGRP=ccbG220b SRVID=14
Hsdlywsvr SRVGRP=ccbG220b SRVID=15
StkCity SRVGRP=ccbG220b SRVID=16
Hscjhbsvr SRVGRP=ccbG220b SRVID=18
Hshqclsvr SRVGRP=ccbG220b SRVID=22
*SERVICES
TUXFTP ROUTING=ftprout
*ROUTING
ftprout FIELD=FTPROUTE BUFTYPE="FML32"
RANGES="'110':ccbG220c,'001':ccbG220a,*:ccbG220c"
配置文件dm.txt的内容如下:
如下是文件的内容,红色部分是要针对环境进行修改的,绿色部分是为了环境管理方便可以选择来修改的,如果文件ubb.txt作了相应的修改,那么紫色的部分必须作相应的修改。
*DM_LOCAL_DOMAINS
ccbdm220 GWGRP=ccbG220a
TYPE=TDOMAIN
DOMAINID=ccbdm220
*DM_REMOTE_DOMAINS
ccbdmHQ TYPE=TDOMAIN
DOMAINID=ccbdmHQ
*DM_TDOMAIN
ccbdmHQ NWADDR="//192.168.42.138:8410"
NWDEVICE="/dev/tcp"
ccbdm220 NWADDR="//192.168.42.220:8410"
NWDEVICE="/dev/tcp"
*DM_LOCAL_SERVICES
hszhclsvr
HSCJHB
GETPRICES
TUXFTP
*DM_REMOTE_SERVICES
RS0001OPENMAN
RS0002OPENGRP
RS0201MTRANIN
RS0202MTRANOUT
RS0011OPENAC
RS0013REGOAC
RS0005MODICARD
RS0006MODIMAN
RS0007MODIGRP
RS0022PWDLOSE
RS0026CARDLOSE
RS0029RECARD
RS0031CHGCARD
TOUPPER
RS0101ACFRZ
RS0102ACNOFRZ
RS0103ACFRZ
RS0104ACNOFRZ
RS0107MFRZ
RS0108MNOFRZ
RS0109SECFRZ
RS0110SECNOFRZ
RS0030CCPWLOSE
RS0012DELAC
RS0014DELOAC
RS0004DELCUST
RS0003NDELCUST
RS0043TRANSIN
RS0044TRANSOUT
RS0041OUTSYS
RS0042CHGOWN
RS0721AGLOGIN
RS0721AGLOGOUT
RS0801REGNETWS
RS0802DELNETWS
RS0803MODINETWS
HSJJ
TRADE
DispatchDMac
DispatchDetail
DetailRequest
TUXFTP ROUTING=ftprout
*DM_ROUTING
ftprout FIELD=FTPROUTE BUFTYPE="FML32"
RANGES="'001':ccbdmHQ,*:ccbdmHQ"
b)环境变量
一般的环境变量设置文件为在~/etc下的setenv,如下是文件的内容,红色部分是要针对环境进行修改的。
环境变量设置文件setenv的内容如下:
TUXDIR=/home/tuxedo; export TUXDIR
PATH=$TUXDIR/bin:$PATH:$HOME/bin:.; export PATH
SHLIB_PATH=$TUXDIR/lib:/usr/lib:/lib;export SHLIB_PATH ( For HPUX )
LIBPATH=$TUXDIR/lib:$LIBPATH; export LIBPATH ( For IBM AIX )
NLSPATH=$TUXDIR/locale;export NLSPATH
LANG=C;export LANG
TUXCONFIG=/data/ccb/etc/tuxconfig;export TUXCONFIG
BDMCONFIG=/data/ccb/etc/bdmconfig;export BDMCONFIG
FIELDTBLS32=ftpflds;export FIELDTBLS32
FLDTBLDIR32=$TUXDIR/api105;export FLDTBLDIR32
WSNADDR=//192.168.42.HQ:8420; export WSNADDR
四、 前台网点
在前台网垫只需要设置几个基本的环境变量即可实现交易。如下内容,红色部分是要针对环境进行修改的。
环境变量如下:
TUXDIR=/home/tuxedo; export TUXDIR
PATH=$TUXDIR/bin:$PATH:$HOME/bin:.; export PATH
SHLIB_PATH=$TUXDIR/lib:/usr/lib:/lib;export SHLIB_PATH ( For HPUX )
LIBPATH=$TUXDIR/lib:$LIBPATH; export LIBPATH ( For IBM AIX )
LD_LIBRARY_PATH=$TUXDIR/lib:$LD_LIBRARY_PATH ( For SCO )
export LD_LIBRARY_PATH
NLSPATH=$TUXDIR/locale;export NLSPATH
LANG=C;export LANG
WSNADDR=//192.168.42.HQ:8420; export WSNADDR