Aller au contenu principal

Oracle Database Cloning

XLServer allows you to provision Oracle cloned databases for development, testing, QA, troubleshooting, or parallel workloads.
Two clone types are supported:

  • Virtual Clone: Lightweight clone using snapshots (no data duplication, minimal disk space).
  • Physical Clone: Full copy of the source database (block-to-block duplication).

When a backup strategy is attached to a live database, snapshots of the live database are created at regular intervals.
From the Live Database detail page, you can create either a Virtual Clone or a Physical Clone using the latest snapshot (default).
Alternatively, from a Snapshot detail page, you can create a clone specifically from that snapshot content.


⚙️ Prerequisites

To create Oracle clones from XLServer:

  • Oracle database is reachable from XLServer.
  • Target environment must be already added to XLServer.
  • XLServer must have SSH access to the target host.
  • Target environment must have Oracle RDBMS installed and listener running.
  • Target environment must be compatible with source environment:
    • Same Linux architecture.
    • Same distribution and major version.
  • Target Oracle RDBMS must be equal to or higher than source RDBMS version.
  • Database hosts must have NFS client installed.

🌀 Clone Types

Virtual Clone

  • Created instantly from snapshots.
  • Uses minimal disk space (ZFS snapshot rollback).
  • Can be reset, shared, converted to physical, stopped, or started.

Physical Clone

  • Full copy of live database (all data duplicated).
  • Takes longer to create.
  • No advanced actions (reset/share).
  • Managed like an independent database.

🌐 Create Oracle Virtual Clone

  1. Go to Oracle database detail page.
    Oracle database detail

  2. Click Actions > Create Virtual Clone → Confirm.

  3. The Cloning wizard is displayed.

  4. Select the target environment → Next.
    Select environment

  5. On Database Configuration page, enter:

    • Database Name (target DB name).
    • Mount Base (NFS mount point).
    • DB Unique Name (default: same as Database Name).
    • Instance Name (default: same as Database Name).
    • Post Script path (optional SQL script to run after clone creation).
    • RMAN Channels (used for parallel restore when converting to physical).
      Ignored for Oracle Standard Edition.
      Database configuration

    Click Next.

  6. In Parameters page, customize clone DB parameters.
    Parameters are inherited from template (if attached) or source database.
    Database parameters

    Click Next.

  7. Summary page displays entered values.
    Virtual clone summary

  8. Review and click FINISH.

  9. Follow execution in Jobs list.
    Clone job progress

    As no masking/upgrade is applied, clone creation is usually few seconds.

  10. Access the newly created Virtual Clone detail page.
    Virtual clone detail


📋 Oracle Virtual Clone Management

Configuration Parameters

Clone detail page (left panel) displays all settings:

ParameterDescription
ProjectProject to which clone belongs
EnvironmentClone environment
VendorAlways ORACLE
DB Unique NameUnique database identifier
Instance NameOracle instance name
Node NameHost node name
JDBC ServiceJDBC connection string
Source DatabaseName of source DB
Oracle HomeORACLE_HOME path
VersionOracle version
Character SetClone character set
DB IDClone DB identifier
Mount BaseNFS mount point
Database TypeClone Database
DB UserDatabase credentials
Specific Post Script ExecutionStatus (none, failed, success)
Generic Post Script ExecutionStatus (none, failed, success)
DatamaskingStatus (none, failed, success)
Creation TimeTimestamp of clone creation
Created ByUser who created the clone

Clone parameters


Dashboard Cards

On the right side:

  • Disk Usage
  • Disk Usage Ratio (vs live DB)
  • Clone Age
  • Snapshot Version (increments on reset)

Clone cards


Parent Container

Displays lineage of parent snapshot:

  • Last Applied SCN
  • Last Change Time
  • Snapshot creation time
  • Datafiles, controlfiles, tempfiles

Parent container


🔑 Change Credentials

  1. Click pencil near DB User.
  2. Enter new Username/Password.
    Change credentials
  3. Click VALIDATE.

⚡ Actions on Virtual Clone

Available from Actions menu:
Actions list


⏹ Stop

  • Stops clone DB.
  • Unmounts NFS from host.
    Stop

▶️ Start

  • Starts clone DB (mount + open DB).
    Start

🔄 Reset

  • Rewinds clone to initial state (all changes lost).
  • Snapshot version increments.
    Reset

🤝 Share

  • Creates another similar virtual clone on same/new environment.
  • No masking/post-script executed → very fast.

Steps:

  1. Actions > Share → Confirm.
    Share confirmation
  2. Select target environment.
    Select env
  3. Enter DB config (Name, Mount Base, DB Unique Name, Instance Name).
    Config
  4. Review summary → Finish.
    Summary
  5. Follow job progress.
    Job progress
  6. New shared clone is listed.
    Shared clones

💽 Convert to Physical

  • Moves clone DB files to local host directory.
  • Requires sufficient disk space (same size as source DB).

Steps:

  1. Actions > Convert to Physical → Confirm.
    Convert confirmation
  2. Enter Local Directory, DB File Name Convert, Log File Name Convert.
    Directories
  3. Review summary → Finish.
    Summary
  4. Track job progress.
    Progress
  5. Converted DB is listed as Physical Clone.
    List

🗑 Delete

  • Deletes virtual clone metadata.
  • Confirmation required.
    Delete

🏗️ Create Oracle Physical Clone

  1. Go to Oracle database detail page.
    DB detail

  2. Actions > Create Physical Clone → Confirm.

  3. Cloning wizard appears.

  4. Select Target Environment.
    Select env

  5. In Database Configuration page, enter:

    • Database Name
    • Mount Base
    • DB Unique Name
    • Instance Name
    • Post Script path (optional)
    • RMAN Channels
      Config
  6. Parameters page → Customize parameters.
    Parameters

  7. Review Summary.
    Summary

  8. Click FINISH.

  9. Follow progress in Jobs list.
    Progress

  10. Physical clone DB metadata visible in detail page.
    (No container defined in XLServer).


🗑 Delete Physical Clone

  • Actions > Delete.
  • Removes clone metadata from XLServer only.
  • Database continues to run independently on target host.
    Delete

✅ Summary

  • Virtual Clones: Fast, lightweight, shareable, resettable, convertible.
  • Physical Clones: Full independent copies, resource-heavy, slower to create.
  • Both provide a safe, isolated environment for testing and dev, without impacting production.