Tuxedo 多机、多域、WTC实验手册.docx

上传人:飞****2 文档编号:56541860 上传时间:2022-11-02 格式:DOCX 页数:19 大小:368.61KB
返回 下载 相关 举报
Tuxedo 多机、多域、WTC实验手册.docx_第1页
第1页 / 共19页
Tuxedo 多机、多域、WTC实验手册.docx_第2页
第2页 / 共19页
点击查看更多>>
资源描述

《Tuxedo 多机、多域、WTC实验手册.docx》由会员分享,可在线阅读,更多相关《Tuxedo 多机、多域、WTC实验手册.docx(19页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、_太平洋保险Tuxedo培训Tuxedo实验指导DAY2实验一、Tuxedo多域配置相关课程:Tuxedo多机与多域配置建议时间:60分钟目标:l 了解Tuxedo多机配置l 了解Tuxedo多域配置l 了解Tuxedo WTC配置l 完成如下架构配置描述:本实验为综合性实验,需全面了解Tuxedo多机、多域及WTC实现机制,并且熟悉Tuxedo管理、配置方法,通过本实验的操作,以实现让学员能够对Tuxedo的管理操作得到充分了解。环境:Centos01(a)192.168.1.77Centos02(b)192.168.1.78实验步骤:环境准备:使用root编辑文件/etc/sysctl.c

2、onf#kernel.shmall = #fs.file-max = #fs.aio-max-nr = #kernel.shmall = #kernel.shmmni = 40960#kernel.sem = 500 64000 200 256 #net.ipv4.ip_local_port_range = 2048 65500 #net.core.rmem_default = #net.core.rmem_max = #net.core.wmem_default = #net.core.wmem_max = #Kernel.shmall=#Kernel.sem=250 32 1024#Ker

3、nel.msgmni=20480#kernel.msgmap=2048#kernel.msgmnb=#kernel.shmmax=kernel.sem = 500 64000 200 256kernel.msgmnb = kernel.msgmni = 1024kernel.msgmax = kernel.shmmni = 40960kernel.shmall = kernel.shmmax = 执行sysctl =p使之生效多机配置:Step 1:分别在a、b机器执行tuxedocentos01 $ cp -r /app/tuxedo/bea/tuxedo9.1/samples/atmi/s

4、impapp/ ./dom1tuxedocentos02 $ cp -r /app/tuxedo/bea/tuxedo9.1/samples/atmi/simpapp/ ./dom1完成基础目录创建Step 2:编辑环境变量,以适应当前环境export PATHexport TUXDIR=/app/tuxedo/bea/tuxedo9.1export PATH=/app/tuxedo/bea/tuxedo9.1/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/pssh/binexport LD_LIBRARY_PATH=/app

5、/tuxedo/bea/tuxedo9.1/lib:export APPDIR=/app/tuxedo/dom1export TUXCONFIG=/app/tuxedo/dom1/tuxconfigexport WSNADDR=/192.168.1.78:8888(a机器)export WSNADDR=/192.168.1.77:8888(b机器)Step 3:修改b机器simpserv.c,修改TOUPPER服务为tolowerTOLOWER(rqst)TPSVCINFO *rqst;#endif int i; for(i = 0; i len-1; i+) rqst-datai = tol

6、ower(rqst-datai); /* Return the transformed buffer to the requestor. */ tpreturn(TPSUCCESS, 0, rqst-data, 0L, 0);修改b机器客户端程序,调用TOLOWER服务 ret = tpcall(TOUPPER, (char *)sendbuf, 0, (char *)&rcvbuf, &rcvlen, (long)0);为 ret = tpcall(TOLOWER, (char *)sendbuf, 0, (char *)&rcvbuf, &rcvlen, (long)0);Step 4:分

7、别编译a、b机器客户机、服务器程序a机器tuxedocentos01 dom1$ buildserver -f simpserv.c -o simpserv -s TOUPPERtuxedocentos01 dom1$ buildclient -f simpcl.c -o simpcl -wb机器tuxedocentos02 dom1$ buildserver -f simpserv.c -o tolower -s TOLOWER tuxedocentos02 dom1$ buildclient -f simpcl.c -o calllower-wStep 5: a机器编辑ubb配置文件# (

8、c) 2003 BEA Systems, Inc. All Rights Reserved.#ident (#) samples/atmi/simpapp/ubbsimple $Revision: 1.5 $#Skeleton UBBCONFIG file for the TUXEDO Simple Application.#Replace the items with the appropriate values.*RESOURCES#IPCKEY #Example:IPCKEY DOMAINID dom1MASTER node1,node2MAXACCESSERS 200MAXSERVER

9、S 100MAXSERVICES 100MODEL MPOPTIONS LAN,MIGRATELDBAL N*MACHINESDEFAULT: APPDIR=/app/tuxedo/dom1 TUXCONFIG=/app/tuxedo/dom1/tuxconfig TUXDIR=/app/tuxedo/bea/tuxedo9.1 MAXWSCLIENTS=10centos01 LMID=node1 APPDIR=/app/tuxedo/dom1 TUXCONFIG=/app/tuxedo/dom1/tuxconfig TUXDIR=/app/tuxedo/bea/tuxedo9.1 MAXWS

