Tuxedo多人使用tmadmin命令时,如何强制停止服务

需要重启Tuxedo应用时,提示:LIBTUX_CAT:577: ERROR: Unable to register because the slot is already owned


此时执行tmadmin命令,有报错:

$ tmadmin
tmadmin - Copyright (c) 1996-1999 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. TMADMIN_CAT:199: WARN: Cannot become administrator.Limited set of commands available.

从上面两个提示看,可能有其他用户正在使用tmadmin操作,导致此用户session登录后无法执行这些高级别命令。


进一步使用w命令,看是否有这样的用户操作:

v490e5-tux:/opt/app/tuxapp/gateway/config$ w
  1:29pm  up 354 day(s),  1:57,  3 users,  load average: 0.02, 0.03, 0.04
User       tty            login@  idle   JCPU   PCPU  what
root       console     7Jul14354days                     -sh
tuxapp   pts/2         1:14pm                                tmadmin
tuxapp   pts/3         1:28pm                                tmadmin

确实如此,有其他用户session正在做指令。


此时停止所有服务会报错:

tmshutdown -y;

Shutting down all admin and server processes in /app/app/etc/tuxconfig

Shutting down server processes ...

Shutting down admin processes ...

      Server Id = 0 Group Id = SITE1 Machine = SITE1: 

CMDTUX_CAT:1668: WARN: Cannot shutdown BBL on SITE1. Clients and/or servers may be running

CMDTUX_CAT:949: WARN: Shutdown failed

0 processes stopped.


必须使用强制命令:tmshutdown -c -y

这样就可以停止所有Tuxedo服务,再做其他操作。

你可能感兴趣的:(个人心得,Tuxedo,技术之我见)