tuxedo sample test
1. 환경변수 적용 여부 확인
[tuxedo@eai ~]$ vi .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export LANG=C
export PATH
. /opt/tuxedo/tuxedo10gR3/tux.env
[tuxedo@eai ~]$ env | grep TUX
TUXDIR=/opt/tuxedo/tuxedo10gR3
[tuxedo@eai ~]$export TUXCONFIG=/opt/tuxedo/tuxedo10gR3/samples/atmi/simpapp/tuxconfig
2. Configuration file edit & compile
[tuxedo@eai simpapp]$ cd /opt/tuxedo/tuxedo10gR3/samples/atmi/simpapp
[tuxedo@eai simpapp]$vi ubbsimple
[tuxedo@eai simpapp]$ tmloadcf -y ubbsimple
[tuxedo@eai simpapp]$
3. 서버 및 클라이언트 프로그램 compile
[tuxedo@eai simpapp]$ buildclient -o simpcl -f simpcl.c
[tuxedo@eai simpapp]$ buildserver -o simpserv -f simpserv.c -s TOUPPER
[tuxedo@eai simpapp]$
===========================================
# ipcs ...
ipcs|grep $LOGNAME|awk '{print "ipcrm -"$1,$2}'>a.sh;sh a.sh; rm a.sh
===========================================
4. tuxedo 실행 및 프로세스 확인
[tuxedo@eai simpapp]$ tmboot -y
Booting all admin and server processes in /opt/tuxedo/tuxedo10gR3/samples/atmi/simpapp/tuxconfig
INFO: Oracle Tuxedo, Version 10.3.0.0, 32-bit, Patch Level (none)
Booting admin processes ...
exec BBL -A :
process id=10968 ... Started.
Booting server processes ...
exec simpserv -A :
process id=10971 ... Started.
5. 테스트 샘플 구동 및 확인
[tuxedo@eai simpapp]$ ./simpcl "hello tux"
Returned string is: HELLO TUX
[tuxedo@eai simpapp]$
6. tmadmin
[tuxedo@eai simpapp]$ tmadmin
tmadmin - Copyright (c) 2007-2008 Oracle.
Portions * Copyright 1986-1997 RSA Data Security, Inc.
All Rights Reserved.
Distributed under license by Oracle.
Tuxedo is a registered trademark.
> h
> psr
Prog Name Queue Name Grp Name ID RqDone Load Done Current Service
--------- ---------- -------- -- ------ --------- ---------------
BBL 234567 simple 0 0 0 ( IDLE )
simpserv 00001.00001 GROUP1 1 1 50 ( IDLE )
> psc
Service Name Routine Name Prog Name Grp Name ID Machine # Done Status
------------ ------------ --------- -------- -- ------- ------ ------
TOUPPER TOUPPER simpserv GROUP1 1 simple 1 AVAIL
6. 1 APP1 machine의 active client 수
$ echo pclt -m APP1 | tmadmin -r 2>/dev/null | grep "/W" | wc -l
6.2 Tuxedo Server Queue Information
$ echo pq | tmadmin -r 2>/dev/null | awk '{ if( $5 > 0 ) print $0 }'
6.3 Tuxedo Service Information
$ echo psr | tmadmin -r 2>/dev/null | grep -v IDLE | awk '{ if( $8 !="-") print $0 }'
좋은 글이 있어서 공유합니다.
감사합니다.
https://m.blog.naver.com/onlywin7788/140155149503
'Middleware > Tuxedo' 카테고리의 다른 글
[Tuxedo] tmboot 명령어 (0) | 2022.08.23 |
---|---|
[Tuxedo] tuxedo 명령어 (0) | 2022.08.23 |
[Tuxedo] UBBCONFIG 설정 관련 (0) | 2022.08.23 |
[Tuxedo] Tuxedo 12c console mode 설치 (0) | 2022.08.22 |
[Tuxedo] TUXEDO patch / 패치 적용 확인 / OPatch 디렉토리 (0) | 2022.08.22 |