GCP · Blog
Back to journal

Clinical Trial Database Lock: The Auditable State Machine (Soft Lock, Hard Lock, and the Controlled Unlock)

A database lock is the controlled transition where you stop write access to trial data so that what gets analyzed is exactly what was reviewed and reconciled. It is a state change applied to a record, not a milestone that means "data management is done." The cleaning, coding, and reconciliation must already be complete; the lock is the act of preserving that completed state so it cannot drift.

GCP 11 min read
A

Aileen

Aileen writes practical guidance for clinical trial teams at GCP Blog.

On this page · 9 sections
  1. 01 At a glance
  2. 02 What database lock really is: freezing the record, not finishing the work
  3. 03 The lock-state machine: soft lock vs hard lock vs unlocked
  4. 04 The entry-criteria gate: what must be true before you may lock
  5. 05 Sign-off and the Part 11 evidence trail
  6. 06 The controlled unlock: the riskiest moment, and how ALCOA+ survives it
  7. 07 DBL vs the pharmacovigilance Data Lock Point (DLP): do not conflate them
  8. 08 Database lock checklist (copy-paste)
  9. 09 Sources

At a glance

  • Database lock (DBL) freezes the trial record, it does not finish the work. Treat it as a controlled state machine (soft lock, hard lock, controlled unlock), not a one-way checklist you tick once.
  • The lock event is a decision that must be defensible in writing. ICH E6(R3) treats finalisation of data sets prior to analysis as a documented, pre-specified process, and 21 CFR Part 11 governs the audit-trail and e-signature evidence that proves who authorized it.
  • The controlled unlock is the single riskiest moment for data integrity. If a reopen overwrites the original entry, you have destroyed an ALCOA+ attribute that MHRA expects you to preserve.
  • Do not lock until the entry criteria are demonstrably met: all subjects accounted for, queries closed, medical coding signed off, SAE and external-data reconciliation done, listings reviewed, essential records filed.
  • The clinical DBL and the pharmacovigilance Data Lock Point (DLP) are two different freezes. Do not conflate them.
  • SOP-level lock mechanics are sponsor-defined. The regulations below set the integrity and evidence expectations your SOP must satisfy; they do not hand you a turnkey lock procedure.

What database lock really is: freezing the record, not finishing the work

A database lock is the controlled transition where you stop write access to trial data so that what gets analyzed is exactly what was reviewed and reconciled. It is a state change applied to a record, not a milestone that means “data management is done.” The cleaning, coding, and reconciliation must already be complete; the lock is the act of preserving that completed state so it cannot drift.

ICH E6(R3) frames this as finalisation of data sets prior to analysis. Section 4.2.6 requires that activities undertaken to finalise the data sets prior to analysis be confirmed and documented in accordance with pre-specified procedures, and it lists the kinds of activities involved: reconciliation of entered data and data sets or reconciliation of relevant databases, rectification of data errors and omissions, medical coding, and addressing the impact of noncompliance issues including protocol deviations. The lock is the gate at the end of that work, and the guideline treats data finalisation prior to analysis as a key decision point that must be documented (ICH E6(R3) §4 Data Governance lists data finalisation prior to analysis among the key decisions to support).

What the lock freezes is the operative record plus its metadata. Under MHRA GxP Data Integrity §6.16, the agency describes the lock in exactly these terms: once data management processes are complete, the data is locked by removing editing access rights, and this should be demonstrable within the system. That is the mechanism. Lock is the removal of write capability, evidenced in the system, not a label you paste on a spreadsheet.

The lock-state machine: soft lock vs hard lock vs unlocked

Most ranking guides blur soft lock and hard lock or skip the transitions entirely. Model the lifecycle as three states with explicit, auditable transitions.

StateWho can writeAudit-trail behaviorWhat triggers itHow to reverse
Soft lock (pre-lock freeze)Data management edits frozen; only controlled, logged corrections via a defined exception pathAudit trail fully active; every change captured with who/what/when/whyEntry criteria substantially met; final review and QC underwayRe-open editing within DM, logged; no formal unlock SOP needed because no hard lock declared yet
Hard lock (final lock)No edits to clinical data; write access removedAudit trail frozen against routine change; any later modification is exceptional and itself loggedSign-off complete; e-signatures applied; data cut + checksum takenControlled unlock SOP only (see below); never an ad hoc edit
Unlocked (controlled reopen)Narrow, named access for the specific approved change onlyAudit trail records the reopen, the change, and the re-lock as distinct eventsDocumented trigger + impact assessment + re-approvalRe-lock with fresh sign-off and a new data cut

The regulatory backbone of this table is access control. ICH E6(R3) §4.3.8 requires that access controls limit system access to authorized users and ensure attributability to an individual, that user access permissions be assigned based on duties and functions, and that permissions be revoked when no longer needed. Removing edit rights at hard lock is precisely a permission revocation, and §4.3.8 requires that those access records, including any updates to roles and permissions, be documented, maintained, and retained. Part 11 reinforces this: §11.10(d) requires limiting system access to authorized individuals, and §11.10(g) requires authority checks so that only authorized individuals can alter a record or perform the operation at hand. The state machine is enforceable because the regulations already require the access machinery underneath it.

