1. 非圖形界面下的安裝
./tuxedo81_aix_32bit.bin -i console 加入 -i console則不需要圖形支持
-------------------------------------
2. 察看版本和patch信息
tmadmin -v
-------------------------------------
3. 對ubb文件只做語法檢查(不真正的load成TUXCONFIG)
tmloadcf -n ubb
-------------------------------------
4. tmboot/tmshutdown中的幾個參數介紹
-A 只啟動/停止Tuxedo管理服務,如BBL
-S 所有服務被啟動/停止
-g grpname 只啟動/停止屬於制定組名的服務
-i svrid 只啟動/停止制定ServID的服務
-s svrname 只啟動/停止制定服務名的服務
-------------------------------------
5. tuxedo有關域(domain)管理的命令
$ dmadmin
>pd -d LocalTUXDomainID 顯示與本地域關聯的其他域
>co -d LocalTUXDomainID -R RemoteDomainID 手動連接遠程域
-------------------------------------
6. 如何清除IPC資源
如果你不想用tmshutdown停止或者當$TUXCONFIG文件被誤刪除而無法shutdown TUXEDO服務時,可以嘗試直接刪除當前用戶的ipc資源,如下:
ipcs | grep `whoami` | awk '{print "ipcrm -"$1,$2}' |sh -x
在我的系統中,上述命令報錯,改成
ipcs -q | grep `whoami` | grep -v 'grep' | awk '{ print "ipcrm -q "$2}' | sh
ipcs -m | grep `whoami` | grep -v 'grep' | awk '{ print "ipcrm -m "$2}' | sh
ipcs -s | grep `whoami` | grep -v 'grep' | awk '{ print "ipcrm -s "$2}' | sh
下面是強制kill掉和tuxedo相關的進程
ps aux | grep "/openav/LOG" | grep `whoami` | grep -v 'grep'| awk '{print "kill -9 " $2}' | sh
-------------------------------------
7. 反編譯tuxconfig 生成 ubb文件
a) tmunloadcf 查看當前TUXCONFIG中的ubb內容
b) export TUXCONFIG=`pwd`/tuxconfig 比較簡單的設置TUXCONFIG的命令
-------------------------------------
8. Tuxedo非正常狀態下的關閉
1)執行tmshutdown -y,如果shutdown不成功,轉入下一步(此時一般來說,TUXEDO的狀態已經處於不正常了)。
2)執行tmipcrm -y,如果shutdown不成功,轉入下一步。
3)要用到AWK,所以要求在Unix下,或者在WINDOWS下裝了Cygwin。
執行了3)肯定就可以關閉掉了。
一般情況下,我也懶得那么麻煩,在非生產機上經常來一個killall -9,將該用戶所有的進程都殺掉。
-------------------------------------
9. 隱藏顯示服務
隱藏服務
unadvertise (unadv) {-q qaddress [-g groupname] [-i srvid] |
-g groupname -i srvid} service
顯示服務
advertise (adv) {-q qaddress [-g groupname] [-i srvid] | -g groupname -i srvid}
service[:func]
上面兩個命令只能在單獨登錄tmadmin時使用。
重復登錄tmadmin后出現
TMADMIN_CAT:199: WARN: Cannot become administrator.Limited set of commands available.
提示不能使用上面命令。
-------------------------------------
10.sh命令直接執行tuxedo操作
如
$echo pclt |tmadmin
$echo pq |tmadmin |grep Machine
-------------------------------------
11. WSL配置參數
WSL的配置重點要注意其CLOPT中幾個關鍵參數的指定:
-m, -M, -x, WSH啟動的最大、最小個數,及每個WSH可同時處理的並發請求數,
"-M" * "-x" = MAXWSCLIENTS;
-I, 客戶端與服務器端建立連接的超時時間;
-N, 客戶端發起請求的響應超時時間;
-T, 客戶端在與服務器端建立連接后,允許最大的空閑時間;
-H, 穿防火牆時,防火牆的ip
-p, WSH分配的起始端口
-P, WSH分配的結束端口。 -p 9901 -P 9915 指定端口范圍 9901-9915
-------------------------------------
12. UBB文件中MAX。。的配置
MAXWSCLIENTS <= Tuxedo license
MAXSERVERS = SUM (MAX setting of servers)
MAXACCESSERS = (MAXSERVERS+MAXWSCLIENTS) * 117%
-------------------------------------
tmboot: WARN: No BBL available on site ***
Will not attempt to boot server processes on that site.
./tuxedo81_aix_32bit.bin -i console 加入 -i console則不需要圖形支持
-------------------------------------
2. 察看版本和patch信息
tmadmin -v
-------------------------------------
3. 對ubb文件只做語法檢查(不真正的load成TUXCONFIG)
tmloadcf -n ubb
-------------------------------------
4. tmboot/tmshutdown中的幾個參數介紹
-A 只啟動/停止Tuxedo管理服務,如BBL
-S 所有服務被啟動/停止
-g grpname 只啟動/停止屬於制定組名的服務
-i svrid 只啟動/停止制定ServID的服務
-s svrname 只啟動/停止制定服務名的服務
-------------------------------------
5. tuxedo有關域(domain)管理的命令
$ dmadmin
>pd -d LocalTUXDomainID 顯示與本地域關聯的其他域
>co -d LocalTUXDomainID -R RemoteDomainID 手動連接遠程域
-------------------------------------
6. 如何清除IPC資源
如果你不想用tmshutdown停止或者當$TUXCONFIG文件被誤刪除而無法shutdown TUXEDO服務時,可以嘗試直接刪除當前用戶的ipc資源,如下:
ipcs | grep `whoami` | awk '{print "ipcrm -"$1,$2}' |sh -x
在我的系統中,上述命令報錯,改成
ipcs -q | grep `whoami` | grep -v 'grep' | awk '{ print "ipcrm -q "$2}' | sh
ipcs -m | grep `whoami` | grep -v 'grep' | awk '{ print "ipcrm -m "$2}' | sh
ipcs -s | grep `whoami` | grep -v 'grep' | awk '{ print "ipcrm -s "$2}' | sh
下面是強制kill掉和tuxedo相關的進程
ps aux | grep "/openav/LOG" | grep `whoami` | grep -v 'grep'| awk '{print "kill -9 " $2}' | sh
-------------------------------------
7. 反編譯tuxconfig 生成 ubb文件
a) tmunloadcf 查看當前TUXCONFIG中的ubb內容
b) export TUXCONFIG=`pwd`/tuxconfig 比較簡單的設置TUXCONFIG的命令
-------------------------------------
8. Tuxedo非正常狀態下的關閉
1)執行tmshutdown -y,如果shutdown不成功,轉入下一步(此時一般來說,TUXEDO的狀態已經處於不正常了)。
2)執行tmipcrm -y,如果shutdown不成功,轉入下一步。
3)要用到AWK,所以要求在Unix下,或者在WINDOWS下裝了Cygwin。
執行了3)肯定就可以關閉掉了。
一般情況下,我也懶得那么麻煩,在非生產機上經常來一個killall -9,將該用戶所有的進程都殺掉。
-------------------------------------
9. 隱藏顯示服務
隱藏服務
unadvertise (unadv) {-q qaddress [-g groupname] [-i srvid] |
-g groupname -i srvid} service
顯示服務
advertise (adv) {-q qaddress [-g groupname] [-i srvid] | -g groupname -i srvid}
service[:func]
上面兩個命令只能在單獨登錄tmadmin時使用。
重復登錄tmadmin后出現
TMADMIN_CAT:199: WARN: Cannot become administrator.Limited set of commands available.
提示不能使用上面命令。
-------------------------------------
10.sh命令直接執行tuxedo操作
如
$echo pclt |tmadmin
$echo pq |tmadmin |grep Machine
-------------------------------------
11. WSL配置參數
WSL的配置重點要注意其CLOPT中幾個關鍵參數的指定:
-m, -M, -x, WSH啟動的最大、最小個數,及每個WSH可同時處理的並發請求數,
"-M" * "-x" = MAXWSCLIENTS;
-I, 客戶端與服務器端建立連接的超時時間;
-N, 客戶端發起請求的響應超時時間;
-T, 客戶端在與服務器端建立連接后,允許最大的空閑時間;
-H, 穿防火牆時,防火牆的ip
-p, WSH分配的起始端口
-P, WSH分配的結束端口。 -p 9901 -P 9915 指定端口范圍 9901-9915
-------------------------------------
12. UBB文件中MAX。。的配置
MAXWSCLIENTS <= Tuxedo license
MAXSERVERS = SUM (MAX setting of servers)
MAXACCESSERS = (MAXSERVERS+MAXWSCLIENTS) * 117%
-------------------------------------
tmboot: WARN: No BBL available on site ***
Will not attempt to boot server processes on that site.
一個可能的原因:ubb中TUXDIR路徑錯了
ps: tuxedo在不能啟動時也會打印log信息,查看log對查找問題很有幫助
-------------------------------------
LIBTUX_CAT:681: ERROR: Failure to create message queue
ps: tuxedo在不能啟動時也會打印log信息,查看log對查找問題很有幫助
-------------------------------------
LIBTUX_CAT:681: ERROR: Failure to create message queue
tmloadcf -c ubbcfg查看信息
Ipc sizing (minimum /T values only) ...
Ipc sizing (minimum /T values only) ...
Fixed Minimums Per Processor
SHMMIN: 1
SHMALL: 1
SEMMAP: SEMMNI
SHMALL: 1
SEMMAP: SEMMNI
Variable Minimums Per Processor
SEMUME, A SHMMAX
SEMMNU, * *
Node SEMMNS SEMMSL SEMMSL SEMMNI MSGMNI MSGMAP SHMSEG
------ ------ ------ ------ ------ ------ ------ ------
shx_xd_tuxedo1 495 62 490 A + 1 35 70 1759K
SEMMNU, * *
Node SEMMNS SEMMSL SEMMSL SEMMNI MSGMNI MSGMAP SHMSEG
------ ------ ------ ------ ------ ------ ------ ------
shx_xd_tuxedo1 495 62 490 A + 1 35 70 1759K
where 1 <= A <= 8.
sysctl -a 查看系統信息
kernel.msgmnb = 16384
kernel.msgmni = 16 #too small
kernel.msgmax = 8192
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.shmmax = 33554432
kernel.msgmnb = 16384
kernel.msgmni = 16 #too small
kernel.msgmax = 8192
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.shmmax = 33554432
修改系統參數
/etc/sysctl.conf
增加下面解決
kernel.msgmni = 50
kernel.msgmap = 100
/etc/sysctl.conf
增加下面解決
kernel.msgmni = 50
kernel.msgmap = 100
sysctl生效
#sysctl -p
這個錯誤經常遇到,我在liunux安裝oracle 后經常遇到。其實最簡單的辦法
用tmloadcf -c 來獲得tuxedo的建議參數設置。
-------------------------------------
問題:
ULOG: 105143.test1!tmadmin.12238.1.-2: LIBTUX_CAT:577: ERROR: Unable to register because the slot is already owned by another process
$ 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.
問題:
ULOG: 105143.test1!tmadmin.12238.1.-2: LIBTUX_CAT:577: ERROR: Unable to register because the slot is already owned by another process
$ 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管理,在重復打開的tmadmin中個別命令不能使用,通過help命令可以看到當前可以使用的命令。
-------------------------------------
問題:
174304.test1!WSH.20044.1.0: gtrid x0 x47fb1049 x16e: LIBTUX_CAT:1288: ERROR: File transfer creat failed, file=/var/tmp/TUXAAAa200441, errno=不允許 174304.test1!WSH.20044.1.0:
原因:重復打開tmadmin管理,在重復打開的tmadmin中個別命令不能使用,通過help命令可以看到當前可以使用的命令。
-------------------------------------
問題:
174304.test1!WSH.20044.1.0: gtrid x0 x47fb1049 x16e: LIBTUX_CAT:1288: ERROR: File transfer creat failed, file=/var/tmp/TUXAAAa200441, errno=不允許 174304.test1!WSH.20044.1.0:
gtrid x0 x47fb1049 x16e: WSNAT_CAT:1042: ERROR: tpcall() call failed, tperrno = 7
原因:
1288 ERROR: File transfer creat failed, file=filename, errno=errno_val
DESCRIPTION
The UNIX kernel call creat () failed on filename. This temporary file was being created to transfer a large message between two TUXEDO System processes on the same machine.
ACTION
Check temporary directory's permissions. Check disk space and inode counts for the temporary file system.
-------------------------------------
問題:
105516.test0!TMUSREVT.17177.1.0: gtrid x0 x48105214 xe: CMDTUX_CAT:3129: ERROR: tpenqueue() to qname PAYQUE failed for event EVT_PLC_EFFT tperrno=24
原因:PAYQUE隊列沒有建立,用qmadmin創建隊列。
-------------------------------------
問題:
103331.test1!dydealtasksrv.21551.1.0: ERROR: msgsnd err: (LIBTUX_CAT:669: ERROR: Message operation failed because of the invalid message queue identifier)
原因:
1288 ERROR: File transfer creat failed, file=filename, errno=errno_val
DESCRIPTION
The UNIX kernel call creat () failed on filename. This temporary file was being created to transfer a large message between two TUXEDO System processes on the same machine.
ACTION
Check temporary directory's permissions. Check disk space and inode counts for the temporary file system.
-------------------------------------
問題:
105516.test0!TMUSREVT.17177.1.0: gtrid x0 x48105214 xe: CMDTUX_CAT:3129: ERROR: tpenqueue() to qname PAYQUE failed for event EVT_PLC_EFFT tperrno=24
原因:PAYQUE隊列沒有建立,用qmadmin創建隊列。
-------------------------------------
問題:
103331.test1!dydealtasksrv.21551.1.0: ERROR: msgsnd err: (LIBTUX_CAT:669: ERROR: Message operation failed because of the invalid message queue identifier)
errno=22,qid=208507,buf=-9223372032559197904,bytes=293,flag=2048 103331.test1!dydealtasksrv.21551.1.0: LIBTUX_CAT:1286: ERROR: tpreturn could not send reply TPEOS - operating
system error
原因:隊列沒有找到,可能是前台在后台返回前斷開了服務連接,所以tpreturn時找不到
接收消息隊列。或是其他原因導致隊列被刪除如 ipcrm -q qid
-------------------------------------
問題:
101503.lf2qjf2!TUXAGENT.17788: LIBTUX_CAT:536: ERROR: Unable to create request queue 101503.lf2qjf2!TUXAGENT.17788: LIBTUX_CAT:248: ERROR: System init function failed, Uunixerr
原因:隊列沒有找到,可能是前台在后台返回前斷開了服務連接,所以tpreturn時找不到
接收消息隊列。或是其他原因導致隊列被刪除如 ipcrm -q qid
-------------------------------------
問題:
101503.lf2qjf2!TUXAGENT.17788: LIBTUX_CAT:536: ERROR: Unable to create request queue 101503.lf2qjf2!TUXAGENT.17788: LIBTUX_CAT:248: ERROR: System init function failed, Uunixerr
= : msgget: No space left on device
原因:達到OS系統最大消息上限。使用ipcs -q|wc -l 查看當時建立得消息隊列。
使用kmtune|grep msgmni 查看系統消息上限。
-------------------------------------
問題:
111756.test1!BBL.23626.1.0: 12-11-2008: Tuxedo Version 8.1, 64-bit, Patch Level (none)
111756.test1!BBL.23626.1.0: LIBTUX_CAT:1000: ERROR: System clock has been reset to prior time. Reset again to time after Thu Dec 11 11:17:56 2008
.
111756.test1!BBL.23626.1.0: LIBTUX_CAT:248: ERROR: System init function failed, Uunixerr =
111756.test1!BBL.23626.1.0: CMDTUX_CAT:26: INFO: The BBL is exiting system
111756.test1!tmboot.23625.1.-2: 12-11-2008: Tuxedo Version 8.1, 64-bit
111756.test1!tmboot.23625.1.-2: CMDTUX_CAT:825: ERROR: Process BBL at ANNT_TEST failed with /T tperrno (TPESYSTEM - internal system error)
111756.test1!tmboot.23625.1.-2: WARN: No BBL available on site ANNT_TEST.
Will not attempt to boot server processes on that site.
原因:系統修改OS時間導致,重新創建TLOG 日志后此問題解決。
crdl 、crlog
-------------------------------------
問題:
ERROR: File transfer creat failed, file=/var/tmp/TUXAAAa248801, errno=Permission denied
122459.test1!Grant.24880.1.0: LIBTUX_CAT:1286: ERROR: tpreturn could not send reply TPEOS - operating system error
原因:服務器多用戶tuxedo環境時,創建的tmp里的文件已經存在,重啟解決此問題。
原因:達到OS系統最大消息上限。使用ipcs -q|wc -l 查看當時建立得消息隊列。
使用kmtune|grep msgmni 查看系統消息上限。
-------------------------------------
問題:
111756.test1!BBL.23626.1.0: 12-11-2008: Tuxedo Version 8.1, 64-bit, Patch Level (none)
111756.test1!BBL.23626.1.0: LIBTUX_CAT:1000: ERROR: System clock has been reset to prior time. Reset again to time after Thu Dec 11 11:17:56 2008
.
111756.test1!BBL.23626.1.0: LIBTUX_CAT:248: ERROR: System init function failed, Uunixerr =
111756.test1!BBL.23626.1.0: CMDTUX_CAT:26: INFO: The BBL is exiting system
111756.test1!tmboot.23625.1.-2: 12-11-2008: Tuxedo Version 8.1, 64-bit
111756.test1!tmboot.23625.1.-2: CMDTUX_CAT:825: ERROR: Process BBL at ANNT_TEST failed with /T tperrno (TPESYSTEM - internal system error)
111756.test1!tmboot.23625.1.-2: WARN: No BBL available on site ANNT_TEST.
Will not attempt to boot server processes on that site.
原因:系統修改OS時間導致,重新創建TLOG 日志后此問題解決。
crdl 、crlog
-------------------------------------
問題:
ERROR: File transfer creat failed, file=/var/tmp/TUXAAAa248801, errno=Permission denied
122459.test1!Grant.24880.1.0: LIBTUX_CAT:1286: ERROR: tpreturn could not send reply TPEOS - operating system error
原因:服務器多用戶tuxedo環境時,創建的tmp里的文件已經存在,重啟解決此問題。