/
Oracle VDB Management

Oracle VDB Management

 

General

Virtual Database (VDB) is a fully functional copy of source database, that requires almost no storage and takes very short time to be created.

The management of VBD’s is done in the Virtual Databases work area. In addition, the same work area allows to perform tasks for a Golden Images(GI) and manage duplicates. It also allows to manage snapshots for all the objects.

Golden Image (GI)

Activate a GI

Live GI needs to be activated before it is allowed to create VDB’s on top of it.

Remove a GI

  1. Select a GI in the list.

  2. Click Remove Golden Image.

  1. Click Remove to confirm the deletion or Cancel to exit with deleting the volume.

After the GI is removed, the following message appears: Golden Image (live) has been deleted.

Edit a GI

  1. Select the GI in the list.

  2. Click Modify volume.

  1. Modify details:

Name - name of the GI (pay attention - it can be different from the TDE name which is shown in the Sources screen)

  1. To save your changes, click Modify. Otherwise, click Cancel.

See information about a GI

  1. Select the GI in the list.

  2. Click Volume info.

  1. The Info window appears.

The info window shows the next details:

image-20250426-113355.png
Volume info

Name - name of the GI

Description - description of the GI

Created at - created timestamp

Overall execution time - how much time it took to create the GI. Not defined for Live GI..

Storage path - the directory on the source server where the Live GI database should be running

DB Size - total size of the source database

Connection info - for Live GI only

Agent’s name - name of the source agent

The next details may be used to connect directly to the source database:

Host - hostname or IP of the source database

Port - listener port of the source database

Service - Oracle service name of the source database

Username - database user in the source database

Password - password of the above user

PITR Info - for RMAN GI and RMAN Standby GI
image-20250426-114245.png
  • Archive file location - location of archive logs on the source server

  • Archive Retention days - for how many days the archive logs will be kept

  • Archive logs start from - timestamp of the first archive log (pay attention that it may be already deleted according to the retention above)

  1. To see the last logs, click “Last Logs”. A last log of this GI is displayed

Click Auto-refresh to do an auto refresh.
Click Download to download the last log file

  1. To see the log history, click Log History

    image-20250426-114653.png

Choose log using timestamp and operation
The log is displayed
Click Auto-refresh to do an auto refresh.
Click Download to download the log file

Virtual Database (VDB)

Create VDB

  1. On the navigation bar, click Virtual Databases.
    The VDB Management window appears.

    image-20250424-085300.png
  2. Select a Test Data Environment using the list in the header

    image-20250424-085442.png
  3. Select a snapshot from the snapshots list on the right side of the screen.

    image-20250424-085757.png

It is possible to scroll using the time and date to the right of a search.

  1. Click Create VDB.

  1. Enter the VDB parameters:

    image-20250424-135442.png

From - the snapshot to build VDB from. By default it is the same snapshot that was selected earlier.
Name - name of the VDB
Description - an optional description
Start immediately - if selected then the VDB is started immediately after the creation, if not selected then the VDB will created and left in stopped state
Start as RAC - start the VDB as part of RAC
Target DB Home - select the database home that will run the VDB. Pay attention that it also selects the target host, since each DB Home is configured under a specific target host
Ora SID - the ORACLE_SID of the VDB
Parallel processes - number of parallel processes that are used to startup VDB and perform internal recovery (similar to RMAN parallelism)

  1. Enter the Snapshot policy parameters

    image-20250425-065332.png
    • Activate snapshots - select if you want automatic snapshots of the GI to be created

    • Repeat every - choose snapshot frequency

    • Start from - when to start creating snapshots

    • Snapshot retention period - how many days to keep the snapshots, they will be deleted automatically afterwards (if no dependent objects exist)

  2. Enter the Advanced Parameters, if necessary:

    image-20250425-065426.png
    1. Oracle Parameters - the Oracle parameters(spfile) that are used to start the VDB. If not specified, then the values from GI will be used. In order to add additional parameters use Settings > System > VDBS

    2. VDB startup pre/post scripts - full path to script files on the target server.

      1. Pre OS script - it is a shell script that is executed on the target server before the VDB is started

      2. Post SQL script - it is an SQL script that is executed in the database (VDB) after the VDB is started

      3. Post OS script - it is a shell script that is executed on the target server after the VDB is started

    3. Target database directory - custom directory name that will be used on the target server. This directory will be used to store all the VDB files. It is always under /main_pool root directory. If not specified that a random name will be generated.

    4. Rename datafile - change names of all datafiles , replacing string “From:” with string “To:”
      Example:
      Given “From: mydata”, “To: mystore”
      Then the original datafiles :

      /oradata/orcl/dbf/mydata01.dbf, /oradata/orcl/dbf/mydata02.dbf

      will be renamed in VDB into :

      /main_pool/121212/mystore01.dbf, /main_pool/121212/mystore02.dbf

  3. Generate Script - shell script to perform the same action in batch. Make sure to select a “Target DB
    Home” in the first screen.

    image-20250425-070724.png
  4. Click Create VDB. Otherwise, click Cancel to exit without creating a VDB.

  5. The VDB Management window displays the VDB that has been created.

    image-20250425-071016.png

 

 

