Tuxedo维护常用命令

官方提供的网址:

http://docs.oracle.com/cd/E13203_01/tuxedo/tux71/html/rfcmd.htm

tuxedo常用命令参数
1.使用buildclient构造client端程序

步骤:
client端程序包含atmi.h头文件;
正确设置TUXDIR环境变量;
使用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.使用tmloadcf

tmloadcf用于将tuxedo文本配置文件转化为运行时需要的二进制文件。

二进制文件的文件名由环境变量TUXCONFIG指定,该文件名必须是绝对路径的。

tmloadcf的语法如下:
tmloadcf [option] text-file;

选项有如下几个:

-c:计算该配置需要的IPC资源而不生成目标文件;

-n:进行语法检查而不生成目标文件;

-b:限制目标文件的大小;

-y:不提示直接覆盖现有的目标文件;

3.使用tmunloadcf

tmunloadcf将二进制配置文件以ASCII形式输出。

4.使用tmboot

tmboot启动tuxedo应用服务,创建必要的IPC资源。

有如下选项,无选项时启动所有配置的服务:

-A:只启动所有机器的管理server(BBL、DBBL);

-g grpname:只启动指定group的server;

-i srvid:只启动指定的server ID的所有server;

-S:启动所有应用server;

-s servername:启动指定的server;

-c:只计算最小的IPC资源需求。

5.使用tmshutdown

tmshutdown停止tuxedo服务,必要是删除相关的IPC资源。

有如下选项:

-A、-g、-i、-S、-s:与tmboot相同;

-R:在多机环境下停止除BB外的服务;

6.使用buildserver构造server端程序

语法如下:
buildserver [-o executable]...
[-v] \
[-s service2, service3:func] \
[-f source/object]...\
[-l object] ... \
[-r resource manager]

选项含义:

-o:生成的可执行程序名;

-v:打印实际的编译命令行;

-s:指定提供的service和对应的处理函数;

-f:在链接tuxedo库之前处理该文件;

-l:在链接tuxedo库之后处理该文件;

-r:要链接相关资源库(在$TUXDIR/udataobj/目录下)。

1)tmloadcf     -编译TUXEDO UBB信息

    #编译服务进程到TUX
    tmloadcf -y ubbsimple


2)tmunloadcf   -将TUXCONFIG转换成ASCII格式 


3)tmboot       -启动TUXEDO系统服务 

    #开启所有的服务
    tmboot -y


4)tmshutdown   -关闭所有或部分应用并释放IPC资源 

    #停掉xxxx进程下的所有服务
    tmshutdown  -s  xxxx

    #停掉所有的服务
    tmshutdown -y
    tmipcrm -y


5)tmadmin      -TUXEDO系统管理

    #在界面中查看服务
    psr

6)编译crmdem.fml32文件
mkfldhdr32 crmdem.fml32

Tuxedo维护常用命令
1配置文件
Tuxedo的配置文件通常称为ubbconfig文件。
ubbconfig文件可视作包含应用启动信息的容器,需编译成二进制文件tuxconfig,作为启动时的参考。包含:
系统范围信息 resources
机器信息 machines
组信息 groups
服务信息 servers
交易信息 services
网络组信息 netgroups
网络信息 network
路由原则信息 routing
当ubbconfig完成后,用tmloadcf命令生成tuxconfig(也可以用图形界面生成)

2tmloadcf和tmunloadcf
tmloadcf -y 无条件覆盖
         -c 计算运行应用需要的IPC
         -n 进行语法检查不生成tuxconfig
         -b 控制占用物理页数
tmunloadcf 将tuxconfig转化成ascii格式

3tmboot和tmshutdown
tmboot -y 启动 [A启动所有机器上的管理进程 M启动主控制机器上的管理进程 i启动服务id=某某的进程 g启动某组服务 S启动所有应用服务]
tmshutdown -y 停止

4管理工具主要包括:tmadmin和GAI

介绍tmadmin工具
printserver (psr)查看服务信息
printservice (psc) 查看交易信息
printqueue (pq)查看队列信息   例 pq [padress]
printclient (pclt)查看客户信息


 

 

txrpt(1)

Name

txrpt - BEA Tuxedo system server/service report program

Synopsis

 

txrpt [-t]  [-n names]  [-d mm/dd]  [-s time]  [-e time]

Description

txrpt analyzes the standard error output of a BEA Tuxedo system server to provide a summary of service processing time within the server. The report shows the number of times dispatched and average elapsed time in seconds of each service in the period covered. txrpt takes its input from the standard input or from a standard error file redirected as input. Standard error files are created by servers invoked with the -r option from the servopts(5) selection; the file can be named by specifying it with the -e servopts option. Multiple files can be concatenated into a single input stream fortxrpt. Options to txrpt have the following meaning.

 

-t

 

Order the output report by total time usage of the services, with those consuming the most total time printed first. If this option is not specified, the report is ordered by total number of invocations of a service.

 

 

-n names

 

 

Restrict the report to those services specified by names. names is a comma-separated list of service names.

 

 

-d mm/dd

 

 

Limit the report to service requests on the month (mm) and day (dd) specified. The default is the current day.

 

 

-s time

 

 

Restrict the report to invocations starting after the time given by the time argument. The format for time is hr[:min[:sec]].

 

 

-e time

 

 

Restrict the report to invocations that finished before the specified time. The format for time is the same as the format of -s flag.

 

The report produced by txrpt covers only a single day. If the input file contains records from more than one day, the -d option controls the day reported on.

Notices

Make sure that the ULOGDEBUG variable is not set to y when a server is collecting statistics for analysis via txrpt. Debugging messages in the file will be misinterpreted by txrpt.

Examples

For the following command line

 

txrpt -nSVC1 -d10/15 -s11:01 -e14:18  newr

the report produced looks like the following.

 

START AFTER:    Thu Oct 15 11:01:00 1992
END BEFORE:     Thu Oct 15 14:18:00 1992
              SERVICE SUMMARY REPORT  
 
SVCNAME   11a-12n     13p-14p     14p-15p      TOTALS  
          Num/Avg     Num/Avg     Num/Avg     Num/Avg
------    --------    --------    --------    -------
SVC1      2/0.25      3/0.25      1/0.96      6/0.37
-------   -------     -------     -------     -------
TOTALS    2/0.25      3/0.25      1/0.96      6/0.37

The above example shows that SVC1 was requested a total of six times within the specified period and that it took an average of 0.37 seconds to process the request.

See Also

猜你喜欢

转载自topmanopensource.iteye.com/blog/1222841
今日推荐