A note on the audit trail across these states. The audit trail does not “turn off” at hard lock in the sense of being disabled. Part 11 §11.10(e) requires secure, computer-generated, time-stamped audit trails that record entries and actions which create, modify, or delete records, and it states that record changes shall not obscure previously recorded information. ICH E6(R3) §4.2.2(b) requires that audit trails, reports, and logs are not disabled and that they not be modified except in rare circumstances and only with a logged justification. So when this article says the audit trail is “frozen” at hard lock, it means the data is frozen against routine edits, not that logging stops. Logging never stops.

The entry-criteria gate: what must be true before you may lock

Lock is a gate, not a date. The most common rework finding is “we locked but coding wasn’t signed off.” Do not declare hard lock until every item below is demonstrably true and documented.

  • All randomized/enrolled subjects accounted for; disposition reconciled
  • All data queries raised and closed (or formally documented as won’t-fix with rationale)
  • Medical coding complete and signed off
  • SAE/AE database reconciliation against safety/pharmacovigilance complete
  • External/vendor data (central lab, ECG, ePRO, IRT) received, reconciled, and integrated
  • Protocol deviations identified, classified, and impact-assessed
  • Data review listings and edit checks reviewed; outstanding items resolved
  • Essential trial records filed and current

This checklist is not arbitrary; it tracks what ICH E6(R3) §4.2.6 names as the activities of data finalisation: reconciliation of entered data and relevant databases, rectification of errors and omissions, medical coding, and addressing noncompliance including protocol deviations. The guideline requires these be confirmed and documented under pre-specified procedures, which is why each item above needs evidence, not assertion. ICH E6(R3) also points directly at the lock artifact in its essential-records discussion: §C.3 lists, as an example of a trial record, a database lock checklist produced from following data management standard operating procedures. The expectation that you have an SOP-driven, documented lock checklist is in the corpus; the specific contents of that SOP are yours to define.

Sign-off and the Part 11 evidence trail

When an inspector asks “who authorized this lock and how do you know,” your answer is the Part 11 evidence. A confident verbal “the data manager locked it” is not evidence.

The lock authorization should be an electronic signature on the lock approval. Part 11 §11.50 requires that signed electronic records contain the printed name of the signer, the date and time the signature was executed, and the meaning of the signature (such as review, approval, responsibility, or authorship). For a lock approval, “meaning” is approval of lock, and that manifestation must appear in any human-readable form of the record. Part 11 §11.70 requires that the signature be linked to its record so it cannot be excised, copied, or transferred to falsify the record. So the lock sign-off is not a free-standing email; it is a signature bound to the lock event.

Where multiple roles approve (data management, biostatistics, the investigator or PI, medical/clinical), each signing is governed by Part 11 §11.200, which requires non-biometric e-signatures to use at least two distinct identification components such as an identification code and password, and the signature to be used only by its genuine owner. Each electronic signature must be unique to one individual and never reused or reassigned (Part 11 §11.100(a)). That uniqueness is what makes the sign-off attributable to a named person rather than to “the DM team.”

The evidence list to assemble for the lock:

  • E-signature(s) on the lock approval, with name, date/time, and meaning recorded (Part 11 §11.50)
  • Signature linked to the lock record so it cannot be transferred (Part 11 §11.70)
  • Audit-trail capture of the access-permission change that removed edit rights (ICH E6(R3) §4.3.8; Part 11 §11.10(e),(g))
  • A locked data cut with a checksum or equivalent integrity check so the analyzed extract is provably the locked extract
  • The completed, SOP-driven lock checklist (ICH E6(R3) §C.3)

ICH E6(R3) §4.2.2(a) requires that systems maintain logs of user account creation and changes to user roles and permissions, which is exactly the metadata that proves the edit-right removal happened and who did it. If your system cannot produce that log, you cannot prove the lock.

The controlled unlock: the riskiest moment, and how ALCOA+ survives it

Pages that treat lock as irreversible skip the one procedure most likely to generate a finding. Locks do get reopened: a late SAE, a coding error caught in TLF review, an external data correction. The question is never whether you can unlock; it is whether the unlock destroys integrity.

Run the unlock as a mini-SOP, not an ad hoc edit:

  1. Document the trigger. Record the specific reason the reopen is needed and the exact records affected.
  2. Impact-assess. Determine what analyses or deliverables the change touches, and whether unblinding status is affected.
  3. Re-approve. Apply fresh e-signature authorization to reopen, with the same Part 11 §11.50 manifestation (name, date/time, meaning = approval to unlock) used for the original lock.
  4. Make the change under a full audit trail. The reopen, the edit, and the re-lock are three distinct, time-stamped events.
  5. Re-lock with a new sign-off and a fresh data cut/checksum.