VDB statuses

Icon

Meaning

Icon

Meaning

VDB is in a middle of an operation (starting, stopping, creating snapshot, etc.)

VDB is stopped

VDB is started. Only in this state users can connect to the VDB

VDB has failed to start. Check the log of the VDB to understand the reason why.

Start VDB

VDB can be started automatically when it is created or can be started separately.

  1. Select the VDB.

  2. Click Start VDB.

  1. Enter the VDB parameters:

    image-20250426-121146.png

Name - name of the VDB
Description - an optional description
Target DB Home - select the database home that will run the VDB. Pay attention that it also selects the target host, since each DB Home is configured under a specific target host
Ora SID - the ORACLE_SID of the VDB
Parallel processes - number of parallel processes that are used to startup VDB and perform internal recovery (similar to RMAN parallelism)

  1. Enter the Advanced Parameters, if necessary - same as in Create VDB

  2. Click Start VDB

Ignoring Oracle errors during VDB startup

During the VDB startup, any Oracle error stops the process and fails the startup. These errors may be ORA-, RMAN-, etc… To allow certain errors to be ignored, a special configuration file is used:
dst-agent-excluded-error-codes.properties
This file is located alongside the destination agent JAR file and is read during each VDB startup. Since it is dynamically loaded, changes can be applied without requiring a restart of the application. The structure is a properties file, where:

  • key is the error with prefix

  • value is free text explanation - for readability only, it is ignored by the application:

Sample:

ORA-32004=deprecated parameters RMAN-03002=failure of statement or recover command

Stop VDB

  1. Select the VDB.

  2. Click Stop VDB.

During the stop, the following message appears: VDB stop is in progress.

After the stop is complete, the following message appears: VDB has been stopped.

Force stop VDB

In some case a VDB can be stuck while stopping. It can be forcibly stopped. After a force stop the VDB state is reset, so it can be started again. The force stop option is always available, even for stopped VDB.

  1. Select the VDB.

  2. Click Force stop VDB.

During the force stop, the following message appears: VDB stop is in progress.

After the force stop is complete, the following message appears: VDB has been stopped.

Remove VDB

You can remove VDB only when it is stopped.

  1. Select the VDB.

  2. Click Remove VDB.

    image-20250426-123112.png
  3. Click Remove to confirm the deletion

Pay attention that removing VDB is an irreversible action!

List snapshots

The list of snapshots is displayed on the right pane. The list is updated every time you select GI, VDB or duplicate on the left pane. The snapshots are grouped by day. You can search for a specific snapshot using time filter or free text.

The time of snapshot refers the start time of the snapshot creation.

image-20231231-110652.png

Create a snapshot

  1. Select GI or VDB

  2. Click Add snapshot

    image-20250426-120209.png
  3. Enter Name and Description

    image-20250426-120241.png
  4. Click Add

Pay attention that every refresh of GI creates a snapshot of GI automatically

Remove a snapshot

  1. Select VDB

  2. Select the snapshot.

  3. Click Remove snapshot.

  1. Click Remove to confirm the deletion

After the snapshot is removed, the following message appears: Snapshot has been deleted.

Recover to the first snapshot

  1. Select VDB

  2. Click “Recovery to first snapshot”.

3. Click Recovery to confirm the recovery or Cancel to exit with recovering the snapshot.

After all the snapshots are removed, the following message appears: Volume has been recovered to the first snapshot.

Recover to any snapshot

  1. Select VDB

  2. Select any snapshot on the right pane.

  3. Click Recovery to this snapshot.

3. Click Recover to confirm the recovery or Cancel to exit with recovering the snapshot.

After the recover operation is complete, the following message appears: Volume has been recovered.

Create a duplicate

  1. Select VDB

  2. Select the snapshot.

  3. Click Create duplicate.

3. Enter a Name and Description of the new duplicate.

4. Click Create.

During the creation of the duplicate GI, the following message appears: Duplicate creation is in progress.

After the duplicate GI is created, the following message appears: Duplicate has been created.

The VDB Management window displays the duplicate GI that has been created.

Related content