tuxedo与oracle连接

合集下载

连接oracle数据库的语句

连接oracle数据库的语句

连接oracle数据库的语句连接Oracle数据库是开发人员常常遇到的一个任务,下面我将列举一些连接Oracle数据库的语句,希望能够帮助你。

1. 使用SQL*Plus连接Oracle数据库:```sqlplus username/password@host:port/service_name```其中,`username`是Oracle数据库的用户名,`password`是密码,`host`是主机名,`port`是端口号,`service_name`是服务名。

2. 使用JDBC连接Oracle数据库:```import java.sql.Connection;import java.sql.DriverManager;import java.sql.SQLException;public class OracleJdbcExample {public static void main(String[] args) {String url = "jdbc:oracle:thin:@host:port:service_name";String username = "username";String password = "password";try {Connection connection = DriverManager.getConnection(url, username, password);System.out.println("Successfully connected to Oracle database!");// 执行其他操作...connection.close();} catch (SQLException e) {System.out.println("Failed to connect to Oracle database!");e.printStackTrace();}}}```其中,`url`是连接Oracle数据库的URL,`username`是用户名,`password`是密码,`host`是主机名,`port`是端口号,`service_name`是服务名。

Tuxedo性能调优经验谈

Tuxedo性能调优经验谈

Tuxedo性能调优经验谈Tuxedo 9.0 for AIX与Oracle 10 XA连接网友:chinakkee 发布于:2006.11.13 09:54(共有条评论) 查看评论| 我要评论系统说明TUXEDO版本:9.0 安装目录/opt/bea/tuxedo9.0ORACLE版本:10.2.0.1 安装目录/u01/app/oracle一、Tuxedo 9 for AIX的安装1、创建一个用户为Tuxedo,用户组为bea2、创建/opt/bea为tuxedo的安装目录,$mkdir /opt/bea$chown tuxedo.bea /opt/bea$chmod 770 /opt/bea#bootinfo -k64$ sh tuxedo9_aix53_64.bin -i consolePreparing to install...WARNING: /tmp does not have enough disk space!Attempting to use /home/tuxedo for install base and tmp dir.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...===================================================== ======Choose Locale...----------------->1- EnglishCHOOSE LOCALE BY NUMBER: 1===================================================== ======(created with InstallAnywhere by Zero G)-------------------------------------------------------------------------------===================================================== ======Introduction------------BEA End User Clickwrap 001205Copyright (c) BEA Systems, Inc.All Rights Reserved.DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT? (Y/N): y===================================================== ======Choose Install Set------------------Please choose the Install Set to be installed by this installer.->1- Full Install2- Server Install3- Full Client Install4- Jolt Client Install5- ATMI Client Install6- CORBA Client Install7- Customize...ENTER THE NUMBER FOR THE INSTALL SET, OR PRESS TO ACCEPT THE DEFAULT : 1===================================================== ======Choose BEA Home---------------1- Create new BEA Home2- Use existing BEA HomeEnter a number: 21- /opt/beaExisting BEA Home directory: 1===================================================== ======Choose Product Directory------------------------1- Modify Current Selection (/opt/bea/tuxedo9.0)2- Use Current Selection (/opt/bea/tuxedo9.0)Enter a number: 2===================================================== ======Pre-Installation Summary------------------------Please Review the Following Before Continuing:Product Name:Tuxedo 9.0Install Folder:/opt/bea/tuxedo9.0Link Folder:/home/tuxedoDisk Space Information (for Installation Target):Required: 386,803,702 bytesAvailable: 2,625,392,640 bytesPRESS TO CONTINUE:===================================================== ======Ready To Install----------------InstallAnywhere is now ready to install Tuxedo 9.0 onto your system at thefollowing location:/opt/bea/tuxedo9.0PRESS TO INSTALL:===================================================== ======Installing...-------------[==================|==================|=============== =][------------------|------------------|------------------|------------------]===================================================== ======Configure tlisten Service-------------------------Password: tuxedoVerify Password: tuxedoPassword Accepted! Press "Enter" to continue.===================================================== ======SSL Installation Choice.------------------------Would you like to install SSL Support?->1- Yes2- NoENTER THE NUMBER FOR YOUR CHOICE, OR PRESS TO ACCEPT THE DEFAULT:: 2===================================================== ======License Installation Choice---------------------------Would you like to install your license now?->1- Yes2- NoENTER THE NUMBER FOR YOUR CHOICE, OR PRESS TO ACCEPT THE DEFAULT:: 2===================================================== ======Installation Complete---------------------Congratulations. Tuxedo 9.0 has been successfully installed to:/opt/bea/tuxedo9.0PRESS TO EXIT THE INSTALLER:安装完毕,需要把license文件重命名为lic.txt copy到$TUXDIR/udataobj/二、TUxedo 9 连接Oracle 10g配置前提是在Tuxedo 9 上安装Oracle 10g client还有安装C编译器(不一定要用Visual Age C/C+用户能够通过sqlplus连接oracle数据库1、ORACLE的的配置sqlplus[email=system@testcrm]system@testcrm[/email]SQL> @$ORACLE_HOME\rdbms\admin\xaview.sqlSQL>grant select on v$xatrans$ to public with grant option;SQL>grant select on v$pending_xatrans$ to public with grant option;SQL>grant select EMP to ScottSQL>GRANT SELECT ON DBA_PENDING_TRANSACTIONS TO Scott;注:scott默认为lock,需要用alter user scott account unlock,解锁。

tuxedo配置和服务部署

tuxedo配置和服务部署

tuxedo配置和服务部署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 为应用程序主目录,根据实际情况进行修改。

pyodbc连接oracle 的connect用法-概述说明以及解释

pyodbc连接oracle 的connect用法-概述说明以及解释

pyodbc连接oracle 的connect用法-概述说明以及解释1.引言1.1 概述在现代软件开发中,使用数据库是非常常见的需求。

而对于Python 开发人员来说,连接不同类型的数据库是必不可少的技能之一。

本文将重点介绍如何使用pyodbc库来连接Oracle数据库,具体来说是通过connect函数的用法。

