15. Tuxedo 组合命令
TUXEDO性能调优的基本方法
TUXEDO性能调优的基本方法一. 通过配置MSSQ服务器组提高性能在ATMI环境中(TUXEDO-CORBA服务器环境不支持MSSQ机制)可以通过配置MSSQ(多服务器单队列)机制来达到队列级负载均衡的目的。
同一组MSSQ服务器在同一时间将共用一个请求队列,当消息出队时,将被送到第一个空闲的服务器去处理。
如果服务器A属于某个MSSQ的一部分,那么必须为它配置响应队列,即设置REPLYQ=Y,这样当A调用了B服务时,B对A的响应将被回送到发出原始请求的服务器A,而不是MSSQ服务器组中的其它服务器。
MSSQ机制可以配置成动态形式,这样TUXEDO系统会根据负载状况动态地产生和消除MSSQ中的服务器。
在下列情况下,可以考虑配置MSSQ:应该配置MSSQ 不应该配置MSSQ服务器数量在2到12个之间 如果有多个服务器,折衷的办法是使用多个MSSQ请求缓冲区不是很大,没有大到将一个队列占满的情况 一个请求缓冲区可能会占满整个服务器队列空间。
所有的服务器都提供一组相同的服务 每个服务都提供不同的服务需要配置多个服务器进程才能满足客户机对服务器的实时性的要求。
每个MSSQ的服务器数量一般不要超过10个,如果超过10个,建议配置多个MSSQ。
在下面两种情况下,使用MSSQ将达到调优的效果:A.银行业务中,多个TELLER执行相同的服务来为客户提供服务,下一个空闲的TELLER将为下一个等候的客户服务。
在这种情况下,每个TELLER必须能够执行所有的客户服务。
在同一个MSSQ中的服务器必须在任何时候都提供相同的服务。
MSSQ的优点在于,它在队列级提供了第二种形式有的负载均衡。
B.在超市收款业务中,不同的CASHIERS接收不同形式的客户支付(如信用卡,现金等),在这种情况下,不推荐使用MSSQ。
例如:simpserv SRVGRP=GROUP1 SRVID=10 MIN=3 MAX=5RQADDR=simpserv REPLYQ=Y这个配置将启动3个simpserv进程,SVRID依次为10,11,12。
TUXEDO配置参数详解
TUXEDO配置参数详解2007-07-10 09:39:47大中小TUXEDO应用系统的配置3.1 TUXEDO应用系统的常见配置配置文件UBBCONFIG介绍一个TUXEDO应用系统的所有资源都在一个文本文件中进行定义,该文件称为UBBCONFIG,在配置完成后,UBBCONFIG被编译成一个二进制的文件TUXCONFIG.在TUXEDO系统启动时,从该文件中读取系统的配置信息。
UBBCONFIG文件类似WINDOWS下的*.INI文件。
它包括以下9大部分, 我们称之为节,RESOURCES,MACHIENS,GROUPS这三个节必须的,其他的节是可选的。
RESOURCES(必需): 与整个系统有关的配置信息MACHINES(必需): 一个TUXEDO应用系统可以跨越多台服务器,在该节中配置与每台服务器有关的信息GROUPS(必需): TUXEDO中的服务可被分为多个组,在该节中配置与组有关的信息SERVERS(可选): 与SERVER有关的信息在该节配置SERVICES(可选): 与SERVICES有关的信息在该节配置NETWORK(可选):与网络有关的信息在该节配置ROUTING(可选) :路由规则在该节配置NETGROUPS(可选):与网络分组有关的信息在该节配置名称解释:TUXEDO应用系统一个TUXEDO应用系统包括服务端,客户端,服务端安装在服务器上,客户端一般安装在PC 机上,从开发角度看,一个TUXEDO应用系统包括服务端程序,客户端程序,一个配置文件。
此外,一个TUXEDO应用系统可以部署在一台服务器上,也可以部署在多台服务器上。
SERVER:服务端程序用C或COBAL编写,每一个程序文件编译成一个相应可执行文件,该可执行文件在运行时称为SERVER,它实际上就是一个进程。
每个SERVER都有一个名字,也就是该进程的名字。
为与TUXEDO应用系统的服务端区分,我们在本书中,我们用SERVER表示该进程,用服务端表示TUXEDO应用系统的服务端。
Tuxedo安装及试用
Tuxedo软件安装及使用1前言Tuxedo是ORACLE公司的分布式运算环境下开发和管理三层客户/服务器结构应用系统的中间件产品,具备分布式事务处理和应用通信功能,并提供完善的各种服务来建立、运行和管理关键任务应用系统。
Tuxedo屏蔽分布式环境中各种通信协议、硬件体系结构、操作系统、数据库和其它应用服务等方面的差异,使得分布于网络节点上的应用程序的各个单元部件之间能够进行互操作,并协调操作的一致性和完整性,最大限度地节省系统资源,提高系统性能。
开发人员能够用它建立跨多个硬件平台、数据库和操作系统的可互操作的分布式应用系统,因而广泛地应用于金融、电信、制造业等各行各业的核心业务系统。
本文简要介绍Tuxedo的安装和使用,使得读者可以快速入门。
2软件安装为避免多机部署时可能出现的用户组、用户、目录位置问题,建议各机器的安装tuxedo 的用户组、用户名、目录位置均相同。
各资源规划如下表:2.1创建组及用户为避免安全性问题,应创建专属的用户和用户组运行tuxedo,并不得使用root。
本文档假定用户名是tuxedo,用户组也是tuxedo。
(1)创建tuxedo组;(2)创建tuxedo用户;(3)设置tuxedo用户登录密码;(4)创建安装目标目录并授权。
2.2安装GCCTuxedo示例程序使用C语言编写,为编译示例程序,需安装C语言开发环境。
将安装光盘介质mount到操作系统相应目录(如/media)后,参考下列命令安装开发环境。
安装开发环境的详细命令,可以参考操作系统相关手册。
2.3安装JRETuxedo的安装包需要JRE才能运行,因此需要先安装JRE,并设置JA V A_HOME环境变量指向新安装的JRE,设置PA TH添加java所在的目录。
本文档选择JDK的server-rumtime 版本作为JA V A运行环境。
(1)上传安装包server-jre-8u162-linux-x64.tar.gz到/tmp。
tuxedo常用命令
Tuxedo作为系统的中间件,其配置主要包括:资源文件的配置和应用环境的配置;其管理和维护主要包括:系统的启动和关闭、日志的跟踪查看工作。
Tux edo 应用系统的配置一、应用系统的资源配置,全都包含在两个资源配置文件中(ub bconf ig 和d mconf ig ),在这两个配置Tux edo 作为系统的中间件,其配置主要包括:资源文件的配置和应用环境的配置;其管理和维护主要包括:系统的启动和关闭、日志的跟踪查看工作。
T uxedo应用系统的配置一、应用系统的资源配置,全都包含在两个资源配置文件中(ubbc onfig和dmc onfig),在这两个配置文件中包含了系统所有的应用资源(文件)。
1、对于ubb confi g文件,可以任意使用一个文件名(如:ub b.txt),使用一种文本编辑工具,将应用系统的资源分类进行配置,相关进程启动数量等等都应该配置在其中,然后设置环境变量TUXCO NFIG,使用系统命令:tml oadcf来将文本文件ubb.txt,转化生成环境变量TU XCONF IG制定的二进制文件。
在该文件中主要包含了几个参数的设置:系统所使用的共享内存的键值IPC KEY,针对work stati on 客户端的监听进程的端口(W SL),多台机器之间互连(登记中心与各网关)的网络地址和端口(NADD R,NLS ADDR),数据依赖路由的设定等等。
详细的内容参看《Ubb confi g配置.d oc》参看模版来实现移植或添加应用进程等等。
2、对于dmc onfig文件,可以任意使用一个文件名(如:dm.txt),使用一种文本编辑工具,将应用系统的多域互联及互相调用的关系进行配置,包括多域之间互联的地址和端口,然后使用系统命令:dm loadc f 来将文本文件dm.txt,转化成环境变量BDM CONFI G所指定的二进制文件。
Tuxedo 功能说明书
Tuxedo功能说明书说明:本说明书是为了适应光大银行的要求,为光大银行提供有关Tuxedo 功能的简要说明列表。
一、交易处理服务1.交易完整性保证机制●当应用系统只有局部事务、没有全局事务时,Tuxedo直接利用数据库的事务处理功能(用或不用XA),这样可提高系统性能。
●当应用系统涉及跨多个资源数据库(同构或异构)的全局事务的时,Tuxedo利用XA标准和两阶段提交协议,通过事务管理器,协调各个数据库的同步。
Tuxedo还可保证可靠性队列/Q 的入出队操作和数据库的更新操作的同步。
在各种情况下,Tuxedo能够确保异构的(或者同构的)数据库以及它资源管理器之间的完整性和一致,并且还在出现节点故障、网络故障或全局资源死锁时利用内部的交易日志来协调全局事务的恢复。
2.交易优先级请求优先级是Tuxedo的事务管理器提供的另一个核心能力。
当某一服务有比其他服务更高的优先级时,服务器在处理请求时,就不再单纯的按照请求在队列中的先后顺序处理,而是按优先级来定。
请求优先级越高的越早被处理。
为了防止低优先级请求总是得不到服务,服务器每隔十个请求,就按FIFO次序进行一次请求选择。
二、可管理性TUXEDO的三层逻辑结构提供了对应用程序高度的可管理性。
它以业务逻辑层为管理的主要对象,把基本业务组件即服务进程的服务做为管理的基本单位。
应用系统由一些基本的组件即服务构成,这样它的易理解、易修改、易扩充等需求都得到保证。
TUXEDO提供一个基于普通WEB浏览器的GUI管理工具,也可根据用户需要提供基于X Window/ Motif 的GUI管理工具;还提供综合性的字符型管理命令;并且提供一个管理信息库(MIB)和编程接口,使用户可根据特定需求编写自己的管理工具。
TUXEDO 的关联产品BEA MANAGER 通过网络管理协议SNMP和TUXEDO的管理信息库MIB可以把TUXEDO对应用程序的管理集成到一般的网络、数据库系统管理工具中,比如OpenView, NetView 等。
tuxedo常用命令
TUXEDO 常用命令及环境介绍一、环境TUXCONFIG=path_name_of_TUXCONFIG_fileBDMCONFIG=path_name_of_BDMCONFIG_fileTUXDIR=path_name_of_BEA_Tuxedo_system_root_directoryAPPDIR=path_name_of_BEA_Tuxedo_application_root_directoryPATH=$APPDIR:$TUXDIR/bin:/bin:$PA THSHLIB_PATH =$APPDIR:$TUXDIR/lib:/lib:/usr/lib:$ SHLIB_PA THExport TUXCONFIG TUXDIR APPDIR PATH SHLIB_PA TH二、命令1.配置文件装载、备份,服务启动、关闭命令Tmloadcf:根据指定TUXCONFIG环境,把文本文件转换成二进制文件Tmunloadcf:把TUXCONFIG二进制文件转换成文本文件Dmloadcf:根据指定BDMCONFIG环境,把文本文件转换成二进制文件Dmunloadcf:把BDMCONFIG二进制文件转换成文本文件Tmboot [[-g grpname] [-i srvid]]:启动服务,不带参数启动所有服务,-g参数启动指定组名称内的服务,-i参数启动指定标识的服务Tmshutdown [[-g grpname] [-i srvid]]:停止服务,不带参数停止所有服务,-g参数停止指定组名称内的服务,-i参数停止指定标识的服务2.Tmadmin命令Tmadmin:BEA Tuxedo bulletin board command interpreter>Crdl –z path –b blocks:创建TLOG设备>Crlog –m machine:创建事务LOG文件>Printclient (pclt):显示当前CLIENT连接情况>Printqueue(pq):显示队列情况>PrintServer(psr):显示所有SERVER情况(调用次数、IDLE/BUSY)>PrintService(psc):显示所有SERVICE情况(调用次数、IDLE/BUSY)>Bbclean(bbc):一些服务无法正常停止,用BBC清除进程IPC资源后,可正常停止3.Ipc清除命令,进程杀死命令ipcs|awk '/bill/{if(NF==6)print "ipcrm -"$1" "$2}'|sh:清除属于用户bill的所有ipc资源,如果需要清除其他用户的ipc资源,把bill替换成相应的用户名称ps -ef|awk '!/sh/{if($1=="bill")print "kill -9 "$2}'|sh:杀死属于用户bill的所有进程,如果需要杀死其他用户的进程,把bill替换成相应的用户名称4.检查某个用户超过占用内存脚本文件:chkmem,输入参数用户名称,最小占用内存ShowProcs () {typeset -i M_SIZEtypeset -i K_SIZE[ $1 ] || {echo "No Procs Found!"return}while [ $1 ]doif [ $1 != "PID" ]thenif [ $3 -ge "$MEMORY" ]thenK_SIZE=$3*4M_SIZE=K_SIZE/1024echo "PID=$1 exec=$5 SZ=$K_SIZE(K), $M_SIZE(M)"|awk '{printf("%-18s%-20s%-20s%-20s\n", $1, $2, $3, $4);}'fifishift 5done}typeset -i MEMORYecho "Shell for Checking Process' memory used"echo "Input User:\c"read USERecho "Input Used Memory:(?M)\c"read MEMORYMEMORY=$MEMORY*256PROCS="`ps -lu $USER|awk '{print $4, $5, $10, $12, $14}'`"ShowProcs $PROCS。
tuxedo常用命令
Tuxedo基本命令: 服务启动:tmboot –y 如果只需要启动单个则tmboot –S servername 服务停止:tmshutdown –y 同样tmshutdown –S servername tmadmin –v 查看 tuxedo 版本及license信息 tmloadcf -y ubb_file 编译文本格式的ubb文件到二进制的ubb文件 tmloadcf -c ubb_file 测试IPC资源最小需求 tmadmin>bbparms (bbp) 显示BB(Bulletin Board)的关键参数配置 tmadmin>bbstats (bbs) 显示当前BB(Bulletin Board)的统计信息 tmadmin>printclient (pclt) 显示当前连接tuxedo的客户端信息 tmadmin>printserver (psr) 显示 server 的信息 tmadmin>printservice (psc) 显示 service 的信息 tmadmin>printtrans (pt) 显示当前事务的信息 tmadmin>printqueue (pq) 显示请求队列的信息 和Unix shell命令结合使用,例如: echo psr| tmadmin | grep –v IDLE 取得在用的服务 echo psr| tmadmin | grep –v IDLE|wc -l echo psr| tmadmin | sort +4 echo psc| tmadmin | sort +6 echo pq | tmadmin | sort +4 echo pclt | tmadmin | grep –v WSH|grep –v tmadmin|wc –l
tuxedo+tmadmin+命令解释
tuxedo+tmadmin+命令解释tuxedo tmadmin 命令解释- -tmadmin 中的pq psr pclt等命令的中⽂解释。
主要有以下两个管理⼯具:使⽤图形界⾯的图形管理接⼝(Graphical Administration Interface―GAI) tmadmin通常管理⼯作有以下3类:监视运⾏系统⼀般监视以下信息:应⽤、服务、客户端、交易、队列、组、会话、⽹络等。
动态修改服务或交易参数使⽤GAI 或tmadmin可以动态进⾏以下调整:――交易可以挂起、恢复、发布和取消――交易参数可以修改,如:LOAD和PRIORITY――指定交易的超时时间――交易⼝令进⾏启动,关闭,移动服务等管理员的任务服务信息来⾃GAI的信息本处略去。
以下是tmadmin命令的printserver(简写为psr)的简单输出。
列号描述1. 服务的可执⾏⽂件名2. 服务连接的队列名3. 组名4. 服务的数字id5. 服务已经处理的请求数6. 服务处理的全部请求的参数和服务正在处理的交易,若为IDLE则服务当前是空闲ccsmis:/home2/ccsmis>tmadmintmadmin - Copyright (c) 1996 BEA Systems, Inc.Portions * Copyright 1986-1997 RSA Data Security, Inc.All Rights Reserved.Distributed under license by BEA Systems, Inc.Tuxedo is a registered trademark.> printserverProg Name Queue Name Grp Name ID RqDone Load Done Current Service --------- ---------- -------- -- ------ --------- ---------------rz_Ecsb 00004.04000 APGP2 4000 0 0 ( IDLE )BBL 70020 simple 0 1 50 ( IDLE )IFMTMS APGP2_TMS APGP2 30001 1 50 ( IDLE )ftpserv32 00002.00001 FTPGP 1 60 3000 ( IDLE )WSL 00001.00001 SYSGP 1 0 0 ( IDLE )IFMTMS APGP2_TMS APGP2 30002 12 600 ( IDLE )ftpserv32 00002.00002 FTPGP 2 0 0 ( IDLE )IFMTMS APGP2_TMS APGP2 30003 11 550 ( IDLE )CCS_QUANBIA_60 00004.06004 APGP2 6004 0 0 ( IDLE )CCS_SCBB_4099 00004.04099 APGP2 4099 2 100 ( IDLE )CCS_GEKEZI_300 00004.03000 APGP2 3000 0 0 ( IDLE ):交易信息来⾃GAI的信息本处略去。
TUXEDO技术详述
TUXEDO技术详述高速数据甬道TUXEDO提供高速数据甬道,所谓数据甬道,是指能够把前端的大量网络连接汇聚成较少的后端连接并减少数据传送量。
采用数据甬道技术,保证应用系统即使在大量用户同时请求服务的时候,也能够保持快速、稳定的工作状态。
●降低网络负担-关键的联机交易业务系统往往是一个基于广域网的系统,广域网速度远远低于局域网,而联机交易对响应时间又有较高要求,所以网络负担是影响系统成败的一个重要因素。
另外,大量的网上传输从经济上考虑也是不合算的。
TUXEDO提供高速的数据甬道,管理客户机与服务器的联接,在客户机和服务器之间只传送服务名、参数和最终结果,和业务逻辑完全分离,最大限度减少了网络上的传输量。
●提高主机处理能力-联机业务处理的应用系统用户数量很多,有时甚至达到几十万,交易量也非常大,主机处理能力对系统而言是一个关键因素。
而在主机方面,维持一个网络连接需要耗费大量内存、进程句柄、信号量、CPU时间片等系统资源。
TUXEDO利用高速数据甬道,将大量连接汇接成很少的连接,从而节省了大量系统资源,成倍提高了主机的处理能力。
●提高数据库效率-数据库在并行用户数增加时,效率会急剧下降,因为每个并行用户必须和数据库建立一个会话,如果用户数过多,数据库引擎会忙于会话的资源管理和并行控制,影响它所擅长的数据管理工作的效率。
TUXEDO可以通过数据甬道大大减少和数据库建立的会话数,将数据库管理系统从其不擅长的业务中解放出来,从而大大提高数据操作的效率。
目录服务的实现BEA TUXEDO提供两类目录服务,即按名请求服务和数据依赖的路由选择服务。
· 名字服务/位置透明性BB作为BEA TUXEDO应用程序的名字服务器,复制到每个参与的结点上。
为了便于快速访问,名字服务器作为在共享内存中的一个结构存在。
事务管理器使用BB名字信息、配置信息和环境统计信息自动把服务请求以负载平衡的原则分配到可用的服务器上,并且根据服务优先级决定处理顺序。
tuxedo的配置.txt
以下是配置tuxedo连接EAIH的方法(以北开100环境为例)1.到目录/home/ap/ecds/etc/BUSI/PubApp/CBS/EAI_CLT1)修改文件Route.xml使之变为空(如下)<?xml version="1.0" encoding="ISO-8859-1" ?><RouteTab><RuleTab RecNum="0"></RuleT ab></RouteT ab>~2)修改文件DtaParm.xml,把LinkRule=这行修改如下LinkRule ="${CC} -o ${EXECOBJ} ${REGISTC} ${CUSTOMLIB} ${LIBOPTS} ${TUXCLILIBS} -L${FAPWORKDIR}/lib -lcsspui -lgicon2.到目录/home/ap/ecds/etc1)修改ESAdmin.xml 把其中EAI_CLT中的关于MQ字段去掉2)修改文件tuxedo.doma和tuxedo.conf(1)修改文件tuxedo.doma内容bjwl:/home/ap/ecds/etc/> view tuxedo.doma# Copyright (c) 1990, 1994 Novell, Inc.# Copyright (c) 1994 Novell# All Rights Reserved# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF# UNIX System Laboratories, Inc.# The copyright notice above does not evidence any# actual or intended publication of such source code.#Copyright (c) 1994 Novell, Inc.#All rights reserved#ident "@(#) apps/creditapp/domcon1 $Revision: 1.3 $" ## TUXEDO DOMAIN CONFIGURATION FILE#*DM_RESOURCES##VERSION=U22##*DM_LOCAL_DOMAINS##ecds GWGRP=GROUP2TYPE=TDOMAINMTYPE="HP-UX"DOMAINID="ecds100"BLOCKTIME=60MAXDATALEN=56MAXRDOM=89DMTLOGDEV="/home/ap/ecds/log/DMTLOG"AUDITLOG="/home/ap/ecds/log/AUDITLOG"DMTLOGNAME="DMTLOG_TDOM1"CONNECTION_POLICY=ON_STARTUPRETRY_INTERVAL=10ecds_back GWGRP=GROUP3TYPE=TDOMAINDOMAINID="back100"BLOCKTIME=60MAXDATALEN=56MAXRDOM=89DMTLOGDEV="/home/ap/ecds/bin/DMTLOG"AUDITLOG="/home/ap/ecds/bin/AUDITLOG"DMTLOGNAME="DMTLOG_TDOM2"CONNECTION_POLICY=ON_STARTUPRETRY_INTERVAL=10#*DM_REMOTE_DOMAINS##EAIH_AIX6_BAGW3 TYPE=TDOMAINDOMAINID="EAIH_AIX6_BAGW3"EAIH_AIX6_BAGW4 TYPE=TDOMAINDOMAINID="EAIH_AIX6_BAGW4"##*DM_TDOMAIN##ecds100 NWADDR="//128.32.100.100:12201" CMPLIMIT=0back100 NWADDR="//128.32.100.100:12202" CMPLIMIT=0EAIH_AIX6_BAGW3 NWADDR="//128.192.137.164:8666" CMPLIMIT=0 EAIH_AIX6_BAGW4 NWADDR="//128.192.137.164:8667" CMPLIMIT=0 ##*DM_LOCAL_SERVICESCTS_SVR LDOM=ecdsGETFILE LDOM=ecdsCTS_SVR LDOM=ecds_backGETFILE LDOM=ecds_back##*DM_REMOTE_SERVICES##TuxEntry RDOM=EAIH_AIX6_BAGW3TuxEntry RDOM=EAIH_AIX6_BAGW4(2)修改文件tuxedo.conf内容WH8HP361:/home/ap/ecds/etc/> view tuxedo.conf*RESOURCESIPCKEY 123457DOMAINID ecds100MASTER ecds100PERM 0666MAXACCESSERS 500MAXSERVERS 200MAXSERVICES 500MAXCONV 20MODEL SHMLDBAL N*RESOURCESIPCKEY 123457DOMAINID ecds100MASTER ecds100PERM 0666MAXACCESSERS 500MAXSERVERS 200MAXSERVICES 500MAXCONV 20MODEL SHMLDBAL N*MACHINES"WH8HP361" LMID=ecds100APPDIR="/home/ap/ecds/bin"TUXCONFIG="/home/ap/ecds/etc/tuxedo.ubb"TUXDIR="/home/mw/tuxedo/tuxedo8.1"ULOGPFX="/home/ap/ecds/log/tuxedo.log"MAXWSCLIENTS=200MAXACCESSERS=300*GROUPSGROUP1 LMID=ecds100 GRPNO=1GROUP2 LMID=ecds100 GRPNO=2GROUP3 LMID=ecds100 GRPNO=3*NETGROUPS*SERVERSDEFAULT: RESTART=Y MAXGEN=5 REPLYQ=Y CLOPT="-A"DMADM SRVGRP=GROUP2 SRVID=1 REPLYQ=NGWADM SRVGRP=GROUP2 SRVID=2 REPLYQ=NGWTDOMAIN SRVGRP=GROUP2 SRVID=3 REPLYQ=N CLOPT="-t" GWADM SRVGRP=GROUP3 SRVID=4 REPLYQ=NGWTDOMAIN SRVGRP=GROUP3 SRVID=5 REPLYQ=N CLOPT="-t"*SERVICES3.生成二进制文件tuxedo.bdm和tuxedo.ubb1)在执行以下命令的时候要先停掉tuxedobjwl:/home/ap/ecds/etc/>tmshutdown -c -y2)生成tuxedo.ubb文件:bjwl:/home/ap/ecds/etc/>tmloadcf -y tuxedo.conf3)生成tuxedo.bdm文件:bjwl:/home/ap/ecds/etc/>dmloadcf -y tuxedo.conf4.重启tuxedobjwl:/home/ap/ecds/etc/>tmboot -y5.发交易验证是否连通EAIH6.修改.profile文件把TUXEDO那个地方加日志的目录export TUX_TRACE_FILE=$HOME/log/tux/tuxxmlexport EAIFACFG=$HOME/etc/config.properties注:如果平台报密钥错误,我们要更新密钥。
Tuxedo开发使用说明
Tuxedo开发使用说明1Tuxedo的环境设置包括Client端和Server端环境设置两个部分,下面将分别加以详细说明。
Tuxedo的client端主要是一组以dll方式提供的函数调用。
假设tuxedo的安装路径是TUXDIR=C:\tuxedo,那么dll就存放在TUXDIR\bin目录下,主要包括:wtuxws32.dll、libwsc.dll、libgp.dll、libbuft.dll、libfml.dll、libfml32.dll、tuxlib.dll等。
Client端通过环境变量WSNADDR的设置值连接其调用的服务器,因此必须在环境变量中(在autoexec.bat文件中)设置WSNADDR变量,其设置为:SET WSNADDR=//服务器IP地址:端口号IP地址和端口号必须是服务器配置文件中指定的的侦听IP地址和端口(详细情形见“tuxconfig配置文件”的说明)。
Tuxedo安装完毕后,需要设置的环境变量有(以Unix环境为例,Windows NT 或2000可以参考作相应设置):TUXDIR=tuxedo的安装路径 export TUXDIRLIBPATH=$TUXDIR/lib;$LIBPATH export LIBPATHPATH=$TUXDIR/bin; $PATH export PATHTUXCONFIG=tuxconfig文件的路径/tuxconfig export TUXCONFIG其中LIBPATH表示tuxedo的库文件路径(动态库),TUXCONFIG指向tuxedo 的配置文件(详细情形见“tuxconfig配置文件”的说明)。
2 RMRM文件存放在$TUXDIR/udataobj目录下(license文件lic.txt就在此目录下)。
Tuxedo通过XA/Open协议建立与数据库的通道,而此文件正是指定了数据库的接口。
如一个RM文件的内容如下(以Oracle 8.0.4数据为例):Oracle_XA:xaosw:-L${ORACLE_HOME}/lib -lclntsh -lmm -lsql${ORACLE_HOME}/lib/osntabst.o开发基于数据库的应用时必须配置此文件,关于RM的详细说明,见tuxedo的说明文第 1 页档。
tuxedo培训教程
BEA TUXEDO简易培训教程编写、整理 :文栈良2003-1-21第一章认识tuxedo1.1 TUXEDO是什么?BEA TUXEDO是在企业、Internet 这样的分布式运算环境中开发和管理三层结构的客户/服务器型关键任务应用系统的强有力工具。
它具备分布式事务处理和应用通信功能,并提供完善的各种服务来建立、运行和管理关键任务应用系统。
开发人员能够用它建立跨多个硬件平台、数据库和操作系统的可互操作的应用系统。
BEA TUXEDO是企业、Internet 分布式应用中的基础主干平台。
它提供了一个开放的环境,支持各种各样的客户、数据库、网络、遗留系统和通讯方式。
BEA TUXEDO使分布式关键任务应用系统具有大型主机的性能,从而使这些应用系统能够应付数以千计的用户,大交易吞吐量,多并行数据库存取和大量数据,同时保持较短的反应时间,较高数据完整性和安全性,并且确保全年365天,每周7天,每天24小时的系统可用性。
同时,BEA TUXEDO还能让开发人员和系统管理人员享用分布式运算环境提供的好处,如技术成本的低增长率,灵活性提高,快速应用开发和安装以及业务信息存取得以改善。
1.2 BEA TUXEDO的组件软件模型关键业务应用通常是面向事务的,要求具有准确的数据完整性、较好的性能和管理需求。
这些需求要求对应用的开发、调度和操作给出一个结构化的方案。
由像BEATUXEDO这样的中间件支持的组件软件模型为分布式环境处理关键性业务应用提供了一个结构化的解决方案。
BEA TUXEDO和基于组件的应用设计从异构的计算资源中创建了一个虚拟主机:在分布式应用系统级提供可管理的相互关联的资源。
许多组织在进行了一段时间的分布式应用工作后,现在已经认识到组件软件模型是他们的必然选择。
分布式应用的直接动力是主机应用和集中式中规模的应用系统基础上又逐渐配备有大量的台式系统和服务器系统,这些分布式系统在标准网络传送协议的支持下,呈松散耦合的态势,事实上它们构成了网络计算资源的基础。
TUXEDO简介及命令介绍
Tuxedo是一个客户机/服务器的―中间件‖产品,它在客户机和服务器之间进行调节,以保证正确地处理事务。
Tuxedo是一个事务处理(TP)监督器,它管理联机事务处理(OLTP)系统(参见―事务处理‖)操作的事务。
客户通过结构化查询语言(SQL)调用,或其它类型的请求,产生对服务器的请求。
这个事务处理监督器确信,正确地进行了修改,以保证数据的完整性。
这在一个事务可以改变多个位置的数据库的分布式数据库环境是非常重要的。
这个事务处理监督器使用双阶段提交,以保证所有的数据库都已经接收和认可了这些数据的正确性。
否则,这个数据库返回它的事务前状态。
事务监督器从前都是与大的大型计算机系统联系在一起的,但是Tuxedo的设计是为了在不昂贵的基于UNIX的系统上运行。
AT&T最初是作为它自己使用的联机事务处理开发Tuxedo的。
虽然Tuxedo必须在U-NIX系统上运行,但是它可以与DOS、OS/2、Windows和UNIX客户一起工作。
它还使用通用的通信协议,如传输控制协议/因特网协议(TCP/IP)和网络基本输入输出系统(NetBIOS),并且可以在这些环境提供分布式处理支持。
例如,它可以根据请求的类型,服务请求从一个客户选择路由到一个特定的服务器。
Tuxedo的基本特征是它的联机事务处理系统,但是,Tuxedo也工作于集成关系型的平面文件,以及层次数据库系统。
相关条目:Connectionless and Connection-Oriented Transactions无连接和面向连接事务;Transaction Processing 事务处理。
Tuxedo作为电子商务交易平台,它允许客户机和服务器参与一个涉及多个数据库协调更新的交易,并能够确保数据的完整性。
BEA Tuxedo一个特色功能是能够保证对电子商务应用系统的不间断访问。
它可以对系统组件进行持续的监视,查看是否有应用系统、交易、网络及硬件的故障。
Tuxedo完全操作手册
Tuxedo完全操作⼿册⼀、tuxedo的配置1、展开tuxedo包,例如:/home/tuxedo2、配置ubbconfig⽂件在江苏建⾏是jsccb.ubb*RESOURCES*RESOURCES节包含整个应⽤范围的信息。
本节必须在配置⽂件第⼀节,不可缺少。
参数意义*RESOURCES *RESOURCES节IPCKEY 共享内存idUID TUXEDO管理员⽤户idGID TUXEDO管理员⽤户idPERM TUXEDO管理员组⽤户的权限MAXACCESSERS 服务端和客户端的最⼤进程数MAXSERVERS 限制可以启动服务总数MAXSERVICES 限制可以发布交易总数MASTER 指出主控节点的逻辑名,第⼆个是备份节点MODEL 应⽤构架,MP表⽰多机OPTIONS LAN,MIGRA TE表⽰是⼀个⽹络应⽤,服务可以移植到替代处理器上SECURITY 安全级别(5个)AUTHSVC 客户端可以通过交易“AUTHSVC”获得认证NOTIFY DIPIN,客户端通过dip-in收到⼴播通知SYSTEM_ACCESS PROTECTED,NO_OVERRIDE,应⽤代码不得⼲扰共享内存LDBAL 设Y则进⾏负载平衡MAXBUF[S]TYPE 数据缓冲类型及⼦类的最⼤数SCANUNIT 内部时间间隔单位,单位是秒SANITYSCAN 检索公告牌的内部时间间隔,单位是SCANUNITBLOCKTIME 交易超时时间,单位是SCANUNITBBLQUERY DBBL查询所有BLL的时间间隔DBBLWAIT DBBL等待BBL回应的超时时间MAXCONV 同时最⼤会话数jsccb.ubb的实例###################### RESOURCES SECTION ######################*RESOURCESIPCKEY 234567DOMAINID JSCCBMASTER SERVER1MAXSERVERS 900MAXSERVICES 2000CMTRET LOGGEDMODEL MPLDBAL YSECURITY NONEMAXGTT 500OPTIONS LANBLOCKTIME 12*MACHINES*MACHINES节包含应⽤有关的每个处理器的信息。
TUXEDO配置参数详解
TUXEDO配置参数详解TUXEDO是一款开源的分布式高性能事务处理系统,广泛应用于企业级应用程序的开发和部署。
TUXEDO配置参数的详细了解对于系统的性能和可靠性的优化非常重要。
在本文中,我们将深入探讨TUXEDO的配置参数,并详细解释每个参数的作用和用途。
1.MAXACCESSERS-指定同时运行的最大并发进程数。
该参数对于控制系统的并发连接数至关重要。
当系统中的连接数超过此参数设定的值时,进程将等待直到有可用的连接资源。
2. MAXSERVERS - 指定Tuxedo系统中同时运行的最大服务进程数。
此参数对于控制系统的并发服务数量非常重要。
如果系统的服务进程数量超过此参数设定的值,新的服务请求将被延迟处理。
3.MAXQUEUES-指定系统中同时存在的最大队列数量。
此参数影响系统中消息队列的数量和容量。
如果队列数量超过此参数设定的值,新的消息将被丢弃。
4. MAXGROUPS - 指定Tuxedo系统中同时存在的最大进程组数量。
进程组是一组具有共同功能的进程,可以并行处理服务请求。
此参数对于控制系统中进程组的数量非常重要。
5.MAXLISTENERS-指定系统中同时存在的最大监听器数量。
监听器负责监听来自客户端的连接请求,并将其分配给服务进程。
此参数对于控制系统的并发连接数和性能非常重要。
6. TMSNAME - 指定事务管理系统的名称。
Tuxedo支持分布式事务处理,通过指定TMS名称可以实现不同系统之间的事务协调和跨系统的事务处理。
7.GWADMINSERVERS-指定在系统启动时自动启动的网关管理服务器数量。
网关管理服务器通过网关提供与外部系统的通信能力。
此参数对于控制网关管理服务器数量非常重要。
8. MAXBUFTYPE - 指定系统中支持的最大缓冲区类型数量。
Tuxedo 支持多种不同类型的缓冲区,用于在系统内部传递数据。
此参数影响系统中缓冲区的数量和类型。
9. MAXNIPROC - 指定系统中支持的最大网络通讯进程数。
tuxedo基本命令详细说明
1 tmloadcf➢检查UBBCONFIG文件的内容及格式➢将文本格式的UBBCONFIG文件编译生成二进制文件➢必须在主机上运行➢格式tmloadcf [-n] [-y] [-c] [-b blocks] {UBBCONFIG_file | -}➢参数-c 计算最小的IPC需求-n 仅仅进行UBBCONFIG文件的内容检查,不生成二进制文件-y 覆盖已有的二进制文件之前不提示-b blocks 如果环境变量TUXCONFIG所指的文件存放在一个裸设备上,建议使用该参数;如果该文件存放在文件系统上,则不需要2 tmunloadcf➢将二进制TUXCONFIG文件反编译为文本格式3 tmipcrm➢清除本机上的IPC资源➢自动根据TUXCONFIG_file参数查找相应的IPC资源➢一般在Tuxedo非正常停止的情况下用来清理残留IPC资源➢格式tmipcrm [-y] [-n] [TUXCONFIG_file]➢参数-y 对命令运行过程中的询问回答y-n 不清除IPC资源,只是列出IPC资源TUXCONFIG_file Tuxedo的配置文件。
如果不指定,则使用环境变量TUXCONFIG4 tmboot➢启动Tuxedo➢格式tmboot [-l lmid] [-g grpname] [-i srvid] [-s aout] [-o sequence][-S] [-A] [-b] [-B lmid] [-T grpname] [-e command] [-w] [-y] [-g][-n] [-c] [-M] [-d1]➢参数-l lmid 启动所有绑定到这个逻辑主机的服务,包括应用Server、TMS、Gateway等等-g grpname 启动grpname包含的所有服务,包括应用Server、TMS等-i srvid 启动所有SRVID为srvid的服务-s aout 启动Server名字为aout的服务,也可以用来启动TMS、Gateway等服务。
tuxedo管理命令之tmboot与tmshutdown
tuxedo管理命令之tmboot与tmshutdown tuxedo管理命令之tmboot与tmshutdown [转贴 2009-09-26 15:50:15]字号:⼤中⼩tmboot命令启动TUXEDO系统的应⽤,创建必要的IPC资源、启动相关机器的规定的系统和应⽤服务进程。
tm的主要参数有:-A 启动所有机器上的管理进程。
-M 启动主控机器上的管理进程。
-i srvid 启动服务id等于srvid的进程。
-g grpname 启动指定的⼀组服务(含TMS)。
-S 启动所有应⽤服务。
-s server-name 启动可执⾏⽂件名为server-name的服务。
-e 打印本配置所需要的最少的IPC资源。
⽰例:tmboot -s s1104Cfm;s1104Cfm为服务名。
tmshutdown命令⽤于关闭所有或部分应⽤并释放IPC资源。
本命令所有参数与tmboot类似(如:-A,-g,-i,-s,-S),意义相同。
tmshutdown的特殊参数有:-c当有客户端正在连接时,tmshutdown不能关闭管理服务。
参数-c则可以超越次规则。
该参数仅⽤于管理员需要⽴即关机⽽⼜⽆法及时通知客户端时。
-P在⾮主控节点上,可以⽤-P参数仅关闭该机器上的应⽤。
⽰例:tmboot -s s1104Cfm;s1104Cfm为服务名。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~以下是BEA的官⽅参考⽂档:/tuxedo/tux80/atmi/rfcmd31.htmtmbootNametmboot—Brings up a BEA Tuxedo configuration.Synopsistmboot [-l lmid] [-g grpname] [-i srvid] [-s aout] [-o sequence] [-S] [-A] [-b] [-B lmid] [-T grpname] [-e command] [-w] [-y] [-g] [-n] [-c] [-M] [-d1]Descriptiontmboot brings up a BEA Tuxedo application in whole or in part, depending on the options specified. tmboot can be invoked only by the administrator of the bulletin board (as indicated by the UID parameter in the configuration file) or by root. The tmboot command can be invoked only on the machine identified as MASTER in the RESOURCES section of the configuration file, or the backup acting as the MASTER, that is, with the DBBL already running (via the master command in tmadmin(1)). Except, if the -b option is used; in that case, the system can be booted from the backup machine without it having been designated as the MASTER.With no options, tmboot executes all administrative processes and all servers listed in the SERVERS section of the configuration file named by the TUXCONFIG and TUXOFFSET environment variables. If the MODEL is MP, a DBBL administrative server is started on the machine indicated by the MASTER parameter in the RESOURCES section. An administrative server (BBL) is started on every machine listed in the MACHINES section. For each group in the GROUPS section, TMS servers are started based on the TMSNAME and TMSCOUNT parameters for each entry. All administrative servers are started followed by servers in the SERVERS sections. Any TMS or gateway servers for a group are booted before the first application server in the group is booted. The TUXCONFIG file is propagated to remote machines as necessary. tmboot normally waits for a booted process to complete its initialization (that is, tpsvrinit()) before booting the next process.Booting a gateway server implies that the gateway advertises its administrative service, and alsoadvertises the application services representing the foreign services based on the CLOPT parameter for the gateway. If the instantiation has the concept of foreign servers, these servers are booted by the gateway at this time.Booting an LMID is equivalent to booting all groups on that LMID.Application servers are booted in the order specified by the SEQUENCE parameter, or in the order of server entries in the configuration file (see the description in UBBCONFIG(5)). If two or more servers in the SERVERS section of the configuration file have the same SEQUENCE parameter, then tmboot may boot these servers in parallel and will not continue until they all complete initialization. Each entry in the SERVERS section can have a MIN and MAX parameter. tmboot boots MIN application servers (the default is 1 if MIN is not specified for the server entry) unless the -i option is specified; using the -i option causes individual servers to be booted up to MAX occurrences.If a server cannot be started, a diagnostic is written on the central event log (and to the standard output, unless -q is specified), and tmboot continues—except that if the failing process is a BBL, servers that depend on that BBL are silently ignored. If the failing process is a DBBL, tmboot ignores the rest of the configuration file. If a server is configured with an alternate LMID and fails to start on its primary machine, tmboot automatically attempts to start the server on the alternate machine and, if successful, sends a message to the DBBL to update the server group section of TUXCONFIG.For servers in the SERVERS section, only CLOPT, SEQUENCE, SRVGRP, and SRVID are used by tmboot. Collectively, these are known as the server's boot parameters. Once the server has been booted, it reads the configuration file to find its run-time parameters. (See UBBCONFIG(5) for a description of all parameters.)All administrative and application servers are booted with APPDIR as their current working directory. The value of APPDIR is specified in the configuration file in the MACHINES section for the machine on which the server is being booted.The search path for the server executables is APPDIR, followed by TUXDIR/bin, followed by /bin and/usr/bin, followed by any PATH specified in the ENVFILE for the MACHINE. The search path is used only if an absolute pathname is not specified for the server. Values placed in the server's ENVFILE are not used for the search path.When a server is booted, the variables TUXDIR, TUXCONFIG, TUXOFFSET, and APPDIR, with values specified in the configuration file for that machine, are placed in the environment. The environment variable LD_LIBRARY_PATH is also placed in the environment of all servers. Its value defaults to $APPDIR:$TUXDIR/lib:/lib:/usr/lib:lib> where is the value of the first LD_LIBRARY_PATH= line appearing in the machine ENVFILE. See UBBCONFIG(5) for a description of the syntax and use of the ENVFILE. Some Unix systems require different environment variables. For HP-UX systems, use the SHLIB_PATH environment variable. FOR AIX systems, use the LIBPATH environment variable.The ULOGPFX for the server is also set up at boot time based on the parameter for the machine in the configuration file. If not specified, it defaults to $APPDIR/ULOG.All of these operations are performed before the application initialization function, tpsvrinit(), is called. Many of the command line options of tmboot serve to limit the way in which the system is booted and can be used to boot a partial system. The following options are supported.-l lmidFor each group whose associated LMID parameter is lmid, all TMS and gateway servers associated with the group are booted and all servers in the SERVERS section associated with those groups are executed. -g grpnameAll TMS and gateway servers for the group whose SRVGRP parameter is grpname are started, followed by all servers in the SERVERS section associated with that group. TMS servers are started based on the TMSNAME and TMSCOUNT parameters for the group entry.-i srvidAll servers in the SERVERS section whose SRVID parameter is srvid are executed.-s aoutAll servers in the SERVERS section with name aout are executed. This option can also be used to boot TMS and gateway servers; normally this option is used in this way in conjunction with the -g option.-o sequenceAll servers in the SERVERS section with SEQUENCE parameter sequence are executed.-SAll servers in the SERVERS section are executed.-AAll administrative servers for machines in the MACHINES section are executed. Use this option to guarantee that the DBBL and all BBL and BRIDGE processes are brought up in the correct order. (See also the description of the -M option.)-bBoot the system from the BACKUP machine (without making this machine the MASTER).-B lmidA BBL is started on a processor with logical name lmid.-MThis option starts administrative servers on the master machine. If the MODEL is MP, a DBBL administrative server is started on the machine indicated by the MASTER parameter in the RESOURCES section. A BBL is started on the MASTER machine, and a BRIDGE is started if the LAN option and a NETWORK entry are specified in the configuration file.-d1Causes command line options to be printed on the standard output. Useful when preparing to use sdb to debug application services.-T grpnameAll TMS servers for the group whose SRVGRP parameter is grpname are started (based on the TMSNAME and TMSCOUNT parameters associated with the group entry). This option is the same as booting based on the TMS server name (-s option) and the group name (-g).-e commandCauses command to be executed if any process fails to boot successfully. command can be any program, script, or sequence of commands understood by the command interpreter specified in the SHELL environment variable. This allows an opportunity to bail out of the boot procedure. If command contains white space, the entire string must be enclosed in quotes. This command is executed on the machine on which tmboot is being run, not on the machine on which the server is being booted.Note: If you choose to do redirection or piping on a Windows 2000 system, you must use one of the following methods:Do redirection or piping from within a command file or script.To do redirection from within the queue manager administration program, precede the command with cmd. For example:cmd /c ipconfig > out.txtIf you choose to create a binary executable, you must allocate a console within the binary executable using the Windows AllocConsole() API function-wInforms tmboot to boot another server without waiting for servers to complete initialization. This option should be used with caution. BBLs depend on the presence of a valid DBBL; ordinary servers require a running BBL on the processor on which they are placed. These conditions cannot be guaranteed if servers are not started in a synchronized manner. This option overrides the waiting that is normally done when servers have sequence numbers.-yAssumes a yes answer to a prompt that asks if all administrative and server processes should be booted. (The prompt appears only when the command is entered with none of the limiting options.)-qSuppresses the printing of the execution sequence on the standard output. It implies -y.-nThe execution sequence is printed, but not performed.-cMinimum IPC resources needed for this configuration are printed.When the -l, -g, -i, -o, and -s options are used in combination, only servers that satisfy all qualifications specified are booted. The -l, -g, -s, and -T options cause TMS servers to be booted; the -l, -g, and -s options cause gateway servers to be booted; the -l, -g, -i, -o, -s, and -S options apply to application servers. Options that boot application servers fail if a BBL is not available on the machine.The -A, -M, and -B options apply only to administrative processes.The standard input, standard output, and standard error file descriptors are closed for all booted servers. Interoperabilitytmboot must run on the master node, which in an interoperating application must be the highest release available. tmboot detects and reports configuration file conditions that would lead to the booting of administrative servers such as Workstation listeners on sites that cannot support them.Portabilitytmboot is supported on any platform on which the BEA Tuxedo server environment is supported. Environment VariablesDuring the installation process, an administrative password file is created. When necessary, the BEA Tuxedo system searches for this file in the following directories (in the order shown):APPDIR/.adm/tlisten.pw and TUXDIR/udataobj/tlisten.pw. To ensure that your password file will be found, make sure you have set the APPDIR and/or TUXDIR environment variables.Link-Level EncryptionIf the link-level encryption feature is in operation between tmboot and tlisten, link-level encryption will be negotiated and activated first to protect the process through which messages are authenticated. DiagnosticsIf TUXCONFIG is set to a non-existent file, two fatal error messages are displayed:error processing configuration fileconfiguration file not foundIf tmboot fails to boot a server, it exits with exit code 1 and the user log should be examined for further details. Otherwise tmboot exits with exit code 0.If tmboot is run on an inactive non-master node, a fatal error message is displayed:tmboot cannot run on a non-master node.If tmboot is run on an active node that is not the acting master node, the following fatal error message is displayed:tmboot cannot run on a non acting-master node in an active application.If the same IPCKEY is used in more than one TUXCONFIG file, tmboot fails with the following message: Configuration file parameter has been changed since last tmbootIf there are multiple node names in the MACHINES section in a non-LAN configuration, the following fatal error message is displayed:Multiple nodes not allowed in MACHINES for non-LAN application.If tlisten is not running on the MASTER machine in a LAN application, a warning message is printed. In this case, tmadmin(1) cannot run in administrator mode on remote machines; it is limited to read-only operations. This also means that the backup site cannot reboot the master site after failure.ExamplesTo start only those servers located on the machines logically named CS0 and CS1, enter the following command:tmboot -l CS0 -l CS1To start only those servers named CREDEB that belong to the group called DBG1, enter the following command:tmboot -g DBG1 -s CREDEB1To boot a BBL on the machine logically named PE8, as well as all those servers with a location specified as PE8, enter the following command.tmboot -B PE8 -l PE8To view minimum IPC resources needed for the configuration, enter the following command.tmboot -cThe following is an example of the output produced by the -c option:Ipc sizing (minimum BEA Tuxedo values only) ... Fixed Minimums Per Processor SHMMIN: 1 SHMALL: 1 SEMMAP: SEMMNI Variable Minimums Per Processor SEMUME, A SHMMAX SEMMNU, * * Node SEMMNS SEMMSL SEMMSL SEMMNI MSGMNI MSGMAP SHMSEG ------ ------ ------ ------ ------ ------ ------ ------ sfpup 60 1 60 A + 1 10 20 76K sfsup 63 5 63 A + 1 11 22 76K where 1 = A = 8.The number of expected application clients per processor should be added to each MSGMNI value. MSGMAP should be twice MSGMNI. SHMMIN should always be set to 1.The minimum IPC requirements can be compared to the parameters set for your machine. See the system administration documentation for your machine for information about how to change these parameters. If the -y option is used, the display will differ slightly from the previous example.NoticesThe tmboot command ignores the hangup signal (SIGHUP). If a signal is detected during boot, the process continues.Minimum IPC resources displayed with the -c option apply only to the configuration described in the configuration file specified; IPC resources required for a resource manager or for other BEA Tuxedo configurations are not considered in the calculation.See Alsotmadmin(1), tmloadcf(1), tmshutdown(1), UBBCONFIG(5)Administering BEA Tuxedo Applications at Run Time------------------------------------tmshutdown以下是BEA的官⽅参考⽂档:/tuxedo/tux80/atmi/rfcmd35.htm#1335246 tmshutdown(1)Nametmshutdown—Shuts down a set of BEA Tuxedo servers.Synopsistmshutdown [options]Descriptiontmshutdown stops the execution of a set of servers or removes the advertisements of a set of services listed in a configuration file. Only the administrator of the bulletin board (as indicated by the UID parameter in the configuration file) or root can invoke the tmshutdown command. tmshutdown can be invoked only on the machine identified as MASTER in the RESOURCES section of the configuration file, or the backup acting as the MASTER, that is, with the DBBL already running (via the master command in tmadmin(1)). An exception to this is the -P option which is used on partitioned processors (see below). With no options, tmshutdown stops all administrative, TMS, and gateway servers, and servers listed in the SERVERS section of the configuration file named by the TUXCONFIG environment variable, and removes the IPC resources associated with them. For each group, all servers in the SERVERS section, if any, are shut down, followed by any associated gateway servers (for foreign groups) and TMS servers. Administrative servers are shut down last.Application servers without SEQUENCE parameters are shut down first in reverse order of the server entries in the configuration file, followed by servers with SEQUENCE parameters that are shut down from high to low sequence number. If two or more servers in the SERVERS section of the configuration file have the same SEQUENCE parameter, then tmshutdown may shut down these servers in parallel. Each entry in the SERVERS section may have an optional MIN and MAX parameter. tmshutdown shuts down all occurrences of a server (up to MAX occurrences) for each server entry, unless the -i option is specified; using the -i option causes individual occurrences to be shut down.If it is not possible to shut down a server, or remove a service advertisement, a diagnostic is written on the central event log (see userlog(3c)). The following is a description of all options:-l lmidFor each group whose associated LMID parameter is lmid, all servers in the SERVERS section associated with the group are shut down, followed by any TMS and gateway servers associated with the group.-g grpnameAll servers in the SERVERS section associated with the specified group (that is, for which the SRVGRP parameter is set to grpname) are shut down, followed by all TMS and gateway servers for the group. TMSservers are shut down based on the TMSNAME and TMSCOUNT parameters for the group entry. For a foreign group, the gateway servers for the associated entry in the HOST section are shut down based on GATENAME and GATECOUNT. Shutting down a gateway implies not only that the process itself is stopped; it also implies that the administrative service for the gateway and all advertised foreign services are unadvertised.-i srvidAll servers in the SERVERS section for which the SRVID parameter is set to srvid are shut down. Do not enter a value for SRVID greater than 30,000; this indicates system processes (that is, TMSs or gateway servers) that should only be shut down via the -l or -g option.-s aoutAll servers listed in the SERVERS section with the name aout are shut down. This option can also be used to shut down TMS and gateway servers.-o sequenceAll servers in the SERVERS section for which the SEQUENCE parameter is set to sequence are shut down.-SAll servers listed in the SERVERS section are shut down.-AAll administrative servers are shut down.-MThis option shuts down administrative servers on the master machine. The BBL is shut down on the MASTER machine, and the BRIDGE is shut down if the LAN option and a NETWORK entry are specified in the configuration file. If the MODEL is MP, the DBBL administrative server is shut down.-B lmidThe BBL on the processor with the logical name lmid is shut down.-T grpnameAll TMS servers for the server group for which the SRVGRP parameter is set to grpname are shut down (based on the TMSNAME and TMSCOUNT parameters associated with the server group entry).-w delayTells tmshutdown to suspend all selected servers immediately and waits for shutdown confirmation for only delay seconds before forcing the server to shut down by sending a SIGTERM and then a SIGKILL signal to the server.Because the SIGKILL signal cannot be trapped, any process that receives it is terminated immediately, regardless of the code being executed by the process at that time. Such behavior may cause structural damage to the bulletin board if the process being stopped was updating the bulletin board when it was terminated.Note: Servers to which the -w option may be applied should not catch the UNIX signal SIGTERM.Note: When a server is shut down based on receipt of a SIGKILL signal, entries may remain in the bulletin board. When the bulletin board liaison (BBL) is due to shut down, these entries are detected and the BBL does not shut down. A second tmshutdown command may be required to complete system shutdown.-k {TERM | KILL}tmshutdown suspends all selected servers immediately and forces them to shut down in an orderly fashion (TERM) or preemptively (KILL).Because the SIGKILL signal cannot be trapped, any process that receives it is terminated immediately, regardless of the code being executed by the process at that time. Such behavior may cause structural damage to the bulletin board if the process being stopped was updating the bulletin board when it was terminated.Note: This option maps to the UNIX signals SIGTERM and SIGKILL on platforms that support them. By default, a SIGTERM initiates an orderly shutdown in a BEA Tuxedo server. If SIGTERM is reset by an application, the BEA Tuxedo system may be unable to shut down the server.Note: When a server is shut down based on receipt of a SIGKILL signal, entries may remain in the bulletin board. When the bulletin board liaison (BBL) is due to shut down, these entries are detected and the BBLdoes not shut down. A second tmshutdown command may be required to complete system shutdown.-yAssumes a yes answer to a prompt that asks whether all administrative and server processes should be shut down. (The prompt appears only when the command is entered with none of the limiting options.)When the -y option is specified, all services are unadvertised immediately from the bulletin board and any subsequent service calls fail.-qSuppresses the printing of the execution sequence on standard output. It implies -y.-nThe execution sequence is printed, but not performed.-RFor migration operations only, shuts down a server on the original processor without deleting its bulletin board entry in preparation for migration to another processor. The -R option must be used with either the -l or -g option (for example, tmshutdown -l lmid -R). The MIGRATE option must be specified in the RESOURCES section of the configuration file.-cShuts down BBLs even if clients are still attached.-H lmidOn a uniprocessor, all administrative and applications servers on the node associated with the specified lmid are shut down. On a multiprocessor (for example, 3B4000), all PEs are shut down, even if only one PE is specified.-P lmidWith this option, tmshutdown attaches to the bulletin board on the specified lmid, ensures that this lmid is partitioned from the rest of the application (that is, that it does not have access to the DBBL), and shuts down all administrative and application servers. It must be run on the processor associated with the lmid in the MACHINES section of the configuration file.The -l, -g, -s, and -T options cause TMS servers to be shut down; the -l, -g, and -s options cause gateway servers to be shut down; the -l, -g, -i, -s, -o, and -S options apply to application servers; the -A, -M, and -B options apply only to administrative processes. When the -l, -g, -i, -o, and -s options are used in combination, only servers that satisfy all the qualifications specified are shut down.If the distributed transaction processing feature is being used such that global transactions are in progress when servers are shut down, transactions that have not yet reached the point at which a commit is logged after a precommit are aborted; transactions that have reached the commit point are completed when the servers (for example, TMS) are booted again.Interoperabilitytmshutdown must run on the master node. In an interoperating application the master node must be running the highest release available. tmshutdown detects and reports configuration file conditions that would lead to the shutting down of Release 4.2 administrative servers on Release 4.1 sites.Portabilitytmshutdown is supported on any platform on which the BEA Tuxedo server environment is supported.DiagnosticsIf tmshutdown fails to shut down a server or if a fatal error occurs, tmshutdown exits with exit code 1 and the user log should be examined for further details; otherwise it exits with exit code 0.If tmshutdown is run on an active node that is not the acting master node, a fatal error message is displayed:tmshutdown cannot run on a non acting-master node in an active application.If shutting down a process would partition active processes from the DBBL, a fatal error message is displayed:cannot shutdown, causes partitioning.If a server has died, the following somewhat ambiguous message is produced.CMDTUX_CAT:947 Cannot shutdown server GRPIDExamplesTo shut down the entire system and remove all BEA Tuxedo IPC resources (force it if confirmation is not received in 30 seconds), run the following command:tmshutdown -w 30To shut down only those servers located on the machine for which the value of lmid is CS1, enter the following command:tmshutdown -l CS1Because the -l option restricts the action to servers listed in the SERVERS section, the BBL on CS1 is not shut down.NoticesThe tmshutdown command ignores the hangup signal (SIGHUP). If a signal is detected during shutdown, the process continues.See Alsotmadmin(1), tmboot(1), UBBCONFIG(5)Administering BEA Tuxedo Applications at Run Time。
tuxedo常用命令整理
Tuxedo常用命令整理一、使用命令1.使用buildclient构造client端程序步骤:1.client端程序包含atmi.h头文件;2.正确设置TUXDIR环境变量;3.使用buildclient工具编译程序;buildclient的语法如下:buildclient [-v] [-C] -o executable -f first-file \[-f first-file]... [-l last-file]...选项含义:-C:编译COBOL代码;-o:可执行文件的名字;-f option:在链接tuxedo库之前处理该文件;-l option:在链接tuxedo库之后处理该文件;-v:打印实际的编译命令行。
buildclient在运行中使用下面的环境变量:CFLAGS:自动在该变量中增加"-I${TUXDIR}/include";CC:使用该变量指向的编译器。
2.使用tmloadcftmloadcf用于将tuxedo文本配置文件转化为运行时需要的二进制文件。
二进制文件的文件名由环境变量TUXCONFIG指定,该文件名必须是绝对路径的。
tmloadcf的语法如下:tmloadcf [option] text-file;选项有如下几个:-c:计算该配置需要的IPC资源而不生成目标文件;-n:进行语法检查而不生成目标文件;-b:限制目标文件的大小;-y:不提示直接覆盖现有的目标文件;3.使用tmunloadcftmunloadcf将二进制配置文件以ASCII形式输出。
4.使用tmboottmboot启动tuxedo应用服务,创建必要的IPC资源。
有如下选项,无选项时启动所有配置的服务:-A:只启动所有机器的管理server(BBL、DBBL);-g grpname:只启动指定group的server;-i srvid:只启动指定的server ID的所有server;-S:启动所有应用server;-s servername:启动指定的server;-c:只计算最小的IPC资源需求。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
组合命令
姓名:李飞
邮箱:ailandle@
日期:2010-05-10 1监控正在处理的Server
2查看PSC的请求数量
3监控有排队的Tuxedo队列
4排序监控的信息
5监控操作系统队列
6echo psr|tmadmin|grep -v IDLE|awk '$5!="0" {print $0;
a=a+$5; } END {print " Total Queued: " a;}'
解释:
1. echo psr|tmadmin: 与输入tmadmin再输入psr效果一样
2. grep -v IDLE : 以输出的结果中做为一个集合,排除里面有IDLE字符串的记录
3. awk '$5!="0"':以输出的结果中做为一个集合,只显示第五列不等于0的记录
4. print $0:输出所有的信息,如果print $1,只输入第一列,如果print $2 只输出第2列
7gzboss%ipcs | sort +2|head -n 10|tail -n 10
解释:
1. sort +number:跳过几列,如果是2就以第三列排序
2. head -n number:显示前几行,如果number=10就是显示前10行。
3. tail -n number:显示后几行,如果number=10就是显示前10行。
-n:显示后几行。