DBMS Tuning & My Life

TUXEDO 11gR1 Installation Guide for Beginner.

leave a comment »

Recently, I installed TUXEDO 11gR1 on my test system. Actually, the installation isn’t difficult, if you’re already familiar with TUXEDO enviroment. But, If you aren’t, maybe you will undergo trial and error. Below is the steps of installation.

(1) Download the TUXEDO engine.
Download the TUXEDO engine.
I downloaded “Oracle Tuxedo 11gR1 (11.1.1.3.0) for Linux x86-64 (64-bit)” and that file name is tuxedo111130_64_Linux_01_x86.bin.

(2) Engine installation on the server.
2.1 Upload the tuxedo engine file to the server by FTP
2.2 Below is the steps of TUXEDO engine installation
tux01

tux02

tux03

tux04

tux05

tux06

(3) Create a O/S user for TUXEDO and setup the environment.
[root@rac1 ~]# useradd -d /home/tuxadm -g oinstall -s /bin/bash tuxadm
[root@rac1 ~]# passwd tuxadm
Changing password for user tuxadm.
New UNIX password: ********
Retype new UNIX password: ********
passwd: all authentication tokens updated successfully.

[root@rac1 ~]# chown -R tuxadm:oinstall /ora01/tuxedo

[root@rac1 ~]# su - tuxadm

$ vi .bash_profile
export TMP=/tmp
export ORACLE_HOME=/ora01/app/oracle/product/11.2.0/db_1

export PATH=/usr/sbin:$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;

export TUXDIR=/ora01/tuxedo/tuxedo11gR1
export JAVA_HOME=$TUXDIR/jre
export JVMLIBS=$JAVA_HOME/lib/i386/server
export PATH=.:$TUXDIR/bin:$JAVA_HOME/bin:$PATH
export COBCPY=:$TUXDIR/cobinclude
export COBOPT="-C ANS85 -C ALIGN=8 -C NOIBMCOMP -C TRUNC=ANSI -C OSEXT=cbl"
export SHLIB_PATH=$TUXDIR/lib:$JVMLIBS:$SHLIB_PATH
export LIBPATH=$TUXDIR/lib:$JVMLIBS:$LIBPATH
export LD_LIBRARY_PATH=$TUXDIR/lib:$JVMLIBS:$LD_LIBRARY_PATH
export WEBJAVADIR=$TUXDIR/udataobj/webgui/java
export APPS_HOME=$TUXDIR/APPS
export APPDIR=$TUXDIR/APPS
export TLOGDEVICE=$APPDIR/TLOG
export TUXCONFIG=$TUXDIR/APPS/tuxconfig
export ULOGPFX=$APPDIR/ULOG
export FLDTBLDIR=$TUXDIR/udataobj:$APPDIR
export WSNADDR=//192.168.0.50:9901

(4) Edit a ubbconfig file and compile the ubbconfig file.
$ cd $APPDIR
$ vi ubbconfig
*RESOURCES
IPCKEY 123456
MASTER SITE1
MAXACCESSERS 100
MAXSERVERS 20
MAXSERVICES 20
MODEL SHM
LDBAL N

*MACHINES
rac1 # The name of machine must same with the result of 'uname -n'.
LMID=SITE1
TUXDIR="/ora01/tuxedo/tuxedo11gR1"
APPDIR="/ora01/tuxedo/tuxedo11gR1/APPS"
TUXCONFIG="/ora01/tuxedo/tuxedo11gR1/APPS/tuxconfig"
ULOGPFX="/ora01/tuxedo/tuxedo11gR1/APPS/ULOG"
TLOGDEVICE="/ora01/tuxedo/tuxedo11gR1/APPS/TLOG"
TLOGNAME=TLOG
MAXWSCLIENTS=10

*GROUPS
DEFAULT: LMID=SITE1
GROUP1 GRPNO=1
TMSNAME=TMS_ORA11G TMSCOUNT=5
OPENINFO="Oracle_XA:Oracle_XA+SqlNet=ORA11G2+Acc=P/scott/tiger+SesTm=60"
WSGRP GRPNO=2

*SERVERS
DEFAULT: CLOPT="-A"
sel_his SRVGRP=GROUP1 SRVID=1
sel_his SRVGRP=GROUP1 SRVID=2
sel_his SRVGRP=GROUP1 SRVID=3
sel_his SRVGRP=GROUP1 SRVID=4
noarray_ins SRVGRP=GROUP1 SRVID=101
noarray_ins SRVGRP=GROUP1 SRVID=102
WSL SRVGRP=WSGRP SRVID=20
CLOPT="-A -- -d /dev/tcp -n //192.168.0.50:9901 -w WSH -m 1 -M 4 -x 10"
*SERVICES
DEFAULT: AUTOTRAN=N
SEL_HIS
INSERT

$ tmloadcf ubbconfig
Initialize TUXCONFIG file: /ora01/tuxedo/tuxedo11gR1/APPS/tuxconfig [y, q] ? y

(5) Make a TLOG file.
$ cd $APPDIR
$ vi crtlog.sh
if [ "${1}" = "-m" ] ; then
#
# If -m specified, create device and TLOG
#
tmadmin <<-!
echo
crdl -z ${TLOGDEVICE}
crlog -m SITE1
q
!
elif [ -z "${1}" ] ; then
#
# If -m not specified, create device only
#
tmadmin -c <<-!
echo
crdl -z ${TLOGDEVICE}
q
!
else
#
# If other things specified, error
#
echo "$0: usage: $0 [-m]"
exit 2
fi

if [ ${?} -eq 0 ] ; then
echo "`basename ${0}` successful."
exit 0
fi

$ chmod 755 crtlog.sh
$ crtlog.sh -m
tmadmin - Copyright (c) 1996-2010 Oracle.
Portions * Copyright 1986-1997 RSA Data Security, Inc.
All Rights Reserved.
Distributed under license by Oracle.
Tuxedo is a registered trademark.
No bulletin board exists. Entering boot mode.

> Echo now on.

> crdl -z /ora01/tuxedo/tuxedo11gR1/APPS/TLOG
Device created: /ora01/tuxedo/tuxedo11gR1/APPS/TLOG

> crlog -m SITE1
crlog successfully completed.

> q
crtlog.sh successful.

(6) Build TMS server for XA transaction.
$ cd $APPDIR
$ buildtms -o TMS_ORA11G -r Oracle_XA
$ cp TMS_ORA11G $TUXDIR/bin

(7) Boot TUXEDO engine

Written by sean70kim

July 19, 2013 at 7:04 am

Posted in Oracle

Tagged with ,

Leave a comment