473,396 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Serverwide Rollback

Hi

Having a little issue... is it possible to have multiple connections
all get rolled back to the same point? I have a small database that
seems to have been busy - but magically lost 5 hours of data (several
100k records...)

This is across multiple databases. In one of them I do have a large
identity gap - in the others the 'identity' type columns are self
rolled incrementers.

In a rollback I would normally expect to see _some_ data missing - but
not _everything_ from 20 odd connections all binned for 5 hours!

The only real clue I have is that one monitoring process that counts
the rows in a table (usually 200 - 400) running from SQLAgent took 5
hours to complete! Other than that NOTHING in any server log, nothing
in the sql logs.

Please - any serious suggestions - including any useful monitoring
ideas for future reference happily received!

Jul 23 '05 #1
6 1178
Hi

You don't say if this is a single database or you have multiple databases
that have this issue. It is highly
unlikely that multiple databases would have a gap. The only thing I could
think of would be the time/timezone being changed but I thought this was
logged in the event log.

John

<Wa******@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi

Having a little issue... is it possible to have multiple connections
all get rolled back to the same point? I have a small database that
seems to have been busy - but magically lost 5 hours of data (several
100k records...)

This is across multiple databases. In one of them I do have a large
identity gap - in the others the 'identity' type columns are self
rolled incrementers.

In a rollback I would normally expect to see _some_ data missing - but
not _everything_ from 20 odd connections all binned for 5 hours!

The only real clue I have is that one monitoring process that counts
the rows in a table (usually 200 - 400) running from SQLAgent took 5
hours to complete! Other than that NOTHING in any server log, nothing
in the sql logs.

Please - any serious suggestions - including any useful monitoring
ideas for future reference happily received!

Jul 23 '05 #2

"John Bell" <jb************@hotmail.com> wrote in message
news:42**********************@news.zen.co.uk...
Hi

You don't say if this is a single database or you have multiple databases
that have this issue. It is highly
unlikely that multiple databases would have a gap. The only thing I could
think of would be the time/timezone being changed but I thought this was
logged in the event log.
Actually was my other thought was if say the server lost its network
connectivity completely, and treated all its connections as "broken" and as
a result rolled back all of them.


John

<Wa******@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi

Having a little issue... is it possible to have multiple connections
all get rolled back to the same point? I have a small database that
seems to have been busy - but magically lost 5 hours of data (several
100k records...)

This is across multiple databases. In one of them I do have a large
identity gap - in the others the 'identity' type columns are self
rolled incrementers.

In a rollback I would normally expect to see _some_ data missing - but
not _everything_ from 20 odd connections all binned for 5 hours!

The only real clue I have is that one monitoring process that counts
the rows in a table (usually 200 - 400) running from SQLAgent took 5
hours to complete! Other than that NOTHING in any server log, nothing
in the sql logs.

Please - any serious suggestions - including any useful monitoring
ideas for future reference happily received!


Jul 23 '05 #3
I would hope the transacations would be short than that!!! But may be there
is no error checking (or even worse errors being deliberately ignored) in
the client?

John

"Greg D. Moore (Strider)" <mo****************@greenms.com> wrote in message
news:ff*******************@twister.nyroc.rr.com...

"John Bell" <jb************@hotmail.com> wrote in message
news:42**********************@news.zen.co.uk...
Hi

You don't say if this is a single database or you have multiple databases
that have this issue. It is highly
unlikely that multiple databases would have a gap. The only thing I could
think of would be the time/timezone being changed but I thought this was
logged in the event log.


Actually was my other thought was if say the server lost its network
connectivity completely, and treated all its connections as "broken" and
as
a result rolled back all of them.


John

<Wa******@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
> Hi
>
> Having a little issue... is it possible to have multiple connections
> all get rolled back to the same point? I have a small database that
> seems to have been busy - but magically lost 5 hours of data (several
> 100k records...)
>
> This is across multiple databases. In one of them I do have a large
> identity gap - in the others the 'identity' type columns are self
> rolled incrementers.
>
> In a rollback I would normally expect to see _some_ data missing - but
> not _everything_ from 20 odd connections all binned for 5 hours!
>
> The only real clue I have is that one monitoring process that counts
> the rows in a table (usually 200 - 400) running from SQLAgent took 5
> hours to complete! Other than that NOTHING in any server log, nothing
> in the sql logs.
>
> Please - any serious suggestions - including any useful monitoring
> ideas for future reference happily received!
>



Jul 23 '05 #4
(Wa******@yahoo.com) writes:
Having a little issue... is it possible to have multiple connections
all get rolled back to the same point? I have a small database that
seems to have been busy - but magically lost 5 hours of data (several
100k records...)
....
In a rollback I would normally expect to see _some_ data missing - but
not _everything_ from 20 odd connections all binned for 5 hours!

