We have oracle database and we need to push data to Oracle system via linked server using .Net windows application. there are more than one table to insert and we use transaction Scope to call each method to save data.
public void m1(){
try{
using(TranasctionScope scope = new TransactionScope()){
M1();
M2();
M3();
scope.complete();
}
}catch(exception ex){
throw ex;
}
}
Above M1(),M2() and M3() is used to insert data to oracle,But here i get error,
The operation could not be performed because OLE DB provider "OraOLEDB.Oracle" for linked server "EBS_PREPROD" was unable to begin a distributed transaction. OLE DB provider "OraOLEDB.Oracle" for linked server "EBS_PREPROD" returned message "New transaction cannot enlist in the specified transaction coordinator. ".
Can anyone solve this???? Thanks