Install and configure tuxedo in Windows-database supplement

Source: Internet
Author: User

Install and configure tuxedo in Windows-database supplement

Papayas 2006-5-28

I. Sequencing

The document "install and configure tuxedo in Windows-Database" describes how to connect to the database through the Xa method, which involves many steps.
Use another method to directly write commands to connect to the database in the service program.

2. server programs

Minor modification

Exec SQL begin declare section;
Varchar ora_no [2];
Varchar ora_value [10];
Varchar ora_cn [30]; // Add
Exec SQL end declare section;

Exec SQL include sqlca;

// Add the following content: tpsvinit. tpsrdone is the default constructor and destructor of tuxedo.
Tpsvrinit ()
{
Strcpy (ora_cn.arr, "Liwei/Liwei @ windb ");
Ora_cn.len = strlen (ora_cn.arr );
Ora_cn.arr [ora_cn.len] = '/0 ';
Exec SQL CONNECT: ora_cn;
Return (0 );
}
Tpsrvdone ()
{
Exec SQL commit work release;
}

3. Configuration File

Comment out items related to Xa. Since the client and server are the same machine, it doesn't matter if WSL is needed. Commented out here.

* Groups

Group1 lmid = LW kgno = 1

# Openinfo = "oracle_xa: oracle_xa + ACC = P/Liwei + sqlnet = Linux + sestm = 600 + maxcur = 5 + logdir = ."
# Tmsname = "tms_ora9i" tmscount = 2

* Servers
Server srvgrp = group1 srvid = 1

# WSL srvgrp = group1 srvid = 300
# Clopt = "-a ---N // 192.168.98.166: 5898-D/dev/TCP-M1-M5-x 10"

* Services
Dbread

4. Compile server commands

Modify as follows:

Proc server. PC include = % tuxdir %/include
Buildserver-O Server-F server. C-s dbread-V

If an error similar to lnk2001: unresolved external symbol _ sqlcxt occurs during compilation, it is because
The orasql9.lib file cannot be found. Set the environment variable Lib, add E:/Oracle/ora92/precomp/lib, and modify the command:

Buildserver-O Server-F server. C-s dbread-V-l orasql9.lib

5. Compile the config file and run tmboot

Vi. Additional instructions

To configure tuxedo, follow these steps:

1. Set environment variables.
2. Prepare the client program on the server.
3. buildclient buildserver ).
4. Prepare the tuxedo config file.
5. Compile the config file (tmload ).
6. If the config file contains logs, you must use tmadmin to generate the log file (crdl, crlog). If an error occurs, you must delete the original log file.
7. Start the tuxedo Service (tmboot ).

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.