--Red Hat Linux AS 3上安装Tuxedo81
在Red Hat Linux AS 3上安装Tuxedo81
1 准备安装环境和安装文件
1.1 安装环境
内存:256MB以上;硬盘:1GB以上;CPU:PIII以上。
操作系统:Red Hat Linux AS 3。
1.2 Tuxedo安装文件
tuxedo81_linux_as3_i386.bin
lic.txt
1.3 Tuxedo补丁文件
R254_TUX81_I-RDH30.tar.Z
===============================
2 创建用户和组群
以root用户登录,创建tuxedo用户和dba组。
[root@vmlinux root]# groupadd dba
[root@vmlinux root]# useradd -g dba tuxedo
[root@vmlinux root]# passwd tuxedo
3 上传Tuxedo的安装文件和补丁文件,并解压缩
使用FTP工具,把相Tuxedo的安装文件上传到Linux服务器的“/home/tuxedo”目录;
然后以tuxedo用户登录,解压缩Tuxedo的补丁文件。
[tuxedo@vmlinux tuxedo]$ uncompress R254_TUX81_I-RDH30.tar.Z
[tuxedo@vmlinux tuxedo]$ tar xvf R254_TUX81_I-RDH30.tar
4 安装Tuxedo(全部安装)
以root用户登录,依次执行以下的命令行,会出现Tuxedo的图形安装界面。
[root@vmlinux root]# xhost +
[root@vmlinux root]# su - tuxedo
[tuxedo@vmlinux tuxedo]$ chmod 755 tuxedo81_linux_as3_i386.bin
[tuxedo@vmlinux tuxedo]$ ./tuxedo81_linux_as3_i386.bin
注意:安装Tuxedo时,必须使用图形界面,不能使用文本界面。。
由于Tuxedo采用的是图形安装界面,用户根据向导就能很容易完成安装,所以下面仅指出一些关键步骤。
4.1 选择安装类型
Full Install
4.2 输入监听密码
tuxedo
4.3 SSL安装选择
no
4.4 License安装选择
yes
5 安装Tuxedo客户端
与上面的安装过程基本相同,只是选择安装类型为“Full Client Install”即可,这里不再赘述。
6 安装Tuxedo补丁
以tuxedo用户登录,依次执行命令行,然后根据向导依次输入补丁文件的所有者和组就可以了。
[tuxedo@vmlinux tuxedo]$ export TUXDIR=/home/tuxedo/bea/tuxedo8.1
[tuxedo@vmlinux tuxedo]$ ./install
7 删除安装介质
执行下面的命令行,删除Tuxedo的安装介质,释放磁盘空间。
[tuxedo@vmlinux tuxedo]$ rm tuxedo81_linux_as3_i386.bin
[tuxedo@vmlinux tuxedo]$ rm R254_TUX81_I-RDH30.tar
===============================
安装过程:
1、使用useradd tuxedo命令建立tuxedo用户
2、使用passwd tuxedo修改密码
3、修改tuxedo安装文件的执行权限
chmod 755 tuxedo81_linux.bin
4、切换到tuxedo用户
5、开始安装
./tuxedo81_linux.bin -i console
出现错误:
Error: failed /tmp/install.dir.6675/Linux/resource/jre/lib/i386/client/libjvm.so, because libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory
解决办法:
下载compat-libstdc++-7.3-2.96.118.i386.rpm
并执行rpm -ivh /tmp/compat-libstdc++-7.3-2.96.118.i386.rpm
6、按五个回车
7、是否同意有关license政策?输入y并按回车
8、选择安装类型,共7项:选择1并按回车
9、创建安装目录:输入1并按回车
10、输入安装目录:/home/bea并按回车,前提要保证home目录可写
11、选择目录:输入2并按回车
12、确认安装的相关信息:输入两个回车
13、配置监听服务,提示输入密码:tuxedo
14、提示是否安装SSL:输入2并按回车
15、提示是否安装license:输入1并按回车
16、提示输入license文件的路径:输入/tmp/tuxedo81_linux_lic.txt并按回车
17、安装完成,输入回车退出安装
---------------------------------------
验证simpapp例子:
1、设置环境变量
2、编译客户端程序
buildclient -o simpcl -f simpcl.c
3、编译服务端程序
buildserver -o simpserv -f simpserv.c -s TOUPPER
4、修改配置文件并加载
tmloadcf ubbsimple
输入y并按回车
5、执行tmboot –y启动应用程序
6、执行tmadmin并使用psr命令可以看到有一个服务simpserv已经启动
7、执行ctrl+D退出tmadmin,执行./simpcl “hello”
返回HELLO,验证成功
8、执行tmshutdown –y关闭应用程序
===============================
一. 以root身份建立tuxedo用户,并以tuxedu用户登陆,此用户将做为以后tuxedo管理员,用户默认目录为/home/tuxedo;
二. 用FTP把安装文件(tuxedo81_linux.bin)和用户许可证书文件(lic.txt)传到/home/tuxedo目录中;
三. 配置环境变量,.bash_profile文件,附文末;
四. 进入/home/tuxedo目录中,执行sh tuxedo81_linux.bin;
出错1--------------------------------------------------
[tuxedo@TUXSVR4 tuxedo]$ sh tuxedo81_linux.bin
Preparing to install...
The included VM could not be uncompressed. Please try to download
the installer again and make sure that you download using 'binary'
mode. Please do not attempt to install this currently downloaded copy.
解决办法:
脚本使用uncompress命令,但是linux下没有。使用cp /bin/gunzip /bin/uncompress
出错2----------------------------------------------------------------
[tuxedo@TUXSVR4 tuxedo]$ sh tuxedo81_linux.bin
Preparing to install...
/tmp/install.dir.22860/Linux/resource/jre/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory
解决办法:
[root@TUXSVR4 root]# rpm -ivh /tmp/compat-libstdc++-7.3-2.96.118.i386.rpm
warning: /tmp/compat-libstdc++-7.3-2.96.118.i386.rpm: V3 DSA signature: NOKEY, k
ey ID db42a60e
Preparing... ########################################### [100%]
1:compat-libstdc++ ########################################### [100%]
参考:
http://dev2dev.bea.com.cn/bbs/thread.jspa?forumID=4&threadID=13265&messageID=72337#72337
https://www.redhat.com/archives/fedora-list/2005-February/msg04944.html【注:】 我是在centos4.6上安装的,也出现这个问题。只要将安装盘中的一个rpm包安装就可以了 compat-libstdc++-296....后面的记不得了,就安装这个就可以了
出错3-----------------------------------------------------------------
[tuxedo@TUXSVR4 tuxedo]$ sh tuxedo81_linux.bin
Preparing to install...
Error occurred during initialization of VM
Unable to load native library: /tmp/install.dir.14985/Linux/resource/jre/jre/lib/i386/libjava.so: symbol __libc_wait,
version GLIBC_2.0 not defined in file libc.so.6 with link time reference
解决办法:
(解决这个报错花费了最多的时间,最少半天功夫,寻找了很多资料,尝试来了各种办法才搞定,已经到了崩溃的边缘:)
在tuxedo用户下执行
gcc -shared -fpic -o libcwait.so libcwait.c
chmod a+x /home/tuxedo/tuxedo81_linux.bin
LD_PRELOAD=/home/tuxedo/libcwait.so /home/tuxedo/tuxedo81_linux.bin
注意,是将libcwtit.c编译成libcwait.so文件,libcwait.c下载地址ftp://people.redhat.com/drepper/libcwait.c,
另要确认安装了C语言编译工具gcc。当然,这个问题的根源我也不懂,我是按别人的方法做的,
并且接下来的安装都要执行完整的LD_PRELOAD=/home/tuxedo/libcwait.so /home/tuxedo/tuxedo81_linux.bin,而不是
先前的sh tuxedo81_linux.bin
参考:
https://www.redhat.com/archives/fedora-list/2004-July/msg00315.html
出错4-----------------------------------------------------------------
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
解决办法:
以root登录执行
xhost +192.173.1.4 (本机Ip地址)
出错5-----------------------------------------------------------------
[tuxedo@TUXSVR4 tuxedo]$ LD_PRELOAD=/home/tuxedo/libcwait.so /home/tuxedo/tuxedo81_linux.bin
Preparing to install...
Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
Stack Trace:
java.lang.NoClassDefFoundError
....
解决办法:
先怀疑jdk问题,尝试安装 jdk,下载jdk,并配置jdk环境
chmod u+x ./j2sdk-1_4_2_04-linux-i586.bin
./j2sdk-1_4_2_04-linux-i586.bin
mkdir /usr/java
rpm -ivh j2sdk-1_4_2_04-linux-i586-rpm
还是不能启用图形节目安装,最后只好加 -i console 不启图形界面进行安装,即
LD_PRELOAD=/home/tuxedo/libcwait.so /home/tuxedo/tuxedo81_linux.bin -i console
不过这个问题,如果非要启用图形界面安装,一直没找到好的办法解决,始终还是上面这个报错,还请高手指点。
参考:
jdk下载
http://java.sun.com/products/archive/j2se-eol.html
http://www.javazy.com/page/index.asp?sortid=468&id=1024
出错6-------------------------------------------------------------------------
tuxedo程序总算装完了,很高兴地去启动程序,又来了个报错,汗!!!
[tuxedo@TUXSVR4 tuxedo]$ tmboot -y
tmboot: internal error: CMDTUX_CAT:754: ERROR: error processing configuratio
n file
tmboot: internal error: CMDTUX_CAT:1360: ERROR: configuration file not found
解决办法:
从另外一台已装好tuxedo机器拷贝 tuxconfig文件到相应目录
参考:
http://dev2dev.bea.com.cn/bbs/thread.jspa?forumID=4&threadID=223&messageID=1483#1483
出错7------------------------------------------------------------------
这个问题也很郁闷,好像是tuxedo的权限问题,花了半天时间想着给他权限,还是不行
[tuxedo@TUXSVR4 tuxedo]$ tmboot -y
tmboot: CMDTUX_CAT:1113: ERROR: Must be the administrator to execute this command
解决办法:
删除tuxconfig
修改ubb里面的主机名称等变量;
修改必须的环境变量。
重新tmloadcf -y ubb 
出错8------------------------------------------------------------------
tmloadcf cannot run on a non-master node
解决办法:
ubb文件中主机名大小写弄错,即ubb文件中主机名要与实际相一致,包括大小写,改正即可
出错9------------------------------------------------------------------
[tuxedo@TUXSVR4 tuxedo]$ tmboot -y
Booting all admin and server processes in /home/tuxedo/appdir/tuxconfig
INFO: BEA Tuxedo, Version 8.1
INFO: Serial #: 650522264138-1743831940315, Expiration NONE, Maxusers 30
INFO: Licensed to: MOLSS China
Booting admin processes ...
exec BBL -A :
Failed.
tmboot: WARN: No BBL available on site XC_SERV.
Will not attempt to boot server processes on that site.
Booting server processes ...
0 processes started.
解决办法:
启动tmadmin
crdl -b 3000 -z appdir/TLOG/TLOG
crlog -m XC_SERV4
参考:
http://dev2dev.bea.com.cn/bbs/thread.jspa?forumID=4&threadID=1620&messageID=6816#6816
http://dev2dev.bea.com.cn/bbs/thread.jspa?forumID=4&threadID=24578&messageID=144089#144089


在接下来就是tuxedo应用方面配置的问题,由专门的软件人员搞定,我的任务算完成了!
感谢dev2dev.bea.com.cn论坛及热心网友!
附:.bash_profile
---------------------------------
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
USERNAME=""
export USERNAME
export BASH_ENV
export PATH
export TUXDIR=/home/tuxedo/tuxedo8.1
export APPDIR=/home/tuxedo/appdir
export TUXCONFIG=/home/tuxedo/appdir/tuxconfig
export ORACLE_HOME=/home/oracle/product/9.2.0
export ORACLE_SID=xcsb
#export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"
export NLS_LANG="american_america.zhs16gbk"
export PATH=$TUXDIR/bin:$APPDIR:$ORACLE_HOME/bin:$APPDIR/bin:.:$PATH
export LANG=C
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib:$TUXDIR/lib:$LD_LIBRARY_PATH
export LC=en_US
export CC=cc
#export DISPLAY=178.22.11.199:1.0
export TMOUT=100000000
----------------------------------------------
(全文完)

浙公网安备 33010602011771号