The integrity constraint that governs every step is ALCOA+. MHRA GxP Data Integrity defines data integrity as data being attributable, legible, contemporaneously recorded, original (or a true copy), and accurate, maintained throughout the data life cycle (MHRA §6.4 Data Integrity definition), with the ”+” adding Complete, Consistent, Enduring, and Available (MHRA §3 / Glossary). The unlock threatens two attributes in particular. First, Original: MHRA §6.13 requires that an audit trail provide secure recording of life-cycle details (creation, additions, deletions, alterations) without obscuring or overwriting the original record, and that previous and original data be retained while changes are made. An unlock that overwrites the pre-lock value rather than superseding it with a traceable correction has destroyed the original, and no amount of clean documentation recovers it. Second, Attributable: MHRA §6.13 requires that all data and changes be associated with the persons making them, dated and time-stamped, with the reason for change recorded. The unlock edit must carry who/what/when/why.

MHRA §6.16 also constrains who may touch the reopened data. It states that system administrator rights permitting activities such as data deletion, database amendment, or system configuration changes should not be assigned to individuals with a direct interest in the data, meaning those involved in data generation, review, or approval. The person executing an unlock at the system-admin level should not be the person whose analysis benefits from the change. Where teams get a finding is exactly here: an unlock performed by someone with edit privileges and a stake in the outcome, with an audit trail that cannot prove the original value survived.

DBL vs the pharmacovigilance Data Lock Point (DLP): do not conflate them

These two “locks” share a word and nothing else operationally. The clinical database lock is the freeze of the trial dataset for statistical analysis, governed here by the data-finalisation and data-governance expectations of ICH E6(R3) and the electronic-records controls of Part 11. The pharmacovigilance Data Lock Point is the cut-off date that defines which data are included in a periodic safety report (for example a DSUR or PSUR/PBRER); it is a reporting-period boundary, not a removal of write access to the trial EDC.

A precise scope note: the detailed DLP definition lives in pharmacovigilance legislation and the GVP modules, which are outside this article’s in-scope corpus, so this section disambiguates rather than instructs. MHRA’s data-integrity guidance even carves pharmacovigilance out of one of its own provisions, noting at §6.10 that data exclusion guidance is not applicable to GPvP and that, for GPvP, the pharmacovigilance legislation and GVP modules provide the governing requirements. Treat that as the signal: when you mean the safety-reporting cut-off, say DLP and route to PV governance; when you mean the analysis freeze of the clinical dataset, say database lock and apply the controls in this article. Conflating them produces a checklist that satisfies neither.

Database lock checklist (copy-paste)

Pre-lock (must all be true and evidenced):

  • Subject disposition reconciled; all enrolled subjects accounted for
  • All queries closed or formally documented
  • Medical coding complete and signed off
  • SAE/AE reconciliation with safety database complete
  • External/vendor data reconciled and integrated
  • Protocol deviations classified and impact-assessed
  • Data review listings reviewed; edit checks clear
  • Essential records filed

Lock authorization (Part 11 evidence):

  • E-signature on lock approval: name + UTC date/time + meaning (§11.50)
  • Signature linked to the lock record (§11.70)
  • Each signer’s e-signature unique and two-component (§11.100(a), §11.200)
  • Edit rights removed; access change logged (ICH E6(R3) §4.3.8; Part 11 §11.10(d),(e),(g))
  • Locked data cut taken with checksum/integrity check
  • SOP-driven lock checklist completed and filed (ICH E6(R3) §C.3)

Controlled unlock (only via SOP):

  • Trigger and affected records documented
  • Impact assessment completed (analyses, unblinding status)
  • Re-approval e-signed (§11.50)
  • Change made under full audit trail; original value preserved, not overwritten (MHRA §6.13)
  • Unlock executed by someone without a direct interest in the data (MHRA §6.16)
  • Re-lock with fresh sign-off and new data cut

The regulations above set the integrity and evidence bar. The exact roles, timing, and step sequence in your lock SOP are sponsor-defined: ICH E6(R3) §10 makes clear the sponsor retains overall responsibility for the conduct and integrity of the trial data even when activities are delegated. Software and access controls enable a defensible lock; they do not make you compliant on their own, and the sponsor remains accountable for the procedure that surrounds them.

Related topics on this site cover ALCOA+ and data integrity, audit-trail review, query resolution and data cleaning, and the study close-out checklist. This article is the lock-state and unlock-discipline piece of that set.

Sources

  • ICH E6(R3) Good Clinical Practice, version r3 — https://www.ich.org/page/efficacy-guidelines (§4.2.2 audit trails, §4.2.6 finalisation of data sets, §4.3.8 user management, §C.3 essential records, §10 sponsor responsibility)
  • 21 CFR Part 11 Electronic Records; Electronic Signatures, version 2026-04 (§11.10 controls for closed systems, §11.50 signature manifestations, §11.70 signature/record linking, §11.100 / §11.200 electronic signature components and controls)
  • MHRA GxP Data Integrity Guidance and Definitions, version 2018 (§3 ALCOA+, §6.4 data integrity, §6.13 audit trail, §6.14 electronic signatures, §6.16 user access and clinical-trial lock)
A

Written by

Aileen

Aileen writes practical guidance for clinical trial teams at GCP Blog.