`
iihero
  • 浏览: 254880 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Sybase ASE的XA Transactions(分布式事务处理)

阅读更多

ASE支持分布式事务处理,需要一些额外配置。
Using XA resources with Adaptive Server Enterprise
To use XA resources with an Adaptive Server Enterprise 12.0 or later database running on UNIX or Windows, perform these tasks:

(Windows only.) Verify that you have the correct license file, which is located in %SYBASE%\SYSAM-1_0\licenses\license.dat. To run XA transactions, you must have the ASE_DTM license.

Configure the database to use XA transactions. For more information, see Using the Adaptive Server Distributed Transaction Management Features, available on the Sybase Product Manuals Web page.
Create a database to use for XA transactions.

Configure the database tables and stored procedures required for JDBC connection caches, which are available in $JAGUAR/html/classes/sp/sql_server12.sql.
Configure the database tables required for C/C++ connection caches. You can install these tables by running xa_load.sh (UNIX) or xa_load.bat (Windows), which is located in the EAServer html/classes/sp directory.

Create a login, other than sa, for connecting to the database. You cannot use the sa login to connect to an Adaptive Server Enterprise databases for XA transactions.
Modifying the Adaptive Server configuration files
When you configure an XA resource for C/C++ connection caches, you need to modify two configuration files.
On UNIX:
$JAGUAR/interfaces
$JAGUAR/xa_config
On Windows:
%JAGUAR%\ini\sql.ini
%JAGUAR%\ini\xa_config
interfaces and sql.ini
On UNIX, add these lines to the interfaces file:
DbServer
master tcp ether host 5300
query tcp ether host 5300
On Windows, add these lines to the sql.ini file:
[DbServer]
master=NLWNSCK,host,5200
query=NLWNSCK,host,5200

where DbServer is the name of the database server and host is the name of the machine on which the database server runs. DbServer should have the same value that you entered in the Server Name field when you configured the XA resource.

xa_config
For both operating systems, add these lines to the xa_config file:
[xa]
lrm=serverName
server=DbServer
where:
serverName is the name you entered in the Server Name field when you configured the XA resource.
DbServer is the name of the server you entered in either the interfaces file or the sql.ini file.
serverName and DbServer represent the same server and should have the same value.

分享到:
评论

相关推荐

    Sybase ASE 12.5 使用Adaptive Server 分布式事务管理功能.pdf

    2. **X/Open XA 规范支持**:为了与其他遵循 XA 协议的事务管理器兼容,Sybase ASE 支持 X/Open XA 规范。这使得 Sybase ASE 能够作为资源管理器参与到更复杂的分布式事务中去。 3. **故障恢复能力**:在分布式事务...

    Sybase ASE ODBC Driver 下载

    该驱动程序支持SQL语句执行、事务处理、结果集处理等功能,确保了与数据库交互的高效性和稳定性。 **2. 安装与配置** 安装Sybase ASE ODBC驱动通常涉及以下几个步骤: - 下载并运行安装包(如ODBC1252)。 - 按照...

    ASE数据库分布式事务管理手册.pdf

    3. **Saga模式**:虽然不是ASE的内置功能,但Saga模式是一种用于处理分布式事务的替代方案,它将一个大的事务分解为一系列较小的本地事务,每个事务都负责更新数据的一部分。如果某个事务失败,后续的补偿事务将恢复...

    Sybase ASE 15.0简体中文技术参考手册.7z

    SybaseASE15.0 分布式事务管理.pdf SybaseASE15.0 参考手册-表.pdf SybaseASE15.0 参考手册_命令.pdf SybaseASE15.0 参考手册_构件块.pdf SybaseASE15.0 参考手册_过程.pdf SybaseASE15.0 实用程序指南.pdf Sybase...

    Sybase ASE 12.5.4 ODBC驱动包

    Sybase ASE 12.5.4 ODBC驱动包, 4.0.x 版本 将zip解到d:\\sybasease目录下边,然后注册下边的内容: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers] ...

    Sybase ASE参考手册(中文版,全4卷)

    2. **存储引擎** - 解析了Sybase ASE的物理存储机制,如数据页、索引页、事务日志等,以及如何优化这些存储元素以提升性能。 3. **事务处理** - 讨论了事务的ACID属性(原子性、一致性、隔离性和持久性),并提供了...

    Sybase ASE12.5附带的Sybase Central完整免安装版

    在ASE12.5的时代,Sybase Central提供了一个用户友好的界面,使得DBA(数据库管理员)和开发者可以更轻松地执行日常管理任务,如创建和修改数据库对象,监控服务器性能,备份和恢复操作,以及处理用户权限和安全设置...

    Sybase ASE v12.5 系统管理指南

    在v12.5版本中,Sybase对ASE进行了多方面的增强和改进,包括性能提升、安全性增强、备份恢复策略的优化以及对分布式数据库的支持等。 本指南分为两卷,Vol.1和Vol.2,详细阐述了以下几个核心知识点: 1. **安装与...

    在window下安装使用Sybase ASE 12.5

    Sybase ASE 12.5 在 Windows 下的安装和使用 Sybase ASE 12.5 是一种relation数据库管理系统(RDBMS),它可以在多种操作系统上运行,包括 Windows、Unix 和 Linux。在本文中,我们将详细介绍 Sybase ASE 12.5 在 ...

    Centos 安装sybase ASE-15 详细操作步骤

    在本教程中,我们将深入探讨如何在CentOS操作系统上安装Sybase Adaptive Server Enterprise(ASE)15,这是一个高性能的企业级数据库管理系统。以下是安装过程的详细步骤,以及可能遇到的问题和解决方案,以及所需的...

    SybaseASE12.5.2安装参考手册.doc

    Sybase ASE 12.5.2 安装参考手册 本手册旨在以图文方式,step by step 地描述在 Linux 上安装 Sybase ASE 数据库。以下是从该手册中提取的重要知识点: 知识点 1: Linux 安装 在安装 Sybase ASE 之前,需要先安装...

    sybase ase for linux 12.5安装

    Sybase ASE for Linux 12.5 安装指南 本文档旨在指导用户如何在 RedHat AS 5 上安装 Sybase ASE for Linux 12.5。 installation process covers the creation of a Sybase directory, setting up the user and ...

    如何单独在备份机上启动Sybase ASE12.5

    ### 如何单独在备份机上启动Sybase ASE12.5 #### 背景介绍 Sybase Adaptive Server Enterprise (ASE) 是一款高性能的关系型数据库管理系统。版本12.5虽然较老,但在某些特定环境下仍被广泛使用。在本篇文章中,...

    sybase ase 12.5 for windows part2

    sybase ase 12.5数据库windows版,上传权限不够拆分成两个压缩包。

    sybase如何在Sybase ASE上定时调度一个存储过程

    Sybase ASE 定时调度存储过程 在 Sybase ASE 环境中,定时调度存储过程是数据库管理员经常需要解决的问题。 Sybase ASE 提供了 Job Scheduler 机制来实现定时调度存储过程,然而,在安装和配置 Job Scheduler 之前...

    sybase ase 15 操作指南

    Sybase Adaptive Server Enterprise (ASE) 15 是一款高性能的企业级数据库管理系统,它提供了强大的数据处理能力和高度可靠的安全机制。本指南主要针对 Sybase ASE 15.0.3 版本在 Linux 平台上的安装与配置进行详细...

    SybaseASE、IQ文档

    ASE提供了一整套用于处理大量并发事务的解决方案,并且支持复杂查询和高度可伸缩性。 **ASE 15.0.3** 是一个重要的版本更新,主要包含了性能优化、安全性增强和新特性的引入。在Linux环境下安装Sybase ASE 15.0.3,...

    python 通过Sybase ASE ODBC Driver访问sybase数….docx

    ### Python 通过 Sybase ASE ODBC Driver 访问 Sybase 数据库 在当前的大数据时代背景下,数据库的应用无处不在,而 Python 作为一种强大的编程语言,因其简洁、易读及功能强大等特点,被广泛应用于数据处理与分析...

    sybase ase参考手册:配置参数.pdf

    Sybase ASE 配置参数手册 Sybase ASE 是一个关系数据库管理系统,提供了许多配置参数以满足不同应用场景的需求。下面是 Sybase ASE 配置参数手册中的知识点总结: 1. abstract plan cache:abstract plan cache 是...

    Sybase ASE15技术全解

    Sybase ASE作为处理关键业务计算的最有效的数据管理平台之一而确立了其在业界的领先地位,并通过不断提升产品性能为IT人员创造领先的运行优势而声名远扬。Sybase ASE15新增了磁盘内加密功能、智能分区功能、专利的...

Global site tag (gtag.js) - Google Analytics