16.10.2015 Views

Getting Started with IBM Data Studio for DB2

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

88 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>IBM</strong> <strong>Data</strong> <strong>Studio</strong> <strong>for</strong> <strong>DB2</strong><br />

Figure 2.21 – Running the commands from the Review and Deploy window<br />

The Save data path defines the location where <strong>Data</strong> <strong>Studio</strong> will store any backup files<br />

that are needed to preserve the contents of the database tables. When you enable the<br />

Save data option, <strong>Data</strong> <strong>Studio</strong> will create backup files <strong>for</strong> any dropped tables and<br />

changes that require you to drop and recreate a table.<br />

To control how <strong>Data</strong> <strong>Studio</strong> maps the columns of an existing table to the columns of<br />

the changed table, you click the Column Mapping button. If you add and remove<br />

columns from a table, you should review how <strong>Data</strong> <strong>Studio</strong> plans to map the columns.<br />

The Advanced Options window specifies which supporting commands <strong>Data</strong> <strong>Studio</strong><br />

should generate <strong>with</strong> the commands that change the objects. For example, if you do<br />

not want <strong>Data</strong> <strong>Studio</strong> to generate RUNSTATS commands <strong>for</strong> changed tables, you can<br />

disable the Generate RUNSTATS commands option in the advanced options.<br />

You could also edit the commands in the SQL and XQuery editor by clicking the Edit<br />

button. Or you could schedule the changes <strong>for</strong> a future time by clicking Schedule.<br />

2. Deploy your changes by clicking Run.<br />

The progress of the deployment commands is shown in the SQL Results window, as<br />

shown in Figure 2.22. When you deploy the commands to the database, the planned<br />

changes bar no longer opens in the object list editor because your local objects match the<br />

objects in the database. You can review past change plans by selecting the Change Plans<br />

folder in the Administration Explorer.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!