配置利用远程客户端访问tuxedo服务,步骤如下:
IP地址:
服务器端 192.168.0.56
客户端 192.168.0.55
(1)环境变量,配置客户端的wsnaddr
[tuxedo@mylinux simpapp]$ more tux.env
TUXDIR=/home/tuxedo/tuxedo8.1; export TUXDIR
PATH=$TUXDIR/bin:$PATH; export PATH
COBCPY=:$TUXDIR/cobinclude; export COBCPY
COBOPT="-C ANS85 -C ALIGN=8 -C NOIBMCOMP -C TRUNC=ANSI -C OSEXT=cbl"; export COBOPT
SHLIB_PATH=$TUXDIR/lib:$SHLIB_PATH; export SHLIB_PATH
LIBPATH=$TUXDIR/lib:$LIBPATH; export LIBPATH
LD_LIBRARY_PATH=$TUXDIR/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
WEBJAVADIR=$TUXDIR/udataobj/webgui/java
LANG=C; export LANG
APPDIR=/home/tuxedo/simpapp; export APPDIR
TUXCONFIG=$APPDIR/tuxconfig; export TUXCONFIG
WSNADDR=//192.168.0.56:3200; export WSNADDR
(2)在服务端配置WSL
WSL SRVGRP=GROUP1 SRVID=10
CLOPT="-A — -n//192.168.0.56:3200 -M 5 -m5"
(3)重新编译tuxconfig文件
tmloadcf -y ubbsimple
(4)启动tuxedo服务
(5)以-w的方式编译客户端程序
第4步报错如下:
150636.mylinux!WSL.30414.3086993088.0: WSNAT_CAT:1070: ERROR: Cannot boot WSL with MAXWSCLIENTS for machine set to 0
150636.mylinux!WSL.30414.3086993088.0: LIBTUX_CAT:250: ERROR: tpsvrinit() failed
150636.mylinux!tmboot.30406.3086948032.-2: 10-23-2010: Tuxedo Version 8.1, 32-bit
150636.mylinux!tmboot.30406.3086948032.-2: CMDTUX_CAT:825: ERROR: Process WSL at simple failed with /T tperrno (TPESYSTEM – internal system error)
启动信息:
[oracle@mylinux simpapp]$ tmboot -y
Booting all admin and server processes in /home/oracle/simpapp/tuxconfig
INFO: BEA Tuxedo, Version 8.1, 32-bit, Patch Level 175
INFO: Serial #: 454493271161-2664948380795, Expiration NONE, Maxusers 1000000
INFO: Licensed to: Customer
Booting admin processes …
exec BBL -A :
process id=30407 … Started.
Booting server processes …
exec simpserv -A :
process id=30408 … Started.
exec simpserv -A :
process id=30409 … Started.
exec simpserv -A :
process id=30410 … Started.
exec simpserv -A :
process id=30411 … Started.
exec simpserv -A :
process id=30412 … Started.
exec simpserv -A :
process id=30413 … Started.
exec WSL -A — -n//192.168.0.56:3200 -M 5 -m5 :
Failed.
7 processes started.
解决方法:
修改ubbsimple,
添加MAXWSCLIENTS =5(注意:加在*MACHINES部分,否则编译无法识别)
重新编译
[oracle@mylinux simpapp]$ tmloadcf -y ubbsimple
成功启动
[oracle@mylinux simpapp]$ tmboot -y
Booting all admin and server processes in /home/oracle/simpapp/tuxconfig
INFO: BEA Tuxedo, Version 8.1, 32-bit, Patch Level 175
INFO: Serial #: 454493271161-2664948380795, Expiration NONE, Maxusers 1000000
INFO: Licensed to: Customer
Booting admin processes …
exec BBL -A :
process id=30454 … Started.
Booting server processes …
exec simpserv -A :
process id=30455 … Started.
exec simpserv -A :
process id=30456 … Started.
exec simpserv -A :
process id=30457 … Started.
exec simpserv -A :
process id=30458 … Started.
exec simpserv -A :
process id=30459 … Started.
exec simpserv -A :
process id=30460 … Started.
exec simpserv -A :
process id=30461 … Started.
exec WSL -A — -n//192.168.0.56:3200 -M 5 -m5 :
process id=30462 … Started.
9 processes started.
[oracle@mylinux simpapp]$ ps -ef|grep WSH
oracle 30463 30462 0 15:25 pts/0 00:00:00 WSH -c 11 -i 0 -s 163841 -p 2048 -P 65535
oracle 30464 30462 0 15:25 pts/0 00:00:00 WSH -c 11 -i 1 -s 163841 -p 2048 -P 65535
oracle 30465 30462 0 15:25 pts/0 00:00:00 WSH -c 11 -i 2 -s 163841 -p 2048 -P 65535
oracle 30466 30462 0 15:25 pts/0 00:00:00 WSH -c 11 -i 3 -s 163841 -p 2048 -P 65535
oracle 30467 30462 0 15:25 pts/0 00:00:00 WSH -c 11 -i 4 -s 163841 -p 2048 -P 65535
oracle 30469 2932 0 15:25 pts/0 00:00:00 grep WSH