The only real clue I have is that one monitoring process that counts
the rows in a table (usually 200 - 400) running from SQLAgent took 5
hours to complete! Other than that NOTHING in any server log, nothing
in the sql logs.


If the connections never commit, and you then pull the plug - there
will indeed be a huge rollback. And the fact that your SELECT COUNT(*)
was stalled for five hours indicates that there was some serious
blocking.

This could have happened:

There was some initial blocking situation, which cause connections
to timeout. The timeout was not properly handled - that is transactions
started were not rolled back. The applications then continued and
were indeed able to insert both this and that. However, all were in
an open transaction, and then when something was closed down after
five hours, there was a rollback all over town.


--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 23 '05 #5
Thanks all for the feedback, its a rather sticky problem ...
Yes, the error handling is chaotic (I have been encouraging better
handling but people can't be bothered (or as you say have the last line
of a proc returning 0 explicitly!!) - and I don't have the power to
enforce it! - just pick up the pieces)

This sounds pretty much the closest explanation I to what seems to have
happened, guess I shall have to lean of the dev and management to get
it bulletproofed.

Cheers all.

Erland Sommarskog wrote:
(Wa******@yahoo.com) writes:
Having a little issue... is it possible to have multiple connections all get rolled back to the same point? I have a small database that seems to have been busy - but magically lost 5 hours of data (several 100k records...)
....
In a rollback I would normally expect to see _some_ data missing - but not _everything_ from 20 odd connections all binned for 5 hours!

The only real clue I have is that one monitoring process that counts the rows in a table (usually 200 - 400) running from SQLAgent took 5 hours to complete! Other than that NOTHING in any server log, nothing in the sql logs.
If the connections never commit, and you then pull the plug - there
will indeed be a huge rollback. And the fact that your SELECT

COUNT(*) was stalled for five hours indicates that there was some serious
blocking.

This could have happened:

There was some initial blocking situation, which cause connections
to timeout. The timeout was not properly handled - that is transactions started were not rolled back. The applications then continued and
were indeed able to insert both this and that. However, all were in
an open transaction, and then when something was closed down after
five hours, there was a rollback all over town.


--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp


Jul 23 '05 #6
Ok gents, thanks for the help here.
It happenend again this morning, but fortunatly they didnt kill it
before I got there.

Looks like the way we serialise our transactions caused all the other
connections to block up against one (leaving about 40 connections
blocked!) which had 3 open transactions (for about 5 hours!). By
altering a procedure to have a commit loop and calling this from the
still active website (which was routing all traffic to this functional
connection) we committed all the open transactions and recovered with
minimal data loss - rather than last time where I gather they restarted
the sql service resulting in the rollback of 5 hours worth! This of
course unblocked everything else. Now they are taking the error
handling seriously, looks like I'll be busy today rewriting other
peoples code!

Ta.

Jul 23 '05 #7

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

Similar topics

5
by: tkestell | last post by:
Is their anyway to perform mass deletes (several million records) without "maxing out" rollback segments? I'm working on archiving data from an Oracle 8.1.7 database The system is about 4 years...
2
by: Alice | last post by:
Hi all, Given a rollback segment with storage as follows : Initial Extent 5 MB Next Extent 5 MB Min Extents 20 Does this mean that every time a transaction uses this rollback segment it...
2
by: Alice | last post by:
Hi all, I have a problem with rollback segment. I am a beginner and do not have much knowledge of DBA. Anyways, the problem is there is a transaction of around 105 MB. This would not fit...
1
by: anders_tung | last post by:
Hi, I have a procedure which will call 3 functions. First function will update a record. Second function will delete a record. Third function will insert a record. Each function will return...
3
by: level8 | last post by:
Hi, Everybody, I'm a Hungarian SQL user and I need a little help for SQL Server 7 ! I protect my table against bad data with a trigger. I use ROLLBACK and RAISERROR statement in this trigger....
1
by: cheesey_toastie | last post by:
I have a long query which I have set off and would like to stop, and rename one of the tables used. My query is due to my lack of understanding of the underlying structure of MSSQL-Server... ...
2
by: Ian Boyd | last post by:
We're encountering a situation where we're encountering a deadlock, and someone's been made the deadlock victim. But after that, DB2 refuses to run any SQL, and instead we get the error message: ...
1
by: varmamkm | last post by:
I am new to db2 and want to know more about rollback and exception handling.... I am using AS/400 operations navigator to write the stored procedures. I am trying this by using SAVEPOING and...
2
by: NarutoFanatic | last post by:
Hello, I'm having trouble using a transaction - rollback statement in sql. I can't seem to have the rollback executed during an error when i've altered a table to add a column with the same name...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.