在介绍pyodbc连接Oracle数据库的用法之前,我们首先需要了解pyodbc的基本概念和特点。

pyodbc是一个Python对ODBC(Open Database Connectivity)的封装库,它允许Python程序与SQL数据库进行交互,包括连接数据库、执行SQL语句以及获取查询结果等操作。

因此,通过pyodbc可以实现Python程序与Oracle数据库之间的无缝交互。

本文将以建立连接为例,详细介绍pyodbc库中connect函数的用法,帮助读者快速掌握如何在Python中连接Oracle数据库,从而为后续的数据操作提供基础支持。

希望本文能够帮助读者更加深入地了解pyodbc 库的使用方法,从而提升数据库操作的效率和准确性。

"1.2 文章结构"部分介绍了整篇文章的结构安排,包括引言、正文和结论三个部分。

引言部分主要说明了文章的概述、结构和目的,正文部分将详细介绍pyodbc的概念和Oracle数据库连接的方法,以及pyodbc 中connect函数的具体用法。

结论部分将总结文章的重点内容,并给出使用建议和未来的展望。

整篇文章的结构清晰明了,有助于读者快速了解文章内容,并对相关知识有一个系统性的了解。

1.3 目的本篇文章旨在介绍如何使用pyodbc库连接Oracle数据库,并重点介绍了connect函数的用法。

通过阅读本文,读者将了解到pyodbc库的基本概念和特点,以及如何在Python中通过pyodbc实现与Oracle数据库的连接。

除此之外,文章还将详细说明connect函数的用法,帮助读者更好地理解如何在代码中使用这一函数来实现数据库连接操作。

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。

Linux下安装Tuxedo

Linux下安装Tuxedo

Linux下安装TuxedoLinux 下安装Tuxedo以前由于没有在非Windows的操作系统下安装过Tuxedo,故一直都觉得在非Windows操作系统下安装Tuxedo很神秘。

今天在centos5.5下尝试了一把,觉得还是比较简单的,仅是配置Tuxedo的环境变量有点多。

闲话少扯,看正题1.从oracle 官网上下载tuxedo111120_32_Linux_01_x86.bin2.在centos上建立tuxedo用户,当然也可以不建,直接用root 用户安装配置,不过为了安全性和可维护性,建议最好建立该用户useradd tuxedo3.建立tuxedo 安装目录(安装的时候需要指定),本来用root用户安装配置时是不需要该步骤的,但是若要使用Tuxedo用户来进行安装会出现权限不足无法在根目录下创建下级子目录的情况,故最好手工建立mkdir /tuxedo11;chown tuxedo:tuxedo /tuxedo11;chmod 755 /tuxedo114.上传tuxedo111120_32_Linux_01_x86.bin文件到centos下tuxedo的home目录下5.从root用户切换到tuxedo用户su - tuxedo6.更改home目录下tuxedo111120_32_Linux_01_x86.bin文件权限chmod 777 ./tuxedo111120_32_Linux_01_x86.bin7.执行该文件进行安装(-i console代表在字符界面安装,-I console代表在图形化界面安装)./tuxedo111120_32_Linux_01_x86.bin -i console8.在安装时需要注意的地方当安装过程中出现“Choose Oracle Home”不要误以为是指定Oracle数据库的安装目录,其实这里是指定Tuxedo安装目录的地方,将在第3步建立的目录名称填到“specify a new Oracle Home Directory”处即可;还有如果你想玩一下tuxedo的simpapp的话,在安装的时候必须选上“Install Sample”;其余选项一路回车即可完成安装安装到此结束以下是配置simpapp的一些过程,以下操作均在tuxedo用户下运行1.cp -R /tuxedo11/tuxedo11g/simples/atim/simpapp /home/tuxedo/2.cp -R /tuxedo11/tuxedo11g/tux.env /home/tuxedo/simpapp3.cd ./simpapp;vi ./tux.env#若需要使用Oracle数据库时需添加ORACLE_BASE=/u01/app/oracle;export ORACLE_BASE#若需要使用Oracle数据库时需添加ORACLE_HOME=$ORACLE_BASE/product/11g2/db_1;export ORACLE_HOME#若需要使用Oracle数据库时需添加ORACLE_SID=oracle11g2;export ORACLE_SIDTUXDIR=/tuxedo11/tuxedo11gR1; export TUXDIRJA V A_HOME=$TUXDIR/jre; export JA V A_HOMEJVMLIBS=$JA V A_HOME/lib/i386/server:$JA V A_HOME/jre/binPA TH=$TUXDIR/bin:$JA V A_HOME/bin:$ORACLE_HOME/bin:$PA TH; export PA TH COBCPY=:$TUXDIR/cobinclude; export COBCPYCOBOPT="-C ANS85 -C ALIGN=8 -C NOIBMCOMP -C TRUNC=ANSI -C OSEXT=cbl"; export COBOPTSHLIB_PA TH=$TUXDIR/lib:$JVMLIBS:$SHLIB_PA TH; export SHLIB_PA THLIBPA TH=$TUXDIR/lib:$JVMLIBS:$LIBPA TH; export LIBPA THLD_LIBRARY_PATH=$TUXDIR/lib:$JVMLIBS:$ORACLE_HOME/lib:$ORACLE_HOM E/ora cm/lib:/lib:/usr/lib:/usr/local/lib:$LD_LIBRARY_PA TH; export LD_LIBRARY_PA THWEBJA V ADIR=$TUXDIR/udataobj/webgui/java; export WEBJA V ADIR#若运行simpapp时需添加APPDIR=/home/tuxedo/simpapp;export APPDIR#若运行simpapp时需添加TUXCONFIG=$APPDIR/tuxconfig;export TUXCONFIGNLS_LANG=AMERICAN_AMERICA.UTF8;export NLS_LANG LANG=C;export LANG这个环境变量文件包含了与Oracle连接的环境变量,仅执行simpapp时不需要添加;但下面的有关simpapp的环境变量必须添加,否则运行时会出错4.编辑simpapp的配置文件,其中“dcsproject”是centos的主机名,你可以根据你的主机名做相应更改,其中最后的“TOUPPER”是配置文件服务名称,从字面含义可以看出,他的功能就是简单的客户端输入的小写字母转换为大写字母# (c) 2003 BEA Systems, Inc. All Rights Reserved.#ident "@(#) samples/atmi/simpapp/ubbsimple $Revision: 1.7 $"#Skeleton UBBCONFIG file for the TUXEDO Simple Application.#Replace the items with the appropriate values.*RESOURCESIPCKEY 123456#Example:#IPCKEY 123456DOMAINID simpappMASTER simpleMAXACCESSERS 10MAXSERVERS 5MAXSERVICES 10MODEL SHMLDBAL N*MACHINESDEFAULT:APPDIR="/home/tuxedo/simpapp"TUXCONFIG="/home/tuxedo/simpapp/tuxconfig" TUXDIR="/tuxedo11/tuxedo11gR1"#Example:# APPDIR="/home/me/simpapp"# TUXCONFIG="/home/me/simpapp/tuxconfig"# TUXDIR="/usr/tuxedo"dcsproject LMID=simple#Example:#beatux LMID=simple*GROUPSGROUP1LMID=simple GRPNO=1 OPENINFO=NONE*SERVERSDEFAULT:CLOPT="-A"simpserv SRVGRP=GROUP1 SRVID=1*SERVICESTOUPPER5.运行环境变量文件,编译编辑后的ubb文件,生成tuxconfig文件. ./tux.envenv|grep TUX(检查一下环境变量)tmloadcf -y ubbls(j检查有没有生成tuxconfig文件)6.编译simpapp的SERVER端及Client端程序,生成可执行文件buildserver -f simpserv.c -o simpserv -s TOUPPER(-f 参数表示第一个输入文件-o 参数表示输出文件-s 参数表示服务)buildclient -f simpcl.c -o simpcl7.检查文件有无生成ls7.运行服务器端程序tmboot -y8.测试./simpcl hello_bigbombpanda若回显为:Returned String is:HELLO_BIGBOMBPANDA成功至于如何让tuxedo和Oracle数据库联动工作,首先要弄清楚XA,NONXA的连接方式。

