请有没有高手帮忙看下
Booting admin processes ...
exec BBL -A :
process id=7920 ... Started.
Booting server processes ...
exec TMS_ORA10g -A :
process id=7921 ... Started.
exec TMS_ORA10g -A :
process id=7924 ... Started.
exec test -A :
test: -C: unary operator expected
CMDTUX_CAT:819: INFO: Process id=7927 Assume started (pipe).
exec simpserv -A :
process id=7928 ... Started.
exec WSL -A -- -n //192.168.45.2:8909 -m 2 -M 5 -x 6 -T 10 :
process id=7929 ... Started.
6 processes started.
日志如下
231420.redhat9!BBL.7920.1077589152.0: 10-06-2010: tuxedo Version 8.1
231420.redhat9!BBL.7920.1077589152.0: LIBTUX_CAT:262: INFO: Standard main starti
ng
231420.redhat9!TMS_ORA10g.7921.1093420736.0: 10-06-2010: Tuxedo Version 8.1
231420.redhat9!TMS_ORA10g.7921.1093420736.0: LIBTUX_CAT:262: INFO: Standard main
starting
231420.redhat9!TMS_ORA10g.7924.1093420736.0: 10-06-2010: Tuxedo Version 8.1
231420.redhat9!TMS_ORA10g.7924.1093420736.0: LIBTUX_CAT:262: INFO: Standard main
starting
231420.redhat9!simpserv.7928.1076779296.0: 10-06-2010: Tuxedo Version 8.1
231420.redhat9!simpserv.7928.1076779296.0: LIBTUX_CAT:262: INFO: Standard main s
tarting
231420.redhat9!simpserv.7928.1076779296.0: Welcome to the simple server
231420.redhat9!WSL.7929.1076890624.0: 10-06-2010: Tuxedo Version 8.1
231420.redhat9!WSL.7929.1076890624.0: LIBTUX_CAT:262: INFO: Standard main starti
ng
231420.redhat9!WSH.7930.1077019264.0: 10-06-2010: Tuxedo Version 8.1
231420.redhat9!WSH.7930.1077019264.0: WSNAT_CAT:1030: INFO: Work Station Handler
joining application
231420.redhat9!WSH.7931.1077019264.0: 10-06-2010: Tuxedo Version 8.1
231420.redhat9!WSH.7931.1077019264.0: WSNAT_CAT:1030: INFO: Work Station Handler
joining application
服务端代码如下:
#include <atmi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
EXEC SQL include sqlca;
TEST(TPSVCINFO *rqst)
{
EXEC SQL BEGIN DECLARE SECTION;
char al_empno[11];
char ac_ename[11];
EXEC SQL END DECLARE SECTION;
/*接收客户端来的数据*/
memset(al_empno,0,sizeof(al_empno));
memset(ac_ename,0,sizeof(ac_ename));
strcpy(al_empno , rqst->data);
EXEC SQL select ename into :ac_ename from EMP where empno=:al_empno;
if(sqlca.sqlcode != 0)
{
userlog("select from EMP failure,sqlcode=%d", sqlca.sqlcode);
tpreturn( TPFAIL, 0, rqst->data, 0, 0 );
}
/*把取出的结果返回给客户端*/
strcpy( rqst->data, ac_ename );
tpreturn( TPSUCCESS, 0, rqst->data, 0, 0 );
}