2.5

Table Of Contents
6 Type SQL statements in the text box.
7 Click OK.
The script appears in the list of scripts on the Cloning tab.
Add an Existing Post-Clone Script to a Database
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.
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.
6 Select Open and browse to an existing SQL script.
7 Select the script.
Its contents appear in the text box.
8 Click OK.
The script appears in the list of scripts on the Cloning tab.
What to do next
Optionally, select a default post-clone script from the Default Script drop-down menu.
Edit a Post-Clone Script
Organization administrators or users with Clone Administration privileges can edit post-clone scripts, for
example, when there are updates to database schema.
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 Click the Cloning tab.
Chapter 10 Cloning Databases
VMware, Inc. 115