tuxedo详细安装步骤

tuxedo详细安装步骤

tuxedo详细安装步骤Tuxedo使用Non-XA模式连接Oracle数据库实验的网络拓扑图:软件安装环境:3台主机都安装Cent OS 5.3操作系统,第1台主机作为Tuxedo的客户端,只安装Tuxedo客户端(IP:192.168.1.61);第2台主机作为Tuxedo服务器安装Tuxedo Server,还要连接Oracle服务器,还安装了Oracle Client11gR2(IP:192.168.1.66);第三台主机作为Oracle数据库服务器,只安装Oracle11gR2(IP:192.168.1.81)。

实验目的:了解Tuxedo使用Non-XA方式连接Oracle数据库。

通过客户端发送一个请求到Tuxedo服务器,再由Tuxedo服务器连接Oracle服务器,把客户端发送的信息写入数据库表。

实验步骤:1.安装Tuxedo的演示程序SimpApp (使用主机1和主机2) 2.作一个Pro/C的Demo,来连接Oracle数据库(使用主机2和主机3) 3.把第1步和第2步合并到一起,完成该实验 4.测试并排错安装前准备:要使Tuxedo服务器,能连接到Oracle服务器。

Oracle服务器的实例名称为stone,在Tuxedo服务器上安装Oracle客户端后,建立一个服务,使其能够连接到Oracle数据库服务器。

在Tuxedo Server(主机2)上,先建立网络服务,再连接到Oracle数据库服务器,使用hr用户,并建立一个测试表:◆网络服务的名称为stone,结果为$ORACLE_HOME/network/admin目录下的tnsnames.ora文件 [oracle@myapache ~]$cd/u01/app/oracle/product/11.2.0/client_1/network/admin/ [oracle@myapacheadmin]$lssamples shrept.lst sqlnet10031011AM2455.bak sqlnet.ora tnsnames.ora[oracle@myapache admin]$vi tnsnames.ora # tnsnames.ora Network ConfigurationFile:/u01/app/oracle/product/11.2.0/client_1/network/admin/tnsnames.ora #Generated by Oracle configuration tools. STONE = (DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.81)(PORT = 1521)) )(CONNECT_DATA = (SERVICE_NAME = stone) ) )◆建立测试表[oracle@myapache ~]$sqlplus hr/hr@stoneSQL*Plus: Release11.2.0.1.0 Production on Wed Mar 10 21:17:22 2021Copyright (c) 1982, 2021, Oracle. All rights reserved.Connected to:Oracle Database11gEnterpriseEdition Release11.2.0.1.0 - Production Withthe Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL>create table t_test1( 2 zj number, 3 name varchar2(20) 4 ); Tablecreated.SQL>insert into t_test1 values(1, 'aaa'); 1 row created.SQL>commit; Commit complete.SQL>select * from t_test1; ZJ NAME ---------- -------------------- 1 aaa SQL>◆在主机2上还要把Oracle用户的环境变量设置好,使其能正确编译pro/c程序[oracle@myapache ~]$ vi .bash_profile设置好以下环境变量# User specific environment and startup programsORACLE_HOME=/u01/app/oracle/product/11.2.0/client_1 export ORACLE_HOMELD_LIBRARY_PATH=$ORACLE_HOME/libLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/libLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib exportLD_LIBRARY_PATHPATH=$PATH:$ORACLE_HOME/bin export PATHstty erase ^H (完)测试一下Pro/C是否正确 [oracle@myapache ~]$procPro*C/C++: Release11.2.0.1.0 - Production on Thu Mar 11 01:16:42 2021Copyright (c) 1982, 2021, Oracle and/or its affiliates. All rightsreserved.System default option values taken from:/u01/app/oracle/product/11.2.0/client_1/precomp/admin/pcscfg.cfg(下面内容从略)一、安装Tuxedo的演示程序SimpApp,并完成Tuxedo客户端访问服务器的配置1.在主机2上安装Tuxedo10gR3 Server建议采用字符安装界面,在安装过程中选择安装上Sample,以便运行SimpApp例子[root@myapache ~]#cd /home/OraFile/[root@myapache OraFile]#unzip tuxedo10gR3_32_Linux_01_x86.zip[root@myapache OraFile]#chmod +x tuxedo10gR3_32_Linux_01_x86.bin[root@myapache OraFile]#./tuxedo10gR3_32_Linux_01_x86.bin -i console 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... (比较重要的地方) Choose Oracle Home ------------------1- Create new Oracle HomeEnter a number:1Specify a new Oracle Home directory:/bea感谢您的阅读,祝您生活愉快。

