2.7

Table Of Contents
When a post-clone script fails, Data Director logs an error event or a warning event against the source database.
n
If a user without the Clone Administration privilege attempts the clone operation or the clone
administrator chooses to delete the clone if the post-clone script fails, the event is logged as an error.
n
If a clone administrator attempts the clone operation and chooses to allow the clone operation to finish if
the post-clone script fails, the event is logged as a warning.
The event contains information about the operation that failed and the user who attempted the clone operation.
Users with the View and Monitor privilege on the source database can view the event.
n
Author a Post-Clone Script on page 134
Organization administrators and users with Clone Administration privileges can author a SQL script
to run as the last step in the clone database process.
n
Add an Existing Post-Clone Script to a Database on page 135
Organization administrators and users with Clone Administration privileges can designate a SQL script
to run after a database is cloned by adding a SQL script to a database's cloning properties.
n
Edit a Post-Clone Script on page 135
Organization administrators or users with Clone Administration privileges can edit post-clone scripts,
for example, when there are updates to database schema.
n
Save Post-Clone Scripts to an External Location on page 136
Organization administrators and users with Clone Administration privileges can save post-clone SQL
scripts to a location outside Data Director.
n
Choose the Default Post-Clone Script on page 137
You can associate multiple post-clone scripts with a database, but only one can be active. Organization
administrators and users with Clone Administration privileges can choose one post-clone script as the
active (default) script.
n
Delete a Post-Clone Script on page 137
Users with Clone Administration privileges can delete post-clone scripts, for example, when the scripts
become obsolete. You cannot delete active scripts.
Author a Post-Clone Script
Organization administrators and users with Clone Administration privileges can author a SQL script to run
as the last step in the clone database process.
Prerequisites
Verify that you have Clone Administration privileges on the database to which you are adding a post-clone
script.
Procedure
1 Log in to Data Director as an organization administrator or user with Clone Administration privileges.
2 In your organization click the Manage and Monitor tab, and select the database group.
3 In the Databases tab, right-click the database and select Properties.
4 In the Properties window, click the Cloning tab.
5 In the Post-Clone Scripts section, click the plus (+) icon and enter the appropriate information.
Option Description
Name
A unique name for the script.
Description
(Optional) A description of the script.
VMware vFabric Data Director Administrator and User Guide
134 VMware, Inc.