【翻译自mos文章】services与rac中的 Distributed Transaction Processing (DTP)

86 篇文章 9 订阅
1 篇文章 0 订阅

来源于:

Services and Distributed Transaction Processing in Oracle RAC(DTP) (文档 ID 1307751.1)

APPLIES TO:

Oracle Database - Enterprise Edition - Version 10.2.0.1 to 10.2.0.5 [Release 10.2]
Information in this document applies to any platform.

SYMPTOMS

You may find the following message in alert log when application servers which perform distributed transactions connects to the database at first.


"Running Distributed Transactions in RAC without DTP service."

CAUSE

If you are running any kind of distributed transactions, the service that the application uses to connect to the RAC database should be enabled for DTP. This keeps all parts of a distributed transaction on the same instance, and allows the service to migrate to a new instance in case of instance failure.


Note: DTP services are not needed in 11.2. As long as the database initialization parameter GLOBAL_TXN_PROCESSES is greater than zero,Oracle11.2 allows different branches of the same global transaction to span multiple RAC instances.

 

SOLUTION

1.Check for what services do you have enabled?:


select * from v$active_services;



2. Enable all services for the application which uses DTP:


EXECUTE DBMS_SERVICE.MODIFY_SERVICE(service_name => '', DTP=>TRUE);



Or alternately you can use Oracle Enterprise Manager or SRVCTL to modify the DTP property of the singleton service. Set the DTP option (-x) for the service to TRUE 
(the default value is FALSE). 

The following example shows how to modify the xa_01.example.com service using SRVCTL:

srvctl modify service -d crm -s xa_01.example.com -x TRUE

Please see the following for more information:


Oracle Database Oracle Clusterware and Oracle Real Application Clusters Administration and Deployment Guide 10g Release 2 (10.2) Part Number B14197-09
6 Introduction to Workload Management
Services and Distributed Transaction Processing in Oracle RAC


Oracle Database Advanced Application Developer's Guide
11g Release 2 (11.2)
Part Number E25518-03
15 Developing Applications with Oracle XA

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值