TUXEDO管理配置中文说明

TUXEDO管理配置中文说明

Tuxedo的配置管理简要说明Tuxedo的配置管理简要说明 (1)一、Tuxedo基本命令 (2)二、UBB文件配置说明 (3)三、数据库XA设置 (8)3.1 ORACLE XA (8)3.2 SYBASE XA (9)3.3 INFORMIX XA (9)四、Tuxedo多机方式配置要点 (10)4.1启动tlisten (10)4.2 ubb文件配置 (10)4.3管理 (11)五、用JOLT连接Tuxedo和Weblogic (12)5.1在Tuxedo上安装、配置JOLT Server (12)5.2 配置Weblogic Server 6.x (13)5.3 Example setup (13)六、TUXEDO动态配置 (14)6.1 用tmadmin修改配置 (14)6.2 用tmconfig更改TUXCONFIG(UBBCONFIG) (14)一、Tuxedo基本命令#1.设臵环境变量TUXDIR,APPDIR,TUXCONFIG,LANG(跟OS相关),LD_LIBRARY_PATH(跟OS相关)#2.编译ubb文本生成二进制配臵文件:tmloadcf –y ubbconfig#3.所有机器上运行tlisten,具体见文档中NETWORK一节#4.启动tmboot –y#5.关闭tmshutdown –y参数:-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 –c或tmboot –c可以计算出当前UBB配臵的Tuxedo启动最少要占用的系统IPC资源。

ado连接oracle数据库

ado连接oracle数据库
m_pwd="crmdbo";//密码
BOOL retFt=false;
HRESULT hr;
try
{
hr = m_pConnection.CreateInstance("ADODB.Connection");///创建Connection对象
if(SUCCEEDED(hr))
{
_bstr_t connStr;
//begin---------------Oracle 微软格式---------------------------------------
// connStr="Provider=MSDAORA.1;User ID=njcrm;Password=crmdbo;Data Source=192.168.0.24;Persist Security
Info=False";
// m_pConnection->Open(_bstr_t(connStr),(_bstr_t)_T(""),(_bstr_t)_T(""),adConnectUnspecified);
//end---------------Oracle 微软格式---------------------------------------
{
if(!AfxOleInit())//这就是初始化COM库
{
AfxMessageBox(“OLE初始化出错!”);
return FALSE;
}
}
3.ADO库包含三个基本接口:_ConnectionPtr接口、_CommandPtr接口和_RecordsetPtr接口。与数据库的连接就是用_ConnectionPtr接口,它的连接字符串可以是自己直接写,也可以指向一个ODBC DSN。以下的例子都测试通过,顺便写了SQL Server的例子。

在本机用Toad远程连接Oracle数据库(详细步骤图解)

在本机用Toad远程连接Oracle数据库(详细步骤图解)

2) 选择【本地Net服务名配置】->【下一步】,进入添加界面。

3) 【添加】->【下一步】,进入Net服务名配置界面。

此时,服务名要填写远程数据库的全局数据库名,也就是数据库在设计的时候就已经指定的全局名称。

4) 服务名配置完成之后,需要制定网络连接协议。

选择TCP协议,进入下一步。

5) 前面制定了协议:TCP/IP协议,为了能和远程数据库通信,还需要指定远程数据库的主机名:IP地址。

也就是需要访问的数据库所在的主机IP。

端口号默认为1521,
不需要更改。

6) 配置完成之后(实际上还差一步:更改登录),测试连接是否成功。

7) 测试当然不会成功,此时需要更改登录。

8) 更改登录:用户名和密码就是远程数据库在创建的时候所指定的。

此时测试成功:
9) 最后一步:为之前配置的NET服务名指定一个名称。

当然它有默认名称:之前指定的远程数据库的全局数据库名称。

在这里指定名称之后,用Toad连接的时
候,database的下拉列表中,就是你现在指定的名称。

Oracle Tuxedo Message Queue(OTMQ)--企业级消息中间件

Oracle Tuxedo Message Queue(OTMQ)--企业级消息中间件

Oracle Tuxedo Message Queue (OTMQ) -- 企业级消息中间件ORACLEPRODUCTLOGO日程•Tuxedo Message Queue:背景介绍•Tuxedo Message Queue:功能概览•Tuxedo Message Queue:与其他产品的集成•小结Oracle Tuxedo Message Queue 背景介绍•消息中间件产品:从80年代开始•解决分布式系统中异构平台,不同编程语言,不同网络协议的模块之间的交互技术•松耦合•通常是异步模式•将丰富的消息处理功能与Tuxedo的高可用性、高性能、可扩展性等相结合•利用Tuxedo-Exalogic技术,提高吞吐量降低延迟•与其它消息产品的紧密集成•第一个版本为12c (12.1.1.0)•两种选择:•安装在已有的Tuxedo之上•独立安装为什么要了解Oracle Tuxedo Message Queue•现有的Tuxedo用户需要消息中间件:–TMQ与Tuxedo无缝集成–配置管理容易上手–从/Q升级非常容易•现有的OMQ客户–功能升级–TMQ与OMQ双向互通,可以分阶段迁移•还不是Tuxedo或OMQ用户–丰富的功能–基于Tuxedo的,经过实践检验的平台技术Oracle Tuxedo Message Queue 功能概览全景图功能TMQ 通信方式点对点✓发布/订阅✓消息传递模式同步✓异步✓存储方式内存✓硬盘✓消息转发方式直接发送到目标队列✓存储转发✓消息交付的可靠性语义可靠✓不保证可靠✓XA交易✓消息过滤与排序✓触发Tuxedo服务✓同步模式和异步模式•同步模式:发送者阻塞在等待确认消息•异步模式:发送者无阻塞式发送消息•异步确认模式:异步显式调用tpdeqplus()获取确认消息•异步无确认模式:不关心发送的状态,没有ACK。

