Site icon EfmSoft

What does HRESULT 0xC80004B7 (hrDatabaseLocked) mean?

 
Previous Next
hrDatabaseCorrupted hrTableLocked

hrDatabaseLocked

Interpretation in ESE terms

hrDatabaseLocked means the database is locked against the requested access mode.

This is the legacy Directory Service backup/restore HRESULT form of JET_errDatabaseLocked (0xC80004B7).

The key comparison is: hrDatabaseInUse is ordinary active use; this code indicates a lock preventing the requested access. The first useful observation is to identify the owning process/session, file share modes, ESE attachment state, and maintenance or recovery operation. This evidence separates file identity, attachment, open-handle ownership, lock state, and structural validity.

The ESE objects in play

Diagnostic layerdatabase file, attachment state, JET_DBID ownership, and database lifecycle
Typical API surfaceJetCreateDatabase, JetAttachDatabase, JetOpenDatabase, JetCloseDatabase, and JetDetachDatabase
Code-specific conditionthe database is locked against the requested access mode
First corrective directionremove the legitimate owner cleanly or schedule exclusive work during a controlled outage

Creating an empty file is not a valid substitute for a missing or corrupted ESE database. Attachment is an instance relationship; opening a database returns a session-scoped database ID.

Comparison with adjacent failures

hrDatabaseInvalidPagesthe requested initial or maximum database size is not a valid page count
hrDatabaseNotFounda valid database name or path did not resolve to an attached or existing database
hrDatabaseInvalidNamethe database-specific name fails rules beyond a generic object name check

What to capture before retrying

Actions that can hide or worsen the problem

Operational response

  1. Freeze the failing request context and record 0xC80004B7, the Jet API name, and the current instance/session ownership.
  2. Verify the code-specific precondition: identify the owning process/session, file share modes, ESE attachment state, and maintenance or recovery operation.
  3. Apply the targeted fix: remove the legitimate owner cleanly or schedule exclusive work during a controlled outage.
  4. Before retrying the operation, reconcile attachment, open/closed state, file identity, and database header status.

Technical references


Looking for a different code? Search another status or error code.

Exit mobile version