How to force stop a service when multiple Tuxedo users use the tmadmin command
When you need to restart the Tuxedo application, the following ERROR occurs: LIBTUX_CAT: 577: ERROR: Unable to register because the slot is already owned.
When the tmadmin command is executed, an error is returned:
$ 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.
As shown in the preceding two tips, some other users may be using the tmadmin operation. As a result, this user session cannot execute these high-level commands after logon.
Use the w command to check whether such user operations are performed:
V490e5-tux:/opt/app/tuxapp/gateway/config $ w
Pm up 354 day (s), 3 users, load average: 0.02, 0.03, 0.04
User tty login @ idle jcpu pcpu what
Root console 7Jul14354days-sh
Tuxapp pts/1: 14 pm tmadmin
Tuxapp pts/3 :28 pm tmadmin
Indeed, other user sessions are executing commands.
When all services are stopped, an error is returned:
Tmshutdown-y;
Shutting down all admin and server processes in/app/etc/tuxconfig
Shutting down server processes...
Shutting down admin processes...
Server Id = 0 Group Id = SITE1 Machine = SITE1:
Ubuntux_cat: 1668: WARN: Cannot shutdown BBL on SITE1. Clients and/or servers may be running
Ubuntux_cat: 949: WARN: Shutdown failed
0 processes stopped.
You must use the force command: tmshutdown-c-y
In this way, you can stop all Tuxedo services and perform other operations.