这种模式可以应用在对性能敏感的应用场景下消息传递方式•DIP(Delivery Interest Point):用户关心的消息传递过程中的传递检查点•对于可靠传输模式(SAF/DQF/CONF),在某些条件下可能出现重复送达情况,OTMQ 会标志出这种消息,供应用逻辑决定处理方式。

Tuxedo产品介绍

Tuxedo产品介绍

Tuxedo产品介绍近几年来,以交易中间件为框架基础的三层客户机/服务器模式已被广泛证实为建立开放式关键业务应用系统的最佳环境。

这种模式的成功使用已为许多国际大型企业在应用的开发与部署方面节约了大量的时间与金钱。

三层客户机/服务器模式的核心概念是利用交易中间件将应用的业务逻辑、表示逻辑与数据分为三个不一致的处理层,从而使其应用系统不但具备了大型机系统稳固、安全与处理能力高等特性,同时拥有开放式系统成本低、可扩展性强、开发周期短等优点。

而交易中间件作为构造三层结构应用系统的基础平台,提供了下列两个要紧功能:负责客户机与服务器间的联接与通讯;提供一个三层结构应用开发与运行的平台。

交易中间件提供一个基础的框架去帮助你建立、运行与管理一个三层客户机/服务器模式的应用,使你不需要从零做起,大大缩短了应用开发的时间,提高了应用开发的成功率。

根据StandiShGrOUP的调查报告,使用一个成熟的交易中间件产品能够为应用开发节约25%-50%的时间。

而通过自己去开发应用里中间件功能的项目,有90%以上以失败告终。

一个优秀的交易中间件应具备下列六个条件:(1)成熟、稳固、可靠(2)很强的产品生命力(3)完整、高质量的功能(4)优秀的性能(5)开放、遵循标准(6)简单、易用而TUXEDo就是一个具备了以上所有条件的优秀的中间件产品。

本节将对TUXEDO进行介绍,包含下列内容:1 BEATUXEDo的技术特色2 BEATUXEDO的核心系统构成3TUXEDO才支术详述3.1 高速数据甬道3.2 目录服务的实现3.3 通讯服务3.4 负载平衡3.5 优先级3.6 伸缩性与动态配置的支持3.7 故障恢复与稳固的运行环境3.8 安全性3.9 交易完整性与分布式事务处理3.10 支持多种数据类型与字段操纵语言3.11 管理3.12 网络调度与通讯失败的自动恢复3.13 提供5种APl3.14 支持字符界面的开发3.15 对远程安装,设置的支持4国际化5与数据库的连接6开发工具7跨平台支持8互连性9典型开发过程简介10节约费用1. BEATUXEDO的技术特点、(1)最成熟、稳固、可靠的开放平台交易中间件产品•16年的历史,世界第一个开放平台交易中间件产品•数千个大型客户,数百万个前端用户,每天处理数亿笔交易•在全球交易中间件市场(包含WAS)上占据了46%的市场占有率,包含主机平台,开放系统等等,而第二名的旧M只占据了9%(来自IDC1999 报告)(2)最强生命力的开放平台交易中间件产品•以开放为本,BEATUXEDo出身于开放系统的化身一UNIX,从其基础体系结构上就是开放的,目的是支持所有开放的系统资源。

TUXEDO简介及命令介绍

TUXEDO简介及命令介绍

Tuxedo是一个客户机/服务器的―中间件‖产品,它在客户机和服务器之间进行调节,以保证正确地处理事务。

Tuxedo是一个事务处理(TP)监督器,它管理联机事务处理(OLTP)系统(参见―事务处理‖)操作的事务。

客户通过结构化查询语言(SQL)调用,或其它类型的请求,产生对服务器的请求。

这个事务处理监督器确信,正确地进行了修改,以保证数据的完整性。

这在一个事务可以改变多个位置的数据库的分布式数据库环境是非常重要的。

这个事务处理监督器使用双阶段提交,以保证所有的数据库都已经接收和认可了这些数据的正确性。

否则,这个数据库返回它的事务前状态。

事务监督器从前都是与大的大型计算机系统联系在一起的,但是Tuxedo的设计是为了在不昂贵的基于UNIX的系统上运行。

AT&T最初是作为它自己使用的联机事务处理开发Tuxedo的。

虽然Tuxedo必须在U-NIX系统上运行,但是它可以与DOS、OS/2、Windows和UNIX客户一起工作。

它还使用通用的通信协议,如传输控制协议/因特网协议(TCP/IP)和网络基本输入输出系统(NetBIOS),并且可以在这些环境提供分布式处理支持。

例如,它可以根据请求的类型,服务请求从一个客户选择路由到一个特定的服务器。

Tuxedo的基本特征是它的联机事务处理系统,但是,Tuxedo也工作于集成关系型的平面文件,以及层次数据库系统。

相关条目:Connectionless and Connection-Oriented Transactions无连接和面向连接事务;Transaction Processing 事务处理。

Tuxedo作为电子商务交易平台,它允许客户机和服务器参与一个涉及多个数据库协调更新的交易,并能够确保数据的完整性。

BEA Tuxedo一个特色功能是能够保证对电子商务应用系统的不间断访问。

它可以对系统组件进行持续的监视,查看是否有应用系统、交易、网络及硬件的故障。

Tuxedo开发使用说明

Tuxedo开发使用说明

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 页档。

Delphi7.0连接Oracle数据库的三种方式

Delphi7.0连接Oracle数据库的三种方式

Delphi7.0连接Oracle数据库的三种方式Oracle是以高级结构化查询语言(SQL)为基础的大型关系数据库,是目前最流行的客户/服务器(CLIENT/SERVER) 体系结构的数据库之一,目前被广泛应用于各类型企业的信息化管理中。

