A shell script:
ud32 -un -C tpsysadm < $1
A script:
SRVCNM .TMIB
TA_CLASS T_SERVER
TA_OPERATION SET
TA_SRVGRP GRP1
TA_SRVID 10100
TA_SERVERNAME load
TA_STATE NEW
TA_MAXGEN 200
TA_REPLYQ Y
TA_RESTART Y
TA_CLOPT -A -t -- /opt/app/config
TA_MIN 1
TA_MAX 1
Run:
ud.sh ud.ubb
It returns:
v490h4-tux-t:/opt/app/src/config$ ud.sh ud.ubb
CMDTUX_CAT:988: ERROR: ud detected syntax error in fielded buffer #1
LIBFML_CAT:8: ERROR: Unknown field name
CMDTUX_CAT:988: ERROR: ud detected syntax error in fielded buffer #2
LIBFML_CAT:10: ERROR: Bad syntax in boolean expression
TA_CLASS T_SERVER
TA_OPERATION SET
CMDTUX_CAT:989: ERROR: No service in FBFR
TA_MAX 1
TA_MAXGEN 200
TA_MIN 1
TA_SRVID 10100
TA_STATE NEW
TA_CLOPT -A -t -- /opt/app/config
TA_REPLYQ Y
TA_RESTART Y
TA_SERVERNAME load
My .profile file:
export TUXDIR=/opt/app/tuxapp/TUX91/tuxedo9.1;
export TUXCONFIG=/opt/app/airopen/config/tuxconfig;
export TUXLIB=/opt/app/tuxapp/TUX91/tuxedo9.1/bin;
export TUXINC=/opt/app/tuxapp/TUX91/tuxedo9.1/include;
export PATH=.:/opt/SUNWspro/binTUXDIR/bin
export FIELDTBLS32=bank_fml,rtpnr_fml,common_fml,ui_fml,openpnr.fml32,open_detr_fml,/opt/app/tuxapp/TUX91/tuxedo9.1/udataobj/tpadm,/opt/app/tuxapp/TUX91/tuxedo9.1/udataobj/Usysfl32:/opt/app/tuxapp/TUX91/tuxedo9.1/udataobj/Usysflds;
export VIEWDIR=/opt/app/airopen/view;
export VIEWDIR32=/opt/app/airopen/view32;
export LD_LIBRARY_PATH=$TUXDIR/lib;
...
Could someone explain it?
Thanks a lot.
• 使用view数据类型,tpalloc时报错
• Tuxedo PrintService疑问
• How to remove dead servers?
• Debug a Tuxedo running server with dbx
• tuxedo(WTC) connection through SSG((secure spannbsp&gateway)
• Tuxedo client ULOG
• Timeout: Tuxedo kills the service but not the database connection
• TMQFORWARD and correlation-id and buffer
• BBL and file transfer
• tpdequeue and data depending routing
Bill,
The delimiter to separate field names in FIELDTBLS32 is a comma, but there is a colon between two of the entries in your FIELDTBLS32 as well as a semicolon at the end:
export FIELDTBLS32=bank_fml,rtpnr_fml,common_fml,ui_fml,openpnr.fml32,open_detr_fml,/opt/app/tuxapp/TUX91/tuxedo9.1/udataobj/tpadm,/opt/app/tuxapp/TUX91/tuxedo9.1/udataobj/Usysfl32 : /opt/app/tuxapp/TUX91/tuxedo9.1/udataobj/Usysflds ;
Because of this, ud32 is unable to open Usysfl32, which is where SRVCNM is defined. You should define FIELDTBLS32 as
export FIELDTBLS32=bank_fml,rtpnr_fml,common_fml,ui_fml,openpnr.fml32,open_detr_fml,/opt/app/tuxapp/TUX91/tuxedo9.1/udataobj/tpadm,/opt/app/tuxapp/TUX91/tuxedo9.1/udataobj/Usysfl32
I've removed Usysflds from the FLDTBLS32 definition since it defines the same fields as Usysfl32 but uses different field numbers for 16-bit FML. Including both of these in FIELDTBLS32 with correct comma deliminators would work only because Ussyfl32 comes first.
From looking at the code, it appears that full path names will work in FIELDTBLS32, although I've never tried this. Assuming that your application field definitions are in $APPDIR another way to define fields would be
export FLDTBLDIR32=$APPDIRTUXDIR/udataobj
export FIELDTBLS32=bank_fml,rtpnr_fml,common_fml,ui_fml,openpnr.fml32,open_detr_fml,tpadm,Usysfl32
Regards,
Ed
--转自