473,563 Members | 2,696 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1186
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.goo glegroups.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.goo glegroups.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.co m> wrote in message
news:ff******** ***********@twi ster.nyroc.rr.c om...

"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.goo glegroups.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****@sommarsk og.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****@sommarsk og.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
12869
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 old and no data has EVER been archived /removed. So the two largest tables contain well over 25 million records! As part of the archive process...
2
3719
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 allocates 100 MB ? Does this mean that if there are two transactions using this rollback
2
2933
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 into the normal rollbacks created and gave an error of "maxextents for rollback reached", so our DBA created a rollback of 500 MB and I used this...
1
10029
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 a zero if successful, otherwise return 1. My questions are
3
7520
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. Users can get my error message after manual input, but the stored procedure always cancel because of ROLLBACK. So the input program dont't have...
1
5723
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... So say and update updates TABLE_A and I stop it, whilst this transaction is rolling back I attempt to rename TABLE_A to TABLE_A_OLD and rename a...
2
10754
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: "Application must execute a rollback. The unit of work has already been rolled back in the database but other resource managers involved in this...
1
3143
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 ROLLBACK but no luck... please help me out..... Declare exit handler for sqlexception set nerror = sqlcode; insert into empmaster (empname)...
2
11923
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 (run the alter script twice on purpose to test the rollback). Somehow i got an error of the column should be unique (since the column already added...
0
7664
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7885
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7638
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6250
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3642
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1198
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.