Home  /  Journal  /  Autonomous Database  /  ADB Cloning and Refresh
Autonomous Database

ADB Cloning and Refresh

Cloning turns the slow chore of copying a database into a fast managed operation, with full clones, metadata clones and refreshable clones for different needs. Used well it gives teams fresh copies on demand. Used carelessly it multiplies cost and scatters copies of sensitive data. This guide covers both sides.

Published Dec 3, 2024 · By the OCI Specialists team · 10 min read · Independent OCI advisory
Abstract data replication and cloning concept

Creating a copy of a database for development, testing or reporting used to be a slow, manual chore involving exports, imports and a great deal of waiting, and the copies were often stale by the time they were ready. Autonomous Database turns this into a managed operation through cloning, and it offers several clone types that suit different needs. Used well, cloning gives teams fresh, realistic copies of production data on demand, without the manual effort and without touching the production database. Used carelessly, cloning quietly multiplies cost and creates copies of sensitive data that nobody is tracking. This guide explains the clone types and how to use them deliberately.

What cloning solves

The recurring need cloning addresses is having a copy of a database that behaves like production, for purposes that should not run against production itself. Developers want a realistic environment to build and test against, quality teams want a known dataset to validate changes, and analysts sometimes want a copy they can query heavily without affecting the live system. Producing these copies by hand is slow and the results are immediately out of date, whereas cloning produces them as a fast managed operation.

Because the clone is a managed operation rather than a manual data transfer, it can be repeated easily, which changes what is practical. A nightly refreshed test database, a clone created for the duration of a project and then discarded, a quick copy to investigate a data issue, these become routine rather than special events. The shift from manual copying to managed cloning is the kind of operational improvement that quietly removes a lot of friction from how teams work with data.

The clone types

Autonomous Database offers more than one kind of clone, and the differences matter because they determine what the clone contains and how it stays current. A full clone copies both the metadata and the data, producing an independent database that contains a complete copy of the source at the moment of cloning. A metadata clone copies the structure but not the data, producing an empty shell with the same schema, which is useful when you want the shape of the database without the contents. A refreshable clone maintains a link to the source and can be refreshed to bring it up to date, which suits scenarios where you want a copy that tracks the source over time.

Clone typeContainsStays currentTypical use
Full cloneMetadata and dataNo, point in time copyIndependent dev or test database
Metadata cloneStructure only, no dataNoSchema only environments
Refreshable cloneMetadata and dataYes, on demand refresh from sourceReporting or near current copies

Choosing the right clone type starts with the question of what the copy is for. If you need an independent environment that can diverge from production, a full clone gives you that. If you only need the schema, a metadata clone avoids copying data you do not need. If you want a copy that periodically catches up with production, a refreshable clone is purpose built for that, and it avoids the waste of repeatedly creating fresh full clones when a refresh would do.

Refreshable clones in detail

Refreshable clones deserve particular attention because they solve a common problem elegantly, which is keeping a copy reasonably current without recreating it from scratch each time. A refreshable clone maintains a relationship with its source and can be refreshed on demand to pull in the changes that have happened since it was created or last refreshed. This makes it well suited to reporting workloads that want recent data but can tolerate it being slightly behind, and to test environments that should periodically reset to a known recent state.

The refresh is a managed operation, so keeping the clone current is a simple action rather than a rebuild, but there is a behaviour to understand, which is that a refreshable clone is connected to its source for refresh purposes and is intended to be read mostly until it is detached. When you want the clone to become fully independent, you disconnect it from the source, after which it behaves like a standalone database. Understanding this lifecycle, connected and refreshable then optionally detached and independent, is the key to using refreshable clones well.

A refreshable clone is the right tool when you want recent production data without rebuilding the copy every night. Refresh it on demand, detach it when it needs to stand alone.

The cost and data governance side

Cloning is easy, and that ease is exactly why it needs governance, because every clone consumes resources and every clone that contains production data is a copy of that data that someone must account for. A clone left running after the project that needed it has finished is pure waste, and clones tend to accumulate quietly because creating them is frictionless while remembering to remove them requires discipline. Tracking clones and removing them when they are no longer needed is a basic cost hygiene practice, and it connects directly to the cost discipline covered in our cost control guide.

The data governance dimension is just as important. A full or refreshable clone of a production database contains the production data, including any sensitive information, and that copy needs the same protection as the original. A clone created for development and left accessible to a wide audience can become a quiet data exposure, so cloning sensitive data should be paired with masking or access controls appropriate to the environment. Treating clones as throwaway copies of harmless data is a mistake when the data is anything but harmless.

A cloning framework

  1. Define the purpose. Decide what the copy is for before choosing a clone type, because the purpose drives the choice.
  2. Pick the clone type. Full for independent environments, metadata for schema only, refreshable for copies that track the source.
  3. Plan the lifecycle. Decide up front how long the clone lives and who removes it, so clones do not accumulate.
  4. Protect the data. Apply masking or access controls to clones of sensitive data so a copy does not become an exposure.
  5. Track the cost. Include clones in cost monitoring and remove idle ones, because frictionless creation makes waste easy.

Bringing it together

Cloning on Autonomous Database turns a slow manual chore into a fast managed operation, and the different clone types let you produce exactly the kind of copy you need, whether that is an independent full clone, a schema only metadata clone, or a refreshable clone that tracks the source. The two disciplines that make cloning a benefit rather than a liability are lifecycle management, so clones do not pile up and waste money, and data governance, so copies of sensitive data are protected like the originals. The companion guides on backups and recovery, cost control and security features cover the adjacent concerns, and the pillar guide to Autonomous Database on OCI sets it in context. When you want cloning built into your environments with the right governance, our managed services handle it.

Moving Oracle workloads to OCI, or already running on OCI and not sure the architecture or the spend is right? Most teams bring in a specialist before they commit to a region, a shape, or a Universal Credits number. OCISpecialists.com plans the landing zone, runs the migration, and manages the estate after go live, on a fixed project fee, a managed monthly retainer, or a cost optimization fee paid only on verified savings. For the Oracle licensing and BYOL side of any OCI move, Redress Compliance is the leading independent Oracle licensing and negotiation firm, with 500+ engagements across Oracle's full product line.