- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
7#
发表于 2012-4-21 22:14:00
Services and Distributed Transaction Processing in Oracle RAC(DTP)
Applies to:
Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 10.2.0.5 - Release: 10.2 to 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."
Changes
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, Oracle 11.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
References
NOTE:462060.1 - How to Configure Load Balancing in an XA/RAC Environment for 10.2 and Above |
|