数据库支持是Delphi7.0开发环境的一个重要特性,很多程序员在数据库应用程序开发中都采用Delphi7.0作为开发工具,来实现对数据库的访问和控制。

Delphi数据库应用程序是通过数据库引擎来访问它们引用的数据源的。

本文概括性的介绍在Windows XP环境中Delphi7.0连接Oracle数据库的3种方式,它们分别是BDE、ADO、DbExpress。

这3种方式都需要安装Oracle客户端并配置tnsnames.ora文件。

将Oracle客户端安装到本地计算机,打开c:\oracle\…\network\admin\tnsnames.ora文件,按照所要访问的数据库的配置,添加下面的内容TEST =(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.2.134)(PORT = 1521)) )(CONNECT_DATA =(SID = test) ))其中HOST,PORT,SID的值与所访问的数据库配置有关。

1传统的BDEBDE(Borland Database Engine)使用别名引用数据库文件或目录,需要在客户的计算机上与应用程序一起安装BDE。

连接步骤:1.1 安装BDE。

在Delphi7.0的安装盘中含有BDE安装程序,按照默认方式安装的计算机,并配置好所要访问的Oracle数据库的别名,例如:test。

1.2 在Delphi7.0的程序中连接Oracle数据库。

将BDE选项卡中的TDatabase组件将放入应用程序的主窗体,双击TDatabase,出现 TDatabase组件编辑器,输入数据库别名、用户名和密码,点击OK按钮。

Oracle Tuxedo Application Runtime for IMS 安装指南说明书

Oracle Tuxedo Application Runtime for IMS 安装指南说明书

