TriTiCon home
Search
GUIDE / TRITICON KNOWLEDGE SHARED

Database Lock in Clinical Trials: Steps, Types and What Happens After

Anders Mortin
Anders Mortin Meet the author ↗

New to TriTiCon? Try a free sample of the teaching ↗

Closed white ceramic box with a fastened brass clasp on a teal ledge, beside a stack of amber glass tiles and a brass key

A database lock is the formal, documented step at which a clinical trial database is closed to further changes, so that the data can be analysed and reported. Once the database is locked, nobody edits it in the normal way. Any later change goes through a controlled unlock and re-lock process that leaves a full audit trail.

Lock is the end point of the close-out stage in clinical data management. This guide explains what has to be true before a database can be locked, how a data freeze differs from a final lock, what happens straight after, and when a locked database can be reopened. For the wider lifecycle, see The Clinical Data Management Process.

What is a database lock?

Database lock (also called data lock or final lock) is the action data management takes to stop further changes to the trial database. In practice it means that editing rights are revoked, the time of the lock is recorded, and the dataset is released for statistical analysis. It is a milestone, not just a button in the EDC system: the decision rests on evidence that the data is complete, consistent and ready.

That evidence matters because the locked dataset is the baseline for the trial's results. If the data changes after analysis has started, the results can no longer be traced to a fixed dataset. This is why lock sits on top of the data integrity principles described in Quality Control and Audit Trails in Clinical Data Management, including ALCOA+.

The steps before database lock

Lock is the last step of a sequence. The conditions that must be met are normally written down in advance, in the data management plan, so that the team is not negotiating them under time pressure. The data management plan sets out how a trial's data will be captured, cleaned, coded, reconciled and locked. A typical sequence looks like this:

  1. Finish data entry and resolve queries. All expected data is in, and open queries are answered or closed. Because the investigator owns the site data, corrections are raised as queries for the site, never made by the sponsor directly. See Data Validation in Clinical Data Management.
  2. Complete medical coding. Adverse events and medications are coded and the coding is reviewed. See Medical Coding in Clinical Data Management.
  3. Complete reconciliation. Serious adverse event, laboratory and external vendor data agree with the clinical database. A database cannot credibly be locked while known cross-system discrepancies remain open. See Reconciliation in Clinical Data Management.
  4. Receive the final external data. The last transfers from vendors have arrived and been checked.
  5. Review and classify protocol deviations. Deviations are assessed so that their impact on the analysis populations is understood.
  6. Declare the clean file. Stakeholders meet at a clean file meeting and formally agree that the data meets the required standard, with any residual issues documented. Declaring the clean file is the gate that authorises the lock.
  7. Execute and document the lock. Access is revoked, the lock is recorded, and the required approvals are filed.

Most delays at this point have the same causes: unresolved queries, uncoded terms and unreconciled records that piled up during conduct. Cleaning that runs continuously through the trial, rather than at the end, is what keeps the lock on schedule.

Data freeze, soft lock and hard lock

The terms are used loosely, so it helps to separate them. Practice differs between sponsors, CROs and systems, so check the definitions in the procedures you work under.

Term What it means Can data still change?
Data freeze (soft lock) A temporary lock used to run final checks and listings. Data entry is stopped for most users. Yes, in a limited and controlled way, and the freeze can be lifted and re-applied.
Hard lock (final lock) The definitive closure of the database after cleaning, coding and reconciliation are complete. No, unless a formal, documented unlock is approved.
Interim lock A locked snapshot of the data for an analysis while the trial continues. The snapshot is fixed; data collection continues for the rest of the trial.
Partial lock A lock on a defined subset of the data, for stepwise analysis. The locked subset is fixed; the rest remains open.

What happens after database lock?

Lock is not the end of close-out. After it, the team moves through four things:

  • Unblinding. In a blinded trial, treatment assignments are revealed after lock so that the analysis can be run.
  • Data delivery. The final data and its documentation are delivered for statistical analysis and reporting.
  • Archiving. Data and documentation are archived in a structured, compliant way to meet retention requirements, including the Trial Master File.
  • System decommissioning. User access is revoked and the data collection and transfer systems are retired.

Close-out timelines are typically measured from last-patient-last-visit to database lock. Shortening that interval without cutting corners on quality is one of the clearest ways a data management team adds value.

Can a locked database be unlocked?

Yes, but only for a good reason. If a systemic error or missing critical data is found after a hard lock, the database can be unlocked through a formal procedure. The justification is documented, the right people approve it, the change is made under audit trail, and the database is locked again. A routine edit is never an option. That is why the work before lock matters so much: an unlock is slow, visible and hard to explain.

Learn database lock and close-out in practice

If you want to go beyond the outline, TriTiCon's course The Clinical Data Management Close-out Process covers the whole close-out phase: the clean file meeting, protocol deviation classification, database lock mechanics including interim and partial locks, unblinding, data delivery, archiving and system decommissioning. It is an 8-hour online course at intermediate level, with a certificate, and it suits Clinical Data Managers, aspiring data managers, Clinical Trial Assistants, CRAs and clinical operations and biometrics staff. The step before it is covered in The Clinical Data Management Conduct Process, and you can compare all options in the Clinical Data Management Courses collection.

For how AI is starting to help with lock readiness checks while leaving the decision to people, read AI in Clinical Trial Data Management: From Capture to Database Lock.

Frequently asked questions

What is a database lock (db lock)?

A database lock is the formal step that closes a clinical trial database to further changes once the data is complete and clean. Editing rights are removed, the lock is documented, and the data goes to statistical analysis. Later changes need a controlled unlock and re-lock.

What happens after database lock in clinical trials?

After lock, a blinded trial is unblinded, the final data is delivered for statistical analysis, data and documentation are archived, and the data collection systems are decommissioned.

What are the different types of database locks?

The common types are the soft lock or data freeze, the hard or final lock, the interim lock and the partial lock. A soft lock is temporary and allows controlled corrections. A hard lock is final. Interim and partial locks fix a snapshot or a subset of the data while the trial continues.

What is data freeze?

A data freeze is a temporary lock, often called a soft lock, used to run final checks before the hard lock. Data entry stops for most users, and the freeze can be lifted and re-applied if a genuine issue is found.

What has to be done before a database can be locked?

Queries are resolved, coding is complete, SAE, laboratory and vendor data are reconciled, protocol deviations are reviewed, and the clean file is declared at a clean file meeting. The criteria are normally set in the data management plan.

Can a database be unlocked after lock?

Yes, through a formal process with documented justification and approval, followed by a re-lock. It is reserved for serious issues such as a systemic error or missing critical data.

Where can I learn the database lock process?

TriTiCon Knowledgeworld offers The Clinical Data Management Close-out Process, an 8-hour online course that covers clean file declaration, database lock, data delivery and archiving.

Connected to this article

Put the knowledge to work.

Try the teaching

Start with the free sample.

Explore selected lessons before choosing your course.

Explore the free course ↗
Related reading

Keep exploring.