10、CLIENTS=10centos02 LMID=node2#Example:#beatux LMID=simple*GROUPSGROUP1 LMID=node1,node2 GRPNO=1 OPENINFO=NONEGROUP2 LMID=node2 GRPNO=2 OPENINFO=NONE*SERVERSDEFAULT:RESTART=Y MAXGEN=5 REPLYQ=Y CLOPT=-Atoupper SRVGRP=GROUP1 SRVID=1tolower SRVGRP=GROUP2 SRVID=1*NETGROUPSDEFAULTNET NETGRPNO=0 NETPRIO=10

11、0BACKUPNET NETGRPNO=1 NETPRIO=300*NETWORKnode1 NETGROUP=DEFAULTNET NADDR=/192.168.1.77:5500 NLSADDR=/192.168.1.77:5600node2 NETGROUP=DEFAULTNET NADDR=/192.168.1.78:5500 NLSADDR=/192.168.1.78:5600node1 NETGROUP=BACKUPNET NADDR=/192.168.1.77:5501 NLSADDR=/192.168.1.77:5601node2 NETGROUP=BACKUPNET NADD

12、R=/192.168.1.78:5501 NLSADDR=/192.168.1.78:5601*SERVICESTOUPPERTOLOWERStep 7:a机器编译配置文件tuxedocentos01 dom1$ tmloadcf -y ubbsimpleStep 8:a、b机器分别启动tlisten进程tuxedocentos01 dom1$ tlisten -l /192.168.1.77:5600tuxedocentos02 dom1$ tlisten -l /192.168.1.78:5600Step 9: 启动Tuxedotuxedocentos01 dom1$ tmboot -yS

13、tep 10: a、b机器分别调用客户端测试a机器tuxedocentos01 dom1$ ./simpcl testb机器tuxedocentos02 dom1$ ./calllowerTESTStep11:检查节点状态tuxedocentos01 dom1$ echo pnw | tmadminStep 12:主节点切换在b机器上,执行tmadmin子命令master然后执行psr,检查DBBL目前处于哪个节点多域配置:Step 1:在a机器创建dom2基础目录tuxedocentos01 $ cp -r ./bea/tuxedo9.1/samples/atmi/simpapp/ ./do

14、m2Step2: 编辑dom1.env,dom2.env环境变量文件,以便操作tuxedocentos01 dom1$ cat /app/tuxedo/dom1/dom1.env export TUXDIR=/app/tuxedo/bea/tuxedo9.1export PATH=/app/tuxedo/bea/tuxedo9.1/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/pssh/binexport LD_LIBRARY_PATH=/app/tuxedo/bea/tuxedo9.1/lib:export APPDIR=/

15、app/tuxedo/dom1export TUXCONFIG=/app/tuxedo/dom1/tuxconfigexport WSNADDR=/192.168.1.78:8888export BDMCONFIG=$APPDIR/dmconfigtuxedocentos01 dom1$tuxedocentos01 dom1$ cat /app/tuxedo/dom2/dom2.env export APPDIR=/app/tuxedo/dom2export TUXCONFIG=$APPDIR/tuxconfigexport TUXDIR=/app/tuxedo/bea/tuxedo9.1ex

16、port BDMCONFIG=$APPDIR/dmconfigexport PATH=$TUXDIR/bin:$PATHexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TUXDIR/libtuxedocentos01 dom1$运行source /app/tuxedo/dom2/dom2.env使dom2环境变量生效,如下操作均在dom2环境下进行Step 3:编译客户端程序(TOLOWER,TOUPPER)略Step4:编辑ubb配置文件(不加入任何应用server)# (c) 2003 BEA Systems, Inc. All Rights Reserv

17、ed.#ident (#) samples/atmi/simpapp/ubbsimple $Revision: 1.5 $#Skeleton UBBCONFIG file for the TUXEDO Simple Application.#Replace the items with the appropriate values.*RESOURCES#IPCKEY #Example:IPCKEY DOMAINID dom2MASTER node1MAXACCESSERS 100MAXSERVERS 50MAXSERVICES 100MODEL SHMLDBAL N*MACHINESDEFAU

18、LT: APPDIR=/app/tuxedo/dom2 TUXCONFIG=/app/tuxedo/dom2/tuxconfig TUXDIR=/app/tuxedo/bea/tuxedo9.1 MAXWSCLIENTS=10#Example:# APPDIR=/home/me/simpapp# TUXCONFIG=/home/me/simpapp/tuxconfig# TUXDIR=/usr/tuxedocentos01 LMID=node1#Example:#beatux LMID=simple*GROUPSGROUP1 LMID=node1 GRPNO=1 OPENINFO=NONEAD

19、MGRP LMID=node1 GRPNO=2 OPENINFO=NONEDMGRP1 LMID=node1 GRPNO=3 OPENINFO=NONEDMGRP2 LMID=node1 GRPNO=4 OPENINFO=NONE*SERVERSDEFAULT: CLOPT=-AWSL SRVGRP=GROUP1 SRVID=10 CLOPT=-A - -n /192.168.1.77:9999 -m 5 -M 10DMADM SRVGRP=ADMGRP SRVID=1GWADM SRVGRP=DMGRP1 SRVID=2GWTDOMAIN SRVGRP=DMGRP1 SRVID=3GWADM

20、 SRVGRP=DMGRP2 SRVID=2GWTDOMAIN SRVGRP=DMGRP2 SRVID=3*SERVICESSetup 5:编辑域配置文件tuxedocentos01 dom2$ cat dm*DM_RESOURCESVERSION=CPIC_1.0*DM_LOCALDOM21 GWGRP=DMGRP1 TYPE=TDOMAIN DOMAINID=DOM21CONNECTION_POLICY=ON_STARTUPDOM22 GWGRP=DMGRP2 TYPE=TDOMAIN DOMAINID=DOM22CONNECTION_POLICY=ON_STARTUP*DM_REMOTE

21、DOM11 TYPE=TDOMAIN DOMAINID=DOM11DOM12 TYPE=TDOMAIN DOMAINID=DOM12*DM_TDOMAINDOM21 NWADDR=/192.168.1.77:5000DOM22 NWADDR=/192.168.1.77:5001DOM11 NWADDR=/192.168.1.77:4000DOM12 NWADDR=/192.168.1.78:4000*DM_LOCAL_SERVICES*DM_REMOTE_SERVICESTOUPPER LDOM=DOM21 RDOM=DOM12TOLOWER LDOM=DOM22 RDOM=DOM11tuxe

22、docentos01 dom2$Step6:编译ubb及域配置文件tmloadcf -y ubbconfigdmloadcf -y dmStep7:启动dom2tmboot -y运行source /app/tuxedo/dom1/dom1.env使dom1环境变量生效,如下操作均在dom1环境下进行Step 8:编辑配置文件,添加*GROUPSGROUP1 LMID=node1 GRPNO=1 OPENINFO=NONEADMGRP LMID=node1 GRPNO=2 OPENINFO=NONEDMGRP1 LMID=node1 GRPNO=3 OPENINFO=NONEDMGRP2 LMI

23、D=node1 GRPNO=4 OPENINFO=NONE*SERVERSDEFAULT: CLOPT=-AWSL SRVGRP=GROUP1 SRVID=10 CLOPT=-A - -n /192.168.1.77:9999 -m 5 -M 10DMADM SRVGRP=ADMGRP SRVID=1GWADM SRVGRP=DMGRP1 SRVID=2GWTDOMAIN SRVGRP=DMGRP1 SRVID=3GWADM SRVGRP=DMGRP2 SRVID=2GWTDOMAIN SRVGRP=DMGRP2 SRVID=3Step9:编辑域配置文件tuxedocentos01 dom1$

24、 cat dm*DM_RESOURCESVERSION=CPIC_1.0*DM_LOCALDOM11 GWGRP=GWGRP1 TYPE=TDOMAIN DOMAINID=DOM21 CONNECTION_POLICY=ON_STARTUPDOM12 GWGRP=GWGRP2 TYPE=TDOMAIN DOMAINID=DOM22 CONNECTION_POLICY=ON_STARTUP*DM_REMOTEDOM21 TYPE=TDOMAIN DOMAINID=DOM11DOM22 TYPE=TDOMAIN DOMAINID=DOM12DMWLS TYPE=TDOMAIN DOMAINID=D

25、MWLS*DM_TDOMAINDOM21 NWADDR=/192.168.1.77:5000DOM22 NWADDR=/192.168.1.77:5001DOM11 NWADDR=/192.168.1.77:4000DOM12 NWADDR=/192.168.1.78:4000DMWLS NWADDR=/192.168.1.78:4500*DM_LOCAL_SERVICESTOUPPERTOLOWER*DM_REMOTE_SERVICESStep 10:编译域配置文件tuxedocentos01 dom1$ dmloadcf -y dmStep 11:启动Tuxedo略WTC配置:Step1:

26、进入WTC设置,并新建WTC连接Step2:名称任意,可默认Step3:点击WTC进入WTC设置Step4:创建本地ACCESS POINTStep5:输入本地ACCESS POINT名称,名称、监听地址及端口与Tuxedo端一致(DMWLS)Step6:进入远程ACCESS POINT设置Step7:输入远程ACCESS POINT名称,名称、ip、端口与Tuxedo端一致Step8:进入导入服务设置Step9:导入TOUPPERTOLOWER服务Step10:设置远程ACCESS POINT连接策略,选择启动时Step11:设置绑定本地目标server名称Step12:检查服务是否正常导入Step12:检查WTC连接建立状态实验验证:所有域均正常建立连接,如下

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 教案示例

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