Oracle Tuxedo Application Runtime for IMS Installation Guide11g Release 1 (11.1.1.3.0)December 2011Oracle Tuxedo Application Runtime for IMS Installation Guide, 11g Release 1 (11.1.1.3.0)Copyright © 2011, 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 decomposition of this software, unless required by law for interpretability, 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 software or related documentation 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 RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065.This software 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 which may create a risk of personal injury. If you use this software in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use of this software. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software in dangerous applications.Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.This software 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 Platform Data Sheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 AIX 6.1 64-bit on Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2Linux 64-bit on x86_64 (Oracle Enterprise Linux 5.4 or Redhat Linux 5). . . . . . . . . .2Oracle Linux 5.6 (64-bit) on Exalogic 2.0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2Oracle Linux 5.6 (64-bit) on Non Exalogic Hardware. . . . . . . . . . . . . . . . . . . . . . . . . .2Oracle Solaris 10 64-bit on Sparc. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3Oracle 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 software is distributed as an installer file which can be executed on UNIX platforms using any of the following three methods:z Graphical user interface (GUI) installation.z Console installation.z Silent installation.Oracle Tuxedo Application Runtime for IMS 11g Release 1 (11.1.1.3.0) distribution contains the following key components:z Oracle Tuxedo Application Runtime for IMS administrative utilitiesOracle Tuxedo Application Runtime for IMS Installation Guide1Oracle Tuxedo Application Runtime for IMS Installation Guidez Oracle Tuxedo Application Runtime for IMS sample applications (optionally installed)Oracle Tuxedo Application Runtime for IMS is installed in the <ORACLEHOME>/artims_11gR1 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 on which you are installing the software must support a Java-based GUI.To install the Oracle Tuxedo Application Runtime for IMS software on UNIX systems ingraphics mode, do the following steps:unch the Oracle Tuxedo Application Runtime 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 directoryClick 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.2Oracle Tuxedo Application Runtime for IMS Installation GuideUninstall GUI Mode 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:Oracle Tuxedo Application Runtime for IMS installation will report an error and will not proceed in the event of the following:If an existing Oracle Tuxedo Application Runtime for IMS 11g Release 1(11.1.1.3.0) installation is detected, you are prompted to overwrite it or not. Select“yes” to overwrite the existing installation.3.Click Next to proceed with the installation. The Choose Install Folder screen appears.If the selected Oracle Home does not have Oracle Tuxedo Application Runtime for IMS 11gR1 installed, you can modify the default install directory; otherwise the detecteddirectory name is suggested. The default install directory is<ORACLEHOME>/artims_11gR1.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 Oracle Tuxedo Application Runtime for IMS 11gR1 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 Oracle Tuxedo Application Runtime 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 11gR1(11.1.1.3.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 11gR1 (11.1.1.3.0) installation.You must re-install Oracle Tuxedo Application Runtime for IMS 11gR1 (11.1.1.3.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/artims_11gR1)2- Use Current Selection (/home/user/oracle/artims_11gR1)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 11gR1Install Folder:/home/user/oracle/artims_11gR1Link 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 11gR1 has been successfully installed to:/home/user/oracle/artims_11gR1PRESS <ENTER> TO EXIT THE INSTALLER:Uninstall Console 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 Oracle Tuxedo Application Runtime 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 11gR1(11.1.1.3.0)----------------About to uninstall...Oracle Tuxedo Application Runtime for IMS 11gR1This 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 Oracle Tuxedo Application Runtime 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 default is silent; do not modify this 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 OracleTuxedo Application Runtime for IMS, you must add this line to your templatefile.Any value other than "Y" or "y" will not overwrite the existing Oracle TuxedoApplication Runtime for IMS version and cancels the installation.Installing in Silent ModeSample UNIX TemplateINSTALLER_UI=silentORACLEHOME=/home/user/oracleUSER_INSTALL_DIR=/home/user/oracle/artims_11gR1INSTALL_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 Oracle Tuxedo Application Runtime 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 Oracle Tuxedo Application Runtime 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 11g Release 1 (11.1.1.3.0) supported platforms.Table A-1 Oracle Tuxedo Application Runtime for IMS 11g Release 1 (11.1.1.3.0)Supported PlatformsPlatform GA Port/Post-GA Port &Certification Release Date OS EOL DateAIX 6.1 64-bit on Power GA2011.12TBDLinux 64-bit on x86_64 (Oracle EnterpriseLinux 5.4 or Redhat Linux 5)GA2011.12TBD Oracle Linux 5.6 (64-bit) on Exalogic 2.0GA2011.12TBDOracle Linux 5.6 (64-bit) on non ExalogichardwareGA2011.12TBD Solaris 10 64-bit on Sparc GA2011.12TBDSupported PlatformsSupported Platform Data SheetsAIX 6.1 64-bit on PowerThe software requirements for AIX 6.1 64-bit on Power are as follows:z MicroFocus COBOL 5.1z COBOL-IT 2.9.5z IBM XL C/C++ 9Linux 64-bit on x86_64 (Oracle Enterprise Linux 5.4 or Redhat Linux 5)The software requirements for Linux 64-bit on x86_64 are as follows:z MicroFocus COBOL 5.1z COBOL-IT 2.9.5z gcc/g++ 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.1z COBOL-IT 2.9.5z gcc 4.1.2Oracle Linux 5.6 (64-bit) on Non Exalogic HardwareThe software requirements for Oracle Linux 5.6 (64-bit) on non Exalogic hardware are asfollows:z MicroFocus COBOL 5.1z COBOL-IT 2.9.5z gcc 4.1.2Supported Platform Data SheetsOracle Solaris 10 64-bit on SparcThe software requirements for Oracle Solaris 10 64-bit on Sparc are as follows:z MicroFocus COBOL 5.1z COBOL-IT 2.9.5z C/C++ Sun Studio 12Supported Platforms。

oracle_中间件_tuxedo

oracle_中间件_tuxedo

ORACLE TUXEDO特性z 分布式事务处理 z 可扩展的集成基础架构 z 高级安全性 z 高度可扩展性 z XA 两阶段提交 z 重复的服务框架 z 强大的故障管理 z 集群支持 z 性能指标监视 z ATMIz MQ 系列适配器 z 数据收集和报告 z 依靠数据的路由 z应用程序并行化优势z优化事务并确保跨所有资源的数据完整性,而不考虑访问协议。

z自动跟踪事务参与者并确保所有资源正确更新。

z同时在不同的分布式节点上处理多个事务。

z通过消除单点故障,在计划的和非计划的停机时间内使应用程序保持运行。

z灵活处理或延迟事务,允许分布式应用程序异步工作。

z动态复制整个网络的分布式应用程序,以使性能和可靠性最大化。

主要特性和优势在成千上万的部署提供可靠性能的第三个十年,Oracle Tuxedo 成为世界上最受关注的高端计算平台之一。

它将多年来所形成的令人放心的可靠性、性能和成熟度与最新的面向服务的体系结构 (SOA) 标准和技术相结合,使您的关键任务流程在您的环境中成为一流参与者。

不论您是要实现现有的 C 或 C ++ 应用程序的现代化、重新托管大型机 COBOL 应用程序,还是要根据极限处理事务需求构建新的 SOA 服务,Oracle Tuxedo 都是可靠的选择。

用于高吞吐量以及关键任务应用程序的引擎在当今的信息技术 (IT) 整合、全球范围内使用以及可持续利用的环境中,企业需要能够提供以下功能的企业应用服务器z支持在亚秒响应时间内每秒成千上万的事务处理,随负载变化的线性和动态扩展z提供基于标准的大型机、应用程序到事务管理器接口 (Application-to-Transaction Manager Interface, ATMI)、公共对象请求代理体系结构 (CORBA) 以及 Web 服务的互操作性,以便于集成和更快地推向市场 z通过透明、双向的 SOA 集成来实现 COBOL 、C 和 C++ 应用程序的现代化z通过提供支持已迁移大型机应用程序的平台,帮助客户降低维护关键任务企业系统的成本z可在多种平台上运行,从经济性台式机到最大、最强的数据中心Oracle Tuxedo 通过强大的可靠性和事务完整性、超高性能、线性扩展性以及基于配置的部署,为应用程序服务提供坚实的基础。

Tuxedo通讯方式解析(二)

Tuxedo通讯方式解析(二)

Tuxedo通讯⽅式解析(⼆)上⼀节简单介绍了tuxedo 是什么,并且详细介绍了安装过程。

我们学这个的⽬的就是让其能够跑起来,这⼀节就根据tuxedo⾃带samples的例⼦,让其运⾏起来。

并通过这个例⼦,深⼊的理解tuxedo的通讯⽅式。

进⼊tuxedo的安装⽬录,samples⽬录下⾃带了⼀些例⼦[root@localhost atmi]# pwd/hzh/tuxedo/tuxedo11gR1/samples/atmi[root@localhost atmi]# lsbankapp CSIMPAPP qsample simpapp ws xmlstockappcreditapp libutrace rpcsimp STOCKAPP xmlfmlapp凡是了解tuxedo 的同学都知道这⾥⾯有个著名的例⼦ simpapp ,它的作⽤就是把客户端发送的⼩写字母转换成⼤写字母返回给客户端。

我们就把这个例⼦运⾏起来。

前期准备:[root@localhost atmi]# cp -R simpapp/ /hzh/tuxedo/ 为了便于操作,把simpapp 拷贝到/hzh/tuxedo/ ⽬录下⾯。

[root@localhost tuxedo11gR1]# lsbin help inventory lib samples udataobjcobinclude include jre locale tux.env uninstaller[root@localhost tuxedo11gR1]# cp -R tux.env /hzh/tuxedo/simpapp/ 把tuxedo 安装⽬录下的tux.env 配置⽂件拷贝到/hzh/tuxedo/simpapp/ ⽬录下[root@localhost simpapp]# pwd/hzh/tuxedo/simpapp[root@localhost simpapp]# lsREADME simpcl.c simpserv.c tux.env ubbsimple配置运⾏ simpapp 例⼦配置tux.env⽂件[root@localhost simpapp]# vi tux.env 对配置⽂件进⾏修改TUXDIR=/hzh/tuxedo/tuxedo11gR1; export TUXDIRJAVA_HOME=$TUXDIR/jre; export JAVA_HOMEJVMLIBS=$JAVA_HOME/lib/i386/server:$JAVA_HOME/jre/binPATH=$TUXDIR/bin:$JAVA_HOME/bin:$PATH; export PATHCOBCPY=:$TUXDIR/cobinclude; export COBCPYCOBOPT="-C ANS85 -C ALIGN=8 -C NOIBMCOMP -C TRUNC=ANSI -C OSEXT=cbl"; export COBOPTSHLIB_PATH=$TUXDIR/lib:$JVMLIBS:$SHLIB_PATH; export SHLIB_PATHLIBPATH=$TUXDIR/lib:$JVMLIBS:$LIBPATH; export LIBPATHLD_LIBRARY_PATH=$TUXDIR/lib:$JVMLIBS:$LD_LIBRARY_PATH; export LD_LIBRARY_PATHWEBJAVADIR=$TUXDIR/udataobj/webgui/java; export WEBJAVADIRAPPDIR=/hzh/tuxedo/simpapp; export APPDIRTUXCONFIG=$APPDIR/tuxconfig; export TUXCONFIGLANG=C; export LANG配置ubbsimple ⽂件[root@localhost simpapp]# hostname //查看本机hostnamenode1[root@localhost simpapp]# vi ubbsimple# (c) 2003 BEA Systems, Inc. All Rights Reserved.#ident "@(#) samples/atmi/simpapp/ubbsimple $Revision: 1.7 $"#Skeleton UBBCONFIG file for the TUXEDO Simple Application.#Replace the <bracketed> items with the appropriate values.*RESOURCES#IPCKEY <Replace with a valid IPC Key>#Example:IPCKEY 123456DOMAINID simpappMASTER simpleMAXACCESSERS 10MAXSERVERS 5MAXSERVICES 10MODEL SHMLDBAL N*MACHINESDEFAULT:APPDIR="/hzh/tuxedo/simpapp"TUXCONFIG="/hzh/tuxedo/simpapp/tuxconfig"TUXDIR="/hzh/tuxedo/tuxedo11gR1"#Example:# APPDIR="/home/me/simpapp"# TUXCONFIG="/home/me/simpapp/tuxconfig"# TUXDIR="/usr/tuxedo"node1 LMID=simple //node1为本机hostname名#Example:#beatux LMID=simple*GROUPSGROUP1.......注意:APPDIR、TUXCONFIG和TUXDIR三个选项的路径要与 tux.env ⽂件中的配置保持⼀致。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Tuxedo 9.0 for AIX与Oracle 10 XA连接系统说明TUXEDO版本:9.0 安装目录/opt/bea/tuxedo9.0ORACLE版本:10.2.0.1 安装目录/u01/app/oracle一、Tuxedo 9 for AIX的安装1、创建一个用户为Tuxedo,用户组为bea2、创建/opt/bea为tuxedo的安装目录,$mkdir /opt/bea$chown tuxedo.bea /opt/bea$chmod 770 /opt/bea#bootinfo -k64$ sh tuxedo9_aix53_64.bin -i consolePreparing to install...WARNING: /tmp does not have enough disk space!Attempting to use /home/tuxedo for install base and tmp dir.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...======================================================== =======================Choose Locale...----------------->1- EnglishCHOOSE LOCALE BY NUMBER: 1======================================================== =======================(created with InstallAnywhere by Zero G)-------------------------------------------------------------------------------======================================================== =======================Introduction------------BEA End User Clickwrap 001205Copyright (c) BEA Systems, Inc.All Rights Reserved.DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT? (Y/N): y======================================================== =======================Choose Install Set------------------Please choose the Install Set to be installed by this installer.->1- Full Install2- Server Install3- Full Client Install4- Jolt Client Install5- ATMI Client Install6- CORBA Client Install7- Customize...ENTER THE NUMBER FOR THE INSTALL SET, OR PRESS <ENTER> TO ACCEPT THE DEFAULT : 1======================================================== =======================Choose BEA Home---------------1- Create new BEA Home2- Use existing BEA HomeEnter a number: 21- /opt/beaExisting BEA Home directory: 1======================================================== =======================Choose Product Directory------------------------1- Modify Current Selection (/opt/bea/tuxedo9.0)2- Use Current Selection (/opt/bea/tuxedo9.0)Enter a number: 2======================================================== =======================Pre-Installation Summary------------------------Please Review the Following Before Continuing:Product Name:Tuxedo 9.0Install Folder:/opt/bea/tuxedo9.0Link Folder:/home/tuxedoDisk Space Information (for Installation Target):Required: 386,803,702 bytesAvailable: 2,625,392,640 bytesPRESS <ENTER> TO CONTINUE:======================================================== =======================Ready To Install----------------InstallAnywhere is now ready to install Tuxedo 9.0 onto your system at thefollowing location:/opt/bea/tuxedo9.0PRESS <ENTER> TO INSTALL:======================================================== =======================Installing...-------------[==================|==================|================== |==================][------------------|------------------|------------------|------------------]======================================================== =======================Configure tlisten Service-------------------------Password: tuxedoVerify Password: tuxedoPassword Accepted! Press "Enter" to continue.======================================================== =======================SSL Installation Choice.------------------------Would you like to install SSL Support?->1- Yes2- NoENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT: : 2======================================================== =======================License Installation Choice---------------------------Would you like to install your license now?->1- Yes2- NoENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT: : 2======================================================== =======================Installation Complete---------------------Congratulations. Tuxedo 9.0 has been successfully installed to:/opt/bea/tuxedo9.0PRESS <ENTER> TO EXIT THE INSTALLER:安装完毕,需要把license文件重命名为lic.txt copy到$TUXDIR/udataobj/二、TUxedo 9 连接Oracle 10g配置前提是在Tuxedo 9 上安装Oracle 10g client还有安装C编译器(不一定要用Visual Age C/C++ 7,这里我用的是pro c),设置Tuxedo用户能够通过sqlplus连接oracle数据库1、ORACLE的的配置sqlplus system@testcrmSQL> @$ORACLE_HOME\rdbms\admin\xaview.sqlSQL>grant select on v$xatrans$ to public with grant option;SQL>grant select on v$pending_xatrans$ to public with grant option;SQL>grant select EMP to ScottSQL>GRANT SELECT ON DBA_PENDING_TRANSACTIONS TO Scott;注:scott默认为lock,需要用alter user scott account unlock,解锁。

相关文档
最新文档