If it is going to be "obsoleted", I guess this just one more kick the butt to get that action going and upgrade the databases that needs to be upgraded.
DBCC CHECKDB runs longer
Hello,
We have Sql Server 2012 and we are running Ola's "DatabaseIntegrityCheck" job daily during off peak hours early in the morning, job runs fine but sometimes currently runs longer in our test server but production server no issue.
Server and Database settings are same in both Test and Production.
System going to be obsoleted so it's not updated with the latest patch.
We are having issue in both System databases and User Databases
This server had few databases but database are small and Total DBs size is less then 2 GB.
I checked TEMPDB and is not full.
Server having Disk Space also almost 95% Free space available.
When I checked WaitStat and it shows "RESOURCE_SEMAPHORE" for one of the user Database and Master database with command "DBCC TABLE CHECK" as stat shows 'SUSPENDED'.
I have standard MAX Memory setup to 80% out of 8 GB.
4 answers
Sort by: Most helpful
-
-
Seeya Xi-MSFT 16,571 Reputation points
Jan 31, 2023, 3:20 AM Hi pdsqsql,
Please refer to this document: sys.dm_os_wait_stats (Transact-SQL)
You can run the sp_who command to get a list of all the current users, sessions and processes. You can then run the KILL command on any spid that is blocking others.
Best regards,
Seeya
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
-
pdsqsql 411 Reputation points
Jan 31, 2023, 11:47 PM Seeya,
Thank you very much for your detailed response.
I already checked SP_WHO2 and there are no SPID session is blocking.
I have also killed some inactive sessions.
Not sure is it Memory issue or something else?
I have also run some Memory related query:
-
pdsqsql 411 Reputation points
Feb 8, 2023, 4:14 AM Seeya,
I restarted the server so will wait till next time if you issue comes back.
Thanks for all your help and everyone for your inputs.