Skip to main content
Delphix

Oracle Virtual Pluggable Database Snapshots Take Over Fifteen Minutes to Complete and Report Missing Archivelogs (KBA5832)

 

 

KBA

KBA# 5832

Troubleshooting Oracle VCDB snapshots taking over fifteen minutes and reporting missing archivelogs

Delphix currently (as of 6.0.9.0) ensures that a Virtual Container Database (VCDB) and Virtual Pluggable Database (VPDB) are provisioned with log_archive_dest_X  database parameters (typically log_archive_dest_1) being set to a Delphix supplied NFS mounted file system.  During the provision process Delphix allows the setting of log_archive_dest_X to be another non-Delphix file system, however Delphix will establish a second destination and link this to the Delphix file system.  This results in the VCDB creating archivelogs in both locations.   

The Database Administrator of the VCDB can disable archiving to the Delphix mount point by altering the relevant log_archive_dest_X parameter.  This results in archiving occurring into the non-Delphix file system only.  This is currently not a supported configuration.  

Having the VCDB archivelog creation configured in this way results in snapshots being created for the VPDB that cannot be provisioned from as archivelogs are reported as missing for the snapshot.

This knowledge base article examines what is put in place to produce this behaviour and how you overcome the missing logs reported for the snapshot and more importantly how you avoid the missing logs and 15 minute snapshot times altogether. 

Applicable Delphix Versions

Click here to view the versions of the Delphix engine to which this article applies
Major Release All Sub Releases
6.0 6.0.0.0, 6.0.1.0, 6.0.1.1, 6.0.2.0, 6.0.2.1, 6.0.3.0, 6.0.3.1, 6.0.4.0, 6.0.4.1, 6.0.4.2, 6.0.5.0, 6.0.6.0, 6.0.6.1, 6.0.7.0, 6.0.8.0, 6.0.8.1, 6.0.9.0

5.3

5.3.0.0, 5.3.0.1, 5.3.0.2, 5.3.0.3, 5.3.1.0, 5.3.1.1, 5.3.1.2, 5.3.2.0, 5.3.3.0, 5.3.3.1, 5.3.4.0, 5.3.5.0, 5.3.6.0, 5.3.7.0, 5.3.7.1, 5.3.8.0, 5.3.8.1, 5.3.9.0

5.2

5.2.2.0, 5.2.2.1, 5.2.3.0, 5.2.4.0, 5.2.5.0, 5.2.5.1, 5.2.6.0, 5.2.6.1

5.1

5.1.0.0, 5.1.1.0, 5.1.2.0, 5.1.3.0, 5.1.4.0, 5.1.5.0, 5.1.5.1, 5.1.6.0, 5.1.7.0, 5.1.8.0, 5.1.8.1, 5.1.9.0, 5.1.10.0

5.0

5.0.1.0, 5.0.1.1, 5.0.2.0, 5.0.2.1, 5.0.2.2, 5.0.2.3, 5.0.3.0, 5.0.3.1, 5.0.4.0, 5.0.4.1, 5.0.5.0, 5.0.5.1, 5.0.5.2, 5.0.5.3, 5.0.5.4

Prerequisites 

The Oracle Database Administrator (DBA) has made changes to the Oracle VCDB parameters influencing the creation of archivelogs and stopped archive logs from being created in the Delphix NFS mounted file system typically used to hold these logs.  The DBA has set the creation of archivelogs to be a file system location outside of Delphix supplied mount points.

The following changes in a VCDB/VPDB pair will lead to the behavior appearing.

  • Enable creation of archive logs to a non-Delphix file system location (if it wasn't set already during the provision process).
    [oracle@oel7sitde2 ~]$ mkdir -p /u01/app/oracle/archive
    [oracle@oel7sitde2 ~]$ sqlplus / as sysdba
    
    SQL> alter system set log_archive_dest_2='location=/u01/app/oracle/archive/ MANDATORY' scope=spfile sid='*';
    
    System altered.
  • Disable archiving in the VCDB to the NFS mount point and enabled archiving in a non-Delphix based file system.  The reset command is one way to disable this archiving, there are others not documented here, like editing parameter files and removing the values. In this case the Delphix location was /mnt/provision/vcdbarc1/archive.  This location is removed as an archive location for the VDB. 
    SQL> show parameter log_archive_dest_1
    
    NAME     TYPE VALUE
    ------------------------------------ ----------- ------------------------------
    log_archive_dest_1     string location=/mnt/provision/vcdbarc1/archive/ MANDATORY
    
    SQL> alter system reset log_archive_dest_1;
    
    System altered.

 

  • Once this configuration is in place a subsequent snaspsync will look to have hung and no progress will be seen after initiating log sync for the VPDB. It will wait until the snapshot timeout is reached at around 15 minutes.

clipboard_e58c37c68f4f1962efa3f832876a433ed.png

  • The Job will eventually complete, however it will take a little over fifteen minutes to do so.
  • Looking at the snapshot just captured for the VPDB, it will report the snapshot is not provisionable.

clipboard_ea0e4d3124886fdc6e5358c85a6c6322e.png

  • A warning is also produced regarding logsync being unable to fetch the archivelogs from the VCDB.

    clipboard_e4d9cba3ae88ca23d2790c53c164b4223.png

 

Resolution

There are two parts to resolving this behaviour permanently in VCDB's.

TO RESOLVE THE MISSING ARCHIVELOGS reported for the snapshots reporting archivelogs missing the following process is to be performed for each snapshot.

  • The snapshot(s) captured where the warning around missing archivelogs is reported cannot be provisioned from in this state and the timeflow repair tool (Repair Missing Archivelogs) must be used to retrieve the missing logs from the target hosts file system. 

clipboard_ed9a29e674d3e50b0dbbe8afb7aa94abe.png

clipboard_e85a55a18d6ced96833b38d305eaef1ac.png

  • This will pull the missing logs from the target host into the engine and clear the missing logs error.

clipboard_e161bb619769a16178f4f8c3394de25b6.png

TO RESOLVE THE ONGOING SNAPSHOT PROBLEMS that result from configuring a VCDB to archive logs only to a file system location that is not a Delphix mount point establishing an archivelog destination that resides in Delphix mount points must be performed. 

  • Log into the VCDB invoking the SYSDBA privilege
sqlplus / as sysdba
  • Execute the parameter change to set an archivelog destination to be the original archive location supplied for the VCDB when it was created.
SQL> alter system set log_archive_dest_1='location=/mnt/provision/VCDBARC1/archive/ MANDATORY';