473,395 Members | 1,936 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,395 software developers and data experts.

"Waiting for Buffer Latch" Error

Bob
Does anybody know what might cause the following message to show up in
the SQL Server Error Log?:

Time out occurred while waiting for buffer latch type 2, bp
0x12260f80, page (5:77914), stat 0x40d, object ID 7:421576540:0,
waittime 500. Continuing to wait.

I've read several articles about what to do about this situation on
SQL Server 2000, but I'm running SQL Server 7.0. Specifically, I'm
running version 7.00.842. Is there a way to resolve this problem
without upgrading to some flavor of SQL Server 2000?
Jul 20 '05 #1
2 13771
Bob (bo******@enron.com) writes:
Does anybody know what might cause the following message to show up in
the SQL Server Error Log?:

Time out occurred while waiting for buffer latch type 2, bp
0x12260f80, page (5:77914), stat 0x40d, object ID 7:421576540:0,
waittime 500. Continuing to wait.

I've read several articles about what to do about this situation on
SQL Server 2000, but I'm running SQL Server 7.0. Specifically, I'm
running version 7.00.842. Is there a way to resolve this problem
without upgrading to some flavor of SQL Server 2000?


I have no experience of this message, least of all on SQL7. But from
what I read out on the KB articles with the string "waiting for buffer
latch", my suggestion is that open a case with Microsoft. At least if
these messages comes along with problems on the machine. (If all is
well and fine, and you just happened to find theses message by chance
in the log, it may be benign.)

--
Erland Sommarskog, SQL Server MVP, so****@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #2
Bob

I had some buffer latch problems on a SQL Server 7 system and found it
very difficult to find any help.

While it might not be the same if I tell you what caused my problem it
may point you in the right direction.

Using the object id as a key, you should be able to see what object is
being affected, then you need to find out what process is causing the
problem.

In my case what was happening was a stored procedure was running that
updated a fairly large table (Around 80,000,000 rows). Due to the data
source there was a small duplication of data. When the stored
procedure completed a second stored procedure kicked off that deleted
the duplicate rows.

What seemed to happen was that although the inserts had completed,
they had not been written to disk. As the deletes started, a
checkpoint kicked in that was trying to write the data to disk. I
can't explain exactly what happened, but some sort of conflict between
the inserts, deletes and checkpoint procedure just caused the sysytem
to hang and buffer latch messages to be produced. The only way to
resolve the problem was to reboot the system.

To confirm this was the problem and provide a quick work around, I
added a third step to the process. After the inserts, I performed a
checkpoint and only ran the delte process after the checkpoint had
completed. This solved the problem. As a longer term solution, I
changed the insert process to not insert duplicate rows.

I hope this might help.

John
Jul 20 '05 #3

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

Similar topics

0
by: lezah | last post by:
what is the meaning "latch" in the shared pool and library cache?
0
by: habdalla | last post by:
When loading crystal reports in my windows applications(created using Visual C#), I get an error "Buffer too small for string or missing null byte". I tried various things i.e. increasing the...
7
by: Eric Laberge | last post by:
Aloha! This question is meant to be about C99 and unnamed compound objects. As I read, if such a construct as int *p = (int){0}; is used within a function, then it has "automatic storage...
0
by: wxqun | last post by:
I'm try tuning a SELECT statement which is used by a Cognos cube on a DB2 V7.2 +FP13. After I did the tuning, the "dynexpln" shows the "total cost" is down to 8214567 from 37345265, also I try to...
0
by: wxqun | last post by:
I'm trying tuning a SELECT statement which is used by a Cognos cube on a DB2 V7.2 +FP13. After I did the tuning, the "dynexpln" shows the "total cost" is down to 8214567 from 37345265, also I try...
4
by: Jono | last post by:
Hi Everyone, As it says in the title, I'm looking for a way to display a page while long running operations are performed on the server. Ideally, I'd like some way to push the current request...
5
by: arnuld | last post by:
this is from mentioned section. i did not understand some things here: it means "flushing the buffer" and "writing to output device" are SAME thing, these are just 2 different names for the...
3
by: =?ISO-8859-1?B?Rvpsdmlv?= | last post by:
Hello all, My application delay some minutes when I press a button(it's doing some working ). How can I put a message: "Please wating" during this delay? It is important that after the...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.