Hi All,
We are trying to update a table in SQLServer2008 using ODBC Connector/Enterprise stages using 4 node config file. Job is aborting with message "Deadlock".
Table is having a Clustered Unique index on key combination that I am using in Update statement in Job.
My Database is not partitioned DB so my table and index is also not partitioned.
Question here is, Can we update a non partitioned table with non partitioned Index in parallel using multiple nodes from Datastage??
Thanks,
Updating non partitioned table in Parallel with ODBC Stage
Moderators: chulett, rschirm, roy
Re: Updating non partitioned table in Parallel with ODBC Sta
Can you do it outside of DataStage? I suspect the answer is no.SwathiCh wrote:Can we update a non partitioned table with non partitioned Index in parallel using multiple nodes from Datastage??
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Yah, should have thrown that question out there as well as it is the 'go to' question in situations like this. Guess the 'clustered' part threw me off a bit, just went and read up on them and I don't think that plays a role.
Using the proper hash partitioning should keep the four updates from throwing random updates at the table and causing the deadlocking you are seeing now. Let us know.
Using the proper hash partitioning should keep the four updates from throwing random updates at the table and causing the deadlocking you are seeing now. Let us know.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Hi Craig and qt_ky,
Thanks for your replies.
We tried with proper partitioning but not useful. We are getting the same issue with hash and modulus partitioning too.
And also we collected the data from peek by partition wise and verified it. Datastage writing the data properly in partitions but somehow on SqlServer end, same record going into different sessions. We couldn't figure it out it is either ODBC connector stage or Sql Server issue?
Thanks for your replies.
We tried with proper partitioning but not useful. We are getting the same issue with hash and modulus partitioning too.
And also we collected the data from peek by partition wise and verified it. Datastage writing the data properly in partitions but somehow on SqlServer end, same record going into different sessions. We couldn't figure it out it is either ODBC connector stage or Sql Server issue?
--
Swathi Ch
Swathi Ch