Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

DBCC CHECKTABLE Error: 1203, Severity: 20, State: 1. - process attempted to unlock a resource it does not own Expand / Collapse
Author
Message
Posted Monday, September 17, 2012 9:43 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Saturday, May 18, 2013 2:30 AM
Points: 106, Visits: 545
Recently we began receiving this error on a production database when a schedules job with DBCC CHECKTABLES runs:

Message
Process ID 115 attempted to unlock a resource it does not own: PAGE: 27:1:xxxxxxx. Retry the transaction, because this error may be caused by a timing condition. If the problem persists, contact the database administrator.


This is happening on the reported roll foward/roll backs between the CHECKTABLES. What is interesting is that it does not happen consistently but almost every time CHECKTABLE runs on a certain set of tables. It was recommended to run a CHECKDB, so I backed up the database, restored to another server, and ran a full CHECKDB, but got no errors. However, our scheduled job to run CHECKTABLES has been still getting this error on the production database.

Another interesting (maybe unrelated) note is that database id 27 does not exist. I thought the 27 pointer was supposed to refer to a database, however, we only have dbid up to 26 in sys.databases. Also, when I ran a CHECKDB on the other backup server, the dm_exec_requests showed that the CHECKDB was running on dbid + 1 greater thant the highest db id on that server as well, however, running select db_name(dbid) showed the correct database despite not being the id in sys.databases.

Anyone have an idea about this? Any ideas about the error? I'm thinking we may have to run against production to get the error for some reason. Could this be another issue with SQL Server and not an actual corruption issue?
Post #1360290
Posted Monday, September 17, 2012 10:05 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 6:25 AM
Points: 37,679, Visits: 29,934
Database ID 27 could be the hidden snapshot that the integrity check uses. Can you try a full checkDB?

DBCC CHECKDB (<Database Name>) WITH NO_INFOMSGS, ALL_ERRORMSGS




Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1360305
Posted Monday, September 17, 2012 12:18 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Saturday, May 18, 2013 2:30 AM
Points: 106, Visits: 545
We ran CHECKDB on the restored copy of the database, which should report the same problems as the production database right? My boss is very hesitant about running against production directly because in the past we have had a full CHECKDB bring a server down. It is not likely but we may have to wait for maintenance to run.

Is it possible that CHECKDB would show something on the production database, but not on the restored copy?
Post #1360391
Posted Monday, September 17, 2012 1:06 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 6:25 AM
Points: 37,679, Visits: 29,934
Can you run a full CheckDB on whatever database threw the CheckTable errors?


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1360416
Posted Monday, September 24, 2012 7:37 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Saturday, May 18, 2013 2:30 AM
Points: 106, Visits: 545
Ok, so I was able to run a full CHECKDB on the database over the weekend and it returned no errors. So I guess this is not a corruption issue, which is good, but it doesn't help explain why we suddenly started getting this message about once a week, or 5% of our CHECKTABLE runs, after NEVER getting it before.

The only change I can think of is we have recently upgraded to SQL2008 SP2 CU10.
Post #1363484
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse