我写了一个tuxedo程序,bug出在客户端,很可能出在与Oracl交互的地方,我想在相关地方进行调试,在与数据库连通前后的地方加入了几条uesrlog语句(头文件已经包含userlog.h):
userlog("\nTest1\n";
EXEC SQL WHENEVER SQLERROR DO sqlerror();
userlog("\nTest2\n";
EXEC SQL CONNECT :username IDENTIFIED BY :password;
userlog("\nConnected to ORACLE as user:%s\n",username.arr);
发现只有中间一条出现在ULOG*文件中:
154949.hpc114!WSH.30488.666445552.0: 04-01-2010: Tuxedo Version 10.3.0.0, 64-bit
154949.hpc114!WSH.30488.666445552.0: WSNAT_CAT:1030: INFO: Work Station Handler joining application
155022.hpc114!chkitemsvr.30485.728602352.0:
Connected to ORACLE as userrabm
155149.hpc114!BBL.30484.2669553392.0: LIBTUX_CAT:541: WARN: Server GROUP1/1 terminated
155149.hpc114!BBL.30484.2669553392.0: LIBTUX_CAT:551: WARN: Cleaning up server GROUP1/1
155149.hpc114!cleanupsrv.30523.1783789296.-2: 04-01-2010: Tuxedo Version 10.3.0.0, 64-bit
155149.hpc114!cleanupsrv.30523.1783789296.-2: server GROUP1/1: CMDTUX_CAT:551: INFO: server removed
155349.hpc114!BBL.30484.2669553392.0: LIBTUX_CAT:216: WARN: Process 30485 died; removing from BB
求真相!