Tuxedo应用指南
- 格式:ppt
- 大小:505.00 KB
- 文档页数:104
tuxedo日常维护手册变更记录目录变更记录错误!未定义书签。
第一章安装步骤错误!未定义书签。
安装前的准备工作错误!未定义书签。
创建tuxedo软件对应用户错误!未定义书签。
上传安装介质包错误!未定义书签。
软件安装错误!未定义书签。
tuxedo软件安装错误!未定义书签。
配置环境变量错误!未定义书签。
测试错误!未定义书签。
第二章系统检查错误!未定义书签。
tuxedo 日志检查错误!未定义书签。
查看tuxedo版本错误!未定义书签。
tuxedo正常启动和停止错误!未定义书签。
控制台进入和退出错误!未定义书签。
通过控制台查看系统状态错误!未定义书签。
查看服务运行情况错误!未定义书签。
查看交易运行情况错误!未定义书签。
查看队列信息错误!未定义书签。
查看客户端信息错误!未定义书签。
sh命令直接执行控制台命令错误!未定义书签。
查看服务器运行情况错误!未定义书签。
日常其他命令错误!未定义书签。
域控制台的进入和退出错误!未定义书签。
手动连接域错误!未定义书签。
查看域网关的连接情况错误!未定义书签。
对ubb和dm文件做语法检查错误!未定义书签。
反编译tuxconfig和dmxconfig 文件错误!未定义书签。
第三章tuxedo故障处理错误!未定义书签。
Can’t attach BBL错误!未定义书签。
针对日志报错信息处理错误!未定义书签。
安装步骤安装前的准备工作创建tuxedo软件对应用户如已创建了单独的用户,则不需再另建用户,一般新建的用户的主目录在/opt(空闲空间较多)下。
建议在用户下单独安装,不与其他用户共享。
useradd -d 目录-m 用户名passwd 用户名注:1、设置密码位数不少于8位,2、密码中必须包含字母(大小写)、数字和特殊字符中的两种。
chown –R 用户名目录su –用户名上传安装介质包将安装介质上传至服务器,根据操作系统选择相应的tuxedo版本。
AIX 32 64HPUX 32 64LINUX 32 64WINDOWS 32 64软件安装tuxedo软件安装修改安装介质执行权限运行安装命令运行./ -i console命令开始安装,其中那个-mode=console代表选择字符模式安装直接回车,到下一步。
TUXEDO在UNIX端的安装与使用tuxedo可用默认配置安装在自己的指定目录下,也可以在SCOADMIN中建立一个TUXEDO的用户和组然后进行安装,以下是以自己的指定目录为说明。
在安装好的tuxedo\udataobj\目录下有一个lic.txt文件,限定tuxedo的使用时间与最多USERS。
2.配置整理如下:以下配置将如何一步一步在自己的工作目录中建立自己的应用程序。
A.创建自己的工作目录;如:/usr/xafB.为了简单,可将tuxedo\apps目录下的simpapp目录copy 到自己的目录下。
\tuxedo\在这个目录中有个特殊文件:tux.env用来设置环境变量,也copy到/usr/xaf /simpapp下。
C.试着写一个setenv:../tux.envAPPDIR=/usr/xaf/simpapp; export APPDIRTUXCONFIG=$APPDIR/tuxconfig; export TUXCONFIGNLSPATH=$TUXDIR/locale/C; export NLSPATHLANG=C; export LANGWSNADDR=//172.18.2.88:8000; export WSNADDR将服务器的地址与端口号设好:端口号可以任意指定,但不要使用特殊的端口号。
D.设置环境变量:可以使用set查看环境变量是否设置成功。
E.我们再来看看应用程序的ubb配置。
假设文件为ubbsimple。
1. *RESOURCES2. IPCKEY 1055113. DOMAINID simpapp4. MASTER simple5. MAXACCESSERS 10 //可以自己设定大小没有限制6. MAXSERVERS 5 //可以自己设定大小没有限制7. MAXSERVICES 10 //可以自己设定大小没有限制8. MODEL SHM (单机模式[MP多机模式])9. LDBAL N10. *MACHINES11. DEFAULT:12 APPDIR="/usr/xaf/simpapp"13 TUXCONFIG="/usr/xaf/simpapp/tuxconfig"14 TUXDIR="/usr/xaf"15.xafsco LMID=simple16 MAXWSCLIENTS=517 *GROUPS18 GROUP119 LMID=simple GRPNO=1 OPENINFO=NONEGROUP2LMID=simple G RPNO=2 TMSNAME=TMS_INFOOPENINFO=”INFORMIX-OnLine:数据库名”20 *SERVERS21DEFAULT:22 simpserv SRVGRP=GROUP1 SRVID=1WSL SRVGRP=GROUP1 SRVID=4//当SRVID有多个时,它们之间应有间隔。
TUXEDO教程
Tuxedo是一种分布式事务处理和应用程序开发环境,用于构建和部
署高性能,可靠的事务处理应用程序和服务。
Tuxedo(Transaction)基
于客户/服务器架构,这意味着请求消息的发送者是客户端,接收这些消
息的是服务器。
Tuxedo的客户/服务器架构能够将计算任务多源分布在多台服务器中,利用系统资源相结合,来满足用户执行复杂应用程序的需求。
客户/服务
器架构可以支持C/S(Client/Server)架构,主机/代理架构和事件驱动
架构。
Tuxedo中的客户端和服务器端都提供了一种服务协定,它定义了同
一应用程序中客户与服务器通信的规范。
Tuxedo服务协定提供了各种规
范的数据储存和储存格式规范,以及确定服务调用请求及响应的消息结构等。
Tuxedo支持事务处理服务(TMS),这使得应用程序可以安全地处理
复杂的逻辑实体,而不会受到现有系统失败的影响。
Tuxedo提供了一种
分布式事务处理模型,它使应用程序能够在不同的服务器上安全地执行事务,以防止数据损坏和系统崩溃。
Tuxedo还提供了可扩展的事务处理环境,允许用户设计符合客户/服
务器模式的应用程序。
Tuxedo软件安装及使用1前言Tuxedo是ORACLE公司的分布式运算环境下开发和管理三层客户/服务器结构应用系统的中间件产品,具备分布式事务处理和应用通信功能,并提供完善的各种服务来建立、运行和管理关键任务应用系统。
Tuxedo屏蔽分布式环境中各种通信协议、硬件体系结构、操作系统、数据库和其它应用服务等方面的差异,使得分布于网络节点上的应用程序的各个单元部件之间能够进行互操作,并协调操作的一致性和完整性,最大限度地节省系统资源,提高系统性能。
开发人员能够用它建立跨多个硬件平台、数据库和操作系统的可互操作的分布式应用系统,因而广泛地应用于金融、电信、制造业等各行各业的核心业务系统。
本文简要介绍Tuxedo的安装和使用,使得读者可以快速入门。
2软件安装为避免多机部署时可能出现的用户组、用户、目录位置问题,建议各机器的安装tuxedo 的用户组、用户名、目录位置均相同。
各资源规划如下表:2.1创建组及用户为避免安全性问题,应创建专属的用户和用户组运行tuxedo,并不得使用root。
本文档假定用户名是tuxedo,用户组也是tuxedo。
(1)创建tuxedo组;(2)创建tuxedo用户;(3)设置tuxedo用户登录密码;(4)创建安装目标目录并授权。
2.2安装GCCTuxedo示例程序使用C语言编写,为编译示例程序,需安装C语言开发环境。
将安装光盘介质mount到操作系统相应目录(如/media)后,参考下列命令安装开发环境。
安装开发环境的详细命令,可以参考操作系统相关手册。
2.3安装JRETuxedo的安装包需要JRE才能运行,因此需要先安装JRE,并设置JA V A_HOME环境变量指向新安装的JRE,设置PA TH添加java所在的目录。
本文档选择JDK的server-rumtime 版本作为JA V A运行环境。
(1)上传安装包server-jre-8u162-linux-x64.tar.gz到/tmp。
Tuxedo教程全解contents •Tuxedo概述•Tuxedo核心组件•Tuxedo应用开发•Tuxedo系统部署与配置•Tuxedo性能优化与监控•Tuxedo实战案例解析目录Tuxedo概述Tuxedo定义与特点Tuxedo是一种中间件Tuxedo的特点Tuxedo应用领域金融行业电信行业其他行业Tuxedo发展历程Tuxedo的起源Tuxedo的发展Tuxedo 的未来Tuxedo核心组件ATMI编程接口支持多种编程语言,如提供了事务管理、通信、安全等方面的功能。
Tuxedo服务器123Tuxedo客户端010203Tuxedo管理工具Tuxedo应用开发开发环境搭建安装Tuxedo系统配置环境变量选择开发工具建立项目工程设计服务接口编写服务代码配置服务属性编译和部署服务服务开发流程根据业务需求设计客户端界面,包括输入、输出显示等。
设计客户端界面编写客户端代码配置客户端属性编译和部署客户端使用Tuxedo 提供的API 编写客户端代码,实现与服务端的交互。
在配置文件中配置客户端相关属性,如连接的服务地址、端口等。
使用Tuxedo 提供的编译工具将客户端代码编译成可执行文件,并部署到用户环境中。
客户端开发流程日志调试通过查看Tuxedo系统日志和应用程序日志定位问题原因。
跟踪调试使用Tuxedo提供的跟踪工具对服务调用进行跟踪调试,查看调用过程和结果。
单元测试针对每个服务或函数编写单元测试代码进行测试验证功能正确性。
集成测试将所有服务集成在一起进行测试验证整个系统的功能正确性。
调试与测试方法Tuxedo系统部署与配置系统部署方案单机部署01分布式部署02集群部署03服务器参数配置事务管理配置资源管理配置包括客户端名称、服务器地址、端口号等参数的配置。
客户端参数配置配置客户端事务的提交和回滚方式,确保客户端与服务器之间的事务一致性。
事务管理配置配置客户端的负载均衡策略,实现请求的均匀分配和故障转移。
引言:本文是关于Tuxedo培训教程的第二部分,旨在深入介绍Tuxedo技术的相关知识和应用。
Tuxedo是一种高性能、高可用性的分布式应用服务器,广泛应用于大规模事务处理和企业级应用领域。
本文将分为五个方面对Tuxedo进行详细阐述,帮助读者更好地理解和应用该技术。
正文:一、Tuxedo安装与配置1. Tuxedo系统要求:包括硬件和软件要求,例如操作系统、内存、存储等方面的要求。
2. Tuxedo的安装步骤:详细介绍如何下载、安装和配置Tuxedo软件。
3. Tuxedo的配置文件:包括DOMAINS、UBBCONFIG等配置文件的作用和常用参数设置。
4. Tuxedo的环境变量设置:介绍如何设置Tuxedo相关的环境变量,确保系统能正常运行。
二、Tuxedo应用开发1. Tuxedo编程模型:介绍Tuxedo的编程模型,包括服务(Service)、服务器(Server)和客户端(Client)的概念和作用。
2. Tuxedo事务管理:详细解释Tuxedo事务的概念和使用方法,包括事务的起始、提交和回滚操作。
3. Tuxedo服务开发:介绍如何编写和发布Tuxedo服务,包括服务的注册、发布和请求处理过程。
4. Tuxedo客户端开发:讲解如何编写Tuxedo客户端程序,包括连接Tuxedo服务、发送请求和接收响应等步骤。
5. Tuxedo编程示例:通过实际的编程示例演示Tuxedo应用开发的流程和技巧,帮助读者更好地理解和应用。
三、Tuxedo监控与调优1. Tuxedo监控工具:介绍Tuxedo自带的监控工具,如tmadmin和tmj,用于监控和管理Tuxedo域。
2. Tuxedo性能调优:给出一些Tuxedo性能调优的建议和方法,包括资源配置、线程池设置等方面。
3. Tuxedo故障排查:介绍常见的Tuxedo故障和排查方法,如错误日志分析、日志级别配置等。
4. Tuxedo性能分析:介绍常用的性能分析工具和方法,用于定位和解决Tuxedo应用的性能瓶颈问题。
TUXEDO教程TUXEDO(The UniX Environment Developed for Operation)是一个基于UNIX的操作系统,它主要用于日常办公和个人使用。
TUXEDO具有简洁、稳定、高效的特点,而且非常容易上手。
在本教程中,我将为大家介绍TUXEDO的基本操作和一些常用功能。
第一部分:TUXEDO的安装和设置第二步:设置TUXEDO安装完成后,你需要对TUXEDO进行一些基本的设置。
例如,你可以设置语言和时区,还可以选择你喜欢的桌面环境。
在这一步,你应该根据自己的需求进行个性化设置。
第二部分:TUXEDO的基本操作1.系统登录启动TUXEDO后,你将会看到一个登录界面。
输入你的用户名和密码,然后点击登录按钮,你就可以进入系统了。
2.桌面环境3.文件管理在TUXEDO中,你可以使用Nautilus(GNOME)、Dolphin(KDE Plasma)等文件管理器来浏览你的文件夹和文件。
你可以通过双击文件夹打开它,或者使用右键菜单进行一些操作,比如复制、剪切、重命名等。
4.应用程序的安装和卸载5.系统更新6.终端操作TUXEDO提供了一个终端,你可以使用它来进行一些高级操作,比如安装软件包、管理用户、执行命令等。
通过打开终端,你可以输入一些命令来完成你想要的操作。
例如,你可以使用“sudo apt-get install<package>”来安装软件包。
第三部分:TUXEDO的高级功能1.多用户管理2.网络设置3.数据备份和恢复在TUXEDO中,你可以使用备份工具来备份你的重要文件和数据。
通过备份工具,你可以选择要备份的文件和文件夹,然后设置备份的位置和计划。
当你需要恢复数据时,只需使用备份工具来选择要恢复的文件和备份位置即可。
4.安全和隐私总结:通过这个教程,你应该已经了解了TUXEDO的基本操作和一些常用功能。
希望这个教程能够帮助你更好地使用TUXEDO,并享受到它简洁、稳定和高效的特点。
tuxedo命令和配置的详细解释及应用实例域的组成BDMCONFIG:二进制配置文件DMADM:域管理服务器,管理多个GWADMGWADM:运行时网关管理服务器,从DMADM服务器上获取域信息GWTDOMAIN:是一个网关进程,在域之间转发消息tmshutdown/tmboot -s 服务名按服务名停/启单个服务tmshutdown/tmboot -S (大写的S)停/启所有服务tmshutdown/tmboot -i 进程号按进程号停/启单个服务tmshutdown/tmboot -g 组名字按组停/启服务tmshutdown/tmboot -y -w1 按用户停/启服务tmloadcf -n 文件名只做语法检查不编译tmloadcf -y 文件名编译二进制文件tmloadcf -c 文件名测试IPC资源最小需求tmadmin -v 版本tmadmin>bbp 查BB的参数bbs BB统计信息pclt 连接客户端信息psr server信息psc service信息pt 当前事物信息pq 队列信息echo psr|tmadmin|grep -v IDLEecho psr|tmadmin|sort +4echo psc|tmadmin|sort +6echo pq|tmadmin|sort +4echo pclt|tmadmin|grep -v WSH|grep -v tmadmin以下是tmadmin命令的printserver(简写为psr)的简单输出。
列号描述1. 服务的可执行文件名2. 服务连接的队列名3. 组名4. 服务的数字id5. 服务已经处理的请求数6. 服务处理的全部请求的参数和7. 服务正在处理的交易,若为IDLE则服务当前是空闲ccsmis:/home2/ccsmis>tmadmintmadmin - Copyright (c) 1996 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.> printserverProg Name Queue Name Grp Name ID RqDone Load Done Current Service --------- ---------- -------- -- ------ --------- --------------- rz_Ecsb 00004.04000 APGP2 4000 0 0 ( IDLE )BBL 70020 simple 0 1 50 ( IDLE ) IFMTMS APGP2_TMS APGP2 30001 1 50 ( IDLE )交易信息来自GAI的信息本处略去。
Oracle Tuxedo Application Runtime for IMS Installation Guide12c Release 1 (12.1.1)September 2013Oracle Tuxedo Application Runtime for IMS Installation Guide, 12c Release 1 (12.1.1)Copyright © 2012, 2013 Oracle and/or its affiliates. All rights reserved.This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing.If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable:U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government.This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications.Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.This software or hardware and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services.Oracle Tuxedo Application Runtime for IMS Installation Guide Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 System Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 Supported Platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 Installing on UNIX Platforms in Graphics Mode . . . . . . . . . . . . . . . .2 Uninstall GUI Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 Installing on UNIX Platforms in Console Mode . . . . . . . . . . . . . . . .4 Installing on UNIX Platforms in Silent Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 Installing in Silent Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9Uninstall Silent Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 See Also. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 Supported PlatformsSupported Platform Data Sheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 IBM AIX 6.1 (64-bit) on IBM PowerPC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2IBM AIX 7.1 (64-bit) on IBM PowerPC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2Novell SUSE Linux Enterprise Server 10 SP2 (64-bit) on s390x . . . . . . . . . . . . . . . . .2Novell SUSE Linux Enterprise Server 11 (64-bit) on x86-64 . . . . . . . . . . . . . . . . . . . .3Oracle Enterprise Linux 5.6 (64-bit) on x86-64. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3Oracle Linux 5.6 (64-bit) on Exalogic 2.0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3Oracle Solaris 10 (64-bit) on Sparc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3Oracle Solaris 11 (64-bit) on Sparc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3Red Hat Enterprise Linux 6.3 (64-bit) on s390x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3Red Hat Enterprise Linux 5.6 (64-bit) on x86-64 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4Oracle Tuxedo Application Runtime for IMS Installation Guide iiiiv Oracle Tuxedo Application Runtime for IMS Installation GuideOracle Tuxedo Application Runtime for IMS Installation GuideThis chapter contains the following topics:z Overviewz System Requirementsz Supported Platformsz Installing on UNIX Platforms in Graphics Modez Installing on UNIX Platforms in Console Modez Installing on UNIX Platforms in Silent ModeOverviewOracle Tuxedo Application Runtime for IMS (Tuxedo ART for IMS) software is distributed as an installer file which can be executed on UNIX platforms using any of the following threemethods:z Graphical user interface (GUI) installation.z Console installation.z Silent installation.The Tuxedo ART for IMS 12c Release 1 (12.1.1) distribution contains the following keycomponents:Oracle Tuxedo Application Runtime for IMS Installation Guide1Oracle Tuxedo Application Runtime for IMS Installation Guidez Tuxedo ART for IMS administrative utilitiesz Tuxedo ART for IMS sample applications (optionally installed)Tuxedo ART for IMS is installed in the <ORACLEHOME>/artims12110 directory by default. System Requirementsz JRE version 1.5.0 or aboveSupported Platformsz AIX 6.1 64-bit on Powerz Linux 64-bit on x86_64 (Oracle Enterprise Linux 5.4 or Redhat Linux 5)z Oracle Linux 5.6 (64-bit) on Exalogic 2.0z Oracle Linux 5.6 (64-bit) on Non Exalogic Hardwarez Solaris 10 64-bit on SparcInstalling on UNIX Platforms in Graphics Mode To run GUI-mode installation, the computer console where you are installing the software must support a Java-based GUI.To install the Tuxedo ART for IMS software on UNIX systems in graphics mode, do the six following steps:unch the Tuxedo ART for IMS installation program.a.Log on as root or another user with sufficient permissions.b.Execute the installation program: ./installer_name.binThe Introduction screen appears.2.Click Next to proceed with the installation. The Choose Oracle Home Directory screenappears.You can select from the following options:a.Choose existing Oracle Home directory2Oracle Tuxedo Application Runtime for IMS Installation GuideUninstall GUI Mode Click the Choose an Oracle Home directory option button if you already have one ormore Oracle Home directories on your system. Select an Oracle Home directory fromthe list displayed to the right of the option buttons.All valid Oracle Home directories are displayed in this list. Valid Oracle Homedirectories are directories where Oracle products have been installed using the standard installation program.b.Specify Oracle Home directoryClick the Specify an Oracle Home directory button to enter a valid directory.Note:Tuxedo ART for IMS installation will report an error and will not proceed in the event of the following:If an existing Tuxedo ART for IMS 12c Release 1 (12.1.1) installation is detected,you are prompted to overwrite it or not. Select “yes” to overwrite the existinginstallation.3.Click Next to proceed with the installation. The Choose Install Folder screen appears.If the selected Oracle Home does not have Tuxedo ART for IMS 12.1.1.0 installed, you can modify the default install directory; otherwise the detected directory name issuggested. The default install directory is <ORACLEHOME>/artims12110.4.Click Next to proceed with the installation. The Sample Install Confirm screen appears.You are prompted to choose install samples or not.5.If the installation process continues, the Pre-Installation Summary screen appears.Review the summary information and click Install if the information is correct.Click Previous to go back and modify any input that you want to change.Click Cancel to terminate the installation process. This is the last chance you have tocancel your installation without copying any files on your target machine.6.The Install Complete screen appears when the installation is finished.Click Done to exit the installation program.Uninstall GUI ModeUnder <INSTALL_DIR>, there is a directory named 'uninstaller' which contains the uninstaller and resources specific to the un-installation of the product. To uninstall Tuxedo ART for IMS 12.1.1.0 in GUI mode, use the ./uninstall command.Oracle Tuxedo Application Runtime for IMS Installation Guide3Oracle Tuxedo Application Runtime for IMS Installation GuideInstalling on UNIX Platforms in Console Mode To install Tuxedo ART for IMS software in console mode on a certified UNIX platform, do the following steps:1.Log on as root or another user with sufficient permissions.2.Execute the installation program in character-based mode: ./installer_name.bin -iconsole3.The installation program runs and prompts you for responses as shown in Listing 1.Listing 1 Installation ProgramPreparing to install...Extracting the JRE from the installer archive...Unpacking the JRE...Extracting the installation resources from the installer archive...Configuring the installer for this system's environment...Launching installer...Preparing CONSOLE Mode Installation...========================================================================== =====Introduction------------InstallAnywhere will guide you through the installation ofOracle Tuxedo Application Runtime for IMS 12.1.1.0.It is strongly recommended that you quit all programs before continuing with this installation.Respond to each prompt to proceed to the next step in the installation. If you want to change something on a previous step, type 'back'.4Oracle Tuxedo Application Runtime for IMS Installation GuideInstalling on UNIX Platforms in Console ModeYou may cancel this installation by typing 'quit'.WARNING: "Quitting" creates an incomplete Oracle Tuxedo Application Runtime for IMS 12.1.1.0 installation.You must re-install Oracle Tuxedo Application Runtime for IMS 12.1.1.0.========================================================================== =====Choose Oracle Home----------------------------1- Choose existing Oracle Home directory2- Specify Oracle Home directoryEnter a number: 2Specify an Oracle Home directory: /home/user/oracle========================================================================== =====Choose Product Directory---------------------1- Modify Current Selection (/home/user/oracle/artims12110)2- Use Current Selection (/home/user/oracle/artims12110)Enter a number: 2========================================================================== =====Sample Install Confirm---------------------Install Samples?Oracle Tuxedo Application Runtime for IMS Installation Guide5Oracle Tuxedo Application Runtime for IMS Installation Guide->1- No2- YesENTER THE NUMBER OF THE DESIRED CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT:========================================================================== =====Pre-Installation Summary------------------------Please Review the Following Before Continuing:Product Name:Oracle Tuxedo Application Runtime for IMS 12.1.1.0Install Folder:/home/user/oracle/artims12110Link Folder:/local/home/dxfRequired Space:83036116 bytesAvailable Space:23126462464 bytesPRESS <ENTER> TO CONTINUE:========================================================================== =====Installing...-------------=====Installation Complete---------------------6Oracle Tuxedo Application Runtime for IMS Installation GuideInstalling on UNIX Platforms in Console ModeCongratulations. Oracle Tuxedo Application Runtime for IMS 12.1.1.0 has been successfully installed to:/home/user/oracle/artims12110PRESS <ENTER> TO EXIT THE INSTALLER:Uninstall Console ModeUnder the <INSTALL_DIR>, there is a directory named 'uninstaller', which contains the uninstaller and resources specific to the un-installation of the product. To uninstall Tuxedo ART for IMS in console mode, use the./uninstall -i console command.About to uninstall screen: appears to prompt user the un-installation of the product starts.Uninstall Oracle Tuxedo Application Runtime for IMS 12.1.1.0----------------About to uninstall...Oracle Tuxedo Application Runtime for IMS 12.1.1.0This will remove features installed by InstallAnywhere. It will not remove files and folders created after the installation.PRESS <ENTER> TO CONTINUE:Uninstall screen: This screen simply shows the uninstall procedure item by item.Uninstalling ...---------------***************************************************************************************************...*Oracle Tuxedo Application Runtime for IMS Installation GuideUninstall Complete screen: After un-installation finishes, this screen appears, and reports the un-installation summary.Uninstall Complete------------------All items were successfully Uninstall.Installing on UNIX Platforms in Silent ModePreparing for Silent Mode InstallationBefore you install Tuxedo ART for IMS, complete the following tasks:z Verify that enough disk space is available.z Verify the login ID has proper permission for silent installation.z Create a template file containing the required keyword settings.Creating a Silent Mode Installation Template FileTo create a template file for use in the silent installation process, you must use keywords as shown in Table 1.Table 1 Silent Mode Installation Template FileFor This Keyword…Enter The Following Value…INSTALLER_UI= The mode of installation. The only supported value is silent; do not modifythis value.ORACLEHOME=The full pathname of the Oracle Home directory of your choice.USER_INSTALL_DIR The full pathname of the installation directory.INSTALL_SAMPLES=Y|N Specifies whether sample applications are installed or not.OVERWRITE=Y|N If you are using silent mode installation over an existing version of Tuxedo ARTfor IMS, you must add this line to your template file.Any value other than "Y" or "y" will not overwrite the existing Tuxedo ART forIMS version and cancels the installation.Installing in Silent ModeSample UNIX TemplateINSTALLER_UI=silentORACLEHOME=/home/user/oracleUSER_INSTALL_DIR=/home/user/oracle/artims12110INSTALL_SAMPLES=YOVERWRITE=YInstalling in Silent ModeTo use silent mode installation on a UNIX system, you must do the following steps:1.Create a file containing the required variables set to valid data.2.At the command line prompt, go to the directory containing the installer executable.3.Enter the following command: ./installer_name.bin -f path/installer.dataNote:path is the full path to the variable data file and installer.data is the data file containing the required variables.Verifying Silent Mode InstallationYou can verify successful silent mode installation by checking the installation directory to see if all the Tuxedo ART for IMS binaries are listed.If silent mode installation fails, check the following log file:$HOME/ARTIMS_silent_install.log.Uninstall Silent InstallationUnder <INSTALL_DIR> there is a directory named 'uninstaller', which contains the uninstaller and resources specific to the un-installation of the product. To uninstall Tuxedo ART for IMS in silent mode, use the ./uninstall -i silent command.See Alsoz Oracle Tuxedo Application Runtime for IMS Users Guidez Oracle Tuxedo Application Runtime for IMS Reference GuideOracle Tuxedo Application Runtime for IMS Installation GuideA P P E N D I X Supported PlatformsTable A-1 lists Oracle Tuxedo Application Runtime for IMS 12c Release 1 (12.1.1) supported platforms.Table A-1 Oracle Tuxedo Application Runtime for IMS 12c Release 1 (12.1.1)Supported PlatformsPlatform GA Port/Post-GA Port &Certification Release Date OS EOL DateIBM AIX 6.1 (64-bit) on IBM PowerPC GA2012.08TBD IBM AIX 7.1 (64-bit) on IBM PowerPC GA2012.08TBD Novell SUSE Linux Enterprise Server 10SP2 (64-bit) on s390xPost-GA2014.01TBDNovell SUSE Linux Enterprise Server 11(64-bit) on x86-64GA2012.08TBDOracle Enterprise Linux 5.6 (64-bit) onx86-64GA2012.08TBD Oracle Linux 5.6 (64-bit) on Exalogic 2.0GA2012.08TBD Oracle Solaris 10 (64-bit) on SPARC GA2012.08TBD Oracle Solaris 11 (64-bit) on SPARC GA2012.08TBDSupported PlatformsSupported Platform Data Sheets IBM AIX 6.1 (64-bit) on IBM PowerPCThe software requirements for AIX 6.1 (64-bit) on IBM PowerPC are as follows:z MicroFocus COBOL 5.1/COBOL-IT Enterprise Edition 3.3.13zIBM XL C/C++ Enterprise Edition V10 or V11 for AIX or later compatible versionsIBM AIX 7.1 (64-bit) on IBM PowerPCThe software requirements for AIX 7.1 (64-bit) on IBM PowerPC are as follows:z MicroFocus COBOL 5.1/COBOL-IT Enterprise Edition 3.3.13zIBM XL C/C++ Enterprise Edition V10 or V11 for AIX or later compatible versionsNovell SUSE Linux Enterprise Server 10 SP2 (64-bit) on s390xThe software requirements for SUSE Linux Enterprise Server 10 SP2 (64-bit) on s390x are as follows:z MicroFocus COBOL 5.1/COBOL-IT Enterprise Edition 3.3.13zgcc 4.1.2Red Hat Enterprise Linux 5.6 (64-bit) on x86-64GA 2012.08TBD Red Hat Enterprise Linux 6.3 (64-bit) on s390xPost-GA2014.01TBDTable A-1 Oracle Tuxedo Application Runtime for IMS 12c Release 1 (12.1.1) Supported PlatformsPlatformGA Port/Post-GA Port & CertificationRelease DateOS EOL DateSupported Platform Data SheetsNovell SUSE Linux Enterprise Server 11 (64-bit) on x86-64 The software requirements for Novell SUSE Linux Enterprise Server 11 (64-bit) on x86-64 are as follows:z MicroFocus COBOL 5.1/COBOL-IT Enterprise Edition 3.3.13z gcc 4.3.2Oracle Enterprise Linux 5.6 (64-bit) on x86-64The software requirements for Oracle Enterprise Linux 5.6 (64-bit) on x86-64 are as follows: z MicroFocus COBOL 5.1/COBOL-IT Enterprise Edition 3.3.13z gcc 4.1.2Oracle Linux 5.6 (64-bit) on Exalogic 2.0The software requirements for Oracle Linux 5.6 (64-bit) on Exalogic 2.0 are as follows:z MicroFocus COBOL 5.1/COBOL-IT Enterprise Edition 3.3.13z gcc 4.1.2Oracle Solaris 10 (64-bit) on SparcThe software requirements for Oracle Solaris 10 (64-bit) on Sparc are as follows:z MicroFocus COBOL 5.1/COBOL-IT Enterprise Edition 3.3.13z C/C++ Sun Studio 12Oracle Solaris 11 (64-bit) on SparcThe software requirements for Oracle Solaris 11 (64-bit) on Sparc are as follows:z MicroFocus COBOL 5.1/COBOL-IT Enterprise Edition 3.3.13z C/C++ Sun Studio 12Red Hat Enterprise Linux 6.3 (64-bit) on s390xThe software requirements for Red Hat Enterprise Linux 6.3 (64-bit) on s390x are as follows:Supported Platformsz MicroFocus COBOL 5.1/COBOL-IT Enterprise Edition 3.3.13z gcc 4.4.6Red Hat Enterprise Linux 5.6 (64-bit) on x86-64The software requirements for Red Hat Enterprise Linux 5.6 (64-bit) on x86-64 are as follows: z MicroFocus COBOL 5.1/COBOL-IT Enterprise Edition 3.3.13z gcc 4.1.2。
TUXEDO应用服务配置、部署手册1. WINDOWS环境下TUXEDO服务端应用程序的部署和配置1.1 tuxedo的安装确定安装介质(Tuxedo安装程序)运行Setup图表 -1 Tuxedo安装向导图表-2 Tuxedo安装向导点击“Next”,继续图表 -3 许可证协议选择“YES”,继续图表 -4:选择安装类型选择“Full Installation”,继续图表 -5 制定安装路径路径设为“d:\bea”,继续图表 -6 产品路径6.路径设为“d:\bea\tuxedo”,继续图表 -7安装程序开始拷贝文件等待安装程序拷贝文件。
图表 -8输入Listen password输入Listen password,输入两个相同的密码,“lp”,继续图表 -9安装SSL选择“NO”,继续图表-10:安装LDAP取安装程序的默认值,继续图表 -11:安装License 选择“no”,继续图表 -12:Tuxedo安装完毕安装完毕注意事项LIC的安装假设TUXEDO安装在d:\bea\tuxedo,在udataobj子目录中考入lic.txt1.2 应用程序的配置关于环境变量的配置,setenv.bat文件格式如下:rem Copyright (c) 1995 Novell, Inc.rem All Rights Reservedrem THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OFrem Novell, Inc.rem The copyright notice above does not evidence anyrem actual or intended publication of such source code.rem Copyright (c) 1995 Novell, Inc.rem All rights reservedrem ident "@(#) apps/simpapp/setenv.cmd $Revision: 1.1 $"set TUXDIR=d:\bea\tuxedoset WSNADDR=//10.233.128.18:8888set APPDIR=d:\ydlwset PATH=%TUXDIR%\bin;%APPDIR%;%PATH%set LIB=%LIB%;d:\Oracle\Ora9\precomp\lib\msvc;set TUXCONFIG=%APPDIR%\tuxconfigset FIELDTBLS32=qqdata,fhdata,yhfymx,comfldset FLDTBLDIR32=%APPDIR%;%TUXDIR%\udataobjcall %APPDIR%\VCVARS32.BAT需要注意的地方用红色标记,其中TUXEDO为tuxedo的安装主目录,APPDIR为应用程序主目录,根据实际情况进行修改。
Tuxedo开发使用说明1Tuxedo的环境设置包括Client端和Server端环境设置两个部分,下面将分别加以详细说明。
Tuxedo的client端主要是一组以dll方式提供的函数调用。
假设tuxedo的安装路径是TUXDIR=C:\tuxedo,那么dll就存放在TUXDIR\bin目录下,主要包括:wtuxws32.dll、libwsc.dll、libgp.dll、libbuft.dll、libfml.dll、libfml32.dll、tuxlib.dll等。
Client端通过环境变量WSNADDR的设置值连接其调用的服务器,因此必须在环境变量中(在autoexec.bat文件中)设置WSNADDR变量,其设置为:SET WSNADDR=//服务器IP地址:端口号IP地址和端口号必须是服务器配置文件中指定的的侦听IP地址和端口(详细情形见“tuxconfig配置文件”的说明)。
Tuxedo安装完毕后,需要设置的环境变量有(以Unix环境为例,Windows NT 或2000可以参考作相应设置):TUXDIR=tuxedo的安装路径 export TUXDIRLIBPATH=$TUXDIR/lib;$LIBPATH export LIBPATHPATH=$TUXDIR/bin; $PATH export PATHTUXCONFIG=tuxconfig文件的路径/tuxconfig export TUXCONFIG其中LIBPATH表示tuxedo的库文件路径(动态库),TUXCONFIG指向tuxedo 的配置文件(详细情形见“tuxconfig配置文件”的说明)。
2 RMRM文件存放在$TUXDIR/udataobj目录下(license文件lic.txt就在此目录下)。
Tuxedo通过XA/Open协议建立与数据库的通道,而此文件正是指定了数据库的接口。
如一个RM文件的内容如下(以Oracle 8.0.4数据为例):Oracle_XA:xaosw:-L${ORACLE_HOME}/lib -lclntsh -lmm -lsql${ORACLE_HOME}/lib/osntabst.o开发基于数据库的应用时必须配置此文件,关于RM的详细说明,见tuxedo的说明文第 1 页档。
Tuxedo完全操作⼿册⼀、tuxedo的配置1、展开tuxedo包,例如:/home/tuxedo2、配置ubbconfig⽂件在江苏建⾏是jsccb.ubb*RESOURCES*RESOURCES节包含整个应⽤范围的信息。
本节必须在配置⽂件第⼀节,不可缺少。
参数意义*RESOURCES *RESOURCES节IPCKEY 共享内存idUID TUXEDO管理员⽤户idGID TUXEDO管理员⽤户idPERM TUXEDO管理员组⽤户的权限MAXACCESSERS 服务端和客户端的最⼤进程数MAXSERVERS 限制可以启动服务总数MAXSERVICES 限制可以发布交易总数MASTER 指出主控节点的逻辑名,第⼆个是备份节点MODEL 应⽤构架,MP表⽰多机OPTIONS LAN,MIGRA TE表⽰是⼀个⽹络应⽤,服务可以移植到替代处理器上SECURITY 安全级别(5个)AUTHSVC 客户端可以通过交易“AUTHSVC”获得认证NOTIFY DIPIN,客户端通过dip-in收到⼴播通知SYSTEM_ACCESS PROTECTED,NO_OVERRIDE,应⽤代码不得⼲扰共享内存LDBAL 设Y则进⾏负载平衡MAXBUF[S]TYPE 数据缓冲类型及⼦类的最⼤数SCANUNIT 内部时间间隔单位,单位是秒SANITYSCAN 检索公告牌的内部时间间隔,单位是SCANUNITBLOCKTIME 交易超时时间,单位是SCANUNITBBLQUERY DBBL查询所有BLL的时间间隔DBBLWAIT DBBL等待BBL回应的超时时间MAXCONV 同时最⼤会话数jsccb.ubb的实例###################### RESOURCES SECTION ######################*RESOURCESIPCKEY 234567DOMAINID JSCCBMASTER SERVER1MAXSERVERS 900MAXSERVICES 2000CMTRET LOGGEDMODEL MPLDBAL YSECURITY NONEMAXGTT 500OPTIONS LANBLOCKTIME 12*MACHINES*MACHINES节包含应⽤有关的每个处理器的信息。
Tuxedo配置管理简要说明⼀、Tuxedo基本命令#1.设置环境变量TUXDIR,APPDIR,TUXCONFIG,LANG(跟OS相关),LD_LIBRARY_PATH(跟OS相关)#2.编译ubb⽂本⽣成⼆进制配置⽂件:tmloadcf -Cy ubbconfig#3.所有机器上运⾏tlisten,具体见⽂档中NETWORK⼀节#4.启动tmboot -Cy#5.关闭tmshutdown -Cy参数:-A 在所有机器上启动/关闭管理的Server进程-M 只在MASTER机器上启动/关闭管理的Server进程-i srvid 启动/关闭某个server id指定的Server进程-g grpname 启动/关闭某个server group名字指定的Server Group-S 启动/关闭所有应⽤服务器(LMID)-s server-name 启动/关闭某个server名字指定的Server进程-l lmid option 在指定的机器上启动/关闭所有TMS进程和应⽤服务器(LMID)-T grpname 启动/关闭指定的server group中所有的TMS进程-B lmid 在指定的机器上启动/关闭BBL进程-e command 指定⼀个程序可以当在MASTER机器上启动任何⼀个进程失败时执⾏-c 计算出当前UBB配置的Tuxedo启动最少要占⽤的系统IPC资源#⽤tmunloadcf > generated.ubb 可以得出⽬前配置得UBB⽂件所有得参数值(没有设置的有缺省值)#⽤tmloadcf -Cc或tmboot -Cc可以计算出当前UBB配置的Tuxedo启动最少要占⽤的系统IPC资源。
⼆、UBB⽂件配置说明UBB配置⽂件分成*RESOURCES,*GROUP,*SERVER,*SERVICE,*NETWORK等若⼲节。
DEFAULT表⽰该节中所有对象共有的缺省属性。
*RESOURCES#RESOUCES节提供整个系统的基本参数。
Tuxedo应用开发指南目录第一章开发BEATu某edo应用程序...§1.1开发前的思考...§1.2创建BEATu某edo的客户程序...客户程序的任务...§1.3创建的服务程序...服务程序的任务...§1.4在应用程序中使用类型缓冲区...§1.5在BEATu某edo应用程序中使用消息范例...1.BEATu某edo 系统提供多种通信模式...2.同步的Requet/Repone模式...3.异步Requet/Repone模式...4.使用嵌套调用...5.使用调用转发...6.会话通信...7.主动消息通告...8.基于事件的通信...9.基于队列的通信...10.使用事务...第二章一个简单的Tu某edo应用程序impapp.准备impapp的文件和资源...1.复制impapp例子的相关文件...2.检查并编译客户程序...3.检查并编译服务程序...4.编辑并加配置文件...5.启动应用程序...6.如何执行运行时应用程序...7.如何监视运行时应用程序...8.如何关闭应用程序...第三章一个完整的Tu某edo应用程序bankapp.§3.1熟悉bankapp 的文件...§3.2检查bankapp的客户程序...1.bankclt.c文件...2.bankapp中怎样使用ud(1)3.一个请求/响应客户:audio.c.4.一个会话客户:auditcon.c.5.一个监视事件的客户bankmgr.c.§3.3检查bankapp的服务器和服务...1.bankapp的请求/响应服务器...2.bankapp的会话服务器...3.bankapp的服务...4.集成到服务器中的应用...5.服务编码的可选方法...6.准备bankapp的文件和资源...7.运行bankapp.第一章开发BEATu某edo应用程序§1.1开发前的思考在开发BEATu某edo应用程序之前,你需要先搞清楚一系列和设计开发相关的概念,如识别什么是客户机,有哪些方法可以从外界收集数据并提交服务器进行业务处理;识别什么是服务器,哪些程序包容了可以处理客户机输入的商业逻辑;识别什么是类型缓冲区,客户程序在向其这程序发送数据前如何分配内存区域;什么是BEATu某edo的消息范例等。
Tuxedo Design PatternBEA(中国)系统有限公司上海办事处二○○二年一月,上海修订日志目录第一章.导论 (6)企业应用框架架构的演变和发展 (6)T UXEDO的历史发展 (9)第二章.TUXEDO体系结构和设计思想 (12)中间件需要解决的问题 (12)T UXEDO整体结构考察 (13)T UXEDO的S ERVER和S ERVICES (13)T UXEDO/Q (13)T UXEDO的事务管理 (13)T UXEDO的会话机制 (14)事件的订阅和发布 (14)T UXEDO的错误处理 (14)Tuxedo超时机制 (14)Tuxedo的状态码 (14)T UXEDO的管理框架 (14)Tuxedo管理的目标是什么? (14)什么是Tuxedo的应用? (14)Tuxedo的TMIB (14)Tuxedo管理工具 (14)T UXEDO的CORBA (14)其它 (15)Tuxedo的名字解析 (15)Tuxedo的安全管理 (15)T UXEDO高性能的设计思想评述 (15)Tuxedo的通讯机制 (15)负载均衡 (17)线程的自动派生 (17)Tuxedo/Q (17)多线程 (18)T UXEDO高可靠性的设计思想评述 (18)节点之间的监控 (19)进程的状态检查 (20)网络连接 (20)T UXEDO高扩展性的设计思想评述 (21)集群方式 (21)DOMAIN方式 (21)第三章.TUXEDO应用设计的经验 (22)负载均衡 (22)如何划分T UXEDO的S ERVER和S ERVICE? (22)规则一:详细注释每个Service (23)规则二:区分Service的不同类型:Business和Data Access (23)T UXEDO和数据库的连接问题 (24)T UXEDO七种通讯方式的选择 (24)内核参数的调整 (24)T UXEDO数据类型的选择 (24)如何在T UXEDO中使用各种开发工具 (24)第四章.基于TUXEDO设计企业关键业务应用 (26)如何做到高性能 (26)如何做到高可靠性 (27)机器之间的迁移 (27)和数据库连接的考虑 (27)如何做到高扩展性 (30)Tuxedo如何和其它系统互连? (30)第五章.TUXEDO应用系统容量配置 (31)第六章.TUXEDO设计案例 (32)某银行省级大集中案例 (32)系统背景 (32)系统构架 (32)应用点评 (33)某电信省级计费系统案例 (34)设计目标 (34)系统构架 (34)应用要点 (34)某证券公司集中交易案例 (34)设计目标 (34)应用要点 (34)结束语 (35)附录. 术语表 (36)第一章.导论作为构建大规模的C/S应用系统的体系结构,三层构架已经得到实践的检验和人们的认可,成为企业关键应用的唯一可靠和成熟的选择模式。