473,503 Members | 722 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Database link and ORA-02041: client database did not begin a transaction

Hello, we are using Oracle 9i for client and server and Powerbuilder
8.0.3. We have a database link between two databases, whenever I try
to do a simple select, update or insert I get the following error. Any
idea why?
"ORA-02041: client database did not begin a transaction"

This is the sql I am using. It works fine if I am on sql plus. I have
also tried to "using sqlca" as well as creating a new transaction for
the select. All return the same error message.

string ls_new
select id_num
into :ls_new
from id_rec
where user_if = '818';
if sqlca.sqlcode <> 0 then
messagebox("Error ",sqlca.sqlerrtext)
end if


also this is the definition it gives for the error message
----------------------------------------
ORA-02041: client database did not begin a transaction

Cause: An update occurred at a coordinated database without the
coordinator beginning a distributed transaction. This may happen if a
stored procedure commits and then performs updates, and the stored
procedure is invoked remotely. It could also happen if an external
transaction monitor violates the XA protocol.

Action: If the cause is the former, check that any commit is not
followed by an update.
----------------------------------------
Jul 19 '05 #1
1 14450
after doing seach on other groups (MS Access) found a solution for my
problem..

Control Panal-->SYSTEM DSN--> pes_orcle_odbc-->Configure-->
Workarounds-->Disable Microsoft Transaction Server (check it)

worked wonders

fa*********@hotmail.com (fa*********@hotmail.com) wrote in message news:<fe**************************@posting.google. com>...
Hello, we are using Oracle 9i for client and server and Powerbuilder
8.0.3. We have a database link between two databases, whenever I try
to do a simple select, update or insert I get the following error. Any
idea why?
"ORA-02041: client database did not begin a transaction"

This is the sql I am using. It works fine if I am on sql plus. I have
also tried to "using sqlca" as well as creating a new transaction for
the select. All return the same error message.

string ls_new
select id_num
into :ls_new
from id_rec
where user_if = '818';
if sqlca.sqlcode <> 0 then
messagebox("Error ",sqlca.sqlerrtext)
end if


also this is the definition it gives for the error message
----------------------------------------
ORA-02041: client database did not begin a transaction

Cause: An update occurred at a coordinated database without the
coordinator beginning a distributed transaction. This may happen if a
stored procedure commits and then performs updates, and the stored
procedure is invoked remotely. It could also happen if an external
transaction monitor violates the XA protocol.

Action: If the cause is the former, check that any commit is not
followed by an update.
----------------------------------------

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
16165
by: Thiemo Kellner | last post by:
Hi, we have come across the problem that the execution of a stored procedure by our scheduling tool (cronacle -> over db link) fails with the error message: ORA-04068: existing state of...
1
3981
by: Doron | last post by:
I'm getting a ORA-00600 error on SYS.EXU8REF (see trace file below). SYS.EXU8REF is a view so the problem should be with one of the underlaying tables. i didnt run oerr12700 yet. can i find the...
6
4672
by: bdj | last post by:
Hello! I have at set of tnsnames.ora. I wich to make an union, e.g. a single file of it. How can I do that easy? Greetings Bjørn
3
22757
by: Michael John | last post by:
Hey, how can I get ORA-..... error messages in languages other than english. I did a alter session set NLS_LANG='GERMAN_GERMANY.WE8ISO8859P1'; but this only threw an ORA-00922. Or I'm wrong...
1
7142
by: Jawahar | last post by:
All, I have a C# application with an Oracle backend. There is a fair amount of locking being used to prevent two users from update the same records. So we use the Oracle FOR UPDATE NOWAIT in our...
2
14605
by: mpatel6 | last post by:
I had this error in alert log and my instance was down, anybody can help me? Errors in file /u01/app/oracle/admin/sotstest/bdump/sotstest_p004_626740.trc: ORA-07445: exception encountered: core...
8
25565
by: CJM | last post by:
I have a working web application (ASP) which links to an Oracle 10g DB via OO4O. I'm trying to port it to either of two test servers, but in fact, I can't get it to work with either - 'Unable to...
2
7604
by: prashanttarudkar9 | last post by:
Hi all, I installed oracle server 9.2.0.4.0 in Windows 2000 professional O.S. But now I am trying to connect with server, but I got the following error. ORA-12514: TNS:listener could not...
5
16995
by: Nitvar | last post by:
When i am trying to connect to oracle it is giving me these two errors ORA-12224: TNS:no listener ORA-01034: ORACLE not available I am new to oracle ,plz help I am using solaris 5.6 and...
1
2672
by: hoonig | last post by:
I have this traditional error "ORA-12560:TNS:Protocol Adapter Error" when trying to connect to my Oracle 8i databases on Netware (i.e when i load svrmgr31, plus81, etc...) Listener seems to work...
0
7089
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7463
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5017
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1515
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
738
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
389
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.