473,406 Members | 2,343 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,406 software developers and data experts.

many tempdb locks?

hi all,

we have a SQL2000SP3 runing in W2K3. The application is JDEdwards.

recently I've observed that once in a while (about a few hours), there
would be a process from the ERP application that holds quite a number
of extent locks in tempdb, can be as high as 10000 locks. when I run
sp_lock on that spid, it gives something like this:

697 2 0 0 EXT 1:156760 X GRANT
697 2 0 0 EXT 1:94896 X GRANT
697 2 0 0 EXT 1:132224 X GRANT
697 2 0 0 EXT 1:140488 X GRANT
697 2 0 0 EXT 1:181552 X GRANT
697 8 0 0 DB S GRANT
697 2 0 0 EXT 1:165280 X GRANT
697 2 0 0 EXT 1:127888 X GRANT
697 2 0 0 EXT 1:173544 X GRANT
697 2 0 0 EXT 1:152624 X GRANT
697 2 0 0 EXT 1:160888 X GRANT
697 2 0 0 EXT 1:144616 X GRANT
697 2 0 0 EXT 1:198336 X GRANT
697 2 0 0 EXT 1:107296 X GRANT
697 2 0 0 EXT 1:99176 X GRANT
697 2 0 0 EXT 1:169344 X GRANT
697 2 0 0 EXT 1:115704 X GRANT
I am wondering what action is it doing, creating temp tables?? many
thanks.

Jul 23 '05 #1
2 4204
New MSSQL DBA (bo*******@gmail.com) writes:
we have a SQL2000SP3 runing in W2K3. The application is JDEdwards.

recently I've observed that once in a while (about a few hours), there
would be a process from the ERP application that holds quite a number
of extent locks in tempdb, can be as high as 10000 locks. when I run
sp_lock on that spid, it gives something like this:

697 2 0 0 EXT 1:156760 X GRANT
697 2 0 0 EXT 1:94896 X GRANT
697 2 0 0 EXT 1:132224 X GRANT
697 2 0 0 EXT 1:140488 X GRANT
697 2 0 0 EXT 1:181552 X GRANT
697 8 0 0 DB S GRANT
697 2 0 0 EXT 1:165280 X GRANT
697 2 0 0 EXT 1:127888 X GRANT
697 2 0 0 EXT 1:173544 X GRANT
697 2 0 0 EXT 1:152624 X GRANT
697 2 0 0 EXT 1:160888 X GRANT
697 2 0 0 EXT 1:144616 X GRANT
697 2 0 0 EXT 1:198336 X GRANT
697 2 0 0 EXT 1:107296 X GRANT
697 2 0 0 EXT 1:99176 X GRANT
697 2 0 0 EXT 1:169344 X GRANT
697 2 0 0 EXT 1:115704 X GRANT
I am wondering what action is it doing, creating temp tables?? many
thanks.


Yes, that is likely to be locks for allocating space for temp tables.
It could also be overflow space for table variables, internal work
tables for sort etc.

Since the locks linger, this happens within a non-committed transaction.
It could be because it's a single query, or a long user-defined transaction
that accumulates data.

--
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 #2
Go to this link and follow the instructions provided. It has proven
INVALUABLE to me!

http://support.microsoft.com/default...b;en-us;328551

Must have at least .818 patch installed.
Must add the -T1118 startup parameter.
Split the tempdb data file into equal sized files and uncheck the
'autogrow' function.

Jul 23 '05 #3

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

Similar topics

2
by: New DB Admin | last post by:
Is it a good thing to do? what are the cons? Are there any risks? (this is an ISP database running 24 hrs) I have sql 6.5 on Win NT with 256 MB Ram (64 MB reserved for SQL Server). tempdb size is...
10
by: Jay Chan | last post by:
I keep getting the following error message when I run a serie of SQL commands: Server: Msg 9002, Level 17, State 6, Line 15 The log file for database 'tempdb' is full. Back up the transaction...
3
by: Deaconess | last post by:
I have shut down the SQL agent, rebooted the box and still my TEMPDB is at 4 GB plus. Is there any way to shrink it another way?
3
by: tom horner | last post by:
Something strange is happening to our SQL Server DB (2000). The tempdb transaction log file continues to grow (quite slowly) for no apparent reason. We have it in simple mode, and I have tried a...
2
by: Tom | last post by:
I received an error that the log in tempdb was full, but the log and data segments are set to automatically grow with no limit AND there is plenty of available space on the disk. So I don't...
8
by: arijitchatterjee123 | last post by:
Hi Group, I am facing a problem regarding locking. I have created a Stored Procedure in my Database. In this Stored Procedure Temprary Tables get created and after that values are inserted in...
1
by: SQL Server | last post by:
Hi, The tempdb file on one of our servers grew very large and used all available disk space. This is SQL Server 2000 SP4. I have installed hotfix version 8.00.2187. I opened a profiler trace but...
0
by: powerplay | last post by:
Hi we have an Company Search SP that is constantly being called in our Global Web application. Now we have had a serious issue with Blocking over the last two weeks. I’ve had a look at the SQL...
2
by: Thomas R. Hummel | last post by:
I was able to find a few posts on this topic, but none of them quite seemed to fit the situation, so I'm hoping that someone else might be able to help me here. I have a client who is using SQL...
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?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...

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.