Installation and configuration of tuxedo in Windows-no database

Source: Internet
Author: User

Installation and configuration of tuxedo in Windows-no database

Papayas 2005-5-18

1. File preparation before installation

Download the tuxedo for Windows version and license file. The local computer uses the tuxedo9 Windows version. Details
Windows Installation Process is omitted. After normal installation, tuxedo will create a tlisten service, which has been started automatically.

Local tuxedo installation path C:/BEA/tuxedo9.0

II. Environment variable configuration after tuxedo Installation

[Win2000, XP]

Right-click my computer and choose Properties> advanced> environment variable to change the value.

Add C:/BEA/tuxedo9.0/lib in lib
Add C:/BEA/tuxedo9.0/include in the include item
Add C:/BEA/tuxedo9.0/bin in Path

Add the following two new items
Tuxdir C:/BEA/tuxedo9.0
Wsnaddr // 192.168.98.166: 4050 tuxedo Server IP address and port

In addition, you need to specify the path of the tuxedo application service. If you develop a tuxedo service using C, this service
File Path. The local path is F:/Liwei/TUXEDO/dbread.

Add according to the actual situation of the machine
Appdir F:/Liwei/TUXEDO/dbread
Tuxconfig F:/Liwei/TUXEDO/dbread/tuxconfig

Note: Once the environment variable is changed, the change will take effect immediately.
 
[Win98]

Unlike XP 2000, you need to change the autoexec. BAT file by adding the following command.
For example, set tuxdir = C:/BEA/tuxedo9 ~ 1

Note: The disadvantage of autoexec. bat is that it takes effect only after the machine is restarted. If we set up an environment
Variable files (such as tuxenv) can take effect after being modified in the file. Long file in autoexec. bat
The name must be abbreviated.

Example:

Set tuxenv = C:/BEA/tuxedo9 ~ 1 // tuxdeo environment variable File

Create the tuxenv file in the C:/BEA/tuxedo9.0 directory and add
Appdir = F:/Liwei/TUXEDO/dbread
Tuxconfig = F:/Liwei/TUXEDO/dbread/tuxconfig
...

3. Prepare the tuxedo client and server program code

Example of using Tuxedo: C:/BEA/tuxedo9.0/samples/atmi/simpapp
Client simpcl. c
Server simpserv. c

4. Prepare to compile the client server program

It is best to write various compilation commands to process files in batches. We need to install the C language compiler before compiling.
Usually VC ++ 6.0 is used. If you do not set the environment variable for VC during installation, you need to run it manually before Compilation:
E:/program files/Microsoft Visual Studio/vc98/bin/vcvars32.bat

Note: manually set variables will become invalid when the command line environment is disabled. It is best to copy to a local folder.

Content of the bclt. BAT file
F:
Cd f:/Liwei/TUXEDO/dbread
Buildclient-O simpcl-F simpcl. C-V
 
Bsrv. BAT file content
F:
Cd f:/Liwei/TUXEDO/dbread
Buildserver-O simpserv-F simpserv. C-s toupper-V

Start. BAT file content this file mainly serves to start the command environment of the current directory
CD
CMD

Simpcl.exeand simpserv.exe will be generated in the transcript after compilation. To start the service, you must configure
Ubbconfig.

5. Configure ubbconfig

The following is a complete ubbconfig file, which must be placed in a local directory. That is, it is maintained with the environment variable appdir.
. The file name is random. The Config File name is used here.

# Liwei

* Resources
Ipckey 123456
Domainid liweiapp
Master LW
Maxaccessers 3
Maxservers 3
Maxservices 3
Model SHM
Ldbal n

* Machines
Lwym
Lmid = LW
Tuxdir = "C:/BEA/tuxedo9.0"
Tuxconfig = "F:/Liwei/TUXEDO/dbread/tuxconfig"
Appdir = "F:/Liwei/TUXEDO/dbread"

* Groups
Group1 lmid = LW kgno = 1 openinfo = none
* Servers
Default:
Clopt = "-"
Simpserv srvgrp = group1 srvid = 1
* Services
Toupper

The detailed description of each section is complex. For details, refer to relevant information. Here, we will only explain what is confusing.

* The Master name under resources is arbitrary, but it must be consistent with the lmid in * machines and * groups.

* Configuration errors such as maxaccessers, maxservers, and maxservices under resources are as follows: 1. After the config is compiled,
Run tmboot on the command line. BBL cannot be started. re-set the correct values and compile config and tmboot.
BBL cannot be started. The reason is that the Task Manager contains the tuxipc process. Before compiling the config, kill it.
No problem.

* The server name under machines must be in uppercase. Otherwise, the non-master error will be prompted when the config is compiled.

* Machines content similar to tuxdir must be consistent with the environment variable settings.

* The simpserv name in servers must be the EXE file name compiled by your server program.

* The toupper of services is the service name set by-s when your server program is compiled.

5. Compile the config file and run the tmboot startup service.

The settings are complete. Run

Load. BAT file content
F:
Cd f:/Liwei/TUXEDO/dbread
Tmloadcf-y config

After the config file is compiled, the tuxconfig file is generated under appdir.
Run tmboot-y
BBL service started successfully. simpserv started successfully!

Run tmadmin to view the maintenance service status. Run simpcl.exe to view the interaction process.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.