Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
kamii47
Constraint Violating Yak Guru
353 Posts |
Posted - 2007-11-01 : 01:10:59
|
I am trying to do a two-phase commit one in Oracle9i and the other in SQLServer 2000.To connect to SQL Server I have created a Heterogeneous Service(using ODBC)and able toquery and insert records in SQL Server by creating a DB Link in OracleDatabase..Now If i try the steps below its resulting in errorORA-02047 cannot join the distributed transaction in progressthe step i performed are as follows.SQL> create synonym empsyn for emp1@hsodbc; - - creating a synonym fortable on sql serverSynonym created.SQL> insert into empsyn values ('hel'); --- inserting into table onsqlserver.1 row created.SQL> insert into emp values ('hel'); -- inserting into table on localoracleinsert into emp values ('hel')*ERROR at line 1:ORA-02047: cannot join the distributed transaction in progressThe requirement is if I insert into local Oracle table the correspondinginsert should be donein sqlserver..Pls let me know how to accomplish this..Kamran ShahidSoftware Engineer(MCSD.Net)www.netprosys.com |
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2007-11-01 : 23:10:55
|
Try from sql server with linked server to oracle? |
 |
|
kamii47
Constraint Violating Yak Guru
353 Posts |
Posted - 2007-11-02 : 03:37:51
|
Thanks rmiao.Can you please also describe how to do that ?Kamran ShahidSoftware Engineer(MCSD.Net)www.netprosys.com |
 |
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2007-11-02 : 23:09:50
|
Sql books online has details on how to create linked server. |
 |
|
|
|
|