Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 ORACLEDB ERROR IN UPDATE TO ORACLE FROM SQL
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

preethiLeela
Starting Member

India
5 Posts

Posted - 09/12/2014 :  00:03:47  Show Profile  Reply with Quote
While we try to update Oracle Table from Sql using ORACLED Linked Server we are facing the following error .We ave checked for an alternate option wether user lock occurs in oracle table Also no such scenarios occurs to prevent update .


Error :
OLE DB provider "OraOLEDB.Oracle" for linked server "Oracledb" returned message "ROW-00014: Cannot update row as the data in the database has changed".
Msg 7343, Level 16, State 4, Line 81
The OLE DB provider "OraOLEDB.Oracle" for linked server "Oracledb" could not UPDATE table "[OraOLEDB.Oracle]".

Query :
Update a
set sent_for_sch ='N'
from openquery (oracledb,'select * from sm40_cus')

kindly some one suggest solution .



preethi

ahmeds08
Aged Yak Warrior

India
737 Posts

Posted - 09/12/2014 :  08:14:23  Show Profile  Send ahmeds08 a Yahoo! Message  Reply with Quote
looks like lock issue.
can you try this.

Update a
set sent_for_sch ='N'
from openquery (oracledb,'select * from sm40_cus')
FOR UPDATE nowait;

Javeed Ahmed
Go to Top of Page

preethiLeela
Starting Member

India
5 Posts

Posted - 09/12/2014 :  09:56:01  Show Profile  Reply with Quote
thanks for the help ahmed ,But i have tried the above query till then i am facing the same issue,kindly suggest if any possible options available

Update a
set sent_for_sch ='N'
from openquery (oracledb,'select * from sm40_cus FOR UPDATE nowait')a

preethi
Go to Top of Page

preethiLeela
Starting Member

India
5 Posts

Posted - 09/17/2014 :  02:28:39  Show Profile  Reply with Quote
Distrubted transaction is not allowing in oracle .can some